configure revision 9511053f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xlsclients 1.1.3. 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='xlsclients' 563PACKAGE_TARNAME='xlsclients' 564PACKAGE_VERSION='1.1.3' 565PACKAGE_STRING='xlsclients 1.1.3' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609XLSCLIENTS_LIBS 610XLSCLIENTS_CFLAGS 611LIBOBJS 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641MAINT 642MAINTAINER_MODE_FALSE 643MAINTAINER_MODE_TRUE 644AM_BACKSLASH 645AM_DEFAULT_VERBOSITY 646AM_DEFAULT_V 647AM_V 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658am__untar 659am__tar 660AMTAR 661am__leading_dot 662SET_MAKE 663AWK 664mkdir_p 665MKDIR_P 666INSTALL_STRIP_PROGRAM 667STRIP 668install_sh 669MAKEINFO 670AUTOHEADER 671AUTOMAKE 672AUTOCONF 673ACLOCAL 674VERSION 675PACKAGE 676CYGPATH_W 677am__isrc 678INSTALL_DATA 679INSTALL_SCRIPT 680INSTALL_PROGRAM 681EGREP 682GREP 683CPP 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_dependency_tracking 733enable_silent_rules 734enable_maintainer_mode 735enable_selective_werror 736enable_strict_compilation 737' 738 ac_precious_vars='build_alias 739host_alias 740target_alias 741CC 742CFLAGS 743LDFLAGS 744LIBS 745CPPFLAGS 746CPP 747PKG_CONFIG 748XLSCLIENTS_CFLAGS 749XLSCLIENTS_LIBS' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1206 If a cross compiler is detected then cross compile mode will be used" >&2 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures xlsclients 1.1.3 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357_ACEOF 1358fi 1359 1360if test -n "$ac_init_help"; then 1361 case $ac_init_help in 1362 short | recursive ) echo "Configuration of xlsclients 1.1.3:";; 1363 esac 1364 cat <<\_ACEOF 1365 1366Optional Features: 1367 --disable-option-checking ignore unrecognized --enable/--with options 1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --enable-dependency-tracking 1371 do not reject slow dependency extractors 1372 --disable-dependency-tracking 1373 speeds up one-time build 1374 --enable-silent-rules less verbose build output (undo: "make V=1") 1375 --disable-silent-rules verbose build output (undo: "make V=0") 1376 --enable-maintainer-mode 1377 enable make rules and dependencies not useful (and 1378 sometimes confusing) to the casual installer 1379 --disable-selective-werror 1380 Turn off selective compiler errors. (default: 1381 enabled) 1382 --enable-strict-compilation 1383 Enable all warnings from compiler and make them 1384 errors (default: disabled) 1385 1386Some influential environment variables: 1387 CC C compiler command 1388 CFLAGS C compiler flags 1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1390 nonstandard directory <lib dir> 1391 LIBS libraries to pass to the linker, e.g. -l<library> 1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1393 you have headers in a nonstandard directory <include dir> 1394 CPP C preprocessor 1395 PKG_CONFIG path to pkg-config utility 1396 XLSCLIENTS_CFLAGS 1397 C compiler flags for XLSCLIENTS, overriding pkg-config 1398 XLSCLIENTS_LIBS 1399 linker flags for XLSCLIENTS, overriding pkg-config 1400 1401Use these variables to override the choices made by `configure' or to help 1402it to find libraries and programs with nonstandard names/locations. 1403 1404Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1405_ACEOF 1406ac_status=$? 1407fi 1408 1409if test "$ac_init_help" = "recursive"; then 1410 # If there are subdirs, report their specific --help. 1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1412 test -d "$ac_dir" || 1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1414 continue 1415 ac_builddir=. 1416 1417case "$ac_dir" in 1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419*) 1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1421 # A ".." for each directory in $ac_dir_suffix. 1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1423 case $ac_top_builddir_sub in 1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1426 esac ;; 1427esac 1428ac_abs_top_builddir=$ac_pwd 1429ac_abs_builddir=$ac_pwd$ac_dir_suffix 1430# for backward compatibility: 1431ac_top_builddir=$ac_top_build_prefix 1432 1433case $srcdir in 1434 .) # We are building in place. 1435 ac_srcdir=. 1436 ac_top_srcdir=$ac_top_builddir_sub 1437 ac_abs_top_srcdir=$ac_pwd ;; 1438 [\\/]* | ?:[\\/]* ) # Absolute name. 1439 ac_srcdir=$srcdir$ac_dir_suffix; 1440 ac_top_srcdir=$srcdir 1441 ac_abs_top_srcdir=$srcdir ;; 1442 *) # Relative name. 1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1444 ac_top_srcdir=$ac_top_build_prefix$srcdir 1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1446esac 1447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1448 1449 cd "$ac_dir" || { ac_status=$?; continue; } 1450 # Check for guested configure. 1451 if test -f "$ac_srcdir/configure.gnu"; then 1452 echo && 1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1454 elif test -f "$ac_srcdir/configure"; then 1455 echo && 1456 $SHELL "$ac_srcdir/configure" --help=recursive 1457 else 1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1459 fi || ac_status=$? 1460 cd "$ac_pwd" || { ac_status=$?; break; } 1461 done 1462fi 1463 1464test -n "$ac_init_help" && exit $ac_status 1465if $ac_init_version; then 1466 cat <<\_ACEOF 1467xlsclients configure 1.1.3 1468generated by GNU Autoconf 2.68 1469 1470Copyright (C) 2010 Free Software Foundation, Inc. 1471This configure script is free software; the Free Software Foundation 1472gives unlimited permission to copy, distribute and modify it. 1473_ACEOF 1474 exit 1475fi 1476 1477## ------------------------ ## 1478## Autoconf initialization. ## 1479## ------------------------ ## 1480 1481# ac_fn_c_try_compile LINENO 1482# -------------------------- 1483# Try to compile conftest.$ac_ext, and return whether this succeeded. 1484ac_fn_c_try_compile () 1485{ 1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 rm -f conftest.$ac_objext 1488 if { { ac_try="$ac_compile" 1489case "(($ac_try" in 1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *) ac_try_echo=$ac_try;; 1492esac 1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494$as_echo "$ac_try_echo"; } >&5 1495 (eval "$ac_compile") 2>conftest.err 1496 ac_status=$? 1497 if test -s conftest.err; then 1498 grep -v '^ *+' conftest.err >conftest.er1 1499 cat conftest.er1 >&5 1500 mv -f conftest.er1 conftest.err 1501 fi 1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 test $ac_status = 0; } && { 1504 test -z "$ac_c_werror_flag" || 1505 test ! -s conftest.err 1506 } && test -s conftest.$ac_objext; then : 1507 ac_retval=0 1508else 1509 $as_echo "$as_me: failed program was:" >&5 1510sed 's/^/| /' conftest.$ac_ext >&5 1511 1512 ac_retval=1 1513fi 1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515 as_fn_set_status $ac_retval 1516 1517} # ac_fn_c_try_compile 1518 1519# ac_fn_c_try_cpp LINENO 1520# ---------------------- 1521# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_cpp () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 if { { ac_try="$ac_cpp conftest.$ac_ext" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } > conftest.i && { 1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 }; then : 1544 ac_retval=0 1545else 1546 $as_echo "$as_me: failed program was:" >&5 1547sed 's/^/| /' conftest.$ac_ext >&5 1548 1549 ac_retval=1 1550fi 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_cpp 1555 1556# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1557# ------------------------------------------------------- 1558# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1559# the include files in INCLUDES and setting the cache variable VAR 1560# accordingly. 1561ac_fn_c_check_header_mongrel () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 if eval \${$3+:} false; then : 1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1566$as_echo_n "checking for $2... " >&6; } 1567if eval \${$3+:} false; then : 1568 $as_echo_n "(cached) " >&6 1569fi 1570eval ac_res=\$$3 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1572$as_echo "$ac_res" >&6; } 1573else 1574 # Is the header compilable? 1575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1576$as_echo_n "checking $2 usability... " >&6; } 1577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1578/* end confdefs.h. */ 1579$4 1580#include <$2> 1581_ACEOF 1582if ac_fn_c_try_compile "$LINENO"; then : 1583 ac_header_compiler=yes 1584else 1585 ac_header_compiler=no 1586fi 1587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1589$as_echo "$ac_header_compiler" >&6; } 1590 1591# Is the header present? 1592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1593$as_echo_n "checking $2 presence... " >&6; } 1594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596#include <$2> 1597_ACEOF 1598if ac_fn_c_try_cpp "$LINENO"; then : 1599 ac_header_preproc=yes 1600else 1601 ac_header_preproc=no 1602fi 1603rm -f conftest.err conftest.i conftest.$ac_ext 1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1605$as_echo "$ac_header_preproc" >&6; } 1606 1607# So? What about this header? 1608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1609 yes:no: ) 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1611$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1613$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1614 ;; 1615 no:yes:* ) 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1617$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1619$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1621$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1623$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1625$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1626( $as_echo "## ---------------------------------------------------------------------- ## 1627## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1628## ---------------------------------------------------------------------- ##" 1629 ) | sed "s/^/$as_me: WARNING: /" >&2 1630 ;; 1631esac 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 eval "$3=\$ac_header_compiler" 1638fi 1639eval ac_res=\$$3 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641$as_echo "$ac_res" >&6; } 1642fi 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645} # ac_fn_c_check_header_mongrel 1646 1647# ac_fn_c_try_run LINENO 1648# ---------------------- 1649# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1650# that executables *can* be run. 1651ac_fn_c_try_run () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_link" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_link") 2>&5 1662 ac_status=$? 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1665 { { case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_try") 2>&5 1672 ac_status=$? 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; }; }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: program exited with status $ac_status" >&5 1678 $as_echo "$as_me: failed program was:" >&5 1679sed 's/^/| /' conftest.$ac_ext >&5 1680 1681 ac_retval=$ac_status 1682fi 1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 as_fn_set_status $ac_retval 1686 1687} # ac_fn_c_try_run 1688 1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1690# ------------------------------------------------------- 1691# Tests whether HEADER exists and can be compiled using the include files in 1692# INCLUDES, setting the cache variable VAR accordingly. 1693ac_fn_c_check_header_compile () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1697$as_echo_n "checking for $2... " >&6; } 1698if eval \${$3+:} false; then : 1699 $as_echo_n "(cached) " >&6 1700else 1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702/* end confdefs.h. */ 1703$4 1704#include <$2> 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO"; then : 1707 eval "$3=yes" 1708else 1709 eval "$3=no" 1710fi 1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718} # ac_fn_c_check_header_compile 1719 1720# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1721# --------------------------------------------- 1722# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1723# accordingly. 1724ac_fn_c_check_decl () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 as_decl_name=`echo $2|sed 's/ *(.*//'` 1728 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1730$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737int 1738main () 1739{ 1740#ifndef $as_decl_name 1741#ifdef __cplusplus 1742 (void) $as_decl_use; 1743#else 1744 (void) $as_decl_name; 1745#endif 1746#endif 1747 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752if ac_fn_c_try_compile "$LINENO"; then : 1753 eval "$3=yes" 1754else 1755 eval "$3=no" 1756fi 1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1758fi 1759eval ac_res=\$$3 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761$as_echo "$ac_res" >&6; } 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 1764} # ac_fn_c_check_decl 1765 1766# ac_fn_c_try_link LINENO 1767# ----------------------- 1768# Try to link conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_link () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 rm -f conftest.$ac_objext conftest$ac_exeext 1773 if { { ac_try="$ac_link" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_link") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { 1789 test -z "$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 } && test -s conftest$ac_exeext && { 1792 test "$cross_compiling" = yes || 1793 $as_test_x conftest$ac_exeext 1794 }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=1 1801fi 1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1804 # interfere with the next link command; also delete a directory that is 1805 # left behind by Apple's compiler. We do this before executing the actions. 1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810} # ac_fn_c_try_link 1811cat >config.log <<_ACEOF 1812This file contains any messages produced by compilers while 1813running configure, to aid debugging if configure makes a mistake. 1814 1815It was created by xlsclients $as_me 1.1.3, which was 1816generated by GNU Autoconf 2.68. Invocation command line was 1817 1818 $ $0 $@ 1819 1820_ACEOF 1821exec 5>>config.log 1822{ 1823cat <<_ASUNAME 1824## --------- ## 1825## Platform. ## 1826## --------- ## 1827 1828hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1829uname -m = `(uname -m) 2>/dev/null || echo unknown` 1830uname -r = `(uname -r) 2>/dev/null || echo unknown` 1831uname -s = `(uname -s) 2>/dev/null || echo unknown` 1832uname -v = `(uname -v) 2>/dev/null || echo unknown` 1833 1834/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1835/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1836 1837/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1838/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1839/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1840/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1841/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1842/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1843/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1844 1845_ASUNAME 1846 1847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1848for as_dir in $PATH 1849do 1850 IFS=$as_save_IFS 1851 test -z "$as_dir" && as_dir=. 1852 $as_echo "PATH: $as_dir" 1853 done 1854IFS=$as_save_IFS 1855 1856} >&5 1857 1858cat >&5 <<_ACEOF 1859 1860 1861## ----------- ## 1862## Core tests. ## 1863## ----------- ## 1864 1865_ACEOF 1866 1867 1868# Keep a trace of the command line. 1869# Strip out --no-create and --no-recursion so they do not pile up. 1870# Strip out --silent because we don't want to record it for future runs. 1871# Also quote any args containing shell meta-characters. 1872# Make two passes to allow for proper duplicate-argument suppression. 1873ac_configure_args= 1874ac_configure_args0= 1875ac_configure_args1= 1876ac_must_keep_next=false 1877for ac_pass in 1 2 1878do 1879 for ac_arg 1880 do 1881 case $ac_arg in 1882 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1884 | -silent | --silent | --silen | --sile | --sil) 1885 continue ;; 1886 *\'*) 1887 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1888 esac 1889 case $ac_pass in 1890 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1891 2) 1892 as_fn_append ac_configure_args1 " '$ac_arg'" 1893 if test $ac_must_keep_next = true; then 1894 ac_must_keep_next=false # Got value, back to normal. 1895 else 1896 case $ac_arg in 1897 *=* | --config-cache | -C | -disable-* | --disable-* \ 1898 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1899 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1900 | -with-* | --with-* | -without-* | --without-* | --x) 1901 case "$ac_configure_args0 " in 1902 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1903 esac 1904 ;; 1905 -* ) ac_must_keep_next=true ;; 1906 esac 1907 fi 1908 as_fn_append ac_configure_args " '$ac_arg'" 1909 ;; 1910 esac 1911 done 1912done 1913{ ac_configure_args0=; unset ac_configure_args0;} 1914{ ac_configure_args1=; unset ac_configure_args1;} 1915 1916# When interrupted or exit'd, cleanup temporary files, and complete 1917# config.log. We remove comments because anyway the quotes in there 1918# would cause problems or look ugly. 1919# WARNING: Use '\'' to represent an apostrophe within the trap. 1920# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1921trap 'exit_status=$? 1922 # Save into config.log some information that might help in debugging. 1923 { 1924 echo 1925 1926 $as_echo "## ---------------- ## 1927## Cache variables. ## 1928## ---------------- ##" 1929 echo 1930 # The following way of writing the cache mishandles newlines in values, 1931( 1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1933 eval ac_val=\$$ac_var 1934 case $ac_val in #( 1935 *${as_nl}*) 1936 case $ac_var in #( 1937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1939 esac 1940 case $ac_var in #( 1941 _ | IFS | as_nl) ;; #( 1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1943 *) { eval $ac_var=; unset $ac_var;} ;; 1944 esac ;; 1945 esac 1946 done 1947 (set) 2>&1 | 1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1949 *${as_nl}ac_space=\ *) 1950 sed -n \ 1951 "s/'\''/'\''\\\\'\'''\''/g; 1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1953 ;; #( 1954 *) 1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1956 ;; 1957 esac | 1958 sort 1959) 1960 echo 1961 1962 $as_echo "## ----------------- ## 1963## Output variables. ## 1964## ----------------- ##" 1965 echo 1966 for ac_var in $ac_subst_vars 1967 do 1968 eval ac_val=\$$ac_var 1969 case $ac_val in 1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1971 esac 1972 $as_echo "$ac_var='\''$ac_val'\''" 1973 done | sort 1974 echo 1975 1976 if test -n "$ac_subst_files"; then 1977 $as_echo "## ------------------- ## 1978## File substitutions. ## 1979## ------------------- ##" 1980 echo 1981 for ac_var in $ac_subst_files 1982 do 1983 eval ac_val=\$$ac_var 1984 case $ac_val in 1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1986 esac 1987 $as_echo "$ac_var='\''$ac_val'\''" 1988 done | sort 1989 echo 1990 fi 1991 1992 if test -s confdefs.h; then 1993 $as_echo "## ----------- ## 1994## confdefs.h. ## 1995## ----------- ##" 1996 echo 1997 cat confdefs.h 1998 echo 1999 fi 2000 test "$ac_signal" != 0 && 2001 $as_echo "$as_me: caught signal $ac_signal" 2002 $as_echo "$as_me: exit $exit_status" 2003 } >&5 2004 rm -f core *.core core.conftest.* && 2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2006 exit $exit_status 2007' 0 2008for ac_signal in 1 2 13 15; do 2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2010done 2011ac_signal=0 2012 2013# confdefs.h avoids OS command line length limits that DEFS can exceed. 2014rm -f -r conftest* confdefs.h 2015 2016$as_echo "/* confdefs.h */" > confdefs.h 2017 2018# Predefined preprocessor variables. 2019 2020cat >>confdefs.h <<_ACEOF 2021#define PACKAGE_NAME "$PACKAGE_NAME" 2022_ACEOF 2023 2024cat >>confdefs.h <<_ACEOF 2025#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2026_ACEOF 2027 2028cat >>confdefs.h <<_ACEOF 2029#define PACKAGE_VERSION "$PACKAGE_VERSION" 2030_ACEOF 2031 2032cat >>confdefs.h <<_ACEOF 2033#define PACKAGE_STRING "$PACKAGE_STRING" 2034_ACEOF 2035 2036cat >>confdefs.h <<_ACEOF 2037#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2038_ACEOF 2039 2040cat >>confdefs.h <<_ACEOF 2041#define PACKAGE_URL "$PACKAGE_URL" 2042_ACEOF 2043 2044 2045# Let the site file select an alternate cache file if it wants to. 2046# Prefer an explicitly selected file to automatically selected ones. 2047ac_site_file1=NONE 2048ac_site_file2=NONE 2049if test -n "$CONFIG_SITE"; then 2050 # We do not want a PATH search for config.site. 2051 case $CONFIG_SITE in #(( 2052 -*) ac_site_file1=./$CONFIG_SITE;; 2053 */*) ac_site_file1=$CONFIG_SITE;; 2054 *) ac_site_file1=./$CONFIG_SITE;; 2055 esac 2056elif test "x$prefix" != xNONE; then 2057 ac_site_file1=$prefix/share/config.site 2058 ac_site_file2=$prefix/etc/config.site 2059else 2060 ac_site_file1=$ac_default_prefix/share/config.site 2061 ac_site_file2=$ac_default_prefix/etc/config.site 2062fi 2063for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2064do 2065 test "x$ac_site_file" = xNONE && continue 2066 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2068$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2069 sed 's/^/| /' "$ac_site_file" >&5 2070 . "$ac_site_file" \ 2071 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2073as_fn_error $? "failed to load site script $ac_site_file 2074See \`config.log' for more details" "$LINENO" 5; } 2075 fi 2076done 2077 2078if test -r "$cache_file"; then 2079 # Some versions of bash will fail to source /dev/null (special files 2080 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2081 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2083$as_echo "$as_me: loading cache $cache_file" >&6;} 2084 case $cache_file in 2085 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2086 *) . "./$cache_file";; 2087 esac 2088 fi 2089else 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2091$as_echo "$as_me: creating cache $cache_file" >&6;} 2092 >$cache_file 2093fi 2094 2095# Check that the precious variables saved in the cache have kept the same 2096# value. 2097ac_cache_corrupted=false 2098for ac_var in $ac_precious_vars; do 2099 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2100 eval ac_new_set=\$ac_env_${ac_var}_set 2101 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2102 eval ac_new_val=\$ac_env_${ac_var}_value 2103 case $ac_old_set,$ac_new_set in 2104 set,) 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2106$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2107 ac_cache_corrupted=: ;; 2108 ,set) 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2110$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2111 ac_cache_corrupted=: ;; 2112 ,);; 2113 *) 2114 if test "x$ac_old_val" != "x$ac_new_val"; then 2115 # differences in whitespace do not lead to failure. 2116 ac_old_val_w=`echo x $ac_old_val` 2117 ac_new_val_w=`echo x $ac_new_val` 2118 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2120$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2121 ac_cache_corrupted=: 2122 else 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2124$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2125 eval $ac_var=\$ac_old_val 2126 fi 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2128$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2130$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2131 fi;; 2132 esac 2133 # Pass precious variables to config.status. 2134 if test "$ac_new_set" = set; then 2135 case $ac_new_val in 2136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2137 *) ac_arg=$ac_var=$ac_new_val ;; 2138 esac 2139 case " $ac_configure_args " in 2140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2141 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2142 esac 2143 fi 2144done 2145if $ac_cache_corrupted; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2149$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2150 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2151fi 2152## -------------------- ## 2153## Main body of script. ## 2154## -------------------- ## 2155 2156ac_ext=c 2157ac_cpp='$CPP $CPPFLAGS' 2158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2160ac_compiler_gnu=$ac_cv_c_compiler_gnu 2161 2162 2163 2164ac_config_headers="$ac_config_headers config.h" 2165 2166# expand $ac_aux_dir to an absolute path 2167am_aux_dir=`cd $ac_aux_dir && pwd` 2168 2169ac_ext=c 2170ac_cpp='$CPP $CPPFLAGS' 2171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2173ac_compiler_gnu=$ac_cv_c_compiler_gnu 2174if test -n "$ac_tool_prefix"; then 2175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2176set dummy ${ac_tool_prefix}gcc; ac_word=$2 2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2178$as_echo_n "checking for $ac_word... " >&6; } 2179if ${ac_cv_prog_CC+:} false; then : 2180 $as_echo_n "(cached) " >&6 2181else 2182 if test -n "$CC"; then 2183 ac_cv_prog_CC="$CC" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197 done 2198IFS=$as_save_IFS 2199 2200fi 2201fi 2202CC=$ac_cv_prog_CC 2203if test -n "$CC"; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2205$as_echo "$CC" >&6; } 2206else 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2208$as_echo "no" >&6; } 2209fi 2210 2211 2212fi 2213if test -z "$ac_cv_prog_CC"; then 2214 ac_ct_CC=$CC 2215 # Extract the first word of "gcc", so it can be a program name with args. 2216set dummy gcc; ac_word=$2 2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2218$as_echo_n "checking for $ac_word... " >&6; } 2219if ${ac_cv_prog_ac_ct_CC+:} false; then : 2220 $as_echo_n "(cached) " >&6 2221else 2222 if test -n "$ac_ct_CC"; then 2223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2224else 2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2226for as_dir in $PATH 2227do 2228 IFS=$as_save_IFS 2229 test -z "$as_dir" && as_dir=. 2230 for ac_exec_ext in '' $ac_executable_extensions; do 2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2232 ac_cv_prog_ac_ct_CC="gcc" 2233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2234 break 2 2235 fi 2236done 2237 done 2238IFS=$as_save_IFS 2239 2240fi 2241fi 2242ac_ct_CC=$ac_cv_prog_ac_ct_CC 2243if test -n "$ac_ct_CC"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2245$as_echo "$ac_ct_CC" >&6; } 2246else 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2248$as_echo "no" >&6; } 2249fi 2250 2251 if test "x$ac_ct_CC" = x; then 2252 CC="" 2253 else 2254 case $cross_compiling:$ac_tool_warned in 2255yes:) 2256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2258ac_tool_warned=yes ;; 2259esac 2260 CC=$ac_ct_CC 2261 fi 2262else 2263 CC="$ac_cv_prog_CC" 2264fi 2265 2266if test -z "$CC"; then 2267 if test -n "$ac_tool_prefix"; then 2268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2269set dummy ${ac_tool_prefix}cc; ac_word=$2 2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2271$as_echo_n "checking for $ac_word... " >&6; } 2272if ${ac_cv_prog_CC+:} false; then : 2273 $as_echo_n "(cached) " >&6 2274else 2275 if test -n "$CC"; then 2276 ac_cv_prog_CC="$CC" # Let the user override the test. 2277else 2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279for as_dir in $PATH 2280do 2281 IFS=$as_save_IFS 2282 test -z "$as_dir" && as_dir=. 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 ac_cv_prog_CC="${ac_tool_prefix}cc" 2286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 break 2 2288 fi 2289done 2290 done 2291IFS=$as_save_IFS 2292 2293fi 2294fi 2295CC=$ac_cv_prog_CC 2296if test -n "$CC"; then 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2298$as_echo "$CC" >&6; } 2299else 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2301$as_echo "no" >&6; } 2302fi 2303 2304 2305 fi 2306fi 2307if test -z "$CC"; then 2308 # Extract the first word of "cc", so it can be a program name with args. 2309set dummy cc; ac_word=$2 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2311$as_echo_n "checking for $ac_word... " >&6; } 2312if ${ac_cv_prog_CC+:} false; then : 2313 $as_echo_n "(cached) " >&6 2314else 2315 if test -n "$CC"; then 2316 ac_cv_prog_CC="$CC" # Let the user override the test. 2317else 2318 ac_prog_rejected=no 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2320for as_dir in $PATH 2321do 2322 IFS=$as_save_IFS 2323 test -z "$as_dir" && as_dir=. 2324 for ac_exec_ext in '' $ac_executable_extensions; do 2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2327 ac_prog_rejected=yes 2328 continue 2329 fi 2330 ac_cv_prog_CC="cc" 2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335 done 2336IFS=$as_save_IFS 2337 2338if test $ac_prog_rejected = yes; then 2339 # We found a bogon in the path, so make sure we never use it. 2340 set dummy $ac_cv_prog_CC 2341 shift 2342 if test $# != 0; then 2343 # We chose a different compiler from the bogus one. 2344 # However, it has the same basename, so the bogon will be chosen 2345 # first if we set CC to just the basename; use the full file name. 2346 shift 2347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2348 fi 2349fi 2350fi 2351fi 2352CC=$ac_cv_prog_CC 2353if test -n "$CC"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2355$as_echo "$CC" >&6; } 2356else 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2358$as_echo "no" >&6; } 2359fi 2360 2361 2362fi 2363if test -z "$CC"; then 2364 if test -n "$ac_tool_prefix"; then 2365 for ac_prog in cl.exe 2366 do 2367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2368set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2370$as_echo_n "checking for $ac_word... " >&6; } 2371if ${ac_cv_prog_CC+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 if test -n "$CC"; then 2375 ac_cv_prog_CC="$CC" # Let the user override the test. 2376else 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2386 break 2 2387 fi 2388done 2389 done 2390IFS=$as_save_IFS 2391 2392fi 2393fi 2394CC=$ac_cv_prog_CC 2395if test -n "$CC"; then 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2397$as_echo "$CC" >&6; } 2398else 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 2404 test -n "$CC" && break 2405 done 2406fi 2407if test -z "$CC"; then 2408 ac_ct_CC=$CC 2409 for ac_prog in cl.exe 2410do 2411 # Extract the first word of "$ac_prog", so it can be a program name with args. 2412set dummy $ac_prog; ac_word=$2 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2414$as_echo_n "checking for $ac_word... " >&6; } 2415if ${ac_cv_prog_ac_ct_CC+:} false; then : 2416 $as_echo_n "(cached) " >&6 2417else 2418 if test -n "$ac_ct_CC"; then 2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2420else 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2428 ac_cv_prog_ac_ct_CC="$ac_prog" 2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2430 break 2 2431 fi 2432done 2433 done 2434IFS=$as_save_IFS 2435 2436fi 2437fi 2438ac_ct_CC=$ac_cv_prog_ac_ct_CC 2439if test -n "$ac_ct_CC"; then 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2441$as_echo "$ac_ct_CC" >&6; } 2442else 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2444$as_echo "no" >&6; } 2445fi 2446 2447 2448 test -n "$ac_ct_CC" && break 2449done 2450 2451 if test "x$ac_ct_CC" = x; then 2452 CC="" 2453 else 2454 case $cross_compiling:$ac_tool_warned in 2455yes:) 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2458ac_tool_warned=yes ;; 2459esac 2460 CC=$ac_ct_CC 2461 fi 2462fi 2463 2464fi 2465 2466 2467test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2469as_fn_error $? "no acceptable C compiler found in \$PATH 2470See \`config.log' for more details" "$LINENO" 5; } 2471 2472# Provide some information about the compiler. 2473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2474set X $ac_compile 2475ac_compiler=$2 2476for ac_option in --version -v -V -qversion; do 2477 { { ac_try="$ac_compiler $ac_option >&5" 2478case "(($ac_try" in 2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2480 *) ac_try_echo=$ac_try;; 2481esac 2482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2483$as_echo "$ac_try_echo"; } >&5 2484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2485 ac_status=$? 2486 if test -s conftest.err; then 2487 sed '10a\ 2488... rest of stderr output deleted ... 2489 10q' conftest.err >conftest.er1 2490 cat conftest.er1 >&5 2491 fi 2492 rm -f conftest.er1 conftest.err 2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2494 test $ac_status = 0; } 2495done 2496 2497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2498/* end confdefs.h. */ 2499 2500int 2501main () 2502{ 2503 2504 ; 2505 return 0; 2506} 2507_ACEOF 2508ac_clean_files_save=$ac_clean_files 2509ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2510# Try to create an executable without -o first, disregard a.out. 2511# It will help us diagnose broken compilers, and finding out an intuition 2512# of exeext. 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2514$as_echo_n "checking whether the C compiler works... " >&6; } 2515ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2516 2517# The possible output files: 2518ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2519 2520ac_rmfiles= 2521for ac_file in $ac_files 2522do 2523 case $ac_file in 2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2525 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2526 esac 2527done 2528rm -f $ac_rmfiles 2529 2530if { { ac_try="$ac_link_default" 2531case "(($ac_try" in 2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2533 *) ac_try_echo=$ac_try;; 2534esac 2535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2536$as_echo "$ac_try_echo"; } >&5 2537 (eval "$ac_link_default") 2>&5 2538 ac_status=$? 2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2540 test $ac_status = 0; }; then : 2541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2542# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2543# in a Makefile. We should not override ac_cv_exeext if it was cached, 2544# so that the user can short-circuit this test for compilers unknown to 2545# Autoconf. 2546for ac_file in $ac_files '' 2547do 2548 test -f "$ac_file" || continue 2549 case $ac_file in 2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2551 ;; 2552 [ab].out ) 2553 # We found the default executable, but exeext='' is most 2554 # certainly right. 2555 break;; 2556 *.* ) 2557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2558 then :; else 2559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2560 fi 2561 # We set ac_cv_exeext here because the later test for it is not 2562 # safe: cross compilers may not add the suffix if given an `-o' 2563 # argument, so we may need to know it at that point already. 2564 # Even if this section looks crufty: it has the advantage of 2565 # actually working. 2566 break;; 2567 * ) 2568 break;; 2569 esac 2570done 2571test "$ac_cv_exeext" = no && ac_cv_exeext= 2572 2573else 2574 ac_file='' 2575fi 2576if test -z "$ac_file"; then : 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2578$as_echo "no" >&6; } 2579$as_echo "$as_me: failed program was:" >&5 2580sed 's/^/| /' conftest.$ac_ext >&5 2581 2582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2584as_fn_error 77 "C compiler cannot create executables 2585See \`config.log' for more details" "$LINENO" 5; } 2586else 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2588$as_echo "yes" >&6; } 2589fi 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2591$as_echo_n "checking for C compiler default output file name... " >&6; } 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2593$as_echo "$ac_file" >&6; } 2594ac_exeext=$ac_cv_exeext 2595 2596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2597ac_clean_files=$ac_clean_files_save 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2599$as_echo_n "checking for suffix of executables... " >&6; } 2600if { { ac_try="$ac_link" 2601case "(($ac_try" in 2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2603 *) ac_try_echo=$ac_try;; 2604esac 2605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2606$as_echo "$ac_try_echo"; } >&5 2607 (eval "$ac_link") 2>&5 2608 ac_status=$? 2609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2610 test $ac_status = 0; }; then : 2611 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2612# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2613# work properly (i.e., refer to `conftest.exe'), while it won't with 2614# `rm'. 2615for ac_file in conftest.exe conftest conftest.*; do 2616 test -f "$ac_file" || continue 2617 case $ac_file in 2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2620 break;; 2621 * ) break;; 2622 esac 2623done 2624else 2625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2627as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2628See \`config.log' for more details" "$LINENO" 5; } 2629fi 2630rm -f conftest conftest$ac_cv_exeext 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2632$as_echo "$ac_cv_exeext" >&6; } 2633 2634rm -f conftest.$ac_ext 2635EXEEXT=$ac_cv_exeext 2636ac_exeext=$EXEEXT 2637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2638/* end confdefs.h. */ 2639#include <stdio.h> 2640int 2641main () 2642{ 2643FILE *f = fopen ("conftest.out", "w"); 2644 return ferror (f) || fclose (f) != 0; 2645 2646 ; 2647 return 0; 2648} 2649_ACEOF 2650ac_clean_files="$ac_clean_files conftest.out" 2651# Check that the compiler produces executables we can run. If not, either 2652# the compiler is broken, or we cross compile. 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2654$as_echo_n "checking whether we are cross compiling... " >&6; } 2655if test "$cross_compiling" != yes; then 2656 { { ac_try="$ac_link" 2657case "(($ac_try" in 2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2659 *) ac_try_echo=$ac_try;; 2660esac 2661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2662$as_echo "$ac_try_echo"; } >&5 2663 (eval "$ac_link") 2>&5 2664 ac_status=$? 2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2666 test $ac_status = 0; } 2667 if { ac_try='./conftest$ac_cv_exeext' 2668 { { case "(($ac_try" in 2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2670 *) ac_try_echo=$ac_try;; 2671esac 2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2673$as_echo "$ac_try_echo"; } >&5 2674 (eval "$ac_try") 2>&5 2675 ac_status=$? 2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2677 test $ac_status = 0; }; }; then 2678 cross_compiling=no 2679 else 2680 if test "$cross_compiling" = maybe; then 2681 cross_compiling=yes 2682 else 2683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2685as_fn_error $? "cannot run C compiled programs. 2686If you meant to cross compile, use \`--host'. 2687See \`config.log' for more details" "$LINENO" 5; } 2688 fi 2689 fi 2690fi 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2692$as_echo "$cross_compiling" >&6; } 2693 2694rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2695ac_clean_files=$ac_clean_files_save 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2697$as_echo_n "checking for suffix of object files... " >&6; } 2698if ${ac_cv_objext+:} false; then : 2699 $as_echo_n "(cached) " >&6 2700else 2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2702/* end confdefs.h. */ 2703 2704int 2705main () 2706{ 2707 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712rm -f conftest.o conftest.obj 2713if { { ac_try="$ac_compile" 2714case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717esac 2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2719$as_echo "$ac_try_echo"; } >&5 2720 (eval "$ac_compile") 2>&5 2721 ac_status=$? 2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2723 test $ac_status = 0; }; then : 2724 for ac_file in conftest.o conftest.obj conftest.*; do 2725 test -f "$ac_file" || continue; 2726 case $ac_file in 2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2729 break;; 2730 esac 2731done 2732else 2733 $as_echo "$as_me: failed program was:" >&5 2734sed 's/^/| /' conftest.$ac_ext >&5 2735 2736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2738as_fn_error $? "cannot compute suffix of object files: cannot compile 2739See \`config.log' for more details" "$LINENO" 5; } 2740fi 2741rm -f conftest.$ac_cv_objext conftest.$ac_ext 2742fi 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2744$as_echo "$ac_cv_objext" >&6; } 2745OBJEXT=$ac_cv_objext 2746ac_objext=$OBJEXT 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2748$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2749if ${ac_cv_c_compiler_gnu+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751else 2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2753/* end confdefs.h. */ 2754 2755int 2756main () 2757{ 2758#ifndef __GNUC__ 2759 choke me 2760#endif 2761 2762 ; 2763 return 0; 2764} 2765_ACEOF 2766if ac_fn_c_try_compile "$LINENO"; then : 2767 ac_compiler_gnu=yes 2768else 2769 ac_compiler_gnu=no 2770fi 2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2772ac_cv_c_compiler_gnu=$ac_compiler_gnu 2773 2774fi 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2776$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2777if test $ac_compiler_gnu = yes; then 2778 GCC=yes 2779else 2780 GCC= 2781fi 2782ac_test_CFLAGS=${CFLAGS+set} 2783ac_save_CFLAGS=$CFLAGS 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2785$as_echo_n "checking whether $CC accepts -g... " >&6; } 2786if ${ac_cv_prog_cc_g+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 ac_save_c_werror_flag=$ac_c_werror_flag 2790 ac_c_werror_flag=yes 2791 ac_cv_prog_cc_g=no 2792 CFLAGS="-g" 2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2794/* end confdefs.h. */ 2795 2796int 2797main () 2798{ 2799 2800 ; 2801 return 0; 2802} 2803_ACEOF 2804if ac_fn_c_try_compile "$LINENO"; then : 2805 ac_cv_prog_cc_g=yes 2806else 2807 CFLAGS="" 2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2809/* end confdefs.h. */ 2810 2811int 2812main () 2813{ 2814 2815 ; 2816 return 0; 2817} 2818_ACEOF 2819if ac_fn_c_try_compile "$LINENO"; then : 2820 2821else 2822 ac_c_werror_flag=$ac_save_c_werror_flag 2823 CFLAGS="-g" 2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2825/* end confdefs.h. */ 2826 2827int 2828main () 2829{ 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835if ac_fn_c_try_compile "$LINENO"; then : 2836 ac_cv_prog_cc_g=yes 2837fi 2838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2839fi 2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2841fi 2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2843 ac_c_werror_flag=$ac_save_c_werror_flag 2844fi 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2846$as_echo "$ac_cv_prog_cc_g" >&6; } 2847if test "$ac_test_CFLAGS" = set; then 2848 CFLAGS=$ac_save_CFLAGS 2849elif test $ac_cv_prog_cc_g = yes; then 2850 if test "$GCC" = yes; then 2851 CFLAGS="-g -O2" 2852 else 2853 CFLAGS="-g" 2854 fi 2855else 2856 if test "$GCC" = yes; then 2857 CFLAGS="-O2" 2858 else 2859 CFLAGS= 2860 fi 2861fi 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2864if ${ac_cv_prog_cc_c89+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 ac_cv_prog_cc_c89=no 2868ac_save_CC=$CC 2869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2870/* end confdefs.h. */ 2871#include <stdarg.h> 2872#include <stdio.h> 2873#include <sys/types.h> 2874#include <sys/stat.h> 2875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2876struct buf { int x; }; 2877FILE * (*rcsopen) (struct buf *, struct stat *, int); 2878static char *e (p, i) 2879 char **p; 2880 int i; 2881{ 2882 return p[i]; 2883} 2884static char *f (char * (*g) (char **, int), char **p, ...) 2885{ 2886 char *s; 2887 va_list v; 2888 va_start (v,p); 2889 s = g (p, va_arg (v,int)); 2890 va_end (v); 2891 return s; 2892} 2893 2894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2895 function prototypes and stuff, but not '\xHH' hex character constants. 2896 These don't provoke an error unfortunately, instead are silently treated 2897 as 'x'. The following induces an error, until -std is added to get 2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2899 array size at least. It's necessary to write '\x00'==0 to get something 2900 that's true only with -std. */ 2901int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2902 2903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2904 inside strings and character constants. */ 2905#define FOO(x) 'x' 2906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2907 2908int test (int i, double x); 2909struct s1 {int (*f) (int a);}; 2910struct s2 {int (*f) (double a);}; 2911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2912int argc; 2913char **argv; 2914int 2915main () 2916{ 2917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2924do 2925 CC="$ac_save_CC $ac_arg" 2926 if ac_fn_c_try_compile "$LINENO"; then : 2927 ac_cv_prog_cc_c89=$ac_arg 2928fi 2929rm -f core conftest.err conftest.$ac_objext 2930 test "x$ac_cv_prog_cc_c89" != "xno" && break 2931done 2932rm -f conftest.$ac_ext 2933CC=$ac_save_CC 2934 2935fi 2936# AC_CACHE_VAL 2937case "x$ac_cv_prog_cc_c89" in 2938 x) 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2940$as_echo "none needed" >&6; } ;; 2941 xno) 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2943$as_echo "unsupported" >&6; } ;; 2944 *) 2945 CC="$CC $ac_cv_prog_cc_c89" 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2948esac 2949if test "x$ac_cv_prog_cc_c89" != xno; then : 2950 2951fi 2952 2953ac_ext=c 2954ac_cpp='$CPP $CPPFLAGS' 2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2957ac_compiler_gnu=$ac_cv_c_compiler_gnu 2958 2959ac_ext=c 2960ac_cpp='$CPP $CPPFLAGS' 2961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2963ac_compiler_gnu=$ac_cv_c_compiler_gnu 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 2965$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 2966if ${am_cv_prog_cc_c_o+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2970/* end confdefs.h. */ 2971 2972int 2973main () 2974{ 2975 2976 ; 2977 return 0; 2978} 2979_ACEOF 2980 # Make sure it works both with $CC and with simple cc. 2981 # Following AC_PROG_CC_C_O, we do the test twice because some 2982 # compilers refuse to overwrite an existing .o file with -o, 2983 # though they will create one. 2984 am_cv_prog_cc_c_o=yes 2985 for am_i in 1 2; do 2986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 2987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 2988 ac_status=$? 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); } \ 2991 && test -f conftest2.$ac_objext; then 2992 : OK 2993 else 2994 am_cv_prog_cc_c_o=no 2995 break 2996 fi 2997 done 2998 rm -f core conftest* 2999 unset am_i 3000fi 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3002$as_echo "$am_cv_prog_cc_c_o" >&6; } 3003if test "$am_cv_prog_cc_c_o" != yes; then 3004 # Losing compiler, so override with the script. 3005 # FIXME: It is wrong to rewrite CC. 3006 # But if we don't then we get into trouble of one sort or another. 3007 # A longer-term fix would be to have automake use am__CC in this case, 3008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3009 CC="$am_aux_dir/compile $CC" 3010fi 3011ac_ext=c 3012ac_cpp='$CPP $CPPFLAGS' 3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3015ac_compiler_gnu=$ac_cv_c_compiler_gnu 3016 3017 3018 3019ac_ext=c 3020ac_cpp='$CPP $CPPFLAGS' 3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3023ac_compiler_gnu=$ac_cv_c_compiler_gnu 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3025$as_echo_n "checking how to run the C preprocessor... " >&6; } 3026# On Suns, sometimes $CPP names a directory. 3027if test -n "$CPP" && test -d "$CPP"; then 3028 CPP= 3029fi 3030if test -z "$CPP"; then 3031 if ${ac_cv_prog_CPP+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 # Double quotes because CPP needs to be expanded 3035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3036 do 3037 ac_preproc_ok=false 3038for ac_c_preproc_warn_flag in '' yes 3039do 3040 # Use a header file that comes with gcc, so configuring glibc 3041 # with a fresh cross-compiler works. 3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3043 # <limits.h> exists even on freestanding compilers. 3044 # On the NeXT, cc -E runs the code through the compiler's parser, 3045 # not just through cpp. "Syntax error" is here to catch this case. 3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3047/* end confdefs.h. */ 3048#ifdef __STDC__ 3049# include <limits.h> 3050#else 3051# include <assert.h> 3052#endif 3053 Syntax error 3054_ACEOF 3055if ac_fn_c_try_cpp "$LINENO"; then : 3056 3057else 3058 # Broken: fails on valid input. 3059continue 3060fi 3061rm -f conftest.err conftest.i conftest.$ac_ext 3062 3063 # OK, works on sane cases. Now check whether nonexistent headers 3064 # can be detected and how. 3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3066/* end confdefs.h. */ 3067#include <ac_nonexistent.h> 3068_ACEOF 3069if ac_fn_c_try_cpp "$LINENO"; then : 3070 # Broken: success on invalid input. 3071continue 3072else 3073 # Passes both tests. 3074ac_preproc_ok=: 3075break 3076fi 3077rm -f conftest.err conftest.i conftest.$ac_ext 3078 3079done 3080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3081rm -f conftest.i conftest.err conftest.$ac_ext 3082if $ac_preproc_ok; then : 3083 break 3084fi 3085 3086 done 3087 ac_cv_prog_CPP=$CPP 3088 3089fi 3090 CPP=$ac_cv_prog_CPP 3091else 3092 ac_cv_prog_CPP=$CPP 3093fi 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3095$as_echo "$CPP" >&6; } 3096ac_preproc_ok=false 3097for ac_c_preproc_warn_flag in '' yes 3098do 3099 # Use a header file that comes with gcc, so configuring glibc 3100 # with a fresh cross-compiler works. 3101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3102 # <limits.h> exists even on freestanding compilers. 3103 # On the NeXT, cc -E runs the code through the compiler's parser, 3104 # not just through cpp. "Syntax error" is here to catch this case. 3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106/* end confdefs.h. */ 3107#ifdef __STDC__ 3108# include <limits.h> 3109#else 3110# include <assert.h> 3111#endif 3112 Syntax error 3113_ACEOF 3114if ac_fn_c_try_cpp "$LINENO"; then : 3115 3116else 3117 # Broken: fails on valid input. 3118continue 3119fi 3120rm -f conftest.err conftest.i conftest.$ac_ext 3121 3122 # OK, works on sane cases. Now check whether nonexistent headers 3123 # can be detected and how. 3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3125/* end confdefs.h. */ 3126#include <ac_nonexistent.h> 3127_ACEOF 3128if ac_fn_c_try_cpp "$LINENO"; then : 3129 # Broken: success on invalid input. 3130continue 3131else 3132 # Passes both tests. 3133ac_preproc_ok=: 3134break 3135fi 3136rm -f conftest.err conftest.i conftest.$ac_ext 3137 3138done 3139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3140rm -f conftest.i conftest.err conftest.$ac_ext 3141if $ac_preproc_ok; then : 3142 3143else 3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3146as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3147See \`config.log' for more details" "$LINENO" 5; } 3148fi 3149 3150ac_ext=c 3151ac_cpp='$CPP $CPPFLAGS' 3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3154ac_compiler_gnu=$ac_cv_c_compiler_gnu 3155 3156 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3158$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3159if ${ac_cv_path_GREP+:} false; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 if test -z "$GREP"; then 3163 ac_path_GREP_found=false 3164 # Loop through the user's path and test for each of PROGNAME-LIST 3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_prog in grep ggrep; do 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3173 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3174# Check for GNU ac_path_GREP and select it if it is found. 3175 # Check for GNU $ac_path_GREP 3176case `"$ac_path_GREP" --version 2>&1` in 3177*GNU*) 3178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3179*) 3180 ac_count=0 3181 $as_echo_n 0123456789 >"conftest.in" 3182 while : 3183 do 3184 cat "conftest.in" "conftest.in" >"conftest.tmp" 3185 mv "conftest.tmp" "conftest.in" 3186 cp "conftest.in" "conftest.nl" 3187 $as_echo 'GREP' >> "conftest.nl" 3188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3190 as_fn_arith $ac_count + 1 && ac_count=$as_val 3191 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3192 # Best one so far, save it but keep looking for a better one 3193 ac_cv_path_GREP="$ac_path_GREP" 3194 ac_path_GREP_max=$ac_count 3195 fi 3196 # 10*(2^10) chars as input seems more than enough 3197 test $ac_count -gt 10 && break 3198 done 3199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3200esac 3201 3202 $ac_path_GREP_found && break 3 3203 done 3204 done 3205 done 3206IFS=$as_save_IFS 3207 if test -z "$ac_cv_path_GREP"; then 3208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3209 fi 3210else 3211 ac_cv_path_GREP=$GREP 3212fi 3213 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3216$as_echo "$ac_cv_path_GREP" >&6; } 3217 GREP="$ac_cv_path_GREP" 3218 3219 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3221$as_echo_n "checking for egrep... " >&6; } 3222if ${ac_cv_path_EGREP+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3226 then ac_cv_path_EGREP="$GREP -E" 3227 else 3228 if test -z "$EGREP"; then 3229 ac_path_EGREP_found=false 3230 # Loop through the user's path and test for each of PROGNAME-LIST 3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3233do 3234 IFS=$as_save_IFS 3235 test -z "$as_dir" && as_dir=. 3236 for ac_prog in egrep; do 3237 for ac_exec_ext in '' $ac_executable_extensions; do 3238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3239 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3240# Check for GNU ac_path_EGREP and select it if it is found. 3241 # Check for GNU $ac_path_EGREP 3242case `"$ac_path_EGREP" --version 2>&1` in 3243*GNU*) 3244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3245*) 3246 ac_count=0 3247 $as_echo_n 0123456789 >"conftest.in" 3248 while : 3249 do 3250 cat "conftest.in" "conftest.in" >"conftest.tmp" 3251 mv "conftest.tmp" "conftest.in" 3252 cp "conftest.in" "conftest.nl" 3253 $as_echo 'EGREP' >> "conftest.nl" 3254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3256 as_fn_arith $ac_count + 1 && ac_count=$as_val 3257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3258 # Best one so far, save it but keep looking for a better one 3259 ac_cv_path_EGREP="$ac_path_EGREP" 3260 ac_path_EGREP_max=$ac_count 3261 fi 3262 # 10*(2^10) chars as input seems more than enough 3263 test $ac_count -gt 10 && break 3264 done 3265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3266esac 3267 3268 $ac_path_EGREP_found && break 3 3269 done 3270 done 3271 done 3272IFS=$as_save_IFS 3273 if test -z "$ac_cv_path_EGREP"; then 3274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3275 fi 3276else 3277 ac_cv_path_EGREP=$EGREP 3278fi 3279 3280 fi 3281fi 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3283$as_echo "$ac_cv_path_EGREP" >&6; } 3284 EGREP="$ac_cv_path_EGREP" 3285 3286 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3288$as_echo_n "checking for ANSI C header files... " >&6; } 3289if ${ac_cv_header_stdc+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294#include <stdlib.h> 3295#include <stdarg.h> 3296#include <string.h> 3297#include <float.h> 3298 3299int 3300main () 3301{ 3302 3303 ; 3304 return 0; 3305} 3306_ACEOF 3307if ac_fn_c_try_compile "$LINENO"; then : 3308 ac_cv_header_stdc=yes 3309else 3310 ac_cv_header_stdc=no 3311fi 3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3313 3314if test $ac_cv_header_stdc = yes; then 3315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3317/* end confdefs.h. */ 3318#include <string.h> 3319 3320_ACEOF 3321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3322 $EGREP "memchr" >/dev/null 2>&1; then : 3323 3324else 3325 ac_cv_header_stdc=no 3326fi 3327rm -f conftest* 3328 3329fi 3330 3331if test $ac_cv_header_stdc = yes; then 3332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3334/* end confdefs.h. */ 3335#include <stdlib.h> 3336 3337_ACEOF 3338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3339 $EGREP "free" >/dev/null 2>&1; then : 3340 3341else 3342 ac_cv_header_stdc=no 3343fi 3344rm -f conftest* 3345 3346fi 3347 3348if test $ac_cv_header_stdc = yes; then 3349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3350 if test "$cross_compiling" = yes; then : 3351 : 3352else 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355#include <ctype.h> 3356#include <stdlib.h> 3357#if ((' ' & 0x0FF) == 0x020) 3358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3360#else 3361# define ISLOWER(c) \ 3362 (('a' <= (c) && (c) <= 'i') \ 3363 || ('j' <= (c) && (c) <= 'r') \ 3364 || ('s' <= (c) && (c) <= 'z')) 3365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3366#endif 3367 3368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3369int 3370main () 3371{ 3372 int i; 3373 for (i = 0; i < 256; i++) 3374 if (XOR (islower (i), ISLOWER (i)) 3375 || toupper (i) != TOUPPER (i)) 3376 return 2; 3377 return 0; 3378} 3379_ACEOF 3380if ac_fn_c_try_run "$LINENO"; then : 3381 3382else 3383 ac_cv_header_stdc=no 3384fi 3385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3386 conftest.$ac_objext conftest.beam conftest.$ac_ext 3387fi 3388 3389fi 3390fi 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3392$as_echo "$ac_cv_header_stdc" >&6; } 3393if test $ac_cv_header_stdc = yes; then 3394 3395$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3396 3397fi 3398 3399# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3400for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3401 inttypes.h stdint.h unistd.h 3402do : 3403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3405" 3406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3407 cat >>confdefs.h <<_ACEOF 3408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3409_ACEOF 3410 3411fi 3412 3413done 3414 3415 3416 3417 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3418if test "x$ac_cv_header_minix_config_h" = xyes; then : 3419 MINIX=yes 3420else 3421 MINIX= 3422fi 3423 3424 3425 if test "$MINIX" = yes; then 3426 3427$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3428 3429 3430$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3431 3432 3433$as_echo "#define _MINIX 1" >>confdefs.h 3434 3435 fi 3436 3437 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3439$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3440if ${ac_cv_safe_to_define___extensions__+:} false; then : 3441 $as_echo_n "(cached) " >&6 3442else 3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3444/* end confdefs.h. */ 3445 3446# define __EXTENSIONS__ 1 3447 $ac_includes_default 3448int 3449main () 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456if ac_fn_c_try_compile "$LINENO"; then : 3457 ac_cv_safe_to_define___extensions__=yes 3458else 3459 ac_cv_safe_to_define___extensions__=no 3460fi 3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3462fi 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3464$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3465 test $ac_cv_safe_to_define___extensions__ = yes && 3466 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3467 3468 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3469 3470 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3471 3472 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3473 3474 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3475 3476 3477 3478# Initialize Automake 3479am__api_version='1.14' 3480 3481ac_aux_dir= 3482for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3483 if test -f "$ac_dir/install-sh"; then 3484 ac_aux_dir=$ac_dir 3485 ac_install_sh="$ac_aux_dir/install-sh -c" 3486 break 3487 elif test -f "$ac_dir/install.sh"; then 3488 ac_aux_dir=$ac_dir 3489 ac_install_sh="$ac_aux_dir/install.sh -c" 3490 break 3491 elif test -f "$ac_dir/shtool"; then 3492 ac_aux_dir=$ac_dir 3493 ac_install_sh="$ac_aux_dir/shtool install -c" 3494 break 3495 fi 3496done 3497if test -z "$ac_aux_dir"; then 3498 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3499fi 3500 3501# These three variables are undocumented and unsupported, 3502# and are intended to be withdrawn in a future Autoconf release. 3503# They can cause serious problems if a builder's source tree is in a directory 3504# whose full name contains unusual characters. 3505ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3506ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3507ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3508 3509 3510# Find a good install program. We prefer a C program (faster), 3511# so one script is as good as another. But avoid the broken or 3512# incompatible versions: 3513# SysV /etc/install, /usr/sbin/install 3514# SunOS /usr/etc/install 3515# IRIX /sbin/install 3516# AIX /bin/install 3517# AmigaOS /C/install, which installs bootblocks on floppy discs 3518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3519# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3521# OS/2's system install, which has a completely different semantic 3522# ./install, which can be erroneously created by make from ./install.sh. 3523# Reject install programs that cannot install multiple files. 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3525$as_echo_n "checking for a BSD-compatible install... " >&6; } 3526if test -z "$INSTALL"; then 3527if ${ac_cv_path_install+:} false; then : 3528 $as_echo_n "(cached) " >&6 3529else 3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531for as_dir in $PATH 3532do 3533 IFS=$as_save_IFS 3534 test -z "$as_dir" && as_dir=. 3535 # Account for people who put trailing slashes in PATH elements. 3536case $as_dir/ in #(( 3537 ./ | .// | /[cC]/* | \ 3538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3539 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3540 /usr/ucb/* ) ;; 3541 *) 3542 # OSF1 and SCO ODT 3.0 have their own names for install. 3543 # Don't use installbsd from OSF since it installs stuff as root 3544 # by default. 3545 for ac_prog in ginstall scoinst install; do 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3548 if test $ac_prog = install && 3549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3550 # AIX install. It has an incompatible calling convention. 3551 : 3552 elif test $ac_prog = install && 3553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3554 # program-specific install script used by HP pwplus--don't use. 3555 : 3556 else 3557 rm -rf conftest.one conftest.two conftest.dir 3558 echo one > conftest.one 3559 echo two > conftest.two 3560 mkdir conftest.dir 3561 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3562 test -s conftest.one && test -s conftest.two && 3563 test -s conftest.dir/conftest.one && 3564 test -s conftest.dir/conftest.two 3565 then 3566 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3567 break 3 3568 fi 3569 fi 3570 fi 3571 done 3572 done 3573 ;; 3574esac 3575 3576 done 3577IFS=$as_save_IFS 3578 3579rm -rf conftest.one conftest.two conftest.dir 3580 3581fi 3582 if test "${ac_cv_path_install+set}" = set; then 3583 INSTALL=$ac_cv_path_install 3584 else 3585 # As a last resort, use the slow shell script. Don't cache a 3586 # value for INSTALL within a source directory, because that will 3587 # break other packages using the cache if that directory is 3588 # removed, or if the value is a relative name. 3589 INSTALL=$ac_install_sh 3590 fi 3591fi 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3593$as_echo "$INSTALL" >&6; } 3594 3595# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3596# It thinks the first close brace ends the variable substitution. 3597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3598 3599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3600 3601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3602 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3604$as_echo_n "checking whether build environment is sane... " >&6; } 3605# Reject unsafe characters in $srcdir or the absolute working directory 3606# name. Accept space and tab only in the latter. 3607am_lf=' 3608' 3609case `pwd` in 3610 *[\\\"\#\$\&\'\`$am_lf]*) 3611 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3612esac 3613case $srcdir in 3614 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3615 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3616esac 3617 3618# Do 'set' in a subshell so we don't clobber the current shell's 3619# arguments. Must try -L first in case configure is actually a 3620# symlink; some systems play weird games with the mod time of symlinks 3621# (eg FreeBSD returns the mod time of the symlink's containing 3622# directory). 3623if ( 3624 am_has_slept=no 3625 for am_try in 1 2; do 3626 echo "timestamp, slept: $am_has_slept" > conftest.file 3627 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3628 if test "$*" = "X"; then 3629 # -L didn't work. 3630 set X `ls -t "$srcdir/configure" conftest.file` 3631 fi 3632 if test "$*" != "X $srcdir/configure conftest.file" \ 3633 && test "$*" != "X conftest.file $srcdir/configure"; then 3634 3635 # If neither matched, then we have a broken ls. This can happen 3636 # if, for instance, CONFIG_SHELL is bash and it inherits a 3637 # broken ls alias from the environment. This has actually 3638 # happened. Such a system could not be considered "sane". 3639 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3640 alias in your environment" "$LINENO" 5 3641 fi 3642 if test "$2" = conftest.file || test $am_try -eq 2; then 3643 break 3644 fi 3645 # Just in case. 3646 sleep 1 3647 am_has_slept=yes 3648 done 3649 test "$2" = conftest.file 3650 ) 3651then 3652 # Ok. 3653 : 3654else 3655 as_fn_error $? "newly created file is older than distributed files! 3656Check your system clock" "$LINENO" 5 3657fi 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3659$as_echo "yes" >&6; } 3660# If we didn't sleep, we still need to ensure time stamps of config.status and 3661# generated files are strictly newer. 3662am_sleep_pid= 3663if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3664 ( sleep 1 ) & 3665 am_sleep_pid=$! 3666fi 3667 3668rm -f conftest.file 3669 3670test "$program_prefix" != NONE && 3671 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3672# Use a double $ so make ignores it. 3673test "$program_suffix" != NONE && 3674 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3675# Double any \ or $. 3676# By default was `s,x,x', remove it if useless. 3677ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3678program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3679 3680if test x"${MISSING+set}" != xset; then 3681 case $am_aux_dir in 3682 *\ * | *\ *) 3683 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3684 *) 3685 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3686 esac 3687fi 3688# Use eval to expand $SHELL 3689if eval "$MISSING --is-lightweight"; then 3690 am_missing_run="$MISSING " 3691else 3692 am_missing_run= 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3694$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3695fi 3696 3697if test x"${install_sh}" != xset; then 3698 case $am_aux_dir in 3699 *\ * | *\ *) 3700 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3701 *) 3702 install_sh="\${SHELL} $am_aux_dir/install-sh" 3703 esac 3704fi 3705 3706# Installed binaries are usually stripped using 'strip' when the user 3707# run "make install-strip". However 'strip' might not be the right 3708# tool to use in cross-compilation environments, therefore Automake 3709# will honor the 'STRIP' environment variable to overrule this program. 3710if test "$cross_compiling" != no; then 3711 if test -n "$ac_tool_prefix"; then 3712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3713set dummy ${ac_tool_prefix}strip; ac_word=$2 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3715$as_echo_n "checking for $ac_word... " >&6; } 3716if ${ac_cv_prog_STRIP+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 if test -n "$STRIP"; then 3720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3721else 3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3723for as_dir in $PATH 3724do 3725 IFS=$as_save_IFS 3726 test -z "$as_dir" && as_dir=. 3727 for ac_exec_ext in '' $ac_executable_extensions; do 3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3729 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3731 break 2 3732 fi 3733done 3734 done 3735IFS=$as_save_IFS 3736 3737fi 3738fi 3739STRIP=$ac_cv_prog_STRIP 3740if test -n "$STRIP"; then 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3742$as_echo "$STRIP" >&6; } 3743else 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745$as_echo "no" >&6; } 3746fi 3747 3748 3749fi 3750if test -z "$ac_cv_prog_STRIP"; then 3751 ac_ct_STRIP=$STRIP 3752 # Extract the first word of "strip", so it can be a program name with args. 3753set dummy strip; ac_word=$2 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3755$as_echo_n "checking for $ac_word... " >&6; } 3756if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 if test -n "$ac_ct_STRIP"; then 3760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3761else 3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH 3764do 3765 IFS=$as_save_IFS 3766 test -z "$as_dir" && as_dir=. 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3769 ac_cv_prog_ac_ct_STRIP="strip" 3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777fi 3778fi 3779ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3780if test -n "$ac_ct_STRIP"; then 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3782$as_echo "$ac_ct_STRIP" >&6; } 3783else 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785$as_echo "no" >&6; } 3786fi 3787 3788 if test "x$ac_ct_STRIP" = x; then 3789 STRIP=":" 3790 else 3791 case $cross_compiling:$ac_tool_warned in 3792yes:) 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3795ac_tool_warned=yes ;; 3796esac 3797 STRIP=$ac_ct_STRIP 3798 fi 3799else 3800 STRIP="$ac_cv_prog_STRIP" 3801fi 3802 3803fi 3804INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3805 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3807$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3808if test -z "$MKDIR_P"; then 3809 if ${ac_cv_path_mkdir+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3813for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3814do 3815 IFS=$as_save_IFS 3816 test -z "$as_dir" && as_dir=. 3817 for ac_prog in mkdir gmkdir; do 3818 for ac_exec_ext in '' $ac_executable_extensions; do 3819 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3820 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3821 'mkdir (GNU coreutils) '* | \ 3822 'mkdir (coreutils) '* | \ 3823 'mkdir (fileutils) '4.1*) 3824 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3825 break 3;; 3826 esac 3827 done 3828 done 3829 done 3830IFS=$as_save_IFS 3831 3832fi 3833 3834 test -d ./--version && rmdir ./--version 3835 if test "${ac_cv_path_mkdir+set}" = set; then 3836 MKDIR_P="$ac_cv_path_mkdir -p" 3837 else 3838 # As a last resort, use the slow shell script. Don't cache a 3839 # value for MKDIR_P within a source directory, because that will 3840 # break other packages using the cache if that directory is 3841 # removed, or if the value is a relative name. 3842 MKDIR_P="$ac_install_sh -d" 3843 fi 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3846$as_echo "$MKDIR_P" >&6; } 3847 3848for ac_prog in gawk mawk nawk awk 3849do 3850 # Extract the first word of "$ac_prog", so it can be a program name with args. 3851set dummy $ac_prog; ac_word=$2 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853$as_echo_n "checking for $ac_word... " >&6; } 3854if ${ac_cv_prog_AWK+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 if test -n "$AWK"; then 3858 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3859else 3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3867 ac_cv_prog_AWK="$ac_prog" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875fi 3876fi 3877AWK=$ac_cv_prog_AWK 3878if test -n "$AWK"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3880$as_echo "$AWK" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884fi 3885 3886 3887 test -n "$AWK" && break 3888done 3889 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3891$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3892set x ${MAKE-make} 3893ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3894if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 cat >conftest.make <<\_ACEOF 3898SHELL = /bin/sh 3899all: 3900 @echo '@@@%%%=$(MAKE)=@@@%%%' 3901_ACEOF 3902# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3903case `${MAKE-make} -f conftest.make 2>/dev/null` in 3904 *@@@%%%=?*=@@@%%%*) 3905 eval ac_cv_prog_make_${ac_make}_set=yes;; 3906 *) 3907 eval ac_cv_prog_make_${ac_make}_set=no;; 3908esac 3909rm -f conftest.make 3910fi 3911if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3913$as_echo "yes" >&6; } 3914 SET_MAKE= 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917$as_echo "no" >&6; } 3918 SET_MAKE="MAKE=${MAKE-make}" 3919fi 3920 3921rm -rf .tst 2>/dev/null 3922mkdir .tst 2>/dev/null 3923if test -d .tst; then 3924 am__leading_dot=. 3925else 3926 am__leading_dot=_ 3927fi 3928rmdir .tst 2>/dev/null 3929 3930DEPDIR="${am__leading_dot}deps" 3931 3932ac_config_commands="$ac_config_commands depfiles" 3933 3934 3935am_make=${MAKE-make} 3936cat > confinc << 'END' 3937am__doit: 3938 @echo this is the am__doit target 3939.PHONY: am__doit 3940END 3941# If we don't find an include directive, just comment out the code. 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3943$as_echo_n "checking for style of include used by $am_make... " >&6; } 3944am__include="#" 3945am__quote= 3946_am_result=none 3947# First try GNU make style include. 3948echo "include confinc" > confmf 3949# Ignore all kinds of additional output from 'make'. 3950case `$am_make -s -f confmf 2> /dev/null` in #( 3951*the\ am__doit\ target*) 3952 am__include=include 3953 am__quote= 3954 _am_result=GNU 3955 ;; 3956esac 3957# Now try BSD make style include. 3958if test "$am__include" = "#"; then 3959 echo '.include "confinc"' > confmf 3960 case `$am_make -s -f confmf 2> /dev/null` in #( 3961 *the\ am__doit\ target*) 3962 am__include=.include 3963 am__quote="\"" 3964 _am_result=BSD 3965 ;; 3966 esac 3967fi 3968 3969 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3971$as_echo "$_am_result" >&6; } 3972rm -f confinc confmf 3973 3974# Check whether --enable-dependency-tracking was given. 3975if test "${enable_dependency_tracking+set}" = set; then : 3976 enableval=$enable_dependency_tracking; 3977fi 3978 3979if test "x$enable_dependency_tracking" != xno; then 3980 am_depcomp="$ac_aux_dir/depcomp" 3981 AMDEPBACKSLASH='\' 3982 am__nodep='_no' 3983fi 3984 if test "x$enable_dependency_tracking" != xno; then 3985 AMDEP_TRUE= 3986 AMDEP_FALSE='#' 3987else 3988 AMDEP_TRUE='#' 3989 AMDEP_FALSE= 3990fi 3991 3992 3993# Check whether --enable-silent-rules was given. 3994if test "${enable_silent_rules+set}" = set; then : 3995 enableval=$enable_silent_rules; 3996fi 3997 3998case $enable_silent_rules in # ((( 3999 yes) AM_DEFAULT_VERBOSITY=0;; 4000 no) AM_DEFAULT_VERBOSITY=1;; 4001 *) AM_DEFAULT_VERBOSITY=1;; 4002esac 4003am_make=${MAKE-make} 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4005$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4006if ${am_cv_make_support_nested_variables+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 if $as_echo 'TRUE=$(BAR$(V)) 4010BAR0=false 4011BAR1=true 4012V=1 4013am__doit: 4014 @$(TRUE) 4015.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4016 am_cv_make_support_nested_variables=yes 4017else 4018 am_cv_make_support_nested_variables=no 4019fi 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4022$as_echo "$am_cv_make_support_nested_variables" >&6; } 4023if test $am_cv_make_support_nested_variables = yes; then 4024 AM_V='$(V)' 4025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4026else 4027 AM_V=$AM_DEFAULT_VERBOSITY 4028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4029fi 4030AM_BACKSLASH='\' 4031 4032if test "`cd $srcdir && pwd`" != "`pwd`"; then 4033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4034 # is not polluted with repeated "-I." 4035 am__isrc=' -I$(srcdir)' 4036 # test to see if srcdir already configured 4037 if test -f $srcdir/config.status; then 4038 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4039 fi 4040fi 4041 4042# test whether we have cygpath 4043if test -z "$CYGPATH_W"; then 4044 if (cygpath --version) >/dev/null 2>/dev/null; then 4045 CYGPATH_W='cygpath -w' 4046 else 4047 CYGPATH_W=echo 4048 fi 4049fi 4050 4051 4052# Define the identity of the package. 4053 PACKAGE='xlsclients' 4054 VERSION='1.1.3' 4055 4056 4057cat >>confdefs.h <<_ACEOF 4058#define PACKAGE "$PACKAGE" 4059_ACEOF 4060 4061 4062cat >>confdefs.h <<_ACEOF 4063#define VERSION "$VERSION" 4064_ACEOF 4065 4066# Some tools Automake needs. 4067 4068ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4069 4070 4071AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4072 4073 4074AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4075 4076 4077AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4078 4079 4080MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4081 4082# For better backward compatibility. To be removed once Automake 1.9.x 4083# dies out for good. For more background, see: 4084# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4085# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4086mkdir_p='$(MKDIR_P)' 4087 4088# We need awk for the "check" target. The system "awk" is bad on 4089# some platforms. 4090# Always define AMTAR for backward compatibility. Yes, it's still used 4091# in the wild :-( We should find a proper way to deprecate it ... 4092AMTAR='$${TAR-tar}' 4093 4094 4095# We'll loop over all known methods to create a tar archive until one works. 4096_am_tools='gnutar pax cpio none' 4097 4098am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4099 4100 4101 4102 4103 4104depcc="$CC" am_compiler_list= 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4107$as_echo_n "checking dependency style of $depcc... " >&6; } 4108if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4112 # We make a subdir and do the tests there. Otherwise we can end up 4113 # making bogus files that we don't know about and never remove. For 4114 # instance it was reported that on HP-UX the gcc test will end up 4115 # making a dummy file named 'D' -- because '-MD' means "put the output 4116 # in D". 4117 rm -rf conftest.dir 4118 mkdir conftest.dir 4119 # Copy depcomp to subdir because otherwise we won't find it if we're 4120 # using a relative directory. 4121 cp "$am_depcomp" conftest.dir 4122 cd conftest.dir 4123 # We will build objects and dependencies in a subdirectory because 4124 # it helps to detect inapplicable dependency modes. For instance 4125 # both Tru64's cc and ICC support -MD to output dependencies as a 4126 # side effect of compilation, but ICC will put the dependencies in 4127 # the current directory while Tru64 will put them in the object 4128 # directory. 4129 mkdir sub 4130 4131 am_cv_CC_dependencies_compiler_type=none 4132 if test "$am_compiler_list" = ""; then 4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4134 fi 4135 am__universal=false 4136 case " $depcc " in #( 4137 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4138 esac 4139 4140 for depmode in $am_compiler_list; do 4141 # Setup a source with many dependencies, because some compilers 4142 # like to wrap large dependency lists on column 80 (with \), and 4143 # we should not choose a depcomp mode which is confused by this. 4144 # 4145 # We need to recreate these files for each test, as the compiler may 4146 # overwrite some of them when testing with obscure command lines. 4147 # This happens at least with the AIX C compiler. 4148 : > sub/conftest.c 4149 for i in 1 2 3 4 5 6; do 4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4152 # Solaris 10 /bin/sh. 4153 echo '/* dummy */' > sub/conftst$i.h 4154 done 4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4156 4157 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4158 # mode. It turns out that the SunPro C++ compiler does not properly 4159 # handle '-M -o', and we need to detect this. Also, some Intel 4160 # versions had trouble with output in subdirs. 4161 am__obj=sub/conftest.${OBJEXT-o} 4162 am__minus_obj="-o $am__obj" 4163 case $depmode in 4164 gcc) 4165 # This depmode causes a compiler race in universal mode. 4166 test "$am__universal" = false || continue 4167 ;; 4168 nosideeffect) 4169 # After this tag, mechanisms are not by side-effect, so they'll 4170 # only be used when explicitly requested. 4171 if test "x$enable_dependency_tracking" = xyes; then 4172 continue 4173 else 4174 break 4175 fi 4176 ;; 4177 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4178 # This compiler won't grok '-c -o', but also, the minuso test has 4179 # not run yet. These depmodes are late enough in the game, and 4180 # so weak that their functioning should not be impacted. 4181 am__obj=conftest.${OBJEXT-o} 4182 am__minus_obj= 4183 ;; 4184 none) break ;; 4185 esac 4186 if depmode=$depmode \ 4187 source=sub/conftest.c object=$am__obj \ 4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4190 >/dev/null 2>conftest.err && 4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4195 # icc doesn't choke on unknown options, it will just issue warnings 4196 # or remarks (even with -Werror). So we grep stderr for any message 4197 # that says an option was ignored or not supported. 4198 # When given -MP, icc 7.0 and 7.1 complain thusly: 4199 # icc: Command line warning: ignoring option '-M'; no argument required 4200 # The diagnosis changed in icc 8.0: 4201 # icc: Command line remark: option '-MP' not supported 4202 if (grep 'ignoring option' conftest.err || 4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4204 am_cv_CC_dependencies_compiler_type=$depmode 4205 break 4206 fi 4207 fi 4208 done 4209 4210 cd .. 4211 rm -rf conftest.dir 4212else 4213 am_cv_CC_dependencies_compiler_type=none 4214fi 4215 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4218$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4220 4221 if 4222 test "x$enable_dependency_tracking" != xno \ 4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4224 am__fastdepCC_TRUE= 4225 am__fastdepCC_FALSE='#' 4226else 4227 am__fastdepCC_TRUE='#' 4228 am__fastdepCC_FALSE= 4229fi 4230 4231 4232 4233# POSIX will say in a future version that running "rm -f" with no argument 4234# is OK; and we want to be able to make that assumption in our Makefile 4235# recipes. So use an aggressive probe to check that the usage we want is 4236# actually supported "in the wild" to an acceptable degree. 4237# See automake bug#10828. 4238# To make any issue more visible, cause the running configure to be aborted 4239# by default if the 'rm' program in use doesn't match our expectations; the 4240# user can still override this though. 4241if rm -f && rm -fr && rm -rf; then : OK; else 4242 cat >&2 <<'END' 4243Oops! 4244 4245Your 'rm' program seems unable to run without file operands specified 4246on the command line, even when the '-f' option is present. This is contrary 4247to the behaviour of most rm programs out there, and not conforming with 4248the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4249 4250Please tell bug-automake@gnu.org about your system, including the value 4251of your $PATH and any error possibly output before this message. This 4252can help us improve future automake versions. 4253 4254END 4255 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4256 echo 'Configuration will proceed anyway, since you have set the' >&2 4257 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4258 echo >&2 4259 else 4260 cat >&2 <<'END' 4261Aborting the configuration process, to ensure you take notice of the issue. 4262 4263You can download and install GNU coreutils to get an 'rm' implementation 4264that behaves properly: <http://www.gnu.org/software/coreutils/>. 4265 4266If you want to complete the configuration process using your problematic 4267'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4268to "yes", and re-run configure. 4269 4270END 4271 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4272 fi 4273fi 4274 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4276$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4277 # Check whether --enable-maintainer-mode was given. 4278if test "${enable_maintainer_mode+set}" = set; then : 4279 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4280else 4281 USE_MAINTAINER_MODE=no 4282fi 4283 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4285$as_echo "$USE_MAINTAINER_MODE" >&6; } 4286 if test $USE_MAINTAINER_MODE = yes; then 4287 MAINTAINER_MODE_TRUE= 4288 MAINTAINER_MODE_FALSE='#' 4289else 4290 MAINTAINER_MODE_TRUE='#' 4291 MAINTAINER_MODE_FALSE= 4292fi 4293 4294 MAINT=$MAINTAINER_MODE_TRUE 4295 4296 4297 4298# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4311$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4312if ${ac_cv_prog_cc_c99+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 ac_cv_prog_cc_c99=no 4316ac_save_CC=$CC 4317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319#include <stdarg.h> 4320#include <stdbool.h> 4321#include <stdlib.h> 4322#include <wchar.h> 4323#include <stdio.h> 4324 4325// Check varargs macros. These examples are taken from C99 6.10.3.5. 4326#define debug(...) fprintf (stderr, __VA_ARGS__) 4327#define showlist(...) puts (#__VA_ARGS__) 4328#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4329static void 4330test_varargs_macros (void) 4331{ 4332 int x = 1234; 4333 int y = 5678; 4334 debug ("Flag"); 4335 debug ("X = %d\n", x); 4336 showlist (The first, second, and third items.); 4337 report (x>y, "x is %d but y is %d", x, y); 4338} 4339 4340// Check long long types. 4341#define BIG64 18446744073709551615ull 4342#define BIG32 4294967295ul 4343#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4344#if !BIG_OK 4345 your preprocessor is broken; 4346#endif 4347#if BIG_OK 4348#else 4349 your preprocessor is broken; 4350#endif 4351static long long int bignum = -9223372036854775807LL; 4352static unsigned long long int ubignum = BIG64; 4353 4354struct incomplete_array 4355{ 4356 int datasize; 4357 double data[]; 4358}; 4359 4360struct named_init { 4361 int number; 4362 const wchar_t *name; 4363 double average; 4364}; 4365 4366typedef const char *ccp; 4367 4368static inline int 4369test_restrict (ccp restrict text) 4370{ 4371 // See if C++-style comments work. 4372 // Iterate through items via the restricted pointer. 4373 // Also check for declarations in for loops. 4374 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4375 continue; 4376 return 0; 4377} 4378 4379// Check varargs and va_copy. 4380static void 4381test_varargs (const char *format, ...) 4382{ 4383 va_list args; 4384 va_start (args, format); 4385 va_list args_copy; 4386 va_copy (args_copy, args); 4387 4388 const char *str; 4389 int number; 4390 float fnumber; 4391 4392 while (*format) 4393 { 4394 switch (*format++) 4395 { 4396 case 's': // string 4397 str = va_arg (args_copy, const char *); 4398 break; 4399 case 'd': // int 4400 number = va_arg (args_copy, int); 4401 break; 4402 case 'f': // float 4403 fnumber = va_arg (args_copy, double); 4404 break; 4405 default: 4406 break; 4407 } 4408 } 4409 va_end (args_copy); 4410 va_end (args); 4411} 4412 4413int 4414main () 4415{ 4416 4417 // Check bool. 4418 _Bool success = false; 4419 4420 // Check restrict. 4421 if (test_restrict ("String literal") == 0) 4422 success = true; 4423 char *restrict newvar = "Another string"; 4424 4425 // Check varargs. 4426 test_varargs ("s, d' f .", "string", 65, 34.234); 4427 test_varargs_macros (); 4428 4429 // Check flexible array members. 4430 struct incomplete_array *ia = 4431 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4432 ia->datasize = 10; 4433 for (int i = 0; i < ia->datasize; ++i) 4434 ia->data[i] = i * 1.234; 4435 4436 // Check named initializers. 4437 struct named_init ni = { 4438 .number = 34, 4439 .name = L"Test wide string", 4440 .average = 543.34343, 4441 }; 4442 4443 ni.number = 58; 4444 4445 int dynamic_array[ni.number]; 4446 dynamic_array[ni.number - 1] = 543; 4447 4448 // work around unused variable warnings 4449 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4450 || dynamic_array[ni.number - 1] != 543); 4451 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4457do 4458 CC="$ac_save_CC $ac_arg" 4459 if ac_fn_c_try_compile "$LINENO"; then : 4460 ac_cv_prog_cc_c99=$ac_arg 4461fi 4462rm -f core conftest.err conftest.$ac_objext 4463 test "x$ac_cv_prog_cc_c99" != "xno" && break 4464done 4465rm -f conftest.$ac_ext 4466CC=$ac_save_CC 4467 4468fi 4469# AC_CACHE_VAL 4470case "x$ac_cv_prog_cc_c99" in 4471 x) 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4473$as_echo "none needed" >&6; } ;; 4474 xno) 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4476$as_echo "unsupported" >&6; } ;; 4477 *) 4478 CC="$CC $ac_cv_prog_cc_c99" 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4480$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4481esac 4482if test "x$ac_cv_prog_cc_c99" != xno; then : 4483 4484fi 4485 4486 4487 4488 4489 4490 4491ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4492if test "x$ac_cv_have_decl___clang__" = xyes; then : 4493 CLANGCC="yes" 4494else 4495 CLANGCC="no" 4496fi 4497 4498ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4499if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4500 INTELCC="yes" 4501else 4502 INTELCC="no" 4503fi 4504 4505ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4506if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4507 SUNCC="yes" 4508else 4509 SUNCC="no" 4510fi 4511 4512 4513 4514 4515if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4516 if test -n "$ac_tool_prefix"; then 4517 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4518set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4520$as_echo_n "checking for $ac_word... " >&6; } 4521if ${ac_cv_path_PKG_CONFIG+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 case $PKG_CONFIG in 4525 [\\/]* | ?:[\\/]*) 4526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4527 ;; 4528 *) 4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4538 break 2 4539 fi 4540done 4541 done 4542IFS=$as_save_IFS 4543 4544 ;; 4545esac 4546fi 4547PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4548if test -n "$PKG_CONFIG"; then 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4550$as_echo "$PKG_CONFIG" >&6; } 4551else 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4553$as_echo "no" >&6; } 4554fi 4555 4556 4557fi 4558if test -z "$ac_cv_path_PKG_CONFIG"; then 4559 ac_pt_PKG_CONFIG=$PKG_CONFIG 4560 # Extract the first word of "pkg-config", so it can be a program name with args. 4561set dummy pkg-config; ac_word=$2 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4563$as_echo_n "checking for $ac_word... " >&6; } 4564if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 case $ac_pt_PKG_CONFIG in 4568 [\\/]* | ?:[\\/]*) 4569 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4570 ;; 4571 *) 4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4579 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4581 break 2 4582 fi 4583done 4584 done 4585IFS=$as_save_IFS 4586 4587 ;; 4588esac 4589fi 4590ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4591if test -n "$ac_pt_PKG_CONFIG"; then 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4593$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4594else 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4596$as_echo "no" >&6; } 4597fi 4598 4599 if test "x$ac_pt_PKG_CONFIG" = x; then 4600 PKG_CONFIG="" 4601 else 4602 case $cross_compiling:$ac_tool_warned in 4603yes:) 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4606ac_tool_warned=yes ;; 4607esac 4608 PKG_CONFIG=$ac_pt_PKG_CONFIG 4609 fi 4610else 4611 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4612fi 4613 4614fi 4615if test -n "$PKG_CONFIG"; then 4616 _pkg_min_version=0.9.0 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4618$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4619 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4621$as_echo "yes" >&6; } 4622 else 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4624$as_echo "no" >&6; } 4625 PKG_CONFIG="" 4626 fi 4627 4628fi 4629# Make sure we can run config.sub. 4630$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4632 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4634$as_echo_n "checking build system type... " >&6; } 4635if ${ac_cv_build+:} false; then : 4636 $as_echo_n "(cached) " >&6 4637else 4638 ac_build_alias=$build_alias 4639test "x$ac_build_alias" = x && 4640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4641test "x$ac_build_alias" = x && 4642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4643ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4645 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4648$as_echo "$ac_cv_build" >&6; } 4649case $ac_cv_build in 4650*-*-*) ;; 4651*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4652esac 4653build=$ac_cv_build 4654ac_save_IFS=$IFS; IFS='-' 4655set x $ac_cv_build 4656shift 4657build_cpu=$1 4658build_vendor=$2 4659shift; shift 4660# Remember, the first character of IFS is used to create $*, 4661# except with old shells: 4662build_os=$* 4663IFS=$ac_save_IFS 4664case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4668$as_echo_n "checking host system type... " >&6; } 4669if ${ac_cv_host+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test "x$host_alias" = x; then 4673 ac_cv_host=$ac_cv_build 4674else 4675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4677fi 4678 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4681$as_echo "$ac_cv_host" >&6; } 4682case $ac_cv_host in 4683*-*-*) ;; 4684*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4685esac 4686host=$ac_cv_host 4687ac_save_IFS=$IFS; IFS='-' 4688set x $ac_cv_host 4689shift 4690host_cpu=$1 4691host_vendor=$2 4692shift; shift 4693# Remember, the first character of IFS is used to create $*, 4694# except with old shells: 4695host_os=$* 4696IFS=$ac_save_IFS 4697case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4698 4699 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4701$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4702if ${ac_cv_path_SED+:} false; then : 4703 $as_echo_n "(cached) " >&6 4704else 4705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4706 for ac_i in 1 2 3 4 5 6 7; do 4707 ac_script="$ac_script$as_nl$ac_script" 4708 done 4709 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4710 { ac_script=; unset ac_script;} 4711 if test -z "$SED"; then 4712 ac_path_SED_found=false 4713 # Loop through the user's path and test for each of PROGNAME-LIST 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_prog in sed gsed; do 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4722 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4723# Check for GNU ac_path_SED and select it if it is found. 4724 # Check for GNU $ac_path_SED 4725case `"$ac_path_SED" --version 2>&1` in 4726*GNU*) 4727 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4728*) 4729 ac_count=0 4730 $as_echo_n 0123456789 >"conftest.in" 4731 while : 4732 do 4733 cat "conftest.in" "conftest.in" >"conftest.tmp" 4734 mv "conftest.tmp" "conftest.in" 4735 cp "conftest.in" "conftest.nl" 4736 $as_echo '' >> "conftest.nl" 4737 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4739 as_fn_arith $ac_count + 1 && ac_count=$as_val 4740 if test $ac_count -gt ${ac_path_SED_max-0}; then 4741 # Best one so far, save it but keep looking for a better one 4742 ac_cv_path_SED="$ac_path_SED" 4743 ac_path_SED_max=$ac_count 4744 fi 4745 # 10*(2^10) chars as input seems more than enough 4746 test $ac_count -gt 10 && break 4747 done 4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4749esac 4750 4751 $ac_path_SED_found && break 3 4752 done 4753 done 4754 done 4755IFS=$as_save_IFS 4756 if test -z "$ac_cv_path_SED"; then 4757 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4758 fi 4759else 4760 ac_cv_path_SED=$SED 4761fi 4762 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4765$as_echo "$ac_cv_path_SED" >&6; } 4766 SED="$ac_cv_path_SED" 4767 rm -f conftest.sed 4768 4769 4770 4771 4772 4773 4774# Check whether --enable-selective-werror was given. 4775if test "${enable_selective_werror+set}" = set; then : 4776 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4777else 4778 SELECTIVE_WERROR=yes 4779fi 4780 4781 4782 4783 4784 4785# -v is too short to test reliably with XORG_TESTSET_CFLAG 4786if test "x$SUNCC" = "xyes"; then 4787 BASE_CFLAGS="-v" 4788else 4789 BASE_CFLAGS="" 4790fi 4791 4792# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806xorg_testset_save_CFLAGS="$CFLAGS" 4807 4808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817int i; 4818_ACEOF 4819if ac_fn_c_try_compile "$LINENO"; then : 4820 xorg_cv_cc_flag_unknown_warning_option=yes 4821else 4822 xorg_cv_cc_flag_unknown_warning_option=no 4823fi 4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4829 CFLAGS="$xorg_testset_save_CFLAGS" 4830fi 4831 4832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4835 fi 4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844int i; 4845_ACEOF 4846if ac_fn_c_try_compile "$LINENO"; then : 4847 xorg_cv_cc_flag_unused_command_line_argument=yes 4848else 4849 xorg_cv_cc_flag_unused_command_line_argument=no 4850fi 4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4852fi 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4856 CFLAGS="$xorg_testset_save_CFLAGS" 4857fi 4858 4859found="no" 4860 4861 if test $found = "no" ; then 4862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4864 fi 4865 4866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4868 fi 4869 4870 CFLAGS="$CFLAGS -Wall" 4871 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4873$as_echo_n "checking if $CC supports -Wall... " >&6; } 4874 cacheid=xorg_cv_cc_flag__Wall 4875 if eval \${$cacheid+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880int i; 4881int 4882main () 4883{ 4884 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889if ac_fn_c_try_link "$LINENO"; then : 4890 eval $cacheid=yes 4891else 4892 eval $cacheid=no 4893fi 4894rm -f core conftest.err conftest.$ac_objext \ 4895 conftest$ac_exeext conftest.$ac_ext 4896fi 4897 4898 4899 CFLAGS="$xorg_testset_save_CFLAGS" 4900 4901 eval supported=\$$cacheid 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4903$as_echo "$supported" >&6; } 4904 if test "$supported" = "yes" ; then 4905 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4906 found="yes" 4907 fi 4908 fi 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924xorg_testset_save_CFLAGS="$CFLAGS" 4925 4926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935int i; 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 xorg_cv_cc_flag_unknown_warning_option=yes 4939else 4940 xorg_cv_cc_flag_unknown_warning_option=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4953 fi 4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962int i; 4963_ACEOF 4964if ac_fn_c_try_compile "$LINENO"; then : 4965 xorg_cv_cc_flag_unused_command_line_argument=yes 4966else 4967 xorg_cv_cc_flag_unused_command_line_argument=no 4968fi 4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4970fi 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4974 CFLAGS="$xorg_testset_save_CFLAGS" 4975fi 4976 4977found="no" 4978 4979 if test $found = "no" ; then 4980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4982 fi 4983 4984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4986 fi 4987 4988 CFLAGS="$CFLAGS -Wpointer-arith" 4989 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4991$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4992 cacheid=xorg_cv_cc_flag__Wpointer_arith 4993 if eval \${$cacheid+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4997/* end confdefs.h. */ 4998int i; 4999int 5000main () 5001{ 5002 5003 ; 5004 return 0; 5005} 5006_ACEOF 5007if ac_fn_c_try_link "$LINENO"; then : 5008 eval $cacheid=yes 5009else 5010 eval $cacheid=no 5011fi 5012rm -f core conftest.err conftest.$ac_objext \ 5013 conftest$ac_exeext conftest.$ac_ext 5014fi 5015 5016 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018 5019 eval supported=\$$cacheid 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5021$as_echo "$supported" >&6; } 5022 if test "$supported" = "yes" ; then 5023 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5024 found="yes" 5025 fi 5026 fi 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042xorg_testset_save_CFLAGS="$CFLAGS" 5043 5044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053int i; 5054_ACEOF 5055if ac_fn_c_try_compile "$LINENO"; then : 5056 xorg_cv_cc_flag_unknown_warning_option=yes 5057else 5058 xorg_cv_cc_flag_unknown_warning_option=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071 fi 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079/* end confdefs.h. */ 5080int i; 5081_ACEOF 5082if ac_fn_c_try_compile "$LINENO"; then : 5083 xorg_cv_cc_flag_unused_command_line_argument=yes 5084else 5085 xorg_cv_cc_flag_unused_command_line_argument=no 5086fi 5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5088fi 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5092 CFLAGS="$xorg_testset_save_CFLAGS" 5093fi 5094 5095found="no" 5096 5097 if test $found = "no" ; then 5098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5100 fi 5101 5102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5104 fi 5105 5106 CFLAGS="$CFLAGS -Wmissing-declarations" 5107 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5109$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5110 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5111 if eval \${$cacheid+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116int i; 5117int 5118main () 5119{ 5120 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125if ac_fn_c_try_link "$LINENO"; then : 5126 eval $cacheid=yes 5127else 5128 eval $cacheid=no 5129fi 5130rm -f core conftest.err conftest.$ac_objext \ 5131 conftest$ac_exeext conftest.$ac_ext 5132fi 5133 5134 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136 5137 eval supported=\$$cacheid 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5139$as_echo "$supported" >&6; } 5140 if test "$supported" = "yes" ; then 5141 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5142 found="yes" 5143 fi 5144 fi 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160xorg_testset_save_CFLAGS="$CFLAGS" 5161 5162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171int i; 5172_ACEOF 5173if ac_fn_c_try_compile "$LINENO"; then : 5174 xorg_cv_cc_flag_unknown_warning_option=yes 5175else 5176 xorg_cv_cc_flag_unknown_warning_option=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197/* end confdefs.h. */ 5198int i; 5199_ACEOF 5200if ac_fn_c_try_compile "$LINENO"; then : 5201 xorg_cv_cc_flag_unused_command_line_argument=yes 5202else 5203 xorg_cv_cc_flag_unused_command_line_argument=no 5204fi 5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5206fi 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213found="no" 5214 5215 if test $found = "no" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5222 fi 5223 5224 CFLAGS="$CFLAGS -Wformat=2" 5225 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5227$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5228 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5229 if eval \${$cacheid+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233/* end confdefs.h. */ 5234int i; 5235int 5236main () 5237{ 5238 5239 ; 5240 return 0; 5241} 5242_ACEOF 5243if ac_fn_c_try_link "$LINENO"; then : 5244 eval $cacheid=yes 5245else 5246 eval $cacheid=no 5247fi 5248rm -f core conftest.err conftest.$ac_objext \ 5249 conftest$ac_exeext conftest.$ac_ext 5250fi 5251 5252 5253 CFLAGS="$xorg_testset_save_CFLAGS" 5254 5255 eval supported=\$$cacheid 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5257$as_echo "$supported" >&6; } 5258 if test "$supported" = "yes" ; then 5259 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5260 found="yes" 5261 fi 5262 fi 5263 5264 if test $found = "no" ; then 5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 fi 5268 5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271 fi 5272 5273 CFLAGS="$CFLAGS -Wformat" 5274 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5276$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5277 cacheid=xorg_cv_cc_flag__Wformat 5278 if eval \${$cacheid+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284int 5285main () 5286{ 5287 5288 ; 5289 return 0; 5290} 5291_ACEOF 5292if ac_fn_c_try_link "$LINENO"; then : 5293 eval $cacheid=yes 5294else 5295 eval $cacheid=no 5296fi 5297rm -f core conftest.err conftest.$ac_objext \ 5298 conftest$ac_exeext conftest.$ac_ext 5299fi 5300 5301 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303 5304 eval supported=\$$cacheid 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5306$as_echo "$supported" >&6; } 5307 if test "$supported" = "yes" ; then 5308 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5309 found="yes" 5310 fi 5311 fi 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329xorg_testset_save_CFLAGS="$CFLAGS" 5330 5331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340int i; 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 xorg_cv_cc_flag_unknown_warning_option=yes 5344else 5345 xorg_cv_cc_flag_unknown_warning_option=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353fi 5354 5355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5358 fi 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367int i; 5368_ACEOF 5369if ac_fn_c_try_compile "$LINENO"; then : 5370 xorg_cv_cc_flag_unused_command_line_argument=yes 5371else 5372 xorg_cv_cc_flag_unused_command_line_argument=no 5373fi 5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5379 CFLAGS="$xorg_testset_save_CFLAGS" 5380fi 5381 5382found="no" 5383 5384 if test $found = "no" ; then 5385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5387 fi 5388 5389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5391 fi 5392 5393 CFLAGS="$CFLAGS -Wstrict-prototypes" 5394 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5396$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5397 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5398 if eval \${$cacheid+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403int i; 5404int 5405main () 5406{ 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412if ac_fn_c_try_link "$LINENO"; then : 5413 eval $cacheid=yes 5414else 5415 eval $cacheid=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext \ 5418 conftest$ac_exeext conftest.$ac_ext 5419fi 5420 5421 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423 5424 eval supported=\$$cacheid 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5426$as_echo "$supported" >&6; } 5427 if test "$supported" = "yes" ; then 5428 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5429 found="yes" 5430 fi 5431 fi 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447xorg_testset_save_CFLAGS="$CFLAGS" 5448 5449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458int i; 5459_ACEOF 5460if ac_fn_c_try_compile "$LINENO"; then : 5461 xorg_cv_cc_flag_unknown_warning_option=yes 5462else 5463 xorg_cv_cc_flag_unknown_warning_option=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486_ACEOF 5487if ac_fn_c_try_compile "$LINENO"; then : 5488 xorg_cv_cc_flag_unused_command_line_argument=yes 5489else 5490 xorg_cv_cc_flag_unused_command_line_argument=no 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493fi 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498fi 5499 5500found="no" 5501 5502 if test $found = "no" ; then 5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 fi 5506 5507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5509 fi 5510 5511 CFLAGS="$CFLAGS -Wmissing-prototypes" 5512 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5514$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5515 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5516 if eval \${$cacheid+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522int 5523main () 5524{ 5525 5526 ; 5527 return 0; 5528} 5529_ACEOF 5530if ac_fn_c_try_link "$LINENO"; then : 5531 eval $cacheid=yes 5532else 5533 eval $cacheid=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext \ 5536 conftest$ac_exeext conftest.$ac_ext 5537fi 5538 5539 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541 5542 eval supported=\$$cacheid 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5544$as_echo "$supported" >&6; } 5545 if test "$supported" = "yes" ; then 5546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5547 found="yes" 5548 fi 5549 fi 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565xorg_testset_save_CFLAGS="$CFLAGS" 5566 5567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 xorg_cv_cc_flag_unknown_warning_option=yes 5580else 5581 xorg_cv_cc_flag_unknown_warning_option=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5588 CFLAGS="$xorg_testset_save_CFLAGS" 5589fi 5590 5591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603int i; 5604_ACEOF 5605if ac_fn_c_try_compile "$LINENO"; then : 5606 xorg_cv_cc_flag_unused_command_line_argument=yes 5607else 5608 xorg_cv_cc_flag_unused_command_line_argument=no 5609fi 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611fi 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5615 CFLAGS="$xorg_testset_save_CFLAGS" 5616fi 5617 5618found="no" 5619 5620 if test $found = "no" ; then 5621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5623 fi 5624 5625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5627 fi 5628 5629 CFLAGS="$CFLAGS -Wnested-externs" 5630 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5632$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5633 cacheid=xorg_cv_cc_flag__Wnested_externs 5634 if eval \${$cacheid+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638/* end confdefs.h. */ 5639int i; 5640int 5641main () 5642{ 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648if ac_fn_c_try_link "$LINENO"; then : 5649 eval $cacheid=yes 5650else 5651 eval $cacheid=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext \ 5654 conftest$ac_exeext conftest.$ac_ext 5655fi 5656 5657 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5659 5660 eval supported=\$$cacheid 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5662$as_echo "$supported" >&6; } 5663 if test "$supported" = "yes" ; then 5664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5665 found="yes" 5666 fi 5667 fi 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683xorg_testset_save_CFLAGS="$CFLAGS" 5684 5685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693/* end confdefs.h. */ 5694int i; 5695_ACEOF 5696if ac_fn_c_try_compile "$LINENO"; then : 5697 xorg_cv_cc_flag_unknown_warning_option=yes 5698else 5699 xorg_cv_cc_flag_unknown_warning_option=no 5700fi 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5702fi 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5706 CFLAGS="$xorg_testset_save_CFLAGS" 5707fi 5708 5709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5712 fi 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722_ACEOF 5723if ac_fn_c_try_compile "$LINENO"; then : 5724 xorg_cv_cc_flag_unused_command_line_argument=yes 5725else 5726 xorg_cv_cc_flag_unused_command_line_argument=no 5727fi 5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5729fi 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5733 CFLAGS="$xorg_testset_save_CFLAGS" 5734fi 5735 5736found="no" 5737 5738 if test $found = "no" ; then 5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 fi 5742 5743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5745 fi 5746 5747 CFLAGS="$CFLAGS -Wbad-function-cast" 5748 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5750$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5751 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5752 if eval \${$cacheid+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758int 5759main () 5760{ 5761 5762 ; 5763 return 0; 5764} 5765_ACEOF 5766if ac_fn_c_try_link "$LINENO"; then : 5767 eval $cacheid=yes 5768else 5769 eval $cacheid=no 5770fi 5771rm -f core conftest.err conftest.$ac_objext \ 5772 conftest$ac_exeext conftest.$ac_ext 5773fi 5774 5775 5776 CFLAGS="$xorg_testset_save_CFLAGS" 5777 5778 eval supported=\$$cacheid 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5780$as_echo "$supported" >&6; } 5781 if test "$supported" = "yes" ; then 5782 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5783 found="yes" 5784 fi 5785 fi 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801xorg_testset_save_CFLAGS="$CFLAGS" 5802 5803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811/* end confdefs.h. */ 5812int i; 5813_ACEOF 5814if ac_fn_c_try_compile "$LINENO"; then : 5815 xorg_cv_cc_flag_unknown_warning_option=yes 5816else 5817 xorg_cv_cc_flag_unknown_warning_option=no 5818fi 5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5820fi 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5824 CFLAGS="$xorg_testset_save_CFLAGS" 5825fi 5826 5827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 fi 5831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839int i; 5840_ACEOF 5841if ac_fn_c_try_compile "$LINENO"; then : 5842 xorg_cv_cc_flag_unused_command_line_argument=yes 5843else 5844 xorg_cv_cc_flag_unused_command_line_argument=no 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847fi 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852fi 5853 5854found="no" 5855 5856 if test $found = "no" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 fi 5864 5865 CFLAGS="$CFLAGS -Wold-style-definition" 5866 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5868$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5869 cacheid=xorg_cv_cc_flag__Wold_style_definition 5870 if eval \${$cacheid+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875int i; 5876int 5877main () 5878{ 5879 5880 ; 5881 return 0; 5882} 5883_ACEOF 5884if ac_fn_c_try_link "$LINENO"; then : 5885 eval $cacheid=yes 5886else 5887 eval $cacheid=no 5888fi 5889rm -f core conftest.err conftest.$ac_objext \ 5890 conftest$ac_exeext conftest.$ac_ext 5891fi 5892 5893 5894 CFLAGS="$xorg_testset_save_CFLAGS" 5895 5896 eval supported=\$$cacheid 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5898$as_echo "$supported" >&6; } 5899 if test "$supported" = "yes" ; then 5900 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5901 found="yes" 5902 fi 5903 fi 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919xorg_testset_save_CFLAGS="$CFLAGS" 5920 5921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927else 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930int i; 5931_ACEOF 5932if ac_fn_c_try_compile "$LINENO"; then : 5933 xorg_cv_cc_flag_unknown_warning_option=yes 5934else 5935 xorg_cv_cc_flag_unknown_warning_option=no 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943fi 5944 5945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5948 fi 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5956/* end confdefs.h. */ 5957int i; 5958_ACEOF 5959if ac_fn_c_try_compile "$LINENO"; then : 5960 xorg_cv_cc_flag_unused_command_line_argument=yes 5961else 5962 xorg_cv_cc_flag_unused_command_line_argument=no 5963fi 5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5965fi 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5969 CFLAGS="$xorg_testset_save_CFLAGS" 5970fi 5971 5972found="no" 5973 5974 if test $found = "no" ; then 5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5977 fi 5978 5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5981 fi 5982 5983 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5984 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5986$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5987 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5988 if eval \${$cacheid+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993int i; 5994int 5995main () 5996{ 5997 5998 ; 5999 return 0; 6000} 6001_ACEOF 6002if ac_fn_c_try_link "$LINENO"; then : 6003 eval $cacheid=yes 6004else 6005 eval $cacheid=no 6006fi 6007rm -f core conftest.err conftest.$ac_objext \ 6008 conftest$ac_exeext conftest.$ac_ext 6009fi 6010 6011 6012 CFLAGS="$xorg_testset_save_CFLAGS" 6013 6014 eval supported=\$$cacheid 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6016$as_echo "$supported" >&6; } 6017 if test "$supported" = "yes" ; then 6018 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6019 found="yes" 6020 fi 6021 fi 6022 6023 6024 6025 6026 6027# This chunk adds additional warnings that could catch undesired effects. 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041xorg_testset_save_CFLAGS="$CFLAGS" 6042 6043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6048 $as_echo_n "(cached) " >&6 6049else 6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051/* end confdefs.h. */ 6052int i; 6053_ACEOF 6054if ac_fn_c_try_compile "$LINENO"; then : 6055 xorg_cv_cc_flag_unknown_warning_option=yes 6056else 6057 xorg_cv_cc_flag_unknown_warning_option=no 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6060fi 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6064 CFLAGS="$xorg_testset_save_CFLAGS" 6065fi 6066 6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 fi 6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076else 6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078/* end confdefs.h. */ 6079int i; 6080_ACEOF 6081if ac_fn_c_try_compile "$LINENO"; then : 6082 xorg_cv_cc_flag_unused_command_line_argument=yes 6083else 6084 xorg_cv_cc_flag_unused_command_line_argument=no 6085fi 6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6087fi 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6091 CFLAGS="$xorg_testset_save_CFLAGS" 6092fi 6093 6094found="no" 6095 6096 if test $found = "no" ; then 6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6099 fi 6100 6101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6103 fi 6104 6105 CFLAGS="$CFLAGS -Wunused" 6106 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6108$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6109 cacheid=xorg_cv_cc_flag__Wunused 6110 if eval \${$cacheid+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6114/* end confdefs.h. */ 6115int i; 6116int 6117main () 6118{ 6119 6120 ; 6121 return 0; 6122} 6123_ACEOF 6124if ac_fn_c_try_link "$LINENO"; then : 6125 eval $cacheid=yes 6126else 6127 eval $cacheid=no 6128fi 6129rm -f core conftest.err conftest.$ac_objext \ 6130 conftest$ac_exeext conftest.$ac_ext 6131fi 6132 6133 6134 CFLAGS="$xorg_testset_save_CFLAGS" 6135 6136 eval supported=\$$cacheid 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6138$as_echo "$supported" >&6; } 6139 if test "$supported" = "yes" ; then 6140 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6141 found="yes" 6142 fi 6143 fi 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159xorg_testset_save_CFLAGS="$CFLAGS" 6160 6161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167else 6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6169/* end confdefs.h. */ 6170int i; 6171_ACEOF 6172if ac_fn_c_try_compile "$LINENO"; then : 6173 xorg_cv_cc_flag_unknown_warning_option=yes 6174else 6175 xorg_cv_cc_flag_unknown_warning_option=no 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6182 CFLAGS="$xorg_testset_save_CFLAGS" 6183fi 6184 6185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 fi 6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194else 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197int i; 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO"; then : 6200 xorg_cv_cc_flag_unused_command_line_argument=yes 6201else 6202 xorg_cv_cc_flag_unused_command_line_argument=no 6203fi 6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6205fi 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6209 CFLAGS="$xorg_testset_save_CFLAGS" 6210fi 6211 6212found="no" 6213 6214 if test $found = "no" ; then 6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6217 fi 6218 6219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6221 fi 6222 6223 CFLAGS="$CFLAGS -Wuninitialized" 6224 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6226$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6227 cacheid=xorg_cv_cc_flag__Wuninitialized 6228 if eval \${$cacheid+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230else 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233int i; 6234int 6235main () 6236{ 6237 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242if ac_fn_c_try_link "$LINENO"; then : 6243 eval $cacheid=yes 6244else 6245 eval $cacheid=no 6246fi 6247rm -f core conftest.err conftest.$ac_objext \ 6248 conftest$ac_exeext conftest.$ac_ext 6249fi 6250 6251 6252 CFLAGS="$xorg_testset_save_CFLAGS" 6253 6254 eval supported=\$$cacheid 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6256$as_echo "$supported" >&6; } 6257 if test "$supported" = "yes" ; then 6258 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6259 found="yes" 6260 fi 6261 fi 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277xorg_testset_save_CFLAGS="$CFLAGS" 6278 6279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288int i; 6289_ACEOF 6290if ac_fn_c_try_compile "$LINENO"; then : 6291 xorg_cv_cc_flag_unknown_warning_option=yes 6292else 6293 xorg_cv_cc_flag_unknown_warning_option=no 6294fi 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6300 CFLAGS="$xorg_testset_save_CFLAGS" 6301fi 6302 6303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6306 fi 6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315int i; 6316_ACEOF 6317if ac_fn_c_try_compile "$LINENO"; then : 6318 xorg_cv_cc_flag_unused_command_line_argument=yes 6319else 6320 xorg_cv_cc_flag_unused_command_line_argument=no 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6323fi 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6327 CFLAGS="$xorg_testset_save_CFLAGS" 6328fi 6329 6330found="no" 6331 6332 if test $found = "no" ; then 6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 fi 6336 6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 fi 6340 6341 CFLAGS="$CFLAGS -Wshadow" 6342 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6344$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6345 cacheid=xorg_cv_cc_flag__Wshadow 6346 if eval \${$cacheid+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351int i; 6352int 6353main () 6354{ 6355 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360if ac_fn_c_try_link "$LINENO"; then : 6361 eval $cacheid=yes 6362else 6363 eval $cacheid=no 6364fi 6365rm -f core conftest.err conftest.$ac_objext \ 6366 conftest$ac_exeext conftest.$ac_ext 6367fi 6368 6369 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371 6372 eval supported=\$$cacheid 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6374$as_echo "$supported" >&6; } 6375 if test "$supported" = "yes" ; then 6376 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6377 found="yes" 6378 fi 6379 fi 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395xorg_testset_save_CFLAGS="$CFLAGS" 6396 6397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int i; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO"; then : 6409 xorg_cv_cc_flag_unknown_warning_option=yes 6410else 6411 xorg_cv_cc_flag_unknown_warning_option=no 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6414fi 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419fi 6420 6421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6424 fi 6425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6432/* end confdefs.h. */ 6433int i; 6434_ACEOF 6435if ac_fn_c_try_compile "$LINENO"; then : 6436 xorg_cv_cc_flag_unused_command_line_argument=yes 6437else 6438 xorg_cv_cc_flag_unused_command_line_argument=no 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6441fi 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6445 CFLAGS="$xorg_testset_save_CFLAGS" 6446fi 6447 6448found="no" 6449 6450 if test $found = "no" ; then 6451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6453 fi 6454 6455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6457 fi 6458 6459 CFLAGS="$CFLAGS -Wcast-qual" 6460 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6462$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6463 cacheid=xorg_cv_cc_flag__Wcast_qual 6464 if eval \${$cacheid+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469int i; 6470int 6471main () 6472{ 6473 6474 ; 6475 return 0; 6476} 6477_ACEOF 6478if ac_fn_c_try_link "$LINENO"; then : 6479 eval $cacheid=yes 6480else 6481 eval $cacheid=no 6482fi 6483rm -f core conftest.err conftest.$ac_objext \ 6484 conftest$ac_exeext conftest.$ac_ext 6485fi 6486 6487 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 6490 eval supported=\$$cacheid 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6492$as_echo "$supported" >&6; } 6493 if test "$supported" = "yes" ; then 6494 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6495 found="yes" 6496 fi 6497 fi 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513xorg_testset_save_CFLAGS="$CFLAGS" 6514 6515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524int i; 6525_ACEOF 6526if ac_fn_c_try_compile "$LINENO"; then : 6527 xorg_cv_cc_flag_unknown_warning_option=yes 6528else 6529 xorg_cv_cc_flag_unknown_warning_option=no 6530fi 6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6532fi 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537fi 6538 6539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6542 fi 6543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551int i; 6552_ACEOF 6553if ac_fn_c_try_compile "$LINENO"; then : 6554 xorg_cv_cc_flag_unused_command_line_argument=yes 6555else 6556 xorg_cv_cc_flag_unused_command_line_argument=no 6557fi 6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6559fi 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6563 CFLAGS="$xorg_testset_save_CFLAGS" 6564fi 6565 6566found="no" 6567 6568 if test $found = "no" ; then 6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 fi 6572 6573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6575 fi 6576 6577 CFLAGS="$CFLAGS -Wmissing-noreturn" 6578 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6580$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6581 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6582 if eval \${$cacheid+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588int 6589main () 6590{ 6591 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596if ac_fn_c_try_link "$LINENO"; then : 6597 eval $cacheid=yes 6598else 6599 eval $cacheid=no 6600fi 6601rm -f core conftest.err conftest.$ac_objext \ 6602 conftest$ac_exeext conftest.$ac_ext 6603fi 6604 6605 6606 CFLAGS="$xorg_testset_save_CFLAGS" 6607 6608 eval supported=\$$cacheid 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6610$as_echo "$supported" >&6; } 6611 if test "$supported" = "yes" ; then 6612 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6613 found="yes" 6614 fi 6615 fi 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631xorg_testset_save_CFLAGS="$CFLAGS" 6632 6633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO"; then : 6645 xorg_cv_cc_flag_unknown_warning_option=yes 6646else 6647 xorg_cv_cc_flag_unknown_warning_option=no 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6650fi 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6654 CFLAGS="$xorg_testset_save_CFLAGS" 6655fi 6656 6657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6660 fi 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669int i; 6670_ACEOF 6671if ac_fn_c_try_compile "$LINENO"; then : 6672 xorg_cv_cc_flag_unused_command_line_argument=yes 6673else 6674 xorg_cv_cc_flag_unused_command_line_argument=no 6675fi 6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6677fi 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6681 CFLAGS="$xorg_testset_save_CFLAGS" 6682fi 6683 6684found="no" 6685 6686 if test $found = "no" ; then 6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6689 fi 6690 6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6693 fi 6694 6695 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6696 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6698$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6699 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6700 if eval \${$cacheid+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706int 6707main () 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714if ac_fn_c_try_link "$LINENO"; then : 6715 eval $cacheid=yes 6716else 6717 eval $cacheid=no 6718fi 6719rm -f core conftest.err conftest.$ac_objext \ 6720 conftest$ac_exeext conftest.$ac_ext 6721fi 6722 6723 6724 CFLAGS="$xorg_testset_save_CFLAGS" 6725 6726 eval supported=\$$cacheid 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6728$as_echo "$supported" >&6; } 6729 if test "$supported" = "yes" ; then 6730 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6731 found="yes" 6732 fi 6733 fi 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749xorg_testset_save_CFLAGS="$CFLAGS" 6750 6751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759/* end confdefs.h. */ 6760int i; 6761_ACEOF 6762if ac_fn_c_try_compile "$LINENO"; then : 6763 xorg_cv_cc_flag_unknown_warning_option=yes 6764else 6765 xorg_cv_cc_flag_unknown_warning_option=no 6766fi 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768fi 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6772 CFLAGS="$xorg_testset_save_CFLAGS" 6773fi 6774 6775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6778 fi 6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6786/* end confdefs.h. */ 6787int i; 6788_ACEOF 6789if ac_fn_c_try_compile "$LINENO"; then : 6790 xorg_cv_cc_flag_unused_command_line_argument=yes 6791else 6792 xorg_cv_cc_flag_unused_command_line_argument=no 6793fi 6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6795fi 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800fi 6801 6802found="no" 6803 6804 if test $found = "no" ; then 6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 fi 6808 6809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 fi 6812 6813 CFLAGS="$CFLAGS -Wredundant-decls" 6814 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6816$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6817 cacheid=xorg_cv_cc_flag__Wredundant_decls 6818 if eval \${$cacheid+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823int i; 6824int 6825main () 6826{ 6827 6828 ; 6829 return 0; 6830} 6831_ACEOF 6832if ac_fn_c_try_link "$LINENO"; then : 6833 eval $cacheid=yes 6834else 6835 eval $cacheid=no 6836fi 6837rm -f core conftest.err conftest.$ac_objext \ 6838 conftest$ac_exeext conftest.$ac_ext 6839fi 6840 6841 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843 6844 eval supported=\$$cacheid 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6846$as_echo "$supported" >&6; } 6847 if test "$supported" = "yes" ; then 6848 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6849 found="yes" 6850 fi 6851 fi 6852 6853 6854 6855# These are currently disabled because they are noisy. They will be enabled 6856# in the future once the codebase is sufficiently modernized to silence 6857# them. For now, I don't want them to drown out the other warnings. 6858# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6859# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6860# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6861 6862# Turn some warnings into errors, so we don't accidently get successful builds 6863# when there are problems that should be fixed. 6864 6865if test "x$SELECTIVE_WERROR" = "xyes" ; then 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879xorg_testset_save_CFLAGS="$CFLAGS" 6880 6881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO"; then : 6893 xorg_cv_cc_flag_unknown_warning_option=yes 6894else 6895 xorg_cv_cc_flag_unknown_warning_option=no 6896fi 6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6898fi 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903fi 6904 6905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6908 fi 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916/* end confdefs.h. */ 6917int i; 6918_ACEOF 6919if ac_fn_c_try_compile "$LINENO"; then : 6920 xorg_cv_cc_flag_unused_command_line_argument=yes 6921else 6922 xorg_cv_cc_flag_unused_command_line_argument=no 6923fi 6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6925fi 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6929 CFLAGS="$xorg_testset_save_CFLAGS" 6930fi 6931 6932found="no" 6933 6934 if test $found = "no" ; then 6935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6937 fi 6938 6939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6941 fi 6942 6943 CFLAGS="$CFLAGS -Werror=implicit" 6944 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6946$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6947 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6948 if eval \${$cacheid+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6952/* end confdefs.h. */ 6953int i; 6954int 6955main () 6956{ 6957 6958 ; 6959 return 0; 6960} 6961_ACEOF 6962if ac_fn_c_try_link "$LINENO"; then : 6963 eval $cacheid=yes 6964else 6965 eval $cacheid=no 6966fi 6967rm -f core conftest.err conftest.$ac_objext \ 6968 conftest$ac_exeext conftest.$ac_ext 6969fi 6970 6971 6972 CFLAGS="$xorg_testset_save_CFLAGS" 6973 6974 eval supported=\$$cacheid 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6976$as_echo "$supported" >&6; } 6977 if test "$supported" = "yes" ; then 6978 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6979 found="yes" 6980 fi 6981 fi 6982 6983 if test $found = "no" ; then 6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 fi 6987 6988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6990 fi 6991 6992 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6995$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6996 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6997 if eval \${$cacheid+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002int i; 7003int 7004main () 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO"; then : 7012 eval $cacheid=yes 7013else 7014 eval $cacheid=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018fi 7019 7020 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022 7023 eval supported=\$$cacheid 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7025$as_echo "$supported" >&6; } 7026 if test "$supported" = "yes" ; then 7027 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7028 found="yes" 7029 fi 7030 fi 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046xorg_testset_save_CFLAGS="$CFLAGS" 7047 7048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO"; then : 7060 xorg_cv_cc_flag_unknown_warning_option=yes 7061else 7062 xorg_cv_cc_flag_unknown_warning_option=no 7063fi 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065fi 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7069 CFLAGS="$xorg_testset_save_CFLAGS" 7070fi 7071 7072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7075 fi 7076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084int i; 7085_ACEOF 7086if ac_fn_c_try_compile "$LINENO"; then : 7087 xorg_cv_cc_flag_unused_command_line_argument=yes 7088else 7089 xorg_cv_cc_flag_unused_command_line_argument=no 7090fi 7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7092fi 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097fi 7098 7099found="no" 7100 7101 if test $found = "no" ; then 7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 fi 7109 7110 CFLAGS="$CFLAGS -Werror=nonnull" 7111 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7113$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7114 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7115 if eval \${$cacheid+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119/* end confdefs.h. */ 7120int i; 7121int 7122main () 7123{ 7124 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129if ac_fn_c_try_link "$LINENO"; then : 7130 eval $cacheid=yes 7131else 7132 eval $cacheid=no 7133fi 7134rm -f core conftest.err conftest.$ac_objext \ 7135 conftest$ac_exeext conftest.$ac_ext 7136fi 7137 7138 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140 7141 eval supported=\$$cacheid 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7143$as_echo "$supported" >&6; } 7144 if test "$supported" = "yes" ; then 7145 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7146 found="yes" 7147 fi 7148 fi 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164xorg_testset_save_CFLAGS="$CFLAGS" 7165 7166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175int i; 7176_ACEOF 7177if ac_fn_c_try_compile "$LINENO"; then : 7178 xorg_cv_cc_flag_unknown_warning_option=yes 7179else 7180 xorg_cv_cc_flag_unknown_warning_option=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7183fi 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7187 CFLAGS="$xorg_testset_save_CFLAGS" 7188fi 7189 7190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 fi 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202int i; 7203_ACEOF 7204if ac_fn_c_try_compile "$LINENO"; then : 7205 xorg_cv_cc_flag_unused_command_line_argument=yes 7206else 7207 xorg_cv_cc_flag_unused_command_line_argument=no 7208fi 7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7210fi 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7214 CFLAGS="$xorg_testset_save_CFLAGS" 7215fi 7216 7217found="no" 7218 7219 if test $found = "no" ; then 7220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7222 fi 7223 7224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7226 fi 7227 7228 CFLAGS="$CFLAGS -Werror=init-self" 7229 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7231$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7232 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7233 if eval \${$cacheid+:} false; then : 7234 $as_echo_n "(cached) " >&6 7235else 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238int i; 7239int 7240main () 7241{ 7242 7243 ; 7244 return 0; 7245} 7246_ACEOF 7247if ac_fn_c_try_link "$LINENO"; then : 7248 eval $cacheid=yes 7249else 7250 eval $cacheid=no 7251fi 7252rm -f core conftest.err conftest.$ac_objext \ 7253 conftest$ac_exeext conftest.$ac_ext 7254fi 7255 7256 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258 7259 eval supported=\$$cacheid 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7261$as_echo "$supported" >&6; } 7262 if test "$supported" = "yes" ; then 7263 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7264 found="yes" 7265 fi 7266 fi 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282xorg_testset_save_CFLAGS="$CFLAGS" 7283 7284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293int i; 7294_ACEOF 7295if ac_fn_c_try_compile "$LINENO"; then : 7296 xorg_cv_cc_flag_unknown_warning_option=yes 7297else 7298 xorg_cv_cc_flag_unknown_warning_option=no 7299fi 7300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7301fi 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7305 CFLAGS="$xorg_testset_save_CFLAGS" 7306fi 7307 7308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 fi 7312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319/* end confdefs.h. */ 7320int i; 7321_ACEOF 7322if ac_fn_c_try_compile "$LINENO"; then : 7323 xorg_cv_cc_flag_unused_command_line_argument=yes 7324else 7325 xorg_cv_cc_flag_unused_command_line_argument=no 7326fi 7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7328fi 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333fi 7334 7335found="no" 7336 7337 if test $found = "no" ; then 7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 fi 7341 7342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7344 fi 7345 7346 CFLAGS="$CFLAGS -Werror=main" 7347 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7349$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7350 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7351 if eval \${$cacheid+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353else 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356int i; 7357int 7358main () 7359{ 7360 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365if ac_fn_c_try_link "$LINENO"; then : 7366 eval $cacheid=yes 7367else 7368 eval $cacheid=no 7369fi 7370rm -f core conftest.err conftest.$ac_objext \ 7371 conftest$ac_exeext conftest.$ac_ext 7372fi 7373 7374 7375 CFLAGS="$xorg_testset_save_CFLAGS" 7376 7377 eval supported=\$$cacheid 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7379$as_echo "$supported" >&6; } 7380 if test "$supported" = "yes" ; then 7381 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7382 found="yes" 7383 fi 7384 fi 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400xorg_testset_save_CFLAGS="$CFLAGS" 7401 7402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412_ACEOF 7413if ac_fn_c_try_compile "$LINENO"; then : 7414 xorg_cv_cc_flag_unknown_warning_option=yes 7415else 7416 xorg_cv_cc_flag_unknown_warning_option=no 7417fi 7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7419fi 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7423 CFLAGS="$xorg_testset_save_CFLAGS" 7424fi 7425 7426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 fi 7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438int i; 7439_ACEOF 7440if ac_fn_c_try_compile "$LINENO"; then : 7441 xorg_cv_cc_flag_unused_command_line_argument=yes 7442else 7443 xorg_cv_cc_flag_unused_command_line_argument=no 7444fi 7445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7446fi 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7450 CFLAGS="$xorg_testset_save_CFLAGS" 7451fi 7452 7453found="no" 7454 7455 if test $found = "no" ; then 7456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7458 fi 7459 7460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7462 fi 7463 7464 CFLAGS="$CFLAGS -Werror=missing-braces" 7465 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7467$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7468 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7469 if eval \${$cacheid+:} false; then : 7470 $as_echo_n "(cached) " >&6 7471else 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474int i; 7475int 7476main () 7477{ 7478 7479 ; 7480 return 0; 7481} 7482_ACEOF 7483if ac_fn_c_try_link "$LINENO"; then : 7484 eval $cacheid=yes 7485else 7486 eval $cacheid=no 7487fi 7488rm -f core conftest.err conftest.$ac_objext \ 7489 conftest$ac_exeext conftest.$ac_ext 7490fi 7491 7492 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494 7495 eval supported=\$$cacheid 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7497$as_echo "$supported" >&6; } 7498 if test "$supported" = "yes" ; then 7499 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7500 found="yes" 7501 fi 7502 fi 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518xorg_testset_save_CFLAGS="$CFLAGS" 7519 7520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529int i; 7530_ACEOF 7531if ac_fn_c_try_compile "$LINENO"; then : 7532 xorg_cv_cc_flag_unknown_warning_option=yes 7533else 7534 xorg_cv_cc_flag_unknown_warning_option=no 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7537fi 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7541 CFLAGS="$xorg_testset_save_CFLAGS" 7542fi 7543 7544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7547 fi 7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7555/* end confdefs.h. */ 7556int i; 7557_ACEOF 7558if ac_fn_c_try_compile "$LINENO"; then : 7559 xorg_cv_cc_flag_unused_command_line_argument=yes 7560else 7561 xorg_cv_cc_flag_unused_command_line_argument=no 7562fi 7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7564fi 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7568 CFLAGS="$xorg_testset_save_CFLAGS" 7569fi 7570 7571found="no" 7572 7573 if test $found = "no" ; then 7574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7576 fi 7577 7578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7580 fi 7581 7582 CFLAGS="$CFLAGS -Werror=sequence-point" 7583 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7585$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7586 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7587 if eval \${$cacheid+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592int i; 7593int 7594main () 7595{ 7596 7597 ; 7598 return 0; 7599} 7600_ACEOF 7601if ac_fn_c_try_link "$LINENO"; then : 7602 eval $cacheid=yes 7603else 7604 eval $cacheid=no 7605fi 7606rm -f core conftest.err conftest.$ac_objext \ 7607 conftest$ac_exeext conftest.$ac_ext 7608fi 7609 7610 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 7613 eval supported=\$$cacheid 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7615$as_echo "$supported" >&6; } 7616 if test "$supported" = "yes" ; then 7617 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7618 found="yes" 7619 fi 7620 fi 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636xorg_testset_save_CFLAGS="$CFLAGS" 7637 7638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646/* end confdefs.h. */ 7647int i; 7648_ACEOF 7649if ac_fn_c_try_compile "$LINENO"; then : 7650 xorg_cv_cc_flag_unknown_warning_option=yes 7651else 7652 xorg_cv_cc_flag_unknown_warning_option=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660fi 7661 7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674int i; 7675_ACEOF 7676if ac_fn_c_try_compile "$LINENO"; then : 7677 xorg_cv_cc_flag_unused_command_line_argument=yes 7678else 7679 xorg_cv_cc_flag_unused_command_line_argument=no 7680fi 7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7682fi 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7686 CFLAGS="$xorg_testset_save_CFLAGS" 7687fi 7688 7689found="no" 7690 7691 if test $found = "no" ; then 7692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7694 fi 7695 7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7698 fi 7699 7700 CFLAGS="$CFLAGS -Werror=return-type" 7701 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7703$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7704 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7705 if eval \${$cacheid+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710int i; 7711int 7712main () 7713{ 7714 7715 ; 7716 return 0; 7717} 7718_ACEOF 7719if ac_fn_c_try_link "$LINENO"; then : 7720 eval $cacheid=yes 7721else 7722 eval $cacheid=no 7723fi 7724rm -f core conftest.err conftest.$ac_objext \ 7725 conftest$ac_exeext conftest.$ac_ext 7726fi 7727 7728 7729 CFLAGS="$xorg_testset_save_CFLAGS" 7730 7731 eval supported=\$$cacheid 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7733$as_echo "$supported" >&6; } 7734 if test "$supported" = "yes" ; then 7735 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7736 found="yes" 7737 fi 7738 fi 7739 7740 if test $found = "no" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 fi 7748 7749 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7750 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7752$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7753 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7754 if eval \${$cacheid+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759int i; 7760int 7761main () 7762{ 7763 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768if ac_fn_c_try_link "$LINENO"; then : 7769 eval $cacheid=yes 7770else 7771 eval $cacheid=no 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext conftest.$ac_ext 7775fi 7776 7777 7778 CFLAGS="$xorg_testset_save_CFLAGS" 7779 7780 eval supported=\$$cacheid 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7782$as_echo "$supported" >&6; } 7783 if test "$supported" = "yes" ; then 7784 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7785 found="yes" 7786 fi 7787 fi 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803xorg_testset_save_CFLAGS="$CFLAGS" 7804 7805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814int i; 7815_ACEOF 7816if ac_fn_c_try_compile "$LINENO"; then : 7817 xorg_cv_cc_flag_unknown_warning_option=yes 7818else 7819 xorg_cv_cc_flag_unknown_warning_option=no 7820fi 7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7822fi 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827fi 7828 7829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841int i; 7842_ACEOF 7843if ac_fn_c_try_compile "$LINENO"; then : 7844 xorg_cv_cc_flag_unused_command_line_argument=yes 7845else 7846 xorg_cv_cc_flag_unused_command_line_argument=no 7847fi 7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7849fi 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854fi 7855 7856found="no" 7857 7858 if test $found = "no" ; then 7859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7861 fi 7862 7863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7865 fi 7866 7867 CFLAGS="$CFLAGS -Werror=trigraphs" 7868 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7870$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7871 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7872 if eval \${$cacheid+:} false; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7876/* end confdefs.h. */ 7877int i; 7878int 7879main () 7880{ 7881 7882 ; 7883 return 0; 7884} 7885_ACEOF 7886if ac_fn_c_try_link "$LINENO"; then : 7887 eval $cacheid=yes 7888else 7889 eval $cacheid=no 7890fi 7891rm -f core conftest.err conftest.$ac_objext \ 7892 conftest$ac_exeext conftest.$ac_ext 7893fi 7894 7895 7896 CFLAGS="$xorg_testset_save_CFLAGS" 7897 7898 eval supported=\$$cacheid 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7900$as_echo "$supported" >&6; } 7901 if test "$supported" = "yes" ; then 7902 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7903 found="yes" 7904 fi 7905 fi 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921xorg_testset_save_CFLAGS="$CFLAGS" 7922 7923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7931/* end confdefs.h. */ 7932int i; 7933_ACEOF 7934if ac_fn_c_try_compile "$LINENO"; then : 7935 xorg_cv_cc_flag_unknown_warning_option=yes 7936else 7937 xorg_cv_cc_flag_unknown_warning_option=no 7938fi 7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7944 CFLAGS="$xorg_testset_save_CFLAGS" 7945fi 7946 7947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7950 fi 7951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958/* end confdefs.h. */ 7959int i; 7960_ACEOF 7961if ac_fn_c_try_compile "$LINENO"; then : 7962 xorg_cv_cc_flag_unused_command_line_argument=yes 7963else 7964 xorg_cv_cc_flag_unused_command_line_argument=no 7965fi 7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7967fi 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7971 CFLAGS="$xorg_testset_save_CFLAGS" 7972fi 7973 7974found="no" 7975 7976 if test $found = "no" ; then 7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7979 fi 7980 7981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7983 fi 7984 7985 CFLAGS="$CFLAGS -Werror=array-bounds" 7986 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7988$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7989 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7990 if eval \${$cacheid+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996int 7997main () 7998{ 7999 8000 ; 8001 return 0; 8002} 8003_ACEOF 8004if ac_fn_c_try_link "$LINENO"; then : 8005 eval $cacheid=yes 8006else 8007 eval $cacheid=no 8008fi 8009rm -f core conftest.err conftest.$ac_objext \ 8010 conftest$ac_exeext conftest.$ac_ext 8011fi 8012 8013 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015 8016 eval supported=\$$cacheid 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8018$as_echo "$supported" >&6; } 8019 if test "$supported" = "yes" ; then 8020 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8021 found="yes" 8022 fi 8023 fi 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039xorg_testset_save_CFLAGS="$CFLAGS" 8040 8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8049/* end confdefs.h. */ 8050int i; 8051_ACEOF 8052if ac_fn_c_try_compile "$LINENO"; then : 8053 xorg_cv_cc_flag_unknown_warning_option=yes 8054else 8055 xorg_cv_cc_flag_unknown_warning_option=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063fi 8064 8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8076/* end confdefs.h. */ 8077int i; 8078_ACEOF 8079if ac_fn_c_try_compile "$LINENO"; then : 8080 xorg_cv_cc_flag_unused_command_line_argument=yes 8081else 8082 xorg_cv_cc_flag_unused_command_line_argument=no 8083fi 8084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8089 CFLAGS="$xorg_testset_save_CFLAGS" 8090fi 8091 8092found="no" 8093 8094 if test $found = "no" ; then 8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8097 fi 8098 8099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8101 fi 8102 8103 CFLAGS="$CFLAGS -Werror=write-strings" 8104 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8106$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8107 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8108 if eval \${$cacheid+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8112/* end confdefs.h. */ 8113int i; 8114int 8115main () 8116{ 8117 8118 ; 8119 return 0; 8120} 8121_ACEOF 8122if ac_fn_c_try_link "$LINENO"; then : 8123 eval $cacheid=yes 8124else 8125 eval $cacheid=no 8126fi 8127rm -f core conftest.err conftest.$ac_objext \ 8128 conftest$ac_exeext conftest.$ac_ext 8129fi 8130 8131 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 8134 eval supported=\$$cacheid 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136$as_echo "$supported" >&6; } 8137 if test "$supported" = "yes" ; then 8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8139 found="yes" 8140 fi 8141 fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157xorg_testset_save_CFLAGS="$CFLAGS" 8158 8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169_ACEOF 8170if ac_fn_c_try_compile "$LINENO"; then : 8171 xorg_cv_cc_flag_unknown_warning_option=yes 8172else 8173 xorg_cv_cc_flag_unknown_warning_option=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8176fi 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181fi 8182 8183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 fi 8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194/* end confdefs.h. */ 8195int i; 8196_ACEOF 8197if ac_fn_c_try_compile "$LINENO"; then : 8198 xorg_cv_cc_flag_unused_command_line_argument=yes 8199else 8200 xorg_cv_cc_flag_unused_command_line_argument=no 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8203fi 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8207 CFLAGS="$xorg_testset_save_CFLAGS" 8208fi 8209 8210found="no" 8211 8212 if test $found = "no" ; then 8213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8215 fi 8216 8217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8219 fi 8220 8221 CFLAGS="$CFLAGS -Werror=address" 8222 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8224$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8225 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8226 if eval \${$cacheid+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8230/* end confdefs.h. */ 8231int i; 8232int 8233main () 8234{ 8235 8236 ; 8237 return 0; 8238} 8239_ACEOF 8240if ac_fn_c_try_link "$LINENO"; then : 8241 eval $cacheid=yes 8242else 8243 eval $cacheid=no 8244fi 8245rm -f core conftest.err conftest.$ac_objext \ 8246 conftest$ac_exeext conftest.$ac_ext 8247fi 8248 8249 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251 8252 eval supported=\$$cacheid 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8254$as_echo "$supported" >&6; } 8255 if test "$supported" = "yes" ; then 8256 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8257 found="yes" 8258 fi 8259 fi 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275xorg_testset_save_CFLAGS="$CFLAGS" 8276 8277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO"; then : 8289 xorg_cv_cc_flag_unknown_warning_option=yes 8290else 8291 xorg_cv_cc_flag_unknown_warning_option=no 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299fi 8300 8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 fi 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313int i; 8314_ACEOF 8315if ac_fn_c_try_compile "$LINENO"; then : 8316 xorg_cv_cc_flag_unused_command_line_argument=yes 8317else 8318 xorg_cv_cc_flag_unused_command_line_argument=no 8319fi 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8325 CFLAGS="$xorg_testset_save_CFLAGS" 8326fi 8327 8328found="no" 8329 8330 if test $found = "no" ; then 8331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 fi 8334 8335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8337 fi 8338 8339 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8340 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8342$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8343 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8344 if eval \${$cacheid+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350int 8351main () 8352{ 8353 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358if ac_fn_c_try_link "$LINENO"; then : 8359 eval $cacheid=yes 8360else 8361 eval $cacheid=no 8362fi 8363rm -f core conftest.err conftest.$ac_objext \ 8364 conftest$ac_exeext conftest.$ac_ext 8365fi 8366 8367 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 8370 eval supported=\$$cacheid 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8372$as_echo "$supported" >&6; } 8373 if test "$supported" = "yes" ; then 8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8375 found="yes" 8376 fi 8377 fi 8378 8379 if test $found = "no" ; then 8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8382 fi 8383 8384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8386 fi 8387 8388 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8389 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8391$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8392 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8393 if eval \${$cacheid+:} false; then : 8394 $as_echo_n "(cached) " >&6 8395else 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398int i; 8399int 8400main () 8401{ 8402 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_link "$LINENO"; then : 8408 eval $cacheid=yes 8409else 8410 eval $cacheid=no 8411fi 8412rm -f core conftest.err conftest.$ac_objext \ 8413 conftest$ac_exeext conftest.$ac_ext 8414fi 8415 8416 8417 CFLAGS="$xorg_testset_save_CFLAGS" 8418 8419 eval supported=\$$cacheid 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8421$as_echo "$supported" >&6; } 8422 if test "$supported" = "yes" ; then 8423 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8424 found="yes" 8425 fi 8426 fi 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442xorg_testset_save_CFLAGS="$CFLAGS" 8443 8444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452/* end confdefs.h. */ 8453int i; 8454_ACEOF 8455if ac_fn_c_try_compile "$LINENO"; then : 8456 xorg_cv_cc_flag_unknown_warning_option=yes 8457else 8458 xorg_cv_cc_flag_unknown_warning_option=no 8459fi 8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8465 CFLAGS="$xorg_testset_save_CFLAGS" 8466fi 8467 8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 fi 8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477else 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479/* end confdefs.h. */ 8480int i; 8481_ACEOF 8482if ac_fn_c_try_compile "$LINENO"; then : 8483 xorg_cv_cc_flag_unused_command_line_argument=yes 8484else 8485 xorg_cv_cc_flag_unused_command_line_argument=no 8486fi 8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8492 CFLAGS="$xorg_testset_save_CFLAGS" 8493fi 8494 8495found="no" 8496 8497 if test $found = "no" ; then 8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8500 fi 8501 8502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8504 fi 8505 8506 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8507 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8509$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8511 if eval \${$cacheid+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517int 8518main () 8519{ 8520 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525if ac_fn_c_try_link "$LINENO"; then : 8526 eval $cacheid=yes 8527else 8528 eval $cacheid=no 8529fi 8530rm -f core conftest.err conftest.$ac_objext \ 8531 conftest$ac_exeext conftest.$ac_ext 8532fi 8533 8534 8535 CFLAGS="$xorg_testset_save_CFLAGS" 8536 8537 eval supported=\$$cacheid 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8539$as_echo "$supported" >&6; } 8540 if test "$supported" = "yes" ; then 8541 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8542 found="yes" 8543 fi 8544 fi 8545 8546 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8547else 8548{ $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 8549$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;} 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563xorg_testset_save_CFLAGS="$CFLAGS" 8564 8565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8570 $as_echo_n "(cached) " >&6 8571else 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573/* end confdefs.h. */ 8574int i; 8575_ACEOF 8576if ac_fn_c_try_compile "$LINENO"; then : 8577 xorg_cv_cc_flag_unknown_warning_option=yes 8578else 8579 xorg_cv_cc_flag_unknown_warning_option=no 8580fi 8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8582fi 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8586 CFLAGS="$xorg_testset_save_CFLAGS" 8587fi 8588 8589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 fi 8593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601int i; 8602_ACEOF 8603if ac_fn_c_try_compile "$LINENO"; then : 8604 xorg_cv_cc_flag_unused_command_line_argument=yes 8605else 8606 xorg_cv_cc_flag_unused_command_line_argument=no 8607fi 8608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8609fi 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8613 CFLAGS="$xorg_testset_save_CFLAGS" 8614fi 8615 8616found="no" 8617 8618 if test $found = "no" ; then 8619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8621 fi 8622 8623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8625 fi 8626 8627 CFLAGS="$CFLAGS -Wimplicit" 8628 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8630$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8631 cacheid=xorg_cv_cc_flag__Wimplicit 8632 if eval \${$cacheid+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636/* end confdefs.h. */ 8637int i; 8638int 8639main () 8640{ 8641 8642 ; 8643 return 0; 8644} 8645_ACEOF 8646if ac_fn_c_try_link "$LINENO"; then : 8647 eval $cacheid=yes 8648else 8649 eval $cacheid=no 8650fi 8651rm -f core conftest.err conftest.$ac_objext \ 8652 conftest$ac_exeext conftest.$ac_ext 8653fi 8654 8655 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657 8658 eval supported=\$$cacheid 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8660$as_echo "$supported" >&6; } 8661 if test "$supported" = "yes" ; then 8662 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8663 found="yes" 8664 fi 8665 fi 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681xorg_testset_save_CFLAGS="$CFLAGS" 8682 8683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8691/* end confdefs.h. */ 8692int i; 8693_ACEOF 8694if ac_fn_c_try_compile "$LINENO"; then : 8695 xorg_cv_cc_flag_unknown_warning_option=yes 8696else 8697 xorg_cv_cc_flag_unknown_warning_option=no 8698fi 8699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8704 CFLAGS="$xorg_testset_save_CFLAGS" 8705fi 8706 8707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8710 fi 8711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8715 $as_echo_n "(cached) " >&6 8716else 8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8718/* end confdefs.h. */ 8719int i; 8720_ACEOF 8721if ac_fn_c_try_compile "$LINENO"; then : 8722 xorg_cv_cc_flag_unused_command_line_argument=yes 8723else 8724 xorg_cv_cc_flag_unused_command_line_argument=no 8725fi 8726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8727fi 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8731 CFLAGS="$xorg_testset_save_CFLAGS" 8732fi 8733 8734found="no" 8735 8736 if test $found = "no" ; then 8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 fi 8740 8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8743 fi 8744 8745 CFLAGS="$CFLAGS -Wnonnull" 8746 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8748$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8749 cacheid=xorg_cv_cc_flag__Wnonnull 8750 if eval \${$cacheid+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8754/* end confdefs.h. */ 8755int i; 8756int 8757main () 8758{ 8759 8760 ; 8761 return 0; 8762} 8763_ACEOF 8764if ac_fn_c_try_link "$LINENO"; then : 8765 eval $cacheid=yes 8766else 8767 eval $cacheid=no 8768fi 8769rm -f core conftest.err conftest.$ac_objext \ 8770 conftest$ac_exeext conftest.$ac_ext 8771fi 8772 8773 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775 8776 eval supported=\$$cacheid 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8778$as_echo "$supported" >&6; } 8779 if test "$supported" = "yes" ; then 8780 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8781 found="yes" 8782 fi 8783 fi 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799xorg_testset_save_CFLAGS="$CFLAGS" 8800 8801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810int i; 8811_ACEOF 8812if ac_fn_c_try_compile "$LINENO"; then : 8813 xorg_cv_cc_flag_unknown_warning_option=yes 8814else 8815 xorg_cv_cc_flag_unknown_warning_option=no 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8818fi 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8822 CFLAGS="$xorg_testset_save_CFLAGS" 8823fi 8824 8825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836/* end confdefs.h. */ 8837int i; 8838_ACEOF 8839if ac_fn_c_try_compile "$LINENO"; then : 8840 xorg_cv_cc_flag_unused_command_line_argument=yes 8841else 8842 xorg_cv_cc_flag_unused_command_line_argument=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850fi 8851 8852found="no" 8853 8854 if test $found = "no" ; then 8855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8857 fi 8858 8859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8861 fi 8862 8863 CFLAGS="$CFLAGS -Winit-self" 8864 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8866$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8867 cacheid=xorg_cv_cc_flag__Winit_self 8868 if eval \${$cacheid+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873int i; 8874int 8875main () 8876{ 8877 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882if ac_fn_c_try_link "$LINENO"; then : 8883 eval $cacheid=yes 8884else 8885 eval $cacheid=no 8886fi 8887rm -f core conftest.err conftest.$ac_objext \ 8888 conftest$ac_exeext conftest.$ac_ext 8889fi 8890 8891 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893 8894 eval supported=\$$cacheid 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8896$as_echo "$supported" >&6; } 8897 if test "$supported" = "yes" ; then 8898 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8899 found="yes" 8900 fi 8901 fi 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917xorg_testset_save_CFLAGS="$CFLAGS" 8918 8919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8924 $as_echo_n "(cached) " >&6 8925else 8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8927/* end confdefs.h. */ 8928int i; 8929_ACEOF 8930if ac_fn_c_try_compile "$LINENO"; then : 8931 xorg_cv_cc_flag_unknown_warning_option=yes 8932else 8933 xorg_cv_cc_flag_unknown_warning_option=no 8934fi 8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8936fi 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8940 CFLAGS="$xorg_testset_save_CFLAGS" 8941fi 8942 8943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 fi 8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8951 $as_echo_n "(cached) " >&6 8952else 8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8954/* end confdefs.h. */ 8955int i; 8956_ACEOF 8957if ac_fn_c_try_compile "$LINENO"; then : 8958 xorg_cv_cc_flag_unused_command_line_argument=yes 8959else 8960 xorg_cv_cc_flag_unused_command_line_argument=no 8961fi 8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8963fi 8964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8967 CFLAGS="$xorg_testset_save_CFLAGS" 8968fi 8969 8970found="no" 8971 8972 if test $found = "no" ; then 8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 fi 8976 8977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8979 fi 8980 8981 CFLAGS="$CFLAGS -Wmain" 8982 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8984$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8985 cacheid=xorg_cv_cc_flag__Wmain 8986 if eval \${$cacheid+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990/* end confdefs.h. */ 8991int i; 8992int 8993main () 8994{ 8995 8996 ; 8997 return 0; 8998} 8999_ACEOF 9000if ac_fn_c_try_link "$LINENO"; then : 9001 eval $cacheid=yes 9002else 9003 eval $cacheid=no 9004fi 9005rm -f core conftest.err conftest.$ac_objext \ 9006 conftest$ac_exeext conftest.$ac_ext 9007fi 9008 9009 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011 9012 eval supported=\$$cacheid 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9014$as_echo "$supported" >&6; } 9015 if test "$supported" = "yes" ; then 9016 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9017 found="yes" 9018 fi 9019 fi 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035xorg_testset_save_CFLAGS="$CFLAGS" 9036 9037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045/* end confdefs.h. */ 9046int i; 9047_ACEOF 9048if ac_fn_c_try_compile "$LINENO"; then : 9049 xorg_cv_cc_flag_unknown_warning_option=yes 9050else 9051 xorg_cv_cc_flag_unknown_warning_option=no 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9054fi 9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059fi 9060 9061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 fi 9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9069 $as_echo_n "(cached) " >&6 9070else 9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072/* end confdefs.h. */ 9073int i; 9074_ACEOF 9075if ac_fn_c_try_compile "$LINENO"; then : 9076 xorg_cv_cc_flag_unused_command_line_argument=yes 9077else 9078 xorg_cv_cc_flag_unused_command_line_argument=no 9079fi 9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9081fi 9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9085 CFLAGS="$xorg_testset_save_CFLAGS" 9086fi 9087 9088found="no" 9089 9090 if test $found = "no" ; then 9091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9093 fi 9094 9095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9097 fi 9098 9099 CFLAGS="$CFLAGS -Wmissing-braces" 9100 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9102$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9103 cacheid=xorg_cv_cc_flag__Wmissing_braces 9104 if eval \${$cacheid+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110int 9111main () 9112{ 9113 9114 ; 9115 return 0; 9116} 9117_ACEOF 9118if ac_fn_c_try_link "$LINENO"; then : 9119 eval $cacheid=yes 9120else 9121 eval $cacheid=no 9122fi 9123rm -f core conftest.err conftest.$ac_objext \ 9124 conftest$ac_exeext conftest.$ac_ext 9125fi 9126 9127 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129 9130 eval supported=\$$cacheid 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9132$as_echo "$supported" >&6; } 9133 if test "$supported" = "yes" ; then 9134 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9135 found="yes" 9136 fi 9137 fi 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153xorg_testset_save_CFLAGS="$CFLAGS" 9154 9155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164int i; 9165_ACEOF 9166if ac_fn_c_try_compile "$LINENO"; then : 9167 xorg_cv_cc_flag_unknown_warning_option=yes 9168else 9169 xorg_cv_cc_flag_unknown_warning_option=no 9170fi 9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9172fi 9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9176 CFLAGS="$xorg_testset_save_CFLAGS" 9177fi 9178 9179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 fi 9183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9187 $as_echo_n "(cached) " >&6 9188else 9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9190/* end confdefs.h. */ 9191int i; 9192_ACEOF 9193if ac_fn_c_try_compile "$LINENO"; then : 9194 xorg_cv_cc_flag_unused_command_line_argument=yes 9195else 9196 xorg_cv_cc_flag_unused_command_line_argument=no 9197fi 9198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9199fi 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204fi 9205 9206found="no" 9207 9208 if test $found = "no" ; then 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 fi 9212 9213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9215 fi 9216 9217 CFLAGS="$CFLAGS -Wsequence-point" 9218 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9220$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9221 cacheid=xorg_cv_cc_flag__Wsequence_point 9222 if eval \${$cacheid+:} false; then : 9223 $as_echo_n "(cached) " >&6 9224else 9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226/* end confdefs.h. */ 9227int i; 9228int 9229main () 9230{ 9231 9232 ; 9233 return 0; 9234} 9235_ACEOF 9236if ac_fn_c_try_link "$LINENO"; then : 9237 eval $cacheid=yes 9238else 9239 eval $cacheid=no 9240fi 9241rm -f core conftest.err conftest.$ac_objext \ 9242 conftest$ac_exeext conftest.$ac_ext 9243fi 9244 9245 9246 CFLAGS="$xorg_testset_save_CFLAGS" 9247 9248 eval supported=\$$cacheid 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9250$as_echo "$supported" >&6; } 9251 if test "$supported" = "yes" ; then 9252 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9253 found="yes" 9254 fi 9255 fi 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271xorg_testset_save_CFLAGS="$CFLAGS" 9272 9273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282int i; 9283_ACEOF 9284if ac_fn_c_try_compile "$LINENO"; then : 9285 xorg_cv_cc_flag_unknown_warning_option=yes 9286else 9287 xorg_cv_cc_flag_unknown_warning_option=no 9288fi 9289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9290fi 9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 fi 9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9305 $as_echo_n "(cached) " >&6 9306else 9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309int i; 9310_ACEOF 9311if ac_fn_c_try_compile "$LINENO"; then : 9312 xorg_cv_cc_flag_unused_command_line_argument=yes 9313else 9314 xorg_cv_cc_flag_unused_command_line_argument=no 9315fi 9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9317fi 9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9321 CFLAGS="$xorg_testset_save_CFLAGS" 9322fi 9323 9324found="no" 9325 9326 if test $found = "no" ; then 9327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9329 fi 9330 9331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9333 fi 9334 9335 CFLAGS="$CFLAGS -Wreturn-type" 9336 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9338$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9339 cacheid=xorg_cv_cc_flag__Wreturn_type 9340 if eval \${$cacheid+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342else 9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9344/* end confdefs.h. */ 9345int i; 9346int 9347main () 9348{ 9349 9350 ; 9351 return 0; 9352} 9353_ACEOF 9354if ac_fn_c_try_link "$LINENO"; then : 9355 eval $cacheid=yes 9356else 9357 eval $cacheid=no 9358fi 9359rm -f core conftest.err conftest.$ac_objext \ 9360 conftest$ac_exeext conftest.$ac_ext 9361fi 9362 9363 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365 9366 eval supported=\$$cacheid 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9368$as_echo "$supported" >&6; } 9369 if test "$supported" = "yes" ; then 9370 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9371 found="yes" 9372 fi 9373 fi 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389xorg_testset_save_CFLAGS="$CFLAGS" 9390 9391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400int i; 9401_ACEOF 9402if ac_fn_c_try_compile "$LINENO"; then : 9403 xorg_cv_cc_flag_unknown_warning_option=yes 9404else 9405 xorg_cv_cc_flag_unknown_warning_option=no 9406fi 9407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9408fi 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413fi 9414 9415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 fi 9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9423 $as_echo_n "(cached) " >&6 9424else 9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9426/* end confdefs.h. */ 9427int i; 9428_ACEOF 9429if ac_fn_c_try_compile "$LINENO"; then : 9430 xorg_cv_cc_flag_unused_command_line_argument=yes 9431else 9432 xorg_cv_cc_flag_unused_command_line_argument=no 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9435fi 9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440fi 9441 9442found="no" 9443 9444 if test $found = "no" ; then 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 fi 9448 9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9451 fi 9452 9453 CFLAGS="$CFLAGS -Wtrigraphs" 9454 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9456$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9457 cacheid=xorg_cv_cc_flag__Wtrigraphs 9458 if eval \${$cacheid+:} false; then : 9459 $as_echo_n "(cached) " >&6 9460else 9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463int i; 9464int 9465main () 9466{ 9467 9468 ; 9469 return 0; 9470} 9471_ACEOF 9472if ac_fn_c_try_link "$LINENO"; then : 9473 eval $cacheid=yes 9474else 9475 eval $cacheid=no 9476fi 9477rm -f core conftest.err conftest.$ac_objext \ 9478 conftest$ac_exeext conftest.$ac_ext 9479fi 9480 9481 9482 CFLAGS="$xorg_testset_save_CFLAGS" 9483 9484 eval supported=\$$cacheid 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9486$as_echo "$supported" >&6; } 9487 if test "$supported" = "yes" ; then 9488 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9489 found="yes" 9490 fi 9491 fi 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507xorg_testset_save_CFLAGS="$CFLAGS" 9508 9509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9514 $as_echo_n "(cached) " >&6 9515else 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518int i; 9519_ACEOF 9520if ac_fn_c_try_compile "$LINENO"; then : 9521 xorg_cv_cc_flag_unknown_warning_option=yes 9522else 9523 xorg_cv_cc_flag_unknown_warning_option=no 9524fi 9525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9526fi 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9530 CFLAGS="$xorg_testset_save_CFLAGS" 9531fi 9532 9533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9536 fi 9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9541 $as_echo_n "(cached) " >&6 9542else 9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9544/* end confdefs.h. */ 9545int i; 9546_ACEOF 9547if ac_fn_c_try_compile "$LINENO"; then : 9548 xorg_cv_cc_flag_unused_command_line_argument=yes 9549else 9550 xorg_cv_cc_flag_unused_command_line_argument=no 9551fi 9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9553fi 9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9557 CFLAGS="$xorg_testset_save_CFLAGS" 9558fi 9559 9560found="no" 9561 9562 if test $found = "no" ; then 9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9565 fi 9566 9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9569 fi 9570 9571 CFLAGS="$CFLAGS -Warray-bounds" 9572 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9574$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9575 cacheid=xorg_cv_cc_flag__Warray_bounds 9576 if eval \${$cacheid+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582int 9583main () 9584{ 9585 9586 ; 9587 return 0; 9588} 9589_ACEOF 9590if ac_fn_c_try_link "$LINENO"; then : 9591 eval $cacheid=yes 9592else 9593 eval $cacheid=no 9594fi 9595rm -f core conftest.err conftest.$ac_objext \ 9596 conftest$ac_exeext conftest.$ac_ext 9597fi 9598 9599 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601 9602 eval supported=\$$cacheid 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9604$as_echo "$supported" >&6; } 9605 if test "$supported" = "yes" ; then 9606 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9607 found="yes" 9608 fi 9609 fi 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625xorg_testset_save_CFLAGS="$CFLAGS" 9626 9627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636int i; 9637_ACEOF 9638if ac_fn_c_try_compile "$LINENO"; then : 9639 xorg_cv_cc_flag_unknown_warning_option=yes 9640else 9641 xorg_cv_cc_flag_unknown_warning_option=no 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9644fi 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 fi 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9659 $as_echo_n "(cached) " >&6 9660else 9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9662/* end confdefs.h. */ 9663int i; 9664_ACEOF 9665if ac_fn_c_try_compile "$LINENO"; then : 9666 xorg_cv_cc_flag_unused_command_line_argument=yes 9667else 9668 xorg_cv_cc_flag_unused_command_line_argument=no 9669fi 9670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9671fi 9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9675 CFLAGS="$xorg_testset_save_CFLAGS" 9676fi 9677 9678found="no" 9679 9680 if test $found = "no" ; then 9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9683 fi 9684 9685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9687 fi 9688 9689 CFLAGS="$CFLAGS -Wwrite-strings" 9690 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9692$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9693 cacheid=xorg_cv_cc_flag__Wwrite_strings 9694 if eval \${$cacheid+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699int i; 9700int 9701main () 9702{ 9703 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 eval $cacheid=yes 9710else 9711 eval $cacheid=no 9712fi 9713rm -f core conftest.err conftest.$ac_objext \ 9714 conftest$ac_exeext conftest.$ac_ext 9715fi 9716 9717 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719 9720 eval supported=\$$cacheid 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9722$as_echo "$supported" >&6; } 9723 if test "$supported" = "yes" ; then 9724 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9725 found="yes" 9726 fi 9727 fi 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743xorg_testset_save_CFLAGS="$CFLAGS" 9744 9745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754int i; 9755_ACEOF 9756if ac_fn_c_try_compile "$LINENO"; then : 9757 xorg_cv_cc_flag_unknown_warning_option=yes 9758else 9759 xorg_cv_cc_flag_unknown_warning_option=no 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9766 CFLAGS="$xorg_testset_save_CFLAGS" 9767fi 9768 9769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9772 fi 9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9777 $as_echo_n "(cached) " >&6 9778else 9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9780/* end confdefs.h. */ 9781int i; 9782_ACEOF 9783if ac_fn_c_try_compile "$LINENO"; then : 9784 xorg_cv_cc_flag_unused_command_line_argument=yes 9785else 9786 xorg_cv_cc_flag_unused_command_line_argument=no 9787fi 9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9789fi 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9793 CFLAGS="$xorg_testset_save_CFLAGS" 9794fi 9795 9796found="no" 9797 9798 if test $found = "no" ; then 9799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9801 fi 9802 9803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9805 fi 9806 9807 CFLAGS="$CFLAGS -Waddress" 9808 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9810$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9811 cacheid=xorg_cv_cc_flag__Waddress 9812 if eval \${$cacheid+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814else 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816/* end confdefs.h. */ 9817int i; 9818int 9819main () 9820{ 9821 9822 ; 9823 return 0; 9824} 9825_ACEOF 9826if ac_fn_c_try_link "$LINENO"; then : 9827 eval $cacheid=yes 9828else 9829 eval $cacheid=no 9830fi 9831rm -f core conftest.err conftest.$ac_objext \ 9832 conftest$ac_exeext conftest.$ac_ext 9833fi 9834 9835 9836 CFLAGS="$xorg_testset_save_CFLAGS" 9837 9838 eval supported=\$$cacheid 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9840$as_echo "$supported" >&6; } 9841 if test "$supported" = "yes" ; then 9842 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9843 found="yes" 9844 fi 9845 fi 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861xorg_testset_save_CFLAGS="$CFLAGS" 9862 9863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873_ACEOF 9874if ac_fn_c_try_compile "$LINENO"; then : 9875 xorg_cv_cc_flag_unknown_warning_option=yes 9876else 9877 xorg_cv_cc_flag_unknown_warning_option=no 9878fi 9879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9884 CFLAGS="$xorg_testset_save_CFLAGS" 9885fi 9886 9887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 fi 9891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9895 $as_echo_n "(cached) " >&6 9896else 9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898/* end confdefs.h. */ 9899int i; 9900_ACEOF 9901if ac_fn_c_try_compile "$LINENO"; then : 9902 xorg_cv_cc_flag_unused_command_line_argument=yes 9903else 9904 xorg_cv_cc_flag_unused_command_line_argument=no 9905fi 9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9907fi 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9911 CFLAGS="$xorg_testset_save_CFLAGS" 9912fi 9913 9914found="no" 9915 9916 if test $found = "no" ; then 9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9919 fi 9920 9921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9923 fi 9924 9925 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9926 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9928$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9929 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9930 if eval \${$cacheid+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935int i; 9936int 9937main () 9938{ 9939 9940 ; 9941 return 0; 9942} 9943_ACEOF 9944if ac_fn_c_try_link "$LINENO"; then : 9945 eval $cacheid=yes 9946else 9947 eval $cacheid=no 9948fi 9949rm -f core conftest.err conftest.$ac_objext \ 9950 conftest$ac_exeext conftest.$ac_ext 9951fi 9952 9953 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955 9956 eval supported=\$$cacheid 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9958$as_echo "$supported" >&6; } 9959 if test "$supported" = "yes" ; then 9960 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9961 found="yes" 9962 fi 9963 fi 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979xorg_testset_save_CFLAGS="$CFLAGS" 9980 9981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990int i; 9991_ACEOF 9992if ac_fn_c_try_compile "$LINENO"; then : 9993 xorg_cv_cc_flag_unknown_warning_option=yes 9994else 9995 xorg_cv_cc_flag_unknown_warning_option=no 9996fi 9997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9998fi 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10002 CFLAGS="$xorg_testset_save_CFLAGS" 10003fi 10004 10005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 fi 10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10013 $as_echo_n "(cached) " >&6 10014else 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016/* end confdefs.h. */ 10017int i; 10018_ACEOF 10019if ac_fn_c_try_compile "$LINENO"; then : 10020 xorg_cv_cc_flag_unused_command_line_argument=yes 10021else 10022 xorg_cv_cc_flag_unused_command_line_argument=no 10023fi 10024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10025fi 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10029 CFLAGS="$xorg_testset_save_CFLAGS" 10030fi 10031 10032found="no" 10033 10034 if test $found = "no" ; then 10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10037 fi 10038 10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10041 fi 10042 10043 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10044 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10046$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10047 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10048 if eval \${$cacheid+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054int 10055main () 10056{ 10057 10058 ; 10059 return 0; 10060} 10061_ACEOF 10062if ac_fn_c_try_link "$LINENO"; then : 10063 eval $cacheid=yes 10064else 10065 eval $cacheid=no 10066fi 10067rm -f core conftest.err conftest.$ac_objext \ 10068 conftest$ac_exeext conftest.$ac_ext 10069fi 10070 10071 10072 CFLAGS="$xorg_testset_save_CFLAGS" 10073 10074 eval supported=\$$cacheid 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10076$as_echo "$supported" >&6; } 10077 if test "$supported" = "yes" ; then 10078 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10079 found="yes" 10080 fi 10081 fi 10082 10083 10084fi 10085 10086 10087 10088 10089 10090 10091 10092 CWARNFLAGS="$BASE_CFLAGS" 10093 if test "x$GCC" = xyes ; then 10094 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10095 fi 10096 10097 10098 10099 10100 10101 10102 10103 10104# Check whether --enable-strict-compilation was given. 10105if test "${enable_strict_compilation+set}" = set; then : 10106 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10107else 10108 STRICT_COMPILE=no 10109fi 10110 10111 10112 10113 10114 10115 10116STRICT_CFLAGS="" 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130xorg_testset_save_CFLAGS="$CFLAGS" 10131 10132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10137 $as_echo_n "(cached) " >&6 10138else 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141int i; 10142_ACEOF 10143if ac_fn_c_try_compile "$LINENO"; then : 10144 xorg_cv_cc_flag_unknown_warning_option=yes 10145else 10146 xorg_cv_cc_flag_unknown_warning_option=no 10147fi 10148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10149fi 10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10153 CFLAGS="$xorg_testset_save_CFLAGS" 10154fi 10155 10156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10159 fi 10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10164 $as_echo_n "(cached) " >&6 10165else 10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10167/* end confdefs.h. */ 10168int i; 10169_ACEOF 10170if ac_fn_c_try_compile "$LINENO"; then : 10171 xorg_cv_cc_flag_unused_command_line_argument=yes 10172else 10173 xorg_cv_cc_flag_unused_command_line_argument=no 10174fi 10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10176fi 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10180 CFLAGS="$xorg_testset_save_CFLAGS" 10181fi 10182 10183found="no" 10184 10185 if test $found = "no" ; then 10186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10188 fi 10189 10190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10192 fi 10193 10194 CFLAGS="$CFLAGS -pedantic" 10195 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10197$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10198 cacheid=xorg_cv_cc_flag__pedantic 10199 if eval \${$cacheid+:} false; then : 10200 $as_echo_n "(cached) " >&6 10201else 10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10203/* end confdefs.h. */ 10204int i; 10205int 10206main () 10207{ 10208 10209 ; 10210 return 0; 10211} 10212_ACEOF 10213if ac_fn_c_try_link "$LINENO"; then : 10214 eval $cacheid=yes 10215else 10216 eval $cacheid=no 10217fi 10218rm -f core conftest.err conftest.$ac_objext \ 10219 conftest$ac_exeext conftest.$ac_ext 10220fi 10221 10222 10223 CFLAGS="$xorg_testset_save_CFLAGS" 10224 10225 eval supported=\$$cacheid 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10227$as_echo "$supported" >&6; } 10228 if test "$supported" = "yes" ; then 10229 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10230 found="yes" 10231 fi 10232 fi 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248xorg_testset_save_CFLAGS="$CFLAGS" 10249 10250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10255 $as_echo_n "(cached) " >&6 10256else 10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int i; 10260_ACEOF 10261if ac_fn_c_try_compile "$LINENO"; then : 10262 xorg_cv_cc_flag_unknown_warning_option=yes 10263else 10264 xorg_cv_cc_flag_unknown_warning_option=no 10265fi 10266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10267fi 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10271 CFLAGS="$xorg_testset_save_CFLAGS" 10272fi 10273 10274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 fi 10278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10285/* end confdefs.h. */ 10286int i; 10287_ACEOF 10288if ac_fn_c_try_compile "$LINENO"; then : 10289 xorg_cv_cc_flag_unused_command_line_argument=yes 10290else 10291 xorg_cv_cc_flag_unused_command_line_argument=no 10292fi 10293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10294fi 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299fi 10300 10301found="no" 10302 10303 if test $found = "no" ; then 10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 fi 10307 10308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10310 fi 10311 10312 CFLAGS="$CFLAGS -Werror" 10313 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10315$as_echo_n "checking if $CC supports -Werror... " >&6; } 10316 cacheid=xorg_cv_cc_flag__Werror 10317 if eval \${$cacheid+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323int 10324main () 10325{ 10326 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO"; then : 10332 eval $cacheid=yes 10333else 10334 eval $cacheid=no 10335fi 10336rm -f core conftest.err conftest.$ac_objext \ 10337 conftest$ac_exeext conftest.$ac_ext 10338fi 10339 10340 10341 CFLAGS="$xorg_testset_save_CFLAGS" 10342 10343 eval supported=\$$cacheid 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10345$as_echo "$supported" >&6; } 10346 if test "$supported" = "yes" ; then 10347 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10348 found="yes" 10349 fi 10350 fi 10351 10352 if test $found = "no" ; then 10353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10355 fi 10356 10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10359 fi 10360 10361 CFLAGS="$CFLAGS -errwarn" 10362 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10364$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10365 cacheid=xorg_cv_cc_flag__errwarn 10366 if eval \${$cacheid+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371int i; 10372int 10373main () 10374{ 10375 10376 ; 10377 return 0; 10378} 10379_ACEOF 10380if ac_fn_c_try_link "$LINENO"; then : 10381 eval $cacheid=yes 10382else 10383 eval $cacheid=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext \ 10386 conftest$ac_exeext conftest.$ac_ext 10387fi 10388 10389 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391 10392 eval supported=\$$cacheid 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10394$as_echo "$supported" >&6; } 10395 if test "$supported" = "yes" ; then 10396 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10397 found="yes" 10398 fi 10399 fi 10400 10401 10402 10403# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10404# activate it with -Werror, so we add it here explicitly. 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418xorg_testset_save_CFLAGS="$CFLAGS" 10419 10420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429int i; 10430_ACEOF 10431if ac_fn_c_try_compile "$LINENO"; then : 10432 xorg_cv_cc_flag_unknown_warning_option=yes 10433else 10434 xorg_cv_cc_flag_unknown_warning_option=no 10435fi 10436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10437fi 10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10441 CFLAGS="$xorg_testset_save_CFLAGS" 10442fi 10443 10444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10447 fi 10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455/* end confdefs.h. */ 10456int i; 10457_ACEOF 10458if ac_fn_c_try_compile "$LINENO"; then : 10459 xorg_cv_cc_flag_unused_command_line_argument=yes 10460else 10461 xorg_cv_cc_flag_unused_command_line_argument=no 10462fi 10463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10464fi 10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10468 CFLAGS="$xorg_testset_save_CFLAGS" 10469fi 10470 10471found="no" 10472 10473 if test $found = "no" ; then 10474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10476 fi 10477 10478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10480 fi 10481 10482 CFLAGS="$CFLAGS -Werror=attributes" 10483 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10485$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10486 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10487 if eval \${$cacheid+:} false; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492int i; 10493int 10494main () 10495{ 10496 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501if ac_fn_c_try_link "$LINENO"; then : 10502 eval $cacheid=yes 10503else 10504 eval $cacheid=no 10505fi 10506rm -f core conftest.err conftest.$ac_objext \ 10507 conftest$ac_exeext conftest.$ac_ext 10508fi 10509 10510 10511 CFLAGS="$xorg_testset_save_CFLAGS" 10512 10513 eval supported=\$$cacheid 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10515$as_echo "$supported" >&6; } 10516 if test "$supported" = "yes" ; then 10517 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10518 found="yes" 10519 fi 10520 fi 10521 10522 10523 10524if test "x$STRICT_COMPILE" = "xyes"; then 10525 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10526 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10527fi 10528 10529 10530 10531 10532 10533 10534cat >>confdefs.h <<_ACEOF 10535#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10536_ACEOF 10537 10538 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10539 if test "x$PVM" = "x"; then 10540 PVM="0" 10541 fi 10542 10543cat >>confdefs.h <<_ACEOF 10544#define PACKAGE_VERSION_MINOR $PVM 10545_ACEOF 10546 10547 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10548 if test "x$PVP" = "x"; then 10549 PVP="0" 10550 fi 10551 10552cat >>confdefs.h <<_ACEOF 10553#define PACKAGE_VERSION_PATCHLEVEL $PVP 10554_ACEOF 10555 10556 10557 10558CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10559mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10560|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10561echo 'git directory not found: installing possibly empty changelog.' >&2)" 10562 10563 10564 10565 10566macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10567INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10568mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10569|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10570echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10571 10572 10573 10574 10575 10576 10577if test x$APP_MAN_SUFFIX = x ; then 10578 APP_MAN_SUFFIX=1 10579fi 10580if test x$APP_MAN_DIR = x ; then 10581 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10582fi 10583 10584if test x$LIB_MAN_SUFFIX = x ; then 10585 LIB_MAN_SUFFIX=3 10586fi 10587if test x$LIB_MAN_DIR = x ; then 10588 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10589fi 10590 10591if test x$FILE_MAN_SUFFIX = x ; then 10592 case $host_os in 10593 solaris*) FILE_MAN_SUFFIX=4 ;; 10594 *) FILE_MAN_SUFFIX=5 ;; 10595 esac 10596fi 10597if test x$FILE_MAN_DIR = x ; then 10598 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10599fi 10600 10601if test x$MISC_MAN_SUFFIX = x ; then 10602 case $host_os in 10603 solaris*) MISC_MAN_SUFFIX=5 ;; 10604 *) MISC_MAN_SUFFIX=7 ;; 10605 esac 10606fi 10607if test x$MISC_MAN_DIR = x ; then 10608 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10609fi 10610 10611if test x$DRIVER_MAN_SUFFIX = x ; then 10612 case $host_os in 10613 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10614 *) DRIVER_MAN_SUFFIX=4 ;; 10615 esac 10616fi 10617if test x$DRIVER_MAN_DIR = x ; then 10618 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10619fi 10620 10621if test x$ADMIN_MAN_SUFFIX = x ; then 10622 case $host_os in 10623 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10624 *) ADMIN_MAN_SUFFIX=8 ;; 10625 esac 10626fi 10627if test x$ADMIN_MAN_DIR = x ; then 10628 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10629fi 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645XORG_MAN_PAGE="X Version 11" 10646 10647MAN_SUBSTS="\ 10648 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10649 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10650 -e 's|__xservername__|Xorg|g' \ 10651 -e 's|__xconfigfile__|xorg.conf|g' \ 10652 -e 's|__projectroot__|\$(prefix)|g' \ 10653 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10654 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10655 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10656 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10657 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10658 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10659 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10660 10661 10662 10663# Check whether --enable-silent-rules was given. 10664if test "${enable_silent_rules+set}" = set; then : 10665 enableval=$enable_silent_rules; 10666fi 10667 10668case $enable_silent_rules in # ((( 10669 yes) AM_DEFAULT_VERBOSITY=0;; 10670 no) AM_DEFAULT_VERBOSITY=1;; 10671 *) AM_DEFAULT_VERBOSITY=0;; 10672esac 10673am_make=${MAKE-make} 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10675$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10676if ${am_cv_make_support_nested_variables+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678else 10679 if $as_echo 'TRUE=$(BAR$(V)) 10680BAR0=false 10681BAR1=true 10682V=1 10683am__doit: 10684 @$(TRUE) 10685.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10686 am_cv_make_support_nested_variables=yes 10687else 10688 am_cv_make_support_nested_variables=no 10689fi 10690fi 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10692$as_echo "$am_cv_make_support_nested_variables" >&6; } 10693if test $am_cv_make_support_nested_variables = yes; then 10694 AM_V='$(V)' 10695 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10696else 10697 AM_V=$AM_DEFAULT_VERBOSITY 10698 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10699fi 10700AM_BACKSLASH='\' 10701 10702 10703 10704# Use POSIX strnlen or the implementation supplied in this module 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 10706$as_echo_n "checking for working strnlen... " >&6; } 10707if ${ac_cv_func_strnlen_working+:} false; then : 10708 $as_echo_n "(cached) " >&6 10709else 10710 if test "$cross_compiling" = yes; then : 10711 # Guess no on AIX systems, yes otherwise. 10712 case "$host_os" in 10713 aix*) ac_cv_func_strnlen_working=no;; 10714 *) ac_cv_func_strnlen_working=yes;; 10715 esac 10716else 10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718/* end confdefs.h. */ 10719$ac_includes_default 10720int 10721main () 10722{ 10723 10724#define S "foobar" 10725#define S_LEN (sizeof S - 1) 10726 10727 /* At least one implementation is buggy: that of AIX 4.3 would 10728 give strnlen (S, 1) == 3. */ 10729 10730 int i; 10731 for (i = 0; i < S_LEN + 1; ++i) 10732 { 10733 int expected = i <= S_LEN ? i : S_LEN; 10734 if (strnlen (S, i) != expected) 10735 return 1; 10736 } 10737 return 0; 10738 10739 ; 10740 return 0; 10741} 10742_ACEOF 10743if ac_fn_c_try_run "$LINENO"; then : 10744 ac_cv_func_strnlen_working=yes 10745else 10746 ac_cv_func_strnlen_working=no 10747fi 10748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10749 conftest.$ac_objext conftest.beam conftest.$ac_ext 10750fi 10751 10752fi 10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 10754$as_echo "$ac_cv_func_strnlen_working" >&6; } 10755test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 10756 *" strnlen.$ac_objext "* ) ;; 10757 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 10758 ;; 10759esac 10760 10761 10762if test "x$ac_cv_func_strnlen_working" = xyes; then 10763 10764$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 10765 10766fi 10767 10768# Obtain compiler/linker options for xlsclients dependencies 10769 10770pkg_failed=no 10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5 10772$as_echo_n "checking for XLSCLIENTS... " >&6; } 10773 10774if test -n "$XLSCLIENTS_CFLAGS"; then 10775 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS" 10776 elif test -n "$PKG_CONFIG"; then 10777 if test -n "$PKG_CONFIG" && \ 10778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 10779 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 10780 ac_status=$? 10781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10782 test $ac_status = 0; }; then 10783 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null` 10784else 10785 pkg_failed=yes 10786fi 10787 else 10788 pkg_failed=untried 10789fi 10790if test -n "$XLSCLIENTS_LIBS"; then 10791 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS" 10792 elif test -n "$PKG_CONFIG"; then 10793 if test -n "$PKG_CONFIG" && \ 10794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 10795 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 10796 ac_status=$? 10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10798 test $ac_status = 0; }; then 10799 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null` 10800else 10801 pkg_failed=yes 10802fi 10803 else 10804 pkg_failed=untried 10805fi 10806 10807 10808 10809if test $pkg_failed = yes; then 10810 10811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10812 _pkg_short_errors_supported=yes 10813else 10814 _pkg_short_errors_supported=no 10815fi 10816 if test $_pkg_short_errors_supported = yes; then 10817 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6" 2>&1` 10818 else 10819 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6" 2>&1` 10820 fi 10821 # Put the nasty error message in config.log where it belongs 10822 echo "$XLSCLIENTS_PKG_ERRORS" >&5 10823 10824 as_fn_error $? "Package requirements (xcb >= 1.6) were not met: 10825 10826$XLSCLIENTS_PKG_ERRORS 10827 10828Consider adjusting the PKG_CONFIG_PATH environment variable if you 10829installed software in a non-standard prefix. 10830 10831Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 10832and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 10833See the pkg-config man page for more details. 10834" "$LINENO" 5 10835elif test $pkg_failed = untried; then 10836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10838as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10839is in your PATH or set the PKG_CONFIG environment variable to the full 10840path to pkg-config. 10841 10842Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 10843and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 10844See the pkg-config man page for more details. 10845 10846To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10847See \`config.log' for more details" "$LINENO" 5; } 10848else 10849 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS 10850 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10852$as_echo "yes" >&6; } 10853 : 10854fi 10855 10856ac_config_files="$ac_config_files Makefile man/Makefile" 10857 10858cat >confcache <<\_ACEOF 10859# This file is a shell script that caches the results of configure 10860# tests run on this system so they can be shared between configure 10861# scripts and configure runs, see configure's option --config-cache. 10862# It is not useful on other systems. If it contains results you don't 10863# want to keep, you may remove or edit it. 10864# 10865# config.status only pays attention to the cache file if you give it 10866# the --recheck option to rerun configure. 10867# 10868# `ac_cv_env_foo' variables (set or unset) will be overridden when 10869# loading this file, other *unset* `ac_cv_foo' will be assigned the 10870# following values. 10871 10872_ACEOF 10873 10874# The following way of writing the cache mishandles newlines in values, 10875# but we know of no workaround that is simple, portable, and efficient. 10876# So, we kill variables containing newlines. 10877# Ultrix sh set writes to stderr and can't be redirected directly, 10878# and sets the high bit in the cache file unless we assign to the vars. 10879( 10880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10881 eval ac_val=\$$ac_var 10882 case $ac_val in #( 10883 *${as_nl}*) 10884 case $ac_var in #( 10885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10887 esac 10888 case $ac_var in #( 10889 _ | IFS | as_nl) ;; #( 10890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10891 *) { eval $ac_var=; unset $ac_var;} ;; 10892 esac ;; 10893 esac 10894 done 10895 10896 (set) 2>&1 | 10897 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10898 *${as_nl}ac_space=\ *) 10899 # `set' does not quote correctly, so add quotes: double-quote 10900 # substitution turns \\\\ into \\, and sed turns \\ into \. 10901 sed -n \ 10902 "s/'/'\\\\''/g; 10903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10904 ;; #( 10905 *) 10906 # `set' quotes correctly as required by POSIX, so do not add quotes. 10907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10908 ;; 10909 esac | 10910 sort 10911) | 10912 sed ' 10913 /^ac_cv_env_/b end 10914 t clear 10915 :clear 10916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10917 t end 10918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10919 :end' >>confcache 10920if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10921 if test -w "$cache_file"; then 10922 if test "x$cache_file" != "x/dev/null"; then 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10924$as_echo "$as_me: updating cache $cache_file" >&6;} 10925 if test ! -f "$cache_file" || test -h "$cache_file"; then 10926 cat confcache >"$cache_file" 10927 else 10928 case $cache_file in #( 10929 */* | ?:*) 10930 mv -f confcache "$cache_file"$$ && 10931 mv -f "$cache_file"$$ "$cache_file" ;; #( 10932 *) 10933 mv -f confcache "$cache_file" ;; 10934 esac 10935 fi 10936 fi 10937 else 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10940 fi 10941fi 10942rm -f confcache 10943 10944test "x$prefix" = xNONE && prefix=$ac_default_prefix 10945# Let make expand exec_prefix. 10946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10947 10948DEFS=-DHAVE_CONFIG_H 10949 10950ac_libobjs= 10951ac_ltlibobjs= 10952U= 10953for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10954 # 1. Remove the extension, and $U if already installed. 10955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10956 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10958 # will be set to the directory where LIBOBJS objects are built. 10959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10961done 10962LIBOBJS=$ac_libobjs 10963 10964LTLIBOBJS=$ac_ltlibobjs 10965 10966 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10968$as_echo_n "checking that generated files are newer than configure... " >&6; } 10969 if test -n "$am_sleep_pid"; then 10970 # Hide warnings about reused PIDs. 10971 wait $am_sleep_pid 2>/dev/null 10972 fi 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10974$as_echo "done" >&6; } 10975if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10976 as_fn_error $? "conditional \"AMDEP\" was never defined. 10977Usually this means the macro was only invoked conditionally." "$LINENO" 5 10978fi 10979if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10980 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10981Usually this means the macro was only invoked conditionally." "$LINENO" 5 10982fi 10983 if test -n "$EXEEXT"; then 10984 am__EXEEXT_TRUE= 10985 am__EXEEXT_FALSE='#' 10986else 10987 am__EXEEXT_TRUE='#' 10988 am__EXEEXT_FALSE= 10989fi 10990 10991if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10992 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10993Usually this means the macro was only invoked conditionally." "$LINENO" 5 10994fi 10995 10996: "${CONFIG_STATUS=./config.status}" 10997ac_write_fail=0 10998ac_clean_files_save=$ac_clean_files 10999ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11000{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11001$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11002as_write_fail=0 11003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11004#! $SHELL 11005# Generated by $as_me. 11006# Run this file to recreate the current configuration. 11007# Compiler output produced by configure, useful for debugging 11008# configure, is in config.log if it exists. 11009 11010debug=false 11011ac_cs_recheck=false 11012ac_cs_silent=false 11013 11014SHELL=\${CONFIG_SHELL-$SHELL} 11015export SHELL 11016_ASEOF 11017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11018## -------------------- ## 11019## M4sh Initialization. ## 11020## -------------------- ## 11021 11022# Be more Bourne compatible 11023DUALCASE=1; export DUALCASE # for MKS sh 11024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11025 emulate sh 11026 NULLCMD=: 11027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11028 # is contrary to our usage. Disable this feature. 11029 alias -g '${1+"$@"}'='"$@"' 11030 setopt NO_GLOB_SUBST 11031else 11032 case `(set -o) 2>/dev/null` in #( 11033 *posix*) : 11034 set -o posix ;; #( 11035 *) : 11036 ;; 11037esac 11038fi 11039 11040 11041as_nl=' 11042' 11043export as_nl 11044# Printing a long string crashes Solaris 7 /usr/bin/printf. 11045as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11048# Prefer a ksh shell builtin over an external printf program on Solaris, 11049# but without wasting forks for bash or zsh. 11050if test -z "$BASH_VERSION$ZSH_VERSION" \ 11051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11052 as_echo='print -r --' 11053 as_echo_n='print -rn --' 11054elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11055 as_echo='printf %s\n' 11056 as_echo_n='printf %s' 11057else 11058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11060 as_echo_n='/usr/ucb/echo -n' 11061 else 11062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11063 as_echo_n_body='eval 11064 arg=$1; 11065 case $arg in #( 11066 *"$as_nl"*) 11067 expr "X$arg" : "X\\(.*\\)$as_nl"; 11068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11069 esac; 11070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11071 ' 11072 export as_echo_n_body 11073 as_echo_n='sh -c $as_echo_n_body as_echo' 11074 fi 11075 export as_echo_body 11076 as_echo='sh -c $as_echo_body as_echo' 11077fi 11078 11079# The user is always right. 11080if test "${PATH_SEPARATOR+set}" != set; then 11081 PATH_SEPARATOR=: 11082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11084 PATH_SEPARATOR=';' 11085 } 11086fi 11087 11088 11089# IFS 11090# We need space, tab and new line, in precisely that order. Quoting is 11091# there to prevent editors from complaining about space-tab. 11092# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11093# splitting by setting IFS to empty value.) 11094IFS=" "" $as_nl" 11095 11096# Find who we are. Look in the path if we contain no directory separator. 11097as_myself= 11098case $0 in #(( 11099 *[\\/]* ) as_myself=$0 ;; 11100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11101for as_dir in $PATH 11102do 11103 IFS=$as_save_IFS 11104 test -z "$as_dir" && as_dir=. 11105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11106 done 11107IFS=$as_save_IFS 11108 11109 ;; 11110esac 11111# We did not find ourselves, most probably we were run as `sh COMMAND' 11112# in which case we are not to be found in the path. 11113if test "x$as_myself" = x; then 11114 as_myself=$0 11115fi 11116if test ! -f "$as_myself"; then 11117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11118 exit 1 11119fi 11120 11121# Unset variables that we do not need and which cause bugs (e.g. in 11122# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11123# suppresses any "Segmentation fault" message there. '((' could 11124# trigger a bug in pdksh 5.2.14. 11125for as_var in BASH_ENV ENV MAIL MAILPATH 11126do eval test x\${$as_var+set} = xset \ 11127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11128done 11129PS1='$ ' 11130PS2='> ' 11131PS4='+ ' 11132 11133# NLS nuisances. 11134LC_ALL=C 11135export LC_ALL 11136LANGUAGE=C 11137export LANGUAGE 11138 11139# CDPATH. 11140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11141 11142 11143# as_fn_error STATUS ERROR [LINENO LOG_FD] 11144# ---------------------------------------- 11145# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11146# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11147# script with STATUS, using 1 if that was 0. 11148as_fn_error () 11149{ 11150 as_status=$1; test $as_status -eq 0 && as_status=1 11151 if test "$4"; then 11152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11154 fi 11155 $as_echo "$as_me: error: $2" >&2 11156 as_fn_exit $as_status 11157} # as_fn_error 11158 11159 11160# as_fn_set_status STATUS 11161# ----------------------- 11162# Set $? to STATUS, without forking. 11163as_fn_set_status () 11164{ 11165 return $1 11166} # as_fn_set_status 11167 11168# as_fn_exit STATUS 11169# ----------------- 11170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11171as_fn_exit () 11172{ 11173 set +e 11174 as_fn_set_status $1 11175 exit $1 11176} # as_fn_exit 11177 11178# as_fn_unset VAR 11179# --------------- 11180# Portably unset VAR. 11181as_fn_unset () 11182{ 11183 { eval $1=; unset $1;} 11184} 11185as_unset=as_fn_unset 11186# as_fn_append VAR VALUE 11187# ---------------------- 11188# Append the text in VALUE to the end of the definition contained in VAR. Take 11189# advantage of any shell optimizations that allow amortized linear growth over 11190# repeated appends, instead of the typical quadratic growth present in naive 11191# implementations. 11192if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11193 eval 'as_fn_append () 11194 { 11195 eval $1+=\$2 11196 }' 11197else 11198 as_fn_append () 11199 { 11200 eval $1=\$$1\$2 11201 } 11202fi # as_fn_append 11203 11204# as_fn_arith ARG... 11205# ------------------ 11206# Perform arithmetic evaluation on the ARGs, and store the result in the 11207# global $as_val. Take advantage of shells that can avoid forks. The arguments 11208# must be portable across $(()) and expr. 11209if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11210 eval 'as_fn_arith () 11211 { 11212 as_val=$(( $* )) 11213 }' 11214else 11215 as_fn_arith () 11216 { 11217 as_val=`expr "$@" || test $? -eq 1` 11218 } 11219fi # as_fn_arith 11220 11221 11222if expr a : '\(a\)' >/dev/null 2>&1 && 11223 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11224 as_expr=expr 11225else 11226 as_expr=false 11227fi 11228 11229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11230 as_basename=basename 11231else 11232 as_basename=false 11233fi 11234 11235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11236 as_dirname=dirname 11237else 11238 as_dirname=false 11239fi 11240 11241as_me=`$as_basename -- "$0" || 11242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11243 X"$0" : 'X\(//\)$' \| \ 11244 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11245$as_echo X/"$0" | 11246 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11247 s//\1/ 11248 q 11249 } 11250 /^X\/\(\/\/\)$/{ 11251 s//\1/ 11252 q 11253 } 11254 /^X\/\(\/\).*/{ 11255 s//\1/ 11256 q 11257 } 11258 s/.*/./; q'` 11259 11260# Avoid depending upon Character Ranges. 11261as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11263as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11264as_cr_digits='0123456789' 11265as_cr_alnum=$as_cr_Letters$as_cr_digits 11266 11267ECHO_C= ECHO_N= ECHO_T= 11268case `echo -n x` in #((((( 11269-n*) 11270 case `echo 'xy\c'` in 11271 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11272 xy) ECHO_C='\c';; 11273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11274 ECHO_T=' ';; 11275 esac;; 11276*) 11277 ECHO_N='-n';; 11278esac 11279 11280rm -f conf$$ conf$$.exe conf$$.file 11281if test -d conf$$.dir; then 11282 rm -f conf$$.dir/conf$$.file 11283else 11284 rm -f conf$$.dir 11285 mkdir conf$$.dir 2>/dev/null 11286fi 11287if (echo >conf$$.file) 2>/dev/null; then 11288 if ln -s conf$$.file conf$$ 2>/dev/null; then 11289 as_ln_s='ln -s' 11290 # ... but there are two gotchas: 11291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11293 # In both cases, we have to default to `cp -p'. 11294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11295 as_ln_s='cp -p' 11296 elif ln conf$$.file conf$$ 2>/dev/null; then 11297 as_ln_s=ln 11298 else 11299 as_ln_s='cp -p' 11300 fi 11301else 11302 as_ln_s='cp -p' 11303fi 11304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11305rmdir conf$$.dir 2>/dev/null 11306 11307 11308# as_fn_mkdir_p 11309# ------------- 11310# Create "$as_dir" as a directory, including parents if necessary. 11311as_fn_mkdir_p () 11312{ 11313 11314 case $as_dir in #( 11315 -*) as_dir=./$as_dir;; 11316 esac 11317 test -d "$as_dir" || eval $as_mkdir_p || { 11318 as_dirs= 11319 while :; do 11320 case $as_dir in #( 11321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11322 *) as_qdir=$as_dir;; 11323 esac 11324 as_dirs="'$as_qdir' $as_dirs" 11325 as_dir=`$as_dirname -- "$as_dir" || 11326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11327 X"$as_dir" : 'X\(//\)[^/]' \| \ 11328 X"$as_dir" : 'X\(//\)$' \| \ 11329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11330$as_echo X"$as_dir" | 11331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11332 s//\1/ 11333 q 11334 } 11335 /^X\(\/\/\)[^/].*/{ 11336 s//\1/ 11337 q 11338 } 11339 /^X\(\/\/\)$/{ 11340 s//\1/ 11341 q 11342 } 11343 /^X\(\/\).*/{ 11344 s//\1/ 11345 q 11346 } 11347 s/.*/./; q'` 11348 test -d "$as_dir" && break 11349 done 11350 test -z "$as_dirs" || eval "mkdir $as_dirs" 11351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11352 11353 11354} # as_fn_mkdir_p 11355if mkdir -p . 2>/dev/null; then 11356 as_mkdir_p='mkdir -p "$as_dir"' 11357else 11358 test -d ./-p && rmdir ./-p 11359 as_mkdir_p=false 11360fi 11361 11362if test -x / >/dev/null 2>&1; then 11363 as_test_x='test -x' 11364else 11365 if ls -dL / >/dev/null 2>&1; then 11366 as_ls_L_option=L 11367 else 11368 as_ls_L_option= 11369 fi 11370 as_test_x=' 11371 eval sh -c '\'' 11372 if test -d "$1"; then 11373 test -d "$1/."; 11374 else 11375 case $1 in #( 11376 -*)set "./$1";; 11377 esac; 11378 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11379 ???[sx]*):;;*)false;;esac;fi 11380 '\'' sh 11381 ' 11382fi 11383as_executable_p=$as_test_x 11384 11385# Sed expression to map a string onto a valid CPP name. 11386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11387 11388# Sed expression to map a string onto a valid variable name. 11389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11390 11391 11392exec 6>&1 11393## ----------------------------------- ## 11394## Main body of $CONFIG_STATUS script. ## 11395## ----------------------------------- ## 11396_ASEOF 11397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11398 11399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11400# Save the log message, to keep $0 and so on meaningful, and to 11401# report actual input values of CONFIG_FILES etc. instead of their 11402# values after options handling. 11403ac_log=" 11404This file was extended by xlsclients $as_me 1.1.3, which was 11405generated by GNU Autoconf 2.68. Invocation command line was 11406 11407 CONFIG_FILES = $CONFIG_FILES 11408 CONFIG_HEADERS = $CONFIG_HEADERS 11409 CONFIG_LINKS = $CONFIG_LINKS 11410 CONFIG_COMMANDS = $CONFIG_COMMANDS 11411 $ $0 $@ 11412 11413on `(hostname || uname -n) 2>/dev/null | sed 1q` 11414" 11415 11416_ACEOF 11417 11418case $ac_config_files in *" 11419"*) set x $ac_config_files; shift; ac_config_files=$*;; 11420esac 11421 11422case $ac_config_headers in *" 11423"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11424esac 11425 11426 11427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11428# Files that config.status was made for. 11429config_files="$ac_config_files" 11430config_headers="$ac_config_headers" 11431config_commands="$ac_config_commands" 11432 11433_ACEOF 11434 11435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11436ac_cs_usage="\ 11437\`$as_me' instantiates files and other configuration actions 11438from templates according to the current configuration. Unless the files 11439and actions are specified as TAGs, all are instantiated by default. 11440 11441Usage: $0 [OPTION]... [TAG]... 11442 11443 -h, --help print this help, then exit 11444 -V, --version print version number and configuration settings, then exit 11445 --config print configuration, then exit 11446 -q, --quiet, --silent 11447 do not print progress messages 11448 -d, --debug don't remove temporary files 11449 --recheck update $as_me by reconfiguring in the same conditions 11450 --file=FILE[:TEMPLATE] 11451 instantiate the configuration file FILE 11452 --header=FILE[:TEMPLATE] 11453 instantiate the configuration header FILE 11454 11455Configuration files: 11456$config_files 11457 11458Configuration headers: 11459$config_headers 11460 11461Configuration commands: 11462$config_commands 11463 11464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11465 11466_ACEOF 11467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11468ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11469ac_cs_version="\\ 11470xlsclients config.status 1.1.3 11471configured by $0, generated by GNU Autoconf 2.68, 11472 with options \\"\$ac_cs_config\\" 11473 11474Copyright (C) 2010 Free Software Foundation, Inc. 11475This config.status script is free software; the Free Software Foundation 11476gives unlimited permission to copy, distribute and modify it." 11477 11478ac_pwd='$ac_pwd' 11479srcdir='$srcdir' 11480INSTALL='$INSTALL' 11481MKDIR_P='$MKDIR_P' 11482AWK='$AWK' 11483test -n "\$AWK" || AWK=awk 11484_ACEOF 11485 11486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11487# The default lists apply if the user does not specify any file. 11488ac_need_defaults=: 11489while test $# != 0 11490do 11491 case $1 in 11492 --*=?*) 11493 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11495 ac_shift=: 11496 ;; 11497 --*=) 11498 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11499 ac_optarg= 11500 ac_shift=: 11501 ;; 11502 *) 11503 ac_option=$1 11504 ac_optarg=$2 11505 ac_shift=shift 11506 ;; 11507 esac 11508 11509 case $ac_option in 11510 # Handling of the options. 11511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11512 ac_cs_recheck=: ;; 11513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11514 $as_echo "$ac_cs_version"; exit ;; 11515 --config | --confi | --conf | --con | --co | --c ) 11516 $as_echo "$ac_cs_config"; exit ;; 11517 --debug | --debu | --deb | --de | --d | -d ) 11518 debug=: ;; 11519 --file | --fil | --fi | --f ) 11520 $ac_shift 11521 case $ac_optarg in 11522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11523 '') as_fn_error $? "missing file argument" ;; 11524 esac 11525 as_fn_append CONFIG_FILES " '$ac_optarg'" 11526 ac_need_defaults=false;; 11527 --header | --heade | --head | --hea ) 11528 $ac_shift 11529 case $ac_optarg in 11530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11531 esac 11532 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11533 ac_need_defaults=false;; 11534 --he | --h) 11535 # Conflict between --help and --header 11536 as_fn_error $? "ambiguous option: \`$1' 11537Try \`$0 --help' for more information.";; 11538 --help | --hel | -h ) 11539 $as_echo "$ac_cs_usage"; exit ;; 11540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11541 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11542 ac_cs_silent=: ;; 11543 11544 # This is an error. 11545 -*) as_fn_error $? "unrecognized option: \`$1' 11546Try \`$0 --help' for more information." ;; 11547 11548 *) as_fn_append ac_config_targets " $1" 11549 ac_need_defaults=false ;; 11550 11551 esac 11552 shift 11553done 11554 11555ac_configure_extra_args= 11556 11557if $ac_cs_silent; then 11558 exec 6>/dev/null 11559 ac_configure_extra_args="$ac_configure_extra_args --silent" 11560fi 11561 11562_ACEOF 11563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11564if \$ac_cs_recheck; then 11565 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11566 shift 11567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11568 CONFIG_SHELL='$SHELL' 11569 export CONFIG_SHELL 11570 exec "\$@" 11571fi 11572 11573_ACEOF 11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11575exec 5>>config.log 11576{ 11577 echo 11578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11579## Running $as_me. ## 11580_ASBOX 11581 $as_echo "$ac_log" 11582} >&5 11583 11584_ACEOF 11585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11586# 11587# INIT-COMMANDS 11588# 11589AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11590 11591_ACEOF 11592 11593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11594 11595# Handling of arguments. 11596for ac_config_target in $ac_config_targets 11597do 11598 case $ac_config_target in 11599 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11600 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11601 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11602 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11603 11604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11605 esac 11606done 11607 11608 11609# If the user did not use the arguments to specify the items to instantiate, 11610# then the envvar interface is used. Set only those that are not. 11611# We use the long form for the default assignment because of an extremely 11612# bizarre bug on SunOS 4.1.3. 11613if $ac_need_defaults; then 11614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11617fi 11618 11619# Have a temporary directory for convenience. Make it in the build tree 11620# simply because there is no reason against having it here, and in addition, 11621# creating and moving files from /tmp can sometimes cause problems. 11622# Hook for its removal unless debugging. 11623# Note that there is a small window in which the directory will not be cleaned: 11624# after its creation but before its name has been assigned to `$tmp'. 11625$debug || 11626{ 11627 tmp= ac_tmp= 11628 trap 'exit_status=$? 11629 : "${ac_tmp:=$tmp}" 11630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11631' 0 11632 trap 'as_fn_exit 1' 1 2 13 15 11633} 11634# Create a (secure) tmp directory for tmp files. 11635 11636{ 11637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11638 test -d "$tmp" 11639} || 11640{ 11641 tmp=./conf$$-$RANDOM 11642 (umask 077 && mkdir "$tmp") 11643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11644ac_tmp=$tmp 11645 11646# Set up the scripts for CONFIG_FILES section. 11647# No need to generate them if there are no CONFIG_FILES. 11648# This happens for instance with `./config.status config.h'. 11649if test -n "$CONFIG_FILES"; then 11650 11651 11652ac_cr=`echo X | tr X '\015'` 11653# On cygwin, bash can eat \r inside `` if the user requested igncr. 11654# But we know of no other shell where ac_cr would be empty at this 11655# point, so we can use a bashism as a fallback. 11656if test "x$ac_cr" = x; then 11657 eval ac_cr=\$\'\\r\' 11658fi 11659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11661 ac_cs_awk_cr='\\r' 11662else 11663 ac_cs_awk_cr=$ac_cr 11664fi 11665 11666echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11667_ACEOF 11668 11669 11670{ 11671 echo "cat >conf$$subs.awk <<_ACEOF" && 11672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11673 echo "_ACEOF" 11674} >conf$$subs.sh || 11675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11677ac_delim='%!_!# ' 11678for ac_last_try in false false false false false :; do 11679 . ./conf$$subs.sh || 11680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11681 11682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11683 if test $ac_delim_n = $ac_delim_num; then 11684 break 11685 elif $ac_last_try; then 11686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11687 else 11688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11689 fi 11690done 11691rm -f conf$$subs.sh 11692 11693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11695_ACEOF 11696sed -n ' 11697h 11698s/^/S["/; s/!.*/"]=/ 11699p 11700g 11701s/^[^!]*!// 11702:repl 11703t repl 11704s/'"$ac_delim"'$// 11705t delim 11706:nl 11707h 11708s/\(.\{148\}\)..*/\1/ 11709t more1 11710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11711p 11712n 11713b repl 11714:more1 11715s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11716p 11717g 11718s/.\{148\}// 11719t nl 11720:delim 11721h 11722s/\(.\{148\}\)..*/\1/ 11723t more2 11724s/["\\]/\\&/g; s/^/"/; s/$/"/ 11725p 11726b 11727:more2 11728s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11729p 11730g 11731s/.\{148\}// 11732t delim 11733' <conf$$subs.awk | sed ' 11734/^[^""]/{ 11735 N 11736 s/\n// 11737} 11738' >>$CONFIG_STATUS || ac_write_fail=1 11739rm -f conf$$subs.awk 11740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11741_ACAWK 11742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11743 for (key in S) S_is_set[key] = 1 11744 FS = "" 11745 11746} 11747{ 11748 line = $ 0 11749 nfields = split(line, field, "@") 11750 substed = 0 11751 len = length(field[1]) 11752 for (i = 2; i < nfields; i++) { 11753 key = field[i] 11754 keylen = length(key) 11755 if (S_is_set[key]) { 11756 value = S[key] 11757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11758 len += length(value) + length(field[++i]) 11759 substed = 1 11760 } else 11761 len += 1 + keylen 11762 } 11763 11764 print line 11765} 11766 11767_ACAWK 11768_ACEOF 11769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11772else 11773 cat 11774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11776_ACEOF 11777 11778# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11780# trailing colons and then remove the whole line if VPATH becomes empty 11781# (actually we leave an empty line to preserve line numbers). 11782if test "x$srcdir" = x.; then 11783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11784h 11785s/// 11786s/^/:/ 11787s/[ ]*$/:/ 11788s/:\$(srcdir):/:/g 11789s/:\${srcdir}:/:/g 11790s/:@srcdir@:/:/g 11791s/^:*// 11792s/:*$// 11793x 11794s/\(=[ ]*\).*/\1/ 11795G 11796s/\n// 11797s/^[^=]*=[ ]*$// 11798}' 11799fi 11800 11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11802fi # test -n "$CONFIG_FILES" 11803 11804# Set up the scripts for CONFIG_HEADERS section. 11805# No need to generate them if there are no CONFIG_HEADERS. 11806# This happens for instance with `./config.status Makefile'. 11807if test -n "$CONFIG_HEADERS"; then 11808cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11809BEGIN { 11810_ACEOF 11811 11812# Transform confdefs.h into an awk script `defines.awk', embedded as 11813# here-document in config.status, that substitutes the proper values into 11814# config.h.in to produce config.h. 11815 11816# Create a delimiter string that does not exist in confdefs.h, to ease 11817# handling of long lines. 11818ac_delim='%!_!# ' 11819for ac_last_try in false false :; do 11820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11821 if test -z "$ac_tt"; then 11822 break 11823 elif $ac_last_try; then 11824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11825 else 11826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11827 fi 11828done 11829 11830# For the awk script, D is an array of macro values keyed by name, 11831# likewise P contains macro parameters if any. Preserve backslash 11832# newline sequences. 11833 11834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11835sed -n ' 11836s/.\{148\}/&'"$ac_delim"'/g 11837t rset 11838:rset 11839s/^[ ]*#[ ]*define[ ][ ]*/ / 11840t def 11841d 11842:def 11843s/\\$// 11844t bsnl 11845s/["\\]/\\&/g 11846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11847D["\1"]=" \3"/p 11848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11849d 11850:bsnl 11851s/["\\]/\\&/g 11852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11853D["\1"]=" \3\\\\\\n"\\/p 11854t cont 11855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11856t cont 11857d 11858:cont 11859n 11860s/.\{148\}/&'"$ac_delim"'/g 11861t clear 11862:clear 11863s/\\$// 11864t bsnlc 11865s/["\\]/\\&/g; s/^/"/; s/$/"/p 11866d 11867:bsnlc 11868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11869b cont 11870' <confdefs.h | sed ' 11871s/'"$ac_delim"'/"\\\ 11872"/g' >>$CONFIG_STATUS || ac_write_fail=1 11873 11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11875 for (key in D) D_is_set[key] = 1 11876 FS = "" 11877} 11878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11879 line = \$ 0 11880 split(line, arg, " ") 11881 if (arg[1] == "#") { 11882 defundef = arg[2] 11883 mac1 = arg[3] 11884 } else { 11885 defundef = substr(arg[1], 2) 11886 mac1 = arg[2] 11887 } 11888 split(mac1, mac2, "(") #) 11889 macro = mac2[1] 11890 prefix = substr(line, 1, index(line, defundef) - 1) 11891 if (D_is_set[macro]) { 11892 # Preserve the white space surrounding the "#". 11893 print prefix "define", macro P[macro] D[macro] 11894 next 11895 } else { 11896 # Replace #undef with comments. This is necessary, for example, 11897 # in the case of _POSIX_SOURCE, which is predefined and required 11898 # on some systems where configure will not decide to define it. 11899 if (defundef == "undef") { 11900 print "/*", prefix defundef, macro, "*/" 11901 next 11902 } 11903 } 11904} 11905{ print } 11906_ACAWK 11907_ACEOF 11908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11910fi # test -n "$CONFIG_HEADERS" 11911 11912 11913eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11914shift 11915for ac_tag 11916do 11917 case $ac_tag in 11918 :[FHLC]) ac_mode=$ac_tag; continue;; 11919 esac 11920 case $ac_mode$ac_tag in 11921 :[FHL]*:*);; 11922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11923 :[FH]-) ac_tag=-:-;; 11924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11925 esac 11926 ac_save_IFS=$IFS 11927 IFS=: 11928 set x $ac_tag 11929 IFS=$ac_save_IFS 11930 shift 11931 ac_file=$1 11932 shift 11933 11934 case $ac_mode in 11935 :L) ac_source=$1;; 11936 :[FH]) 11937 ac_file_inputs= 11938 for ac_f 11939 do 11940 case $ac_f in 11941 -) ac_f="$ac_tmp/stdin";; 11942 *) # Look for the file first in the build tree, then in the source tree 11943 # (if the path is not absolute). The absolute path cannot be DOS-style, 11944 # because $ac_f cannot contain `:'. 11945 test -f "$ac_f" || 11946 case $ac_f in 11947 [\\/$]*) false;; 11948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11949 esac || 11950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11951 esac 11952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11953 as_fn_append ac_file_inputs " '$ac_f'" 11954 done 11955 11956 # Let's still pretend it is `configure' which instantiates (i.e., don't 11957 # use $as_me), people would be surprised to read: 11958 # /* config.h. Generated by config.status. */ 11959 configure_input='Generated from '` 11960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11961 `' by configure.' 11962 if test x"$ac_file" != x-; then 11963 configure_input="$ac_file. $configure_input" 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11965$as_echo "$as_me: creating $ac_file" >&6;} 11966 fi 11967 # Neutralize special characters interpreted by sed in replacement strings. 11968 case $configure_input in #( 11969 *\&* | *\|* | *\\* ) 11970 ac_sed_conf_input=`$as_echo "$configure_input" | 11971 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11972 *) ac_sed_conf_input=$configure_input;; 11973 esac 11974 11975 case $ac_tag in 11976 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11978 esac 11979 ;; 11980 esac 11981 11982 ac_dir=`$as_dirname -- "$ac_file" || 11983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11984 X"$ac_file" : 'X\(//\)[^/]' \| \ 11985 X"$ac_file" : 'X\(//\)$' \| \ 11986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11987$as_echo X"$ac_file" | 11988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11989 s//\1/ 11990 q 11991 } 11992 /^X\(\/\/\)[^/].*/{ 11993 s//\1/ 11994 q 11995 } 11996 /^X\(\/\/\)$/{ 11997 s//\1/ 11998 q 11999 } 12000 /^X\(\/\).*/{ 12001 s//\1/ 12002 q 12003 } 12004 s/.*/./; q'` 12005 as_dir="$ac_dir"; as_fn_mkdir_p 12006 ac_builddir=. 12007 12008case "$ac_dir" in 12009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12010*) 12011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12012 # A ".." for each directory in $ac_dir_suffix. 12013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12014 case $ac_top_builddir_sub in 12015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12017 esac ;; 12018esac 12019ac_abs_top_builddir=$ac_pwd 12020ac_abs_builddir=$ac_pwd$ac_dir_suffix 12021# for backward compatibility: 12022ac_top_builddir=$ac_top_build_prefix 12023 12024case $srcdir in 12025 .) # We are building in place. 12026 ac_srcdir=. 12027 ac_top_srcdir=$ac_top_builddir_sub 12028 ac_abs_top_srcdir=$ac_pwd ;; 12029 [\\/]* | ?:[\\/]* ) # Absolute name. 12030 ac_srcdir=$srcdir$ac_dir_suffix; 12031 ac_top_srcdir=$srcdir 12032 ac_abs_top_srcdir=$srcdir ;; 12033 *) # Relative name. 12034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12035 ac_top_srcdir=$ac_top_build_prefix$srcdir 12036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12037esac 12038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12039 12040 12041 case $ac_mode in 12042 :F) 12043 # 12044 # CONFIG_FILE 12045 # 12046 12047 case $INSTALL in 12048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12050 esac 12051 ac_MKDIR_P=$MKDIR_P 12052 case $MKDIR_P in 12053 [\\/$]* | ?:[\\/]* ) ;; 12054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12055 esac 12056_ACEOF 12057 12058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12059# If the template does not know about datarootdir, expand it. 12060# FIXME: This hack should be removed a few years after 2.60. 12061ac_datarootdir_hack=; ac_datarootdir_seen= 12062ac_sed_dataroot=' 12063/datarootdir/ { 12064 p 12065 q 12066} 12067/@datadir@/p 12068/@docdir@/p 12069/@infodir@/p 12070/@localedir@/p 12071/@mandir@/p' 12072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12073*datarootdir*) ac_datarootdir_seen=yes;; 12074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12077_ACEOF 12078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12079 ac_datarootdir_hack=' 12080 s&@datadir@&$datadir&g 12081 s&@docdir@&$docdir&g 12082 s&@infodir@&$infodir&g 12083 s&@localedir@&$localedir&g 12084 s&@mandir@&$mandir&g 12085 s&\\\${datarootdir}&$datarootdir&g' ;; 12086esac 12087_ACEOF 12088 12089# Neutralize VPATH when `$srcdir' = `.'. 12090# Shell code in configure.ac might set extrasub. 12091# FIXME: do we really want to maintain this feature? 12092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12093ac_sed_extra="$ac_vpsub 12094$extrasub 12095_ACEOF 12096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12097:t 12098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12099s|@configure_input@|$ac_sed_conf_input|;t t 12100s&@top_builddir@&$ac_top_builddir_sub&;t t 12101s&@top_build_prefix@&$ac_top_build_prefix&;t t 12102s&@srcdir@&$ac_srcdir&;t t 12103s&@abs_srcdir@&$ac_abs_srcdir&;t t 12104s&@top_srcdir@&$ac_top_srcdir&;t t 12105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12106s&@builddir@&$ac_builddir&;t t 12107s&@abs_builddir@&$ac_abs_builddir&;t t 12108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12109s&@INSTALL@&$ac_INSTALL&;t t 12110s&@MKDIR_P@&$ac_MKDIR_P&;t t 12111$ac_datarootdir_hack 12112" 12113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12115 12116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12119 "$ac_tmp/out"`; test -z "$ac_out"; } && 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12121which seems to be undefined. Please make sure it is defined" >&5 12122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12123which seems to be undefined. Please make sure it is defined" >&2;} 12124 12125 rm -f "$ac_tmp/stdin" 12126 case $ac_file in 12127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12129 esac \ 12130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12131 ;; 12132 :H) 12133 # 12134 # CONFIG_HEADER 12135 # 12136 if test x"$ac_file" != x-; then 12137 { 12138 $as_echo "/* $configure_input */" \ 12139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12140 } >"$ac_tmp/config.h" \ 12141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12144$as_echo "$as_me: $ac_file is unchanged" >&6;} 12145 else 12146 rm -f "$ac_file" 12147 mv "$ac_tmp/config.h" "$ac_file" \ 12148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12149 fi 12150 else 12151 $as_echo "/* $configure_input */" \ 12152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12153 || as_fn_error $? "could not create -" "$LINENO" 5 12154 fi 12155# Compute "$ac_file"'s index in $config_headers. 12156_am_arg="$ac_file" 12157_am_stamp_count=1 12158for _am_header in $config_headers :; do 12159 case $_am_header in 12160 $_am_arg | $_am_arg:* ) 12161 break ;; 12162 * ) 12163 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12164 esac 12165done 12166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12168 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12169 X"$_am_arg" : 'X\(//\)$' \| \ 12170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12171$as_echo X"$_am_arg" | 12172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12173 s//\1/ 12174 q 12175 } 12176 /^X\(\/\/\)[^/].*/{ 12177 s//\1/ 12178 q 12179 } 12180 /^X\(\/\/\)$/{ 12181 s//\1/ 12182 q 12183 } 12184 /^X\(\/\).*/{ 12185 s//\1/ 12186 q 12187 } 12188 s/.*/./; q'`/stamp-h$_am_stamp_count 12189 ;; 12190 12191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12192$as_echo "$as_me: executing $ac_file commands" >&6;} 12193 ;; 12194 esac 12195 12196 12197 case $ac_file$ac_mode in 12198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12199 # Older Autoconf quotes --file arguments for eval, but not when files 12200 # are listed without --file. Let's play safe and only enable the eval 12201 # if we detect the quoting. 12202 case $CONFIG_FILES in 12203 *\'*) eval set x "$CONFIG_FILES" ;; 12204 *) set x $CONFIG_FILES ;; 12205 esac 12206 shift 12207 for mf 12208 do 12209 # Strip MF so we end up with the name of the file. 12210 mf=`echo "$mf" | sed -e 's/:.*$//'` 12211 # Check whether this is an Automake generated Makefile or not. 12212 # We used to match only the files named 'Makefile.in', but 12213 # some people rename them; so instead we look at the file content. 12214 # Grep'ing the first line is not enough: some people post-process 12215 # each Makefile.in and add a new line on top of each file to say so. 12216 # Grep'ing the whole file is not good either: AIX grep has a line 12217 # limit of 2048, but all sed's we know have understand at least 4000. 12218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12219 dirpart=`$as_dirname -- "$mf" || 12220$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12221 X"$mf" : 'X\(//\)[^/]' \| \ 12222 X"$mf" : 'X\(//\)$' \| \ 12223 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12224$as_echo X"$mf" | 12225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12226 s//\1/ 12227 q 12228 } 12229 /^X\(\/\/\)[^/].*/{ 12230 s//\1/ 12231 q 12232 } 12233 /^X\(\/\/\)$/{ 12234 s//\1/ 12235 q 12236 } 12237 /^X\(\/\).*/{ 12238 s//\1/ 12239 q 12240 } 12241 s/.*/./; q'` 12242 else 12243 continue 12244 fi 12245 # Extract the definition of DEPDIR, am__include, and am__quote 12246 # from the Makefile without running 'make'. 12247 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12248 test -z "$DEPDIR" && continue 12249 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12250 test -z "$am__include" && continue 12251 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12252 # Find all dependency output files, they are included files with 12253 # $(DEPDIR) in their names. We invoke sed twice because it is the 12254 # simplest approach to changing $(DEPDIR) to its actual value in the 12255 # expansion. 12256 for file in `sed -n " 12257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12259 # Make sure the directory exists. 12260 test -f "$dirpart/$file" && continue 12261 fdir=`$as_dirname -- "$file" || 12262$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12263 X"$file" : 'X\(//\)[^/]' \| \ 12264 X"$file" : 'X\(//\)$' \| \ 12265 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12266$as_echo X"$file" | 12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12268 s//\1/ 12269 q 12270 } 12271 /^X\(\/\/\)[^/].*/{ 12272 s//\1/ 12273 q 12274 } 12275 /^X\(\/\/\)$/{ 12276 s//\1/ 12277 q 12278 } 12279 /^X\(\/\).*/{ 12280 s//\1/ 12281 q 12282 } 12283 s/.*/./; q'` 12284 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12285 # echo "creating $dirpart/$file" 12286 echo '# dummy' > "$dirpart/$file" 12287 done 12288 done 12289} 12290 ;; 12291 12292 esac 12293done # for ac_tag 12294 12295 12296as_fn_exit 0 12297_ACEOF 12298ac_clean_files=$ac_clean_files_save 12299 12300test $ac_write_fail = 0 || 12301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12302 12303 12304# configure is writing to config.log, and then calls config.status. 12305# config.status does its own redirection, appending to config.log. 12306# Unfortunately, on DOS this fails, as config.log is still kept open 12307# by configure, so config.status won't be able to write to it; its 12308# output is simply discarded. So we exec the FD to /dev/null, 12309# effectively closing config.log, so it can be properly (re)opened and 12310# appended to by config.status. When coming back to configure, we 12311# need to make the FD available again. 12312if test "$no_create" != yes; then 12313 ac_cs_success=: 12314 ac_config_status_args= 12315 test "$silent" = yes && 12316 ac_config_status_args="$ac_config_status_args --quiet" 12317 exec 5>/dev/null 12318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12319 exec 5>>config.log 12320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12321 # would make configure fail if this is the last instruction. 12322 $ac_cs_success || as_fn_exit 1 12323fi 12324if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12326$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12327fi 12328 12329