configure revision a097bd00
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for sessreg 1.0.8. 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='sessreg' 563PACKAGE_TARNAME='sessreg' 564PACKAGE_VERSION='1.0.8' 565PACKAGE_STRING='sessreg 1.0.8' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610SESSREG_LIBS 611SESSREG_CFLAGS 612LINT_FALSE 613LINT_TRUE 614LINT_FLAGS 615LINT 616AM_BACKSLASH 617AM_DEFAULT_VERBOSITY 618MAN_SUBSTS 619XORG_MAN_PAGE 620ADMIN_MAN_DIR 621DRIVER_MAN_DIR 622MISC_MAN_DIR 623FILE_MAN_DIR 624LIB_MAN_DIR 625APP_MAN_DIR 626ADMIN_MAN_SUFFIX 627DRIVER_MAN_SUFFIX 628MISC_MAN_SUFFIX 629FILE_MAN_SUFFIX 630LIB_MAN_SUFFIX 631APP_MAN_SUFFIX 632SED 633host_os 634host_vendor 635host_cpu 636host 637build_os 638build_vendor 639build_cpu 640build 641INSTALL_CMD 642PKG_CONFIG 643CHANGELOG_CMD 644STRICT_CFLAGS 645CWARNFLAGS 646BASE_CFLAGS 647MAINT 648MAINTAINER_MODE_FALSE 649MAINTAINER_MODE_TRUE 650am__fastdepCC_FALSE 651am__fastdepCC_TRUE 652CCDEPMODE 653am__nodep 654AMDEPBACKSLASH 655AMDEP_FALSE 656AMDEP_TRUE 657am__quote 658am__include 659DEPDIR 660am__untar 661am__tar 662AMTAR 663am__leading_dot 664SET_MAKE 665AWK 666mkdir_p 667MKDIR_P 668INSTALL_STRIP_PROGRAM 669STRIP 670install_sh 671MAKEINFO 672AUTOHEADER 673AUTOMAKE 674AUTOCONF 675ACLOCAL 676VERSION 677PACKAGE 678CYGPATH_W 679am__isrc 680INSTALL_DATA 681INSTALL_SCRIPT 682INSTALL_PROGRAM 683EGREP 684GREP 685CPP 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693target_alias 694host_alias 695build_alias 696LIBS 697ECHO_T 698ECHO_N 699ECHO_C 700DEFS 701mandir 702localedir 703libdir 704psdir 705pdfdir 706dvidir 707htmldir 708infodir 709docdir 710oldincludedir 711includedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734enable_largefile 735enable_dependency_tracking 736enable_maintainer_mode 737enable_selective_werror 738enable_strict_compilation 739enable_silent_rules 740with_lint 741' 742 ac_precious_vars='build_alias 743host_alias 744target_alias 745CC 746CFLAGS 747LDFLAGS 748LIBS 749CPPFLAGS 750CPP 751PKG_CONFIG 752LINT 753LINT_FLAGS 754SESSREG_CFLAGS 755SESSREG_LIBS' 756 757 758# Initialize some variables set by options. 759ac_init_help= 760ac_init_version=false 761ac_unrecognized_opts= 762ac_unrecognized_sep= 763# The variables have the same names as the options, with 764# dashes changed to underlines. 765cache_file=/dev/null 766exec_prefix=NONE 767no_create= 768no_recursion= 769prefix=NONE 770program_prefix=NONE 771program_suffix=NONE 772program_transform_name=s,x,x, 773silent= 774site= 775srcdir= 776verbose= 777x_includes=NONE 778x_libraries=NONE 779 780# Installation directory options. 781# These are left unexpanded so users can "make install exec_prefix=/foo" 782# and all the variables that are supposed to be based on exec_prefix 783# by default will actually change. 784# Use braces instead of parens because sh, perl, etc. also accept them. 785# (The list follows the same order as the GNU Coding Standards.) 786bindir='${exec_prefix}/bin' 787sbindir='${exec_prefix}/sbin' 788libexecdir='${exec_prefix}/libexec' 789datarootdir='${prefix}/share' 790datadir='${datarootdir}' 791sysconfdir='${prefix}/etc' 792sharedstatedir='${prefix}/com' 793localstatedir='${prefix}/var' 794includedir='${prefix}/include' 795oldincludedir='/usr/include' 796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 797infodir='${datarootdir}/info' 798htmldir='${docdir}' 799dvidir='${docdir}' 800pdfdir='${docdir}' 801psdir='${docdir}' 802libdir='${exec_prefix}/lib' 803localedir='${datarootdir}/locale' 804mandir='${datarootdir}/man' 805 806ac_prev= 807ac_dashdash= 808for ac_option 809do 810 # If the previous option needs an argument, assign it. 811 if test -n "$ac_prev"; then 812 eval $ac_prev=\$ac_option 813 ac_prev= 814 continue 815 fi 816 817 case $ac_option in 818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 819 *=) ac_optarg= ;; 820 *) ac_optarg=yes ;; 821 esac 822 823 # Accept the important Cygnus configure options, so we can diagnose typos. 824 825 case $ac_dashdash$ac_option in 826 --) 827 ac_dashdash=yes ;; 828 829 -bindir | --bindir | --bindi | --bind | --bin | --bi) 830 ac_prev=bindir ;; 831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 832 bindir=$ac_optarg ;; 833 834 -build | --build | --buil | --bui | --bu) 835 ac_prev=build_alias ;; 836 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 837 build_alias=$ac_optarg ;; 838 839 -cache-file | --cache-file | --cache-fil | --cache-fi \ 840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 841 ac_prev=cache_file ;; 842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 844 cache_file=$ac_optarg ;; 845 846 --config-cache | -C) 847 cache_file=config.cache ;; 848 849 -datadir | --datadir | --datadi | --datad) 850 ac_prev=datadir ;; 851 -datadir=* | --datadir=* | --datadi=* | --datad=*) 852 datadir=$ac_optarg ;; 853 854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 855 | --dataroo | --dataro | --datar) 856 ac_prev=datarootdir ;; 857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 859 datarootdir=$ac_optarg ;; 860 861 -disable-* | --disable-*) 862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 865 as_fn_error $? "invalid feature name: $ac_useropt" 866 ac_useropt_orig=$ac_useropt 867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 868 case $ac_user_opts in 869 *" 870"enable_$ac_useropt" 871"*) ;; 872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 873 ac_unrecognized_sep=', ';; 874 esac 875 eval enable_$ac_useropt=no ;; 876 877 -docdir | --docdir | --docdi | --doc | --do) 878 ac_prev=docdir ;; 879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 880 docdir=$ac_optarg ;; 881 882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 883 ac_prev=dvidir ;; 884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 885 dvidir=$ac_optarg ;; 886 887 -enable-* | --enable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=\$ac_optarg ;; 902 903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 905 | --exec | --exe | --ex) 906 ac_prev=exec_prefix ;; 907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 909 | --exec=* | --exe=* | --ex=*) 910 exec_prefix=$ac_optarg ;; 911 912 -gas | --gas | --ga | --g) 913 # Obsolete; use --with-gas. 914 with_gas=yes ;; 915 916 -help | --help | --hel | --he | -h) 917 ac_init_help=long ;; 918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 919 ac_init_help=recursive ;; 920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 921 ac_init_help=short ;; 922 923 -host | --host | --hos | --ho) 924 ac_prev=host_alias ;; 925 -host=* | --host=* | --hos=* | --ho=*) 926 host_alias=$ac_optarg ;; 927 928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 929 ac_prev=htmldir ;; 930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 931 | --ht=*) 932 htmldir=$ac_optarg ;; 933 934 -includedir | --includedir | --includedi | --included | --include \ 935 | --includ | --inclu | --incl | --inc) 936 ac_prev=includedir ;; 937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 938 | --includ=* | --inclu=* | --incl=* | --inc=*) 939 includedir=$ac_optarg ;; 940 941 -infodir | --infodir | --infodi | --infod | --info | --inf) 942 ac_prev=infodir ;; 943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 944 infodir=$ac_optarg ;; 945 946 -libdir | --libdir | --libdi | --libd) 947 ac_prev=libdir ;; 948 -libdir=* | --libdir=* | --libdi=* | --libd=*) 949 libdir=$ac_optarg ;; 950 951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 952 | --libexe | --libex | --libe) 953 ac_prev=libexecdir ;; 954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 955 | --libexe=* | --libex=* | --libe=*) 956 libexecdir=$ac_optarg ;; 957 958 -localedir | --localedir | --localedi | --localed | --locale) 959 ac_prev=localedir ;; 960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 961 localedir=$ac_optarg ;; 962 963 -localstatedir | --localstatedir | --localstatedi | --localstated \ 964 | --localstate | --localstat | --localsta | --localst | --locals) 965 ac_prev=localstatedir ;; 966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 968 localstatedir=$ac_optarg ;; 969 970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 971 ac_prev=mandir ;; 972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 973 mandir=$ac_optarg ;; 974 975 -nfp | --nfp | --nf) 976 # Obsolete; use --without-fp. 977 with_fp=no ;; 978 979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 980 | --no-cr | --no-c | -n) 981 no_create=yes ;; 982 983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 985 no_recursion=yes ;; 986 987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 989 | --oldin | --oldi | --old | --ol | --o) 990 ac_prev=oldincludedir ;; 991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 994 oldincludedir=$ac_optarg ;; 995 996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 997 ac_prev=prefix ;; 998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 999 prefix=$ac_optarg ;; 1000 1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1002 | --program-pre | --program-pr | --program-p) 1003 ac_prev=program_prefix ;; 1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1006 program_prefix=$ac_optarg ;; 1007 1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1009 | --program-suf | --program-su | --program-s) 1010 ac_prev=program_suffix ;; 1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1013 program_suffix=$ac_optarg ;; 1014 1015 -program-transform-name | --program-transform-name \ 1016 | --program-transform-nam | --program-transform-na \ 1017 | --program-transform-n | --program-transform- \ 1018 | --program-transform | --program-transfor \ 1019 | --program-transfo | --program-transf \ 1020 | --program-trans | --program-tran \ 1021 | --progr-tra | --program-tr | --program-t) 1022 ac_prev=program_transform_name ;; 1023 -program-transform-name=* | --program-transform-name=* \ 1024 | --program-transform-nam=* | --program-transform-na=* \ 1025 | --program-transform-n=* | --program-transform-=* \ 1026 | --program-transform=* | --program-transfor=* \ 1027 | --program-transfo=* | --program-transf=* \ 1028 | --program-trans=* | --program-tran=* \ 1029 | --progr-tra=* | --program-tr=* | --program-t=*) 1030 program_transform_name=$ac_optarg ;; 1031 1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1033 ac_prev=pdfdir ;; 1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1035 pdfdir=$ac_optarg ;; 1036 1037 -psdir | --psdir | --psdi | --psd | --ps) 1038 ac_prev=psdir ;; 1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1040 psdir=$ac_optarg ;; 1041 1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1043 | -silent | --silent | --silen | --sile | --sil) 1044 silent=yes ;; 1045 1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1047 ac_prev=sbindir ;; 1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1049 | --sbi=* | --sb=*) 1050 sbindir=$ac_optarg ;; 1051 1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1054 | --sharedst | --shareds | --shared | --share | --shar \ 1055 | --sha | --sh) 1056 ac_prev=sharedstatedir ;; 1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1060 | --sha=* | --sh=*) 1061 sharedstatedir=$ac_optarg ;; 1062 1063 -site | --site | --sit) 1064 ac_prev=site ;; 1065 -site=* | --site=* | --sit=*) 1066 site=$ac_optarg ;; 1067 1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1069 ac_prev=srcdir ;; 1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1071 srcdir=$ac_optarg ;; 1072 1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1074 | --syscon | --sysco | --sysc | --sys | --sy) 1075 ac_prev=sysconfdir ;; 1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1078 sysconfdir=$ac_optarg ;; 1079 1080 -target | --target | --targe | --targ | --tar | --ta | --t) 1081 ac_prev=target_alias ;; 1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1083 target_alias=$ac_optarg ;; 1084 1085 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1086 verbose=yes ;; 1087 1088 -version | --version | --versio | --versi | --vers | -V) 1089 ac_init_version=: ;; 1090 1091 -with-* | --with-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error $? "invalid package name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"with_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval with_$ac_useropt=\$ac_optarg ;; 1106 1107 -without-* | --without-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid package name: $ac_useropt" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"with_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval with_$ac_useropt=no ;; 1122 1123 --x) 1124 # Obsolete; use --with-x. 1125 with_x=yes ;; 1126 1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1128 | --x-incl | --x-inc | --x-in | --x-i) 1129 ac_prev=x_includes ;; 1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1132 x_includes=$ac_optarg ;; 1133 1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1136 ac_prev=x_libraries ;; 1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1139 x_libraries=$ac_optarg ;; 1140 1141 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1142Try \`$0 --help' for more information" 1143 ;; 1144 1145 *=*) 1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1147 # Reject names that are not valid shell variable names. 1148 case $ac_envvar in #( 1149 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1151 esac 1152 eval $ac_envvar=\$ac_optarg 1153 export $ac_envvar ;; 1154 1155 *) 1156 # FIXME: should be removed in autoconf 3.0. 1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1161 ;; 1162 1163 esac 1164done 1165 1166if test -n "$ac_prev"; then 1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1168 as_fn_error $? "missing argument to $ac_option" 1169fi 1170 1171if test -n "$ac_unrecognized_opts"; then 1172 case $enable_option_checking in 1173 no) ;; 1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1176 esac 1177fi 1178 1179# Check all directory arguments for consistency. 1180for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1181 datadir sysconfdir sharedstatedir localstatedir includedir \ 1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1183 libdir localedir mandir 1184do 1185 eval ac_val=\$$ac_var 1186 # Remove trailing slashes. 1187 case $ac_val in 1188 */ ) 1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1190 eval $ac_var=\$ac_val;; 1191 esac 1192 # Be sure to have absolute directory names. 1193 case $ac_val in 1194 [\\/$]* | ?:[\\/]* ) continue;; 1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1196 esac 1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1198done 1199 1200# There might be people who depend on the old broken behavior: `$host' 1201# used to hold the argument of --host etc. 1202# FIXME: To remove some day. 1203build=$build_alias 1204host=$host_alias 1205target=$target_alias 1206 1207# FIXME: To remove some day. 1208if test "x$host_alias" != x; then 1209 if test "x$build_alias" = x; then 1210 cross_compiling=maybe 1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1212 If a cross compiler is detected then cross compile mode will be used" >&2 1213 elif test "x$build_alias" != "x$host_alias"; then 1214 cross_compiling=yes 1215 fi 1216fi 1217 1218ac_tool_prefix= 1219test -n "$host_alias" && ac_tool_prefix=$host_alias- 1220 1221test "$silent" = yes && exec 6>/dev/null 1222 1223 1224ac_pwd=`pwd` && test -n "$ac_pwd" && 1225ac_ls_di=`ls -di .` && 1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1227 as_fn_error $? "working directory cannot be determined" 1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1229 as_fn_error $? "pwd does not report name of working directory" 1230 1231 1232# Find the source files, if location was not specified. 1233if test -z "$srcdir"; then 1234 ac_srcdir_defaulted=yes 1235 # Try the directory containing this script, then the parent directory. 1236 ac_confdir=`$as_dirname -- "$as_myself" || 1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1238 X"$as_myself" : 'X\(//\)[^/]' \| \ 1239 X"$as_myself" : 'X\(//\)$' \| \ 1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1241$as_echo X"$as_myself" | 1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\/\)[^/].*/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\).*/{ 1255 s//\1/ 1256 q 1257 } 1258 s/.*/./; q'` 1259 srcdir=$ac_confdir 1260 if test ! -r "$srcdir/$ac_unique_file"; then 1261 srcdir=.. 1262 fi 1263else 1264 ac_srcdir_defaulted=no 1265fi 1266if test ! -r "$srcdir/$ac_unique_file"; then 1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1269fi 1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1271ac_abs_confdir=`( 1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1273 pwd)` 1274# When building in place, set srcdir=. 1275if test "$ac_abs_confdir" = "$ac_pwd"; then 1276 srcdir=. 1277fi 1278# Remove unnecessary trailing slashes from srcdir. 1279# Double slashes in file names in object file debugging info 1280# mess up M-x gdb in Emacs. 1281case $srcdir in 1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1283esac 1284for ac_var in $ac_precious_vars; do 1285 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1286 eval ac_env_${ac_var}_value=\$${ac_var} 1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1288 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1289done 1290 1291# 1292# Report the --help message. 1293# 1294if test "$ac_init_help" = "long"; then 1295 # Omit some internal or obsolete options to make the list less imposing. 1296 # This message is too long to be a string in the A/UX 3.1 sh. 1297 cat <<_ACEOF 1298\`configure' configures sessreg 1.0.8 to adapt to many kinds of systems. 1299 1300Usage: $0 [OPTION]... [VAR=VALUE]... 1301 1302To assign environment variables (e.g., CC, CFLAGS...), specify them as 1303VAR=VALUE. See below for descriptions of some of the useful variables. 1304 1305Defaults for the options are specified in brackets. 1306 1307Configuration: 1308 -h, --help display this help and exit 1309 --help=short display options specific to this package 1310 --help=recursive display the short help of all the included packages 1311 -V, --version display version information and exit 1312 -q, --quiet, --silent do not print \`checking ...' messages 1313 --cache-file=FILE cache test results in FILE [disabled] 1314 -C, --config-cache alias for \`--cache-file=config.cache' 1315 -n, --no-create do not create output files 1316 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1317 1318Installation directories: 1319 --prefix=PREFIX install architecture-independent files in PREFIX 1320 [$ac_default_prefix] 1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1322 [PREFIX] 1323 1324By default, \`make install' will install all the files in 1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1326an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1327for instance \`--prefix=\$HOME'. 1328 1329For better control, use the options below. 1330 1331Fine tuning of the installation directories: 1332 --bindir=DIR user executables [EPREFIX/bin] 1333 --sbindir=DIR system admin executables [EPREFIX/sbin] 1334 --libexecdir=DIR program executables [EPREFIX/libexec] 1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1338 --libdir=DIR object code libraries [EPREFIX/lib] 1339 --includedir=DIR C header files [PREFIX/include] 1340 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1343 --infodir=DIR info documentation [DATAROOTDIR/info] 1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1345 --mandir=DIR man documentation [DATAROOTDIR/man] 1346 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg] 1347 --htmldir=DIR html documentation [DOCDIR] 1348 --dvidir=DIR dvi documentation [DOCDIR] 1349 --pdfdir=DIR pdf documentation [DOCDIR] 1350 --psdir=DIR ps documentation [DOCDIR] 1351_ACEOF 1352 1353 cat <<\_ACEOF 1354 1355Program names: 1356 --program-prefix=PREFIX prepend PREFIX to installed program names 1357 --program-suffix=SUFFIX append SUFFIX to installed program names 1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1359 1360System types: 1361 --build=BUILD configure for building on BUILD [guessed] 1362 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1363_ACEOF 1364fi 1365 1366if test -n "$ac_init_help"; then 1367 case $ac_init_help in 1368 short | recursive ) echo "Configuration of sessreg 1.0.8:";; 1369 esac 1370 cat <<\_ACEOF 1371 1372Optional Features: 1373 --disable-option-checking ignore unrecognized --enable/--with options 1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1376 --disable-largefile omit support for large files 1377 --disable-dependency-tracking speeds up one-time build 1378 --enable-dependency-tracking do not reject slow dependency extractors 1379 --enable-maintainer-mode enable make rules and dependencies not useful 1380 (and sometimes confusing) to the casual installer 1381 --disable-selective-werror 1382 Turn off selective compiler errors. (default: 1383 enabled) 1384 --enable-strict-compilation 1385 Enable all warnings from compiler and make them 1386 errors (default: disabled) 1387 --enable-silent-rules less verbose build output (undo: `make V=1') 1388 --disable-silent-rules verbose build output (undo: `make V=0') 1389 1390Optional Packages: 1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1393 --with-lint Use a lint-style source code checker (default: 1394 disabled) 1395 1396Some influential environment variables: 1397 CC C compiler command 1398 CFLAGS C compiler flags 1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1400 nonstandard directory <lib dir> 1401 LIBS libraries to pass to the linker, e.g. -l<library> 1402 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1403 you have headers in a nonstandard directory <include dir> 1404 CPP C preprocessor 1405 PKG_CONFIG path to pkg-config utility 1406 LINT Path to a lint-style command 1407 LINT_FLAGS Flags for the lint-style command 1408 SESSREG_CFLAGS 1409 C compiler flags for SESSREG, overriding pkg-config 1410 SESSREG_LIBS 1411 linker flags for SESSREG, overriding pkg-config 1412 1413Use these variables to override the choices made by `configure' or to help 1414it to find libraries and programs with nonstandard names/locations. 1415 1416Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1417_ACEOF 1418ac_status=$? 1419fi 1420 1421if test "$ac_init_help" = "recursive"; then 1422 # If there are subdirs, report their specific --help. 1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1424 test -d "$ac_dir" || 1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1426 continue 1427 ac_builddir=. 1428 1429case "$ac_dir" in 1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1431*) 1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1433 # A ".." for each directory in $ac_dir_suffix. 1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1435 case $ac_top_builddir_sub in 1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1438 esac ;; 1439esac 1440ac_abs_top_builddir=$ac_pwd 1441ac_abs_builddir=$ac_pwd$ac_dir_suffix 1442# for backward compatibility: 1443ac_top_builddir=$ac_top_build_prefix 1444 1445case $srcdir in 1446 .) # We are building in place. 1447 ac_srcdir=. 1448 ac_top_srcdir=$ac_top_builddir_sub 1449 ac_abs_top_srcdir=$ac_pwd ;; 1450 [\\/]* | ?:[\\/]* ) # Absolute name. 1451 ac_srcdir=$srcdir$ac_dir_suffix; 1452 ac_top_srcdir=$srcdir 1453 ac_abs_top_srcdir=$srcdir ;; 1454 *) # Relative name. 1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1456 ac_top_srcdir=$ac_top_build_prefix$srcdir 1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1458esac 1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1460 1461 cd "$ac_dir" || { ac_status=$?; continue; } 1462 # Check for guested configure. 1463 if test -f "$ac_srcdir/configure.gnu"; then 1464 echo && 1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1466 elif test -f "$ac_srcdir/configure"; then 1467 echo && 1468 $SHELL "$ac_srcdir/configure" --help=recursive 1469 else 1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1471 fi || ac_status=$? 1472 cd "$ac_pwd" || { ac_status=$?; break; } 1473 done 1474fi 1475 1476test -n "$ac_init_help" && exit $ac_status 1477if $ac_init_version; then 1478 cat <<\_ACEOF 1479sessreg configure 1.0.8 1480generated by GNU Autoconf 2.68 1481 1482Copyright (C) 2010 Free Software Foundation, Inc. 1483This configure script is free software; the Free Software Foundation 1484gives unlimited permission to copy, distribute and modify it. 1485_ACEOF 1486 exit 1487fi 1488 1489## ------------------------ ## 1490## Autoconf initialization. ## 1491## ------------------------ ## 1492 1493# ac_fn_c_try_compile LINENO 1494# -------------------------- 1495# Try to compile conftest.$ac_ext, and return whether this succeeded. 1496ac_fn_c_try_compile () 1497{ 1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1499 rm -f conftest.$ac_objext 1500 if { { ac_try="$ac_compile" 1501case "(($ac_try" in 1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1503 *) ac_try_echo=$ac_try;; 1504esac 1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1506$as_echo "$ac_try_echo"; } >&5 1507 (eval "$ac_compile") 2>conftest.err 1508 ac_status=$? 1509 if test -s conftest.err; then 1510 grep -v '^ *+' conftest.err >conftest.er1 1511 cat conftest.er1 >&5 1512 mv -f conftest.er1 conftest.err 1513 fi 1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1515 test $ac_status = 0; } && { 1516 test -z "$ac_c_werror_flag" || 1517 test ! -s conftest.err 1518 } && test -s conftest.$ac_objext; then : 1519 ac_retval=0 1520else 1521 $as_echo "$as_me: failed program was:" >&5 1522sed 's/^/| /' conftest.$ac_ext >&5 1523 1524 ac_retval=1 1525fi 1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1527 as_fn_set_status $ac_retval 1528 1529} # ac_fn_c_try_compile 1530 1531# ac_fn_c_try_cpp LINENO 1532# ---------------------- 1533# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_cpp () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 if { { ac_try="$ac_cpp conftest.$ac_ext" 1538case "(($ac_try" in 1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1540 *) ac_try_echo=$ac_try;; 1541esac 1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1543$as_echo "$ac_try_echo"; } >&5 1544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1545 ac_status=$? 1546 if test -s conftest.err; then 1547 grep -v '^ *+' conftest.err >conftest.er1 1548 cat conftest.er1 >&5 1549 mv -f conftest.er1 conftest.err 1550 fi 1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1552 test $ac_status = 0; } > conftest.i && { 1553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1554 test ! -s conftest.err 1555 }; then : 1556 ac_retval=0 1557else 1558 $as_echo "$as_me: failed program was:" >&5 1559sed 's/^/| /' conftest.$ac_ext >&5 1560 1561 ac_retval=1 1562fi 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 as_fn_set_status $ac_retval 1565 1566} # ac_fn_c_try_cpp 1567 1568# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1569# ------------------------------------------------------- 1570# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1571# the include files in INCLUDES and setting the cache variable VAR 1572# accordingly. 1573ac_fn_c_check_header_mongrel () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 if eval \${$3+:} false; then : 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1578$as_echo_n "checking for $2... " >&6; } 1579if eval \${$3+:} false; then : 1580 $as_echo_n "(cached) " >&6 1581fi 1582eval ac_res=\$$3 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1584$as_echo "$ac_res" >&6; } 1585else 1586 # Is the header compilable? 1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1588$as_echo_n "checking $2 usability... " >&6; } 1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590/* end confdefs.h. */ 1591$4 1592#include <$2> 1593_ACEOF 1594if ac_fn_c_try_compile "$LINENO"; then : 1595 ac_header_compiler=yes 1596else 1597 ac_header_compiler=no 1598fi 1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1601$as_echo "$ac_header_compiler" >&6; } 1602 1603# Is the header present? 1604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1605$as_echo_n "checking $2 presence... " >&6; } 1606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1607/* end confdefs.h. */ 1608#include <$2> 1609_ACEOF 1610if ac_fn_c_try_cpp "$LINENO"; then : 1611 ac_header_preproc=yes 1612else 1613 ac_header_preproc=no 1614fi 1615rm -f conftest.err conftest.i conftest.$ac_ext 1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1617$as_echo "$ac_header_preproc" >&6; } 1618 1619# So? What about this header? 1620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1621 yes:no: ) 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1623$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 ;; 1627 no:yes:* ) 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1629$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1631$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1633$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1635$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1638( $as_echo "## ---------------------------------------------------------------------- ## 1639## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1640## ---------------------------------------------------------------------- ##" 1641 ) | sed "s/^/$as_me: WARNING: /" >&2 1642 ;; 1643esac 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1645$as_echo_n "checking for $2... " >&6; } 1646if eval \${$3+:} false; then : 1647 $as_echo_n "(cached) " >&6 1648else 1649 eval "$3=\$ac_header_compiler" 1650fi 1651eval ac_res=\$$3 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653$as_echo "$ac_res" >&6; } 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_mongrel 1658 1659# ac_fn_c_try_run LINENO 1660# ---------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1662# that executables *can* be run. 1663ac_fn_c_try_run () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>&5 1674 ac_status=$? 1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1677 { { case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_try") 2>&5 1684 ac_status=$? 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; }; }; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: program exited with status $ac_status" >&5 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=$ac_status 1694fi 1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_run 1700 1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists and can be compiled using the include files in 1704# INCLUDES, setting the cache variable VAR accordingly. 1705ac_fn_c_check_header_compile () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709$as_echo_n "checking for $2... " >&6; } 1710if eval \${$3+:} false; then : 1711 $as_echo_n "(cached) " >&6 1712else 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715$4 1716#include <$2> 1717_ACEOF 1718if ac_fn_c_try_compile "$LINENO"; then : 1719 eval "$3=yes" 1720else 1721 eval "$3=no" 1722fi 1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1724fi 1725eval ac_res=\$$3 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727$as_echo "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_header_compile 1731 1732# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1733# --------------------------------------------- 1734# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1735# accordingly. 1736ac_fn_c_check_decl () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 as_decl_name=`echo $2|sed 's/ *(.*//'` 1740 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1742$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748$4 1749int 1750main () 1751{ 1752#ifndef $as_decl_name 1753#ifdef __cplusplus 1754 (void) $as_decl_use; 1755#else 1756 (void) $as_decl_name; 1757#endif 1758#endif 1759 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764if ac_fn_c_try_compile "$LINENO"; then : 1765 eval "$3=yes" 1766else 1767 eval "$3=no" 1768fi 1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1770fi 1771eval ac_res=\$$3 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773$as_echo "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776} # ac_fn_c_check_decl 1777 1778# ac_fn_c_try_link LINENO 1779# ----------------------- 1780# Try to link conftest.$ac_ext, and return whether this succeeded. 1781ac_fn_c_try_link () 1782{ 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 rm -f conftest.$ac_objext conftest$ac_exeext 1785 if { { ac_try="$ac_link" 1786case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789esac 1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791$as_echo "$ac_try_echo"; } >&5 1792 (eval "$ac_link") 2>conftest.err 1793 ac_status=$? 1794 if test -s conftest.err; then 1795 grep -v '^ *+' conftest.err >conftest.er1 1796 cat conftest.er1 >&5 1797 mv -f conftest.er1 conftest.err 1798 fi 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { 1801 test -z "$ac_c_werror_flag" || 1802 test ! -s conftest.err 1803 } && test -s conftest$ac_exeext && { 1804 test "$cross_compiling" = yes || 1805 $as_test_x conftest$ac_exeext 1806 }; then : 1807 ac_retval=0 1808else 1809 $as_echo "$as_me: failed program was:" >&5 1810sed 's/^/| /' conftest.$ac_ext >&5 1811 1812 ac_retval=1 1813fi 1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1816 # interfere with the next link command; also delete a directory that is 1817 # left behind by Apple's compiler. We do this before executing the actions. 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_link 1823 1824# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1825# ---------------------------------------------------- 1826# Tries to find if the field MEMBER exists in type AGGR, after including 1827# INCLUDES, setting cache variable VAR accordingly. 1828ac_fn_c_check_member () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1832$as_echo_n "checking for $2.$3... " >&6; } 1833if eval \${$4+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838$5 1839int 1840main () 1841{ 1842static $2 ac_aggr; 1843if (ac_aggr.$3) 1844return 0; 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_compile "$LINENO"; then : 1850 eval "$4=yes" 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$5 1855int 1856main () 1857{ 1858static $2 ac_aggr; 1859if (sizeof ac_aggr.$3) 1860return 0; 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO"; then : 1866 eval "$4=yes" 1867else 1868 eval "$4=no" 1869fi 1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1873fi 1874eval ac_res=\$$4 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_member 1880 1881# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1882# ------------------------------------------- 1883# Tests whether TYPE exists after having included INCLUDES, setting cache 1884# variable VAR accordingly. 1885ac_fn_c_check_type () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 eval "$3=no" 1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895/* end confdefs.h. */ 1896$4 1897int 1898main () 1899{ 1900if (sizeof ($2)) 1901 return 0; 1902 ; 1903 return 0; 1904} 1905_ACEOF 1906if ac_fn_c_try_compile "$LINENO"; then : 1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1908/* end confdefs.h. */ 1909$4 1910int 1911main () 1912{ 1913if (sizeof (($2))) 1914 return 0; 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_compile "$LINENO"; then : 1920 1921else 1922 eval "$3=yes" 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925fi 1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1927fi 1928eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930$as_echo "$ac_res" >&6; } 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932 1933} # ac_fn_c_check_type 1934 1935# ac_fn_c_check_func LINENO FUNC VAR 1936# ---------------------------------- 1937# Tests whether FUNC exists, setting the cache variable VAR accordingly 1938ac_fn_c_check_func () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1942$as_echo_n "checking for $2... " >&6; } 1943if eval \${$3+:} false; then : 1944 $as_echo_n "(cached) " >&6 1945else 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1950#define $2 innocuous_$2 1951 1952/* System header to define __stub macros and hopefully few prototypes, 1953 which can conflict with char $2 (); below. 1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1955 <limits.h> exists even on freestanding compilers. */ 1956 1957#ifdef __STDC__ 1958# include <limits.h> 1959#else 1960# include <assert.h> 1961#endif 1962 1963#undef $2 1964 1965/* Override any GCC internal prototype to avoid an error. 1966 Use char because int might match the return type of a GCC 1967 builtin and then its argument prototype would still apply. */ 1968#ifdef __cplusplus 1969extern "C" 1970#endif 1971char $2 (); 1972/* The GNU C library defines this for functions which it implements 1973 to always fail with ENOSYS. Some functions are actually named 1974 something starting with __ and the normal name is an alias. */ 1975#if defined __stub_$2 || defined __stub___$2 1976choke me 1977#endif 1978 1979int 1980main () 1981{ 1982return $2 (); 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_link "$LINENO"; then : 1988 eval "$3=yes" 1989else 1990 eval "$3=no" 1991fi 1992rm -f core conftest.err conftest.$ac_objext \ 1993 conftest$ac_exeext conftest.$ac_ext 1994fi 1995eval ac_res=\$$3 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1997$as_echo "$ac_res" >&6; } 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1999 2000} # ac_fn_c_check_func 2001cat >config.log <<_ACEOF 2002This file contains any messages produced by compilers while 2003running configure, to aid debugging if configure makes a mistake. 2004 2005It was created by sessreg $as_me 1.0.8, which was 2006generated by GNU Autoconf 2.68. Invocation command line was 2007 2008 $ $0 $@ 2009 2010_ACEOF 2011exec 5>>config.log 2012{ 2013cat <<_ASUNAME 2014## --------- ## 2015## Platform. ## 2016## --------- ## 2017 2018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2019uname -m = `(uname -m) 2>/dev/null || echo unknown` 2020uname -r = `(uname -r) 2>/dev/null || echo unknown` 2021uname -s = `(uname -s) 2>/dev/null || echo unknown` 2022uname -v = `(uname -v) 2>/dev/null || echo unknown` 2023 2024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2025/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2026 2027/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2028/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2030/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2031/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2032/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2033/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2034 2035_ASUNAME 2036 2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 $as_echo "PATH: $as_dir" 2043 done 2044IFS=$as_save_IFS 2045 2046} >&5 2047 2048cat >&5 <<_ACEOF 2049 2050 2051## ----------- ## 2052## Core tests. ## 2053## ----------- ## 2054 2055_ACEOF 2056 2057 2058# Keep a trace of the command line. 2059# Strip out --no-create and --no-recursion so they do not pile up. 2060# Strip out --silent because we don't want to record it for future runs. 2061# Also quote any args containing shell meta-characters. 2062# Make two passes to allow for proper duplicate-argument suppression. 2063ac_configure_args= 2064ac_configure_args0= 2065ac_configure_args1= 2066ac_must_keep_next=false 2067for ac_pass in 1 2 2068do 2069 for ac_arg 2070 do 2071 case $ac_arg in 2072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2074 | -silent | --silent | --silen | --sile | --sil) 2075 continue ;; 2076 *\'*) 2077 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2078 esac 2079 case $ac_pass in 2080 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2081 2) 2082 as_fn_append ac_configure_args1 " '$ac_arg'" 2083 if test $ac_must_keep_next = true; then 2084 ac_must_keep_next=false # Got value, back to normal. 2085 else 2086 case $ac_arg in 2087 *=* | --config-cache | -C | -disable-* | --disable-* \ 2088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2090 | -with-* | --with-* | -without-* | --without-* | --x) 2091 case "$ac_configure_args0 " in 2092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2093 esac 2094 ;; 2095 -* ) ac_must_keep_next=true ;; 2096 esac 2097 fi 2098 as_fn_append ac_configure_args " '$ac_arg'" 2099 ;; 2100 esac 2101 done 2102done 2103{ ac_configure_args0=; unset ac_configure_args0;} 2104{ ac_configure_args1=; unset ac_configure_args1;} 2105 2106# When interrupted or exit'd, cleanup temporary files, and complete 2107# config.log. We remove comments because anyway the quotes in there 2108# would cause problems or look ugly. 2109# WARNING: Use '\'' to represent an apostrophe within the trap. 2110# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2111trap 'exit_status=$? 2112 # Save into config.log some information that might help in debugging. 2113 { 2114 echo 2115 2116 $as_echo "## ---------------- ## 2117## Cache variables. ## 2118## ---------------- ##" 2119 echo 2120 # The following way of writing the cache mishandles newlines in values, 2121( 2122 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2123 eval ac_val=\$$ac_var 2124 case $ac_val in #( 2125 *${as_nl}*) 2126 case $ac_var in #( 2127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2128$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2129 esac 2130 case $ac_var in #( 2131 _ | IFS | as_nl) ;; #( 2132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2133 *) { eval $ac_var=; unset $ac_var;} ;; 2134 esac ;; 2135 esac 2136 done 2137 (set) 2>&1 | 2138 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2139 *${as_nl}ac_space=\ *) 2140 sed -n \ 2141 "s/'\''/'\''\\\\'\'''\''/g; 2142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2143 ;; #( 2144 *) 2145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2146 ;; 2147 esac | 2148 sort 2149) 2150 echo 2151 2152 $as_echo "## ----------------- ## 2153## Output variables. ## 2154## ----------------- ##" 2155 echo 2156 for ac_var in $ac_subst_vars 2157 do 2158 eval ac_val=\$$ac_var 2159 case $ac_val in 2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2161 esac 2162 $as_echo "$ac_var='\''$ac_val'\''" 2163 done | sort 2164 echo 2165 2166 if test -n "$ac_subst_files"; then 2167 $as_echo "## ------------------- ## 2168## File substitutions. ## 2169## ------------------- ##" 2170 echo 2171 for ac_var in $ac_subst_files 2172 do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in 2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2176 esac 2177 $as_echo "$ac_var='\''$ac_val'\''" 2178 done | sort 2179 echo 2180 fi 2181 2182 if test -s confdefs.h; then 2183 $as_echo "## ----------- ## 2184## confdefs.h. ## 2185## ----------- ##" 2186 echo 2187 cat confdefs.h 2188 echo 2189 fi 2190 test "$ac_signal" != 0 && 2191 $as_echo "$as_me: caught signal $ac_signal" 2192 $as_echo "$as_me: exit $exit_status" 2193 } >&5 2194 rm -f core *.core core.conftest.* && 2195 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2196 exit $exit_status 2197' 0 2198for ac_signal in 1 2 13 15; do 2199 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2200done 2201ac_signal=0 2202 2203# confdefs.h avoids OS command line length limits that DEFS can exceed. 2204rm -f -r conftest* confdefs.h 2205 2206$as_echo "/* confdefs.h */" > confdefs.h 2207 2208# Predefined preprocessor variables. 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_NAME "$PACKAGE_NAME" 2212_ACEOF 2213 2214cat >>confdefs.h <<_ACEOF 2215#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2216_ACEOF 2217 2218cat >>confdefs.h <<_ACEOF 2219#define PACKAGE_VERSION "$PACKAGE_VERSION" 2220_ACEOF 2221 2222cat >>confdefs.h <<_ACEOF 2223#define PACKAGE_STRING "$PACKAGE_STRING" 2224_ACEOF 2225 2226cat >>confdefs.h <<_ACEOF 2227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2228_ACEOF 2229 2230cat >>confdefs.h <<_ACEOF 2231#define PACKAGE_URL "$PACKAGE_URL" 2232_ACEOF 2233 2234 2235# Let the site file select an alternate cache file if it wants to. 2236# Prefer an explicitly selected file to automatically selected ones. 2237ac_site_file1=NONE 2238ac_site_file2=NONE 2239if test -n "$CONFIG_SITE"; then 2240 # We do not want a PATH search for config.site. 2241 case $CONFIG_SITE in #(( 2242 -*) ac_site_file1=./$CONFIG_SITE;; 2243 */*) ac_site_file1=$CONFIG_SITE;; 2244 *) ac_site_file1=./$CONFIG_SITE;; 2245 esac 2246elif test "x$prefix" != xNONE; then 2247 ac_site_file1=$prefix/share/config.site 2248 ac_site_file2=$prefix/etc/config.site 2249else 2250 ac_site_file1=$ac_default_prefix/share/config.site 2251 ac_site_file2=$ac_default_prefix/etc/config.site 2252fi 2253for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2254do 2255 test "x$ac_site_file" = xNONE && continue 2256 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2258$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2259 sed 's/^/| /' "$ac_site_file" >&5 2260 . "$ac_site_file" \ 2261 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2263as_fn_error $? "failed to load site script $ac_site_file 2264See \`config.log' for more details" "$LINENO" 5; } 2265 fi 2266done 2267 2268if test -r "$cache_file"; then 2269 # Some versions of bash will fail to source /dev/null (special files 2270 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2271 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2273$as_echo "$as_me: loading cache $cache_file" >&6;} 2274 case $cache_file in 2275 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2276 *) . "./$cache_file";; 2277 esac 2278 fi 2279else 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2281$as_echo "$as_me: creating cache $cache_file" >&6;} 2282 >$cache_file 2283fi 2284 2285# Check that the precious variables saved in the cache have kept the same 2286# value. 2287ac_cache_corrupted=false 2288for ac_var in $ac_precious_vars; do 2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2290 eval ac_new_set=\$ac_env_${ac_var}_set 2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2292 eval ac_new_val=\$ac_env_${ac_var}_value 2293 case $ac_old_set,$ac_new_set in 2294 set,) 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2296$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2297 ac_cache_corrupted=: ;; 2298 ,set) 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2300$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2301 ac_cache_corrupted=: ;; 2302 ,);; 2303 *) 2304 if test "x$ac_old_val" != "x$ac_new_val"; then 2305 # differences in whitespace do not lead to failure. 2306 ac_old_val_w=`echo x $ac_old_val` 2307 ac_new_val_w=`echo x $ac_new_val` 2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2310$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2311 ac_cache_corrupted=: 2312 else 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2314$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2315 eval $ac_var=\$ac_old_val 2316 fi 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2318$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2320$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2321 fi;; 2322 esac 2323 # Pass precious variables to config.status. 2324 if test "$ac_new_set" = set; then 2325 case $ac_new_val in 2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2327 *) ac_arg=$ac_var=$ac_new_val ;; 2328 esac 2329 case " $ac_configure_args " in 2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2332 esac 2333 fi 2334done 2335if $ac_cache_corrupted; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2339$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2341fi 2342## -------------------- ## 2343## Main body of script. ## 2344## -------------------- ## 2345 2346ac_ext=c 2347ac_cpp='$CPP $CPPFLAGS' 2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2350ac_compiler_gnu=$ac_cv_c_compiler_gnu 2351 2352 2353 2354ac_config_headers="$ac_config_headers config.h" 2355 2356ac_ext=c 2357ac_cpp='$CPP $CPPFLAGS' 2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2360ac_compiler_gnu=$ac_cv_c_compiler_gnu 2361if test -n "$ac_tool_prefix"; then 2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2363set dummy ${ac_tool_prefix}gcc; ac_word=$2 2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2365$as_echo_n "checking for $ac_word... " >&6; } 2366if ${ac_cv_prog_CC+:} false; then : 2367 $as_echo_n "(cached) " >&6 2368else 2369 if test -n "$CC"; then 2370 ac_cv_prog_CC="$CC" # Let the user override the test. 2371else 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2379 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2381 break 2 2382 fi 2383done 2384 done 2385IFS=$as_save_IFS 2386 2387fi 2388fi 2389CC=$ac_cv_prog_CC 2390if test -n "$CC"; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2392$as_echo "$CC" >&6; } 2393else 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2395$as_echo "no" >&6; } 2396fi 2397 2398 2399fi 2400if test -z "$ac_cv_prog_CC"; then 2401 ac_ct_CC=$CC 2402 # Extract the first word of "gcc", so it can be a program name with args. 2403set dummy gcc; ac_word=$2 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2405$as_echo_n "checking for $ac_word... " >&6; } 2406if ${ac_cv_prog_ac_ct_CC+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 if test -n "$ac_ct_CC"; then 2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2419 ac_cv_prog_ac_ct_CC="gcc" 2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424 done 2425IFS=$as_save_IFS 2426 2427fi 2428fi 2429ac_ct_CC=$ac_cv_prog_ac_ct_CC 2430if test -n "$ac_ct_CC"; then 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2432$as_echo "$ac_ct_CC" >&6; } 2433else 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2435$as_echo "no" >&6; } 2436fi 2437 2438 if test "x$ac_ct_CC" = x; then 2439 CC="" 2440 else 2441 case $cross_compiling:$ac_tool_warned in 2442yes:) 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2445ac_tool_warned=yes ;; 2446esac 2447 CC=$ac_ct_CC 2448 fi 2449else 2450 CC="$ac_cv_prog_CC" 2451fi 2452 2453if test -z "$CC"; then 2454 if test -n "$ac_tool_prefix"; then 2455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2456set dummy ${ac_tool_prefix}cc; ac_word=$2 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2458$as_echo_n "checking for $ac_word... " >&6; } 2459if ${ac_cv_prog_CC+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 if test -n "$CC"; then 2463 ac_cv_prog_CC="$CC" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_CC="${ac_tool_prefix}cc" 2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477 done 2478IFS=$as_save_IFS 2479 2480fi 2481fi 2482CC=$ac_cv_prog_CC 2483if test -n "$CC"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2485$as_echo "$CC" >&6; } 2486else 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2488$as_echo "no" >&6; } 2489fi 2490 2491 2492 fi 2493fi 2494if test -z "$CC"; then 2495 # Extract the first word of "cc", so it can be a program name with args. 2496set dummy cc; ac_word=$2 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2498$as_echo_n "checking for $ac_word... " >&6; } 2499if ${ac_cv_prog_CC+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501else 2502 if test -n "$CC"; then 2503 ac_cv_prog_CC="$CC" # Let the user override the test. 2504else 2505 ac_prog_rejected=no 2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507for as_dir in $PATH 2508do 2509 IFS=$as_save_IFS 2510 test -z "$as_dir" && as_dir=. 2511 for ac_exec_ext in '' $ac_executable_extensions; do 2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2514 ac_prog_rejected=yes 2515 continue 2516 fi 2517 ac_cv_prog_CC="cc" 2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2519 break 2 2520 fi 2521done 2522 done 2523IFS=$as_save_IFS 2524 2525if test $ac_prog_rejected = yes; then 2526 # We found a bogon in the path, so make sure we never use it. 2527 set dummy $ac_cv_prog_CC 2528 shift 2529 if test $# != 0; then 2530 # We chose a different compiler from the bogus one. 2531 # However, it has the same basename, so the bogon will be chosen 2532 # first if we set CC to just the basename; use the full file name. 2533 shift 2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2535 fi 2536fi 2537fi 2538fi 2539CC=$ac_cv_prog_CC 2540if test -n "$CC"; then 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2542$as_echo "$CC" >&6; } 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2545$as_echo "no" >&6; } 2546fi 2547 2548 2549fi 2550if test -z "$CC"; then 2551 if test -n "$ac_tool_prefix"; then 2552 for ac_prog in cl.exe 2553 do 2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2555set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2557$as_echo_n "checking for $ac_word... " >&6; } 2558if ${ac_cv_prog_CC+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 if test -n "$CC"; then 2562 ac_cv_prog_CC="$CC" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581CC=$ac_cv_prog_CC 2582if test -n "$CC"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2584$as_echo "$CC" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 2591 test -n "$CC" && break 2592 done 2593fi 2594if test -z "$CC"; then 2595 ac_ct_CC=$CC 2596 for ac_prog in cl.exe 2597do 2598 # Extract the first word of "$ac_prog", so it can be a program name with args. 2599set dummy $ac_prog; ac_word=$2 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601$as_echo_n "checking for $ac_word... " >&6; } 2602if ${ac_cv_prog_ac_ct_CC+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 if test -n "$ac_ct_CC"; then 2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2615 ac_cv_prog_ac_ct_CC="$ac_prog" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625ac_ct_CC=$ac_cv_prog_ac_ct_CC 2626if test -n "$ac_ct_CC"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2628$as_echo "$ac_ct_CC" >&6; } 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632fi 2633 2634 2635 test -n "$ac_ct_CC" && break 2636done 2637 2638 if test "x$ac_ct_CC" = x; then 2639 CC="" 2640 else 2641 case $cross_compiling:$ac_tool_warned in 2642yes:) 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2645ac_tool_warned=yes ;; 2646esac 2647 CC=$ac_ct_CC 2648 fi 2649fi 2650 2651fi 2652 2653 2654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2656as_fn_error $? "no acceptable C compiler found in \$PATH 2657See \`config.log' for more details" "$LINENO" 5; } 2658 2659# Provide some information about the compiler. 2660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2661set X $ac_compile 2662ac_compiler=$2 2663for ac_option in --version -v -V -qversion; do 2664 { { ac_try="$ac_compiler $ac_option >&5" 2665case "(($ac_try" in 2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2667 *) ac_try_echo=$ac_try;; 2668esac 2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2670$as_echo "$ac_try_echo"; } >&5 2671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2672 ac_status=$? 2673 if test -s conftest.err; then 2674 sed '10a\ 2675... rest of stderr output deleted ... 2676 10q' conftest.err >conftest.er1 2677 cat conftest.er1 >&5 2678 fi 2679 rm -f conftest.er1 conftest.err 2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2681 test $ac_status = 0; } 2682done 2683 2684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2685/* end confdefs.h. */ 2686 2687int 2688main () 2689{ 2690 2691 ; 2692 return 0; 2693} 2694_ACEOF 2695ac_clean_files_save=$ac_clean_files 2696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2697# Try to create an executable without -o first, disregard a.out. 2698# It will help us diagnose broken compilers, and finding out an intuition 2699# of exeext. 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2701$as_echo_n "checking whether the C compiler works... " >&6; } 2702ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2703 2704# The possible output files: 2705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2706 2707ac_rmfiles= 2708for ac_file in $ac_files 2709do 2710 case $ac_file in 2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2713 esac 2714done 2715rm -f $ac_rmfiles 2716 2717if { { ac_try="$ac_link_default" 2718case "(($ac_try" in 2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2720 *) ac_try_echo=$ac_try;; 2721esac 2722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2723$as_echo "$ac_try_echo"; } >&5 2724 (eval "$ac_link_default") 2>&5 2725 ac_status=$? 2726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2727 test $ac_status = 0; }; then : 2728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2729# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2730# in a Makefile. We should not override ac_cv_exeext if it was cached, 2731# so that the user can short-circuit this test for compilers unknown to 2732# Autoconf. 2733for ac_file in $ac_files '' 2734do 2735 test -f "$ac_file" || continue 2736 case $ac_file in 2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2738 ;; 2739 [ab].out ) 2740 # We found the default executable, but exeext='' is most 2741 # certainly right. 2742 break;; 2743 *.* ) 2744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2745 then :; else 2746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2747 fi 2748 # We set ac_cv_exeext here because the later test for it is not 2749 # safe: cross compilers may not add the suffix if given an `-o' 2750 # argument, so we may need to know it at that point already. 2751 # Even if this section looks crufty: it has the advantage of 2752 # actually working. 2753 break;; 2754 * ) 2755 break;; 2756 esac 2757done 2758test "$ac_cv_exeext" = no && ac_cv_exeext= 2759 2760else 2761 ac_file='' 2762fi 2763if test -z "$ac_file"; then : 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765$as_echo "no" >&6; } 2766$as_echo "$as_me: failed program was:" >&5 2767sed 's/^/| /' conftest.$ac_ext >&5 2768 2769{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2771as_fn_error 77 "C compiler cannot create executables 2772See \`config.log' for more details" "$LINENO" 5; } 2773else 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2775$as_echo "yes" >&6; } 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2778$as_echo_n "checking for C compiler default output file name... " >&6; } 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2780$as_echo "$ac_file" >&6; } 2781ac_exeext=$ac_cv_exeext 2782 2783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2784ac_clean_files=$ac_clean_files_save 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2786$as_echo_n "checking for suffix of executables... " >&6; } 2787if { { ac_try="$ac_link" 2788case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2793$as_echo "$ac_try_echo"; } >&5 2794 (eval "$ac_link") 2>&5 2795 ac_status=$? 2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2797 test $ac_status = 0; }; then : 2798 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2799# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2800# work properly (i.e., refer to `conftest.exe'), while it won't with 2801# `rm'. 2802for ac_file in conftest.exe conftest conftest.*; do 2803 test -f "$ac_file" || continue 2804 case $ac_file in 2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2807 break;; 2808 * ) break;; 2809 esac 2810done 2811else 2812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2814as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2815See \`config.log' for more details" "$LINENO" 5; } 2816fi 2817rm -f conftest conftest$ac_cv_exeext 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2819$as_echo "$ac_cv_exeext" >&6; } 2820 2821rm -f conftest.$ac_ext 2822EXEEXT=$ac_cv_exeext 2823ac_exeext=$EXEEXT 2824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2825/* end confdefs.h. */ 2826#include <stdio.h> 2827int 2828main () 2829{ 2830FILE *f = fopen ("conftest.out", "w"); 2831 return ferror (f) || fclose (f) != 0; 2832 2833 ; 2834 return 0; 2835} 2836_ACEOF 2837ac_clean_files="$ac_clean_files conftest.out" 2838# Check that the compiler produces executables we can run. If not, either 2839# the compiler is broken, or we cross compile. 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2841$as_echo_n "checking whether we are cross compiling... " >&6; } 2842if test "$cross_compiling" != yes; then 2843 { { ac_try="$ac_link" 2844case "(($ac_try" in 2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2846 *) ac_try_echo=$ac_try;; 2847esac 2848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2849$as_echo "$ac_try_echo"; } >&5 2850 (eval "$ac_link") 2>&5 2851 ac_status=$? 2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2853 test $ac_status = 0; } 2854 if { ac_try='./conftest$ac_cv_exeext' 2855 { { case "(($ac_try" in 2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2857 *) ac_try_echo=$ac_try;; 2858esac 2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2860$as_echo "$ac_try_echo"; } >&5 2861 (eval "$ac_try") 2>&5 2862 ac_status=$? 2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2864 test $ac_status = 0; }; }; then 2865 cross_compiling=no 2866 else 2867 if test "$cross_compiling" = maybe; then 2868 cross_compiling=yes 2869 else 2870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2872as_fn_error $? "cannot run C compiled programs. 2873If you meant to cross compile, use \`--host'. 2874See \`config.log' for more details" "$LINENO" 5; } 2875 fi 2876 fi 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2879$as_echo "$cross_compiling" >&6; } 2880 2881rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2882ac_clean_files=$ac_clean_files_save 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2884$as_echo_n "checking for suffix of object files... " >&6; } 2885if ${ac_cv_objext+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889/* end confdefs.h. */ 2890 2891int 2892main () 2893{ 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899rm -f conftest.o conftest.obj 2900if { { ac_try="$ac_compile" 2901case "(($ac_try" in 2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2903 *) ac_try_echo=$ac_try;; 2904esac 2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2906$as_echo "$ac_try_echo"; } >&5 2907 (eval "$ac_compile") 2>&5 2908 ac_status=$? 2909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2910 test $ac_status = 0; }; then : 2911 for ac_file in conftest.o conftest.obj conftest.*; do 2912 test -f "$ac_file" || continue; 2913 case $ac_file in 2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2916 break;; 2917 esac 2918done 2919else 2920 $as_echo "$as_me: failed program was:" >&5 2921sed 's/^/| /' conftest.$ac_ext >&5 2922 2923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2925as_fn_error $? "cannot compute suffix of object files: cannot compile 2926See \`config.log' for more details" "$LINENO" 5; } 2927fi 2928rm -f conftest.$ac_cv_objext conftest.$ac_ext 2929fi 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2931$as_echo "$ac_cv_objext" >&6; } 2932OBJEXT=$ac_cv_objext 2933ac_objext=$OBJEXT 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2936if ${ac_cv_c_compiler_gnu+:} false; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2940/* end confdefs.h. */ 2941 2942int 2943main () 2944{ 2945#ifndef __GNUC__ 2946 choke me 2947#endif 2948 2949 ; 2950 return 0; 2951} 2952_ACEOF 2953if ac_fn_c_try_compile "$LINENO"; then : 2954 ac_compiler_gnu=yes 2955else 2956 ac_compiler_gnu=no 2957fi 2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2959ac_cv_c_compiler_gnu=$ac_compiler_gnu 2960 2961fi 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2963$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2964if test $ac_compiler_gnu = yes; then 2965 GCC=yes 2966else 2967 GCC= 2968fi 2969ac_test_CFLAGS=${CFLAGS+set} 2970ac_save_CFLAGS=$CFLAGS 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2972$as_echo_n "checking whether $CC accepts -g... " >&6; } 2973if ${ac_cv_prog_cc_g+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 ac_save_c_werror_flag=$ac_c_werror_flag 2977 ac_c_werror_flag=yes 2978 ac_cv_prog_cc_g=no 2979 CFLAGS="-g" 2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2981/* end confdefs.h. */ 2982 2983int 2984main () 2985{ 2986 2987 ; 2988 return 0; 2989} 2990_ACEOF 2991if ac_fn_c_try_compile "$LINENO"; then : 2992 ac_cv_prog_cc_g=yes 2993else 2994 CFLAGS="" 2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006if ac_fn_c_try_compile "$LINENO"; then : 3007 3008else 3009 ac_c_werror_flag=$ac_save_c_werror_flag 3010 CFLAGS="-g" 3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3012/* end confdefs.h. */ 3013 3014int 3015main () 3016{ 3017 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022if ac_fn_c_try_compile "$LINENO"; then : 3023 ac_cv_prog_cc_g=yes 3024fi 3025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3026fi 3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3028fi 3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3030 ac_c_werror_flag=$ac_save_c_werror_flag 3031fi 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3033$as_echo "$ac_cv_prog_cc_g" >&6; } 3034if test "$ac_test_CFLAGS" = set; then 3035 CFLAGS=$ac_save_CFLAGS 3036elif test $ac_cv_prog_cc_g = yes; then 3037 if test "$GCC" = yes; then 3038 CFLAGS="-g -O2" 3039 else 3040 CFLAGS="-g" 3041 fi 3042else 3043 if test "$GCC" = yes; then 3044 CFLAGS="-O2" 3045 else 3046 CFLAGS= 3047 fi 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3051if ${ac_cv_prog_cc_c89+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 ac_cv_prog_cc_c89=no 3055ac_save_CC=$CC 3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3057/* end confdefs.h. */ 3058#include <stdarg.h> 3059#include <stdio.h> 3060#include <sys/types.h> 3061#include <sys/stat.h> 3062/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3063struct buf { int x; }; 3064FILE * (*rcsopen) (struct buf *, struct stat *, int); 3065static char *e (p, i) 3066 char **p; 3067 int i; 3068{ 3069 return p[i]; 3070} 3071static char *f (char * (*g) (char **, int), char **p, ...) 3072{ 3073 char *s; 3074 va_list v; 3075 va_start (v,p); 3076 s = g (p, va_arg (v,int)); 3077 va_end (v); 3078 return s; 3079} 3080 3081/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3082 function prototypes and stuff, but not '\xHH' hex character constants. 3083 These don't provoke an error unfortunately, instead are silently treated 3084 as 'x'. The following induces an error, until -std is added to get 3085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3086 array size at least. It's necessary to write '\x00'==0 to get something 3087 that's true only with -std. */ 3088int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3089 3090/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3091 inside strings and character constants. */ 3092#define FOO(x) 'x' 3093int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3094 3095int test (int i, double x); 3096struct s1 {int (*f) (int a);}; 3097struct s2 {int (*f) (double a);}; 3098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3099int argc; 3100char **argv; 3101int 3102main () 3103{ 3104return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3105 ; 3106 return 0; 3107} 3108_ACEOF 3109for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3111do 3112 CC="$ac_save_CC $ac_arg" 3113 if ac_fn_c_try_compile "$LINENO"; then : 3114 ac_cv_prog_cc_c89=$ac_arg 3115fi 3116rm -f core conftest.err conftest.$ac_objext 3117 test "x$ac_cv_prog_cc_c89" != "xno" && break 3118done 3119rm -f conftest.$ac_ext 3120CC=$ac_save_CC 3121 3122fi 3123# AC_CACHE_VAL 3124case "x$ac_cv_prog_cc_c89" in 3125 x) 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3127$as_echo "none needed" >&6; } ;; 3128 xno) 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3130$as_echo "unsupported" >&6; } ;; 3131 *) 3132 CC="$CC $ac_cv_prog_cc_c89" 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3134$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3135esac 3136if test "x$ac_cv_prog_cc_c89" != xno; then : 3137 3138fi 3139 3140ac_ext=c 3141ac_cpp='$CPP $CPPFLAGS' 3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3144ac_compiler_gnu=$ac_cv_c_compiler_gnu 3145 3146 3147ac_ext=c 3148ac_cpp='$CPP $CPPFLAGS' 3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3153$as_echo_n "checking how to run the C preprocessor... " >&6; } 3154# On Suns, sometimes $CPP names a directory. 3155if test -n "$CPP" && test -d "$CPP"; then 3156 CPP= 3157fi 3158if test -z "$CPP"; then 3159 if ${ac_cv_prog_CPP+:} false; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 # Double quotes because CPP needs to be expanded 3163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3164 do 3165 ac_preproc_ok=false 3166for ac_c_preproc_warn_flag in '' yes 3167do 3168 # Use a header file that comes with gcc, so configuring glibc 3169 # with a fresh cross-compiler works. 3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3171 # <limits.h> exists even on freestanding compilers. 3172 # On the NeXT, cc -E runs the code through the compiler's parser, 3173 # not just through cpp. "Syntax error" is here to catch this case. 3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3175/* end confdefs.h. */ 3176#ifdef __STDC__ 3177# include <limits.h> 3178#else 3179# include <assert.h> 3180#endif 3181 Syntax error 3182_ACEOF 3183if ac_fn_c_try_cpp "$LINENO"; then : 3184 3185else 3186 # Broken: fails on valid input. 3187continue 3188fi 3189rm -f conftest.err conftest.i conftest.$ac_ext 3190 3191 # OK, works on sane cases. Now check whether nonexistent headers 3192 # can be detected and how. 3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3194/* end confdefs.h. */ 3195#include <ac_nonexistent.h> 3196_ACEOF 3197if ac_fn_c_try_cpp "$LINENO"; then : 3198 # Broken: success on invalid input. 3199continue 3200else 3201 # Passes both tests. 3202ac_preproc_ok=: 3203break 3204fi 3205rm -f conftest.err conftest.i conftest.$ac_ext 3206 3207done 3208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3209rm -f conftest.i conftest.err conftest.$ac_ext 3210if $ac_preproc_ok; then : 3211 break 3212fi 3213 3214 done 3215 ac_cv_prog_CPP=$CPP 3216 3217fi 3218 CPP=$ac_cv_prog_CPP 3219else 3220 ac_cv_prog_CPP=$CPP 3221fi 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3223$as_echo "$CPP" >&6; } 3224ac_preproc_ok=false 3225for ac_c_preproc_warn_flag in '' yes 3226do 3227 # Use a header file that comes with gcc, so configuring glibc 3228 # with a fresh cross-compiler works. 3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3230 # <limits.h> exists even on freestanding compilers. 3231 # On the NeXT, cc -E runs the code through the compiler's parser, 3232 # not just through cpp. "Syntax error" is here to catch this case. 3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3234/* end confdefs.h. */ 3235#ifdef __STDC__ 3236# include <limits.h> 3237#else 3238# include <assert.h> 3239#endif 3240 Syntax error 3241_ACEOF 3242if ac_fn_c_try_cpp "$LINENO"; then : 3243 3244else 3245 # Broken: fails on valid input. 3246continue 3247fi 3248rm -f conftest.err conftest.i conftest.$ac_ext 3249 3250 # OK, works on sane cases. Now check whether nonexistent headers 3251 # can be detected and how. 3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3253/* end confdefs.h. */ 3254#include <ac_nonexistent.h> 3255_ACEOF 3256if ac_fn_c_try_cpp "$LINENO"; then : 3257 # Broken: success on invalid input. 3258continue 3259else 3260 # Passes both tests. 3261ac_preproc_ok=: 3262break 3263fi 3264rm -f conftest.err conftest.i conftest.$ac_ext 3265 3266done 3267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3268rm -f conftest.i conftest.err conftest.$ac_ext 3269if $ac_preproc_ok; then : 3270 3271else 3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3274as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3275See \`config.log' for more details" "$LINENO" 5; } 3276fi 3277 3278ac_ext=c 3279ac_cpp='$CPP $CPPFLAGS' 3280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3282ac_compiler_gnu=$ac_cv_c_compiler_gnu 3283 3284 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3286$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3287if ${ac_cv_path_GREP+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -z "$GREP"; then 3291 ac_path_GREP_found=false 3292 # Loop through the user's path and test for each of PROGNAME-LIST 3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_prog in grep ggrep; do 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3301 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3302# Check for GNU ac_path_GREP and select it if it is found. 3303 # Check for GNU $ac_path_GREP 3304case `"$ac_path_GREP" --version 2>&1` in 3305*GNU*) 3306 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3307*) 3308 ac_count=0 3309 $as_echo_n 0123456789 >"conftest.in" 3310 while : 3311 do 3312 cat "conftest.in" "conftest.in" >"conftest.tmp" 3313 mv "conftest.tmp" "conftest.in" 3314 cp "conftest.in" "conftest.nl" 3315 $as_echo 'GREP' >> "conftest.nl" 3316 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3318 as_fn_arith $ac_count + 1 && ac_count=$as_val 3319 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3320 # Best one so far, save it but keep looking for a better one 3321 ac_cv_path_GREP="$ac_path_GREP" 3322 ac_path_GREP_max=$ac_count 3323 fi 3324 # 10*(2^10) chars as input seems more than enough 3325 test $ac_count -gt 10 && break 3326 done 3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3328esac 3329 3330 $ac_path_GREP_found && break 3 3331 done 3332 done 3333 done 3334IFS=$as_save_IFS 3335 if test -z "$ac_cv_path_GREP"; then 3336 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3337 fi 3338else 3339 ac_cv_path_GREP=$GREP 3340fi 3341 3342fi 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3344$as_echo "$ac_cv_path_GREP" >&6; } 3345 GREP="$ac_cv_path_GREP" 3346 3347 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3349$as_echo_n "checking for egrep... " >&6; } 3350if ${ac_cv_path_EGREP+:} false; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3354 then ac_cv_path_EGREP="$GREP -E" 3355 else 3356 if test -z "$EGREP"; then 3357 ac_path_EGREP_found=false 3358 # Loop through the user's path and test for each of PROGNAME-LIST 3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3361do 3362 IFS=$as_save_IFS 3363 test -z "$as_dir" && as_dir=. 3364 for ac_prog in egrep; do 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3367 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3368# Check for GNU ac_path_EGREP and select it if it is found. 3369 # Check for GNU $ac_path_EGREP 3370case `"$ac_path_EGREP" --version 2>&1` in 3371*GNU*) 3372 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3373*) 3374 ac_count=0 3375 $as_echo_n 0123456789 >"conftest.in" 3376 while : 3377 do 3378 cat "conftest.in" "conftest.in" >"conftest.tmp" 3379 mv "conftest.tmp" "conftest.in" 3380 cp "conftest.in" "conftest.nl" 3381 $as_echo 'EGREP' >> "conftest.nl" 3382 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3384 as_fn_arith $ac_count + 1 && ac_count=$as_val 3385 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3386 # Best one so far, save it but keep looking for a better one 3387 ac_cv_path_EGREP="$ac_path_EGREP" 3388 ac_path_EGREP_max=$ac_count 3389 fi 3390 # 10*(2^10) chars as input seems more than enough 3391 test $ac_count -gt 10 && break 3392 done 3393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3394esac 3395 3396 $ac_path_EGREP_found && break 3 3397 done 3398 done 3399 done 3400IFS=$as_save_IFS 3401 if test -z "$ac_cv_path_EGREP"; then 3402 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3403 fi 3404else 3405 ac_cv_path_EGREP=$EGREP 3406fi 3407 3408 fi 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3411$as_echo "$ac_cv_path_EGREP" >&6; } 3412 EGREP="$ac_cv_path_EGREP" 3413 3414 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3416$as_echo_n "checking for ANSI C header files... " >&6; } 3417if ${ac_cv_header_stdc+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422#include <stdlib.h> 3423#include <stdarg.h> 3424#include <string.h> 3425#include <float.h> 3426 3427int 3428main () 3429{ 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435if ac_fn_c_try_compile "$LINENO"; then : 3436 ac_cv_header_stdc=yes 3437else 3438 ac_cv_header_stdc=no 3439fi 3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3441 3442if test $ac_cv_header_stdc = yes; then 3443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446#include <string.h> 3447 3448_ACEOF 3449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3450 $EGREP "memchr" >/dev/null 2>&1; then : 3451 3452else 3453 ac_cv_header_stdc=no 3454fi 3455rm -f conftest* 3456 3457fi 3458 3459if test $ac_cv_header_stdc = yes; then 3460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463#include <stdlib.h> 3464 3465_ACEOF 3466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3467 $EGREP "free" >/dev/null 2>&1; then : 3468 3469else 3470 ac_cv_header_stdc=no 3471fi 3472rm -f conftest* 3473 3474fi 3475 3476if test $ac_cv_header_stdc = yes; then 3477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3478 if test "$cross_compiling" = yes; then : 3479 : 3480else 3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483#include <ctype.h> 3484#include <stdlib.h> 3485#if ((' ' & 0x0FF) == 0x020) 3486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3488#else 3489# define ISLOWER(c) \ 3490 (('a' <= (c) && (c) <= 'i') \ 3491 || ('j' <= (c) && (c) <= 'r') \ 3492 || ('s' <= (c) && (c) <= 'z')) 3493# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3494#endif 3495 3496#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3497int 3498main () 3499{ 3500 int i; 3501 for (i = 0; i < 256; i++) 3502 if (XOR (islower (i), ISLOWER (i)) 3503 || toupper (i) != TOUPPER (i)) 3504 return 2; 3505 return 0; 3506} 3507_ACEOF 3508if ac_fn_c_try_run "$LINENO"; then : 3509 3510else 3511 ac_cv_header_stdc=no 3512fi 3513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3514 conftest.$ac_objext conftest.beam conftest.$ac_ext 3515fi 3516 3517fi 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3520$as_echo "$ac_cv_header_stdc" >&6; } 3521if test $ac_cv_header_stdc = yes; then 3522 3523$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3524 3525fi 3526 3527# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3528for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3529 inttypes.h stdint.h unistd.h 3530do : 3531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3532ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3533" 3534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3535 cat >>confdefs.h <<_ACEOF 3536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3537_ACEOF 3538 3539fi 3540 3541done 3542 3543 3544 3545 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3546if test "x$ac_cv_header_minix_config_h" = xyes; then : 3547 MINIX=yes 3548else 3549 MINIX= 3550fi 3551 3552 3553 if test "$MINIX" = yes; then 3554 3555$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3556 3557 3558$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3559 3560 3561$as_echo "#define _MINIX 1" >>confdefs.h 3562 3563 fi 3564 3565 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3567$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3568if ${ac_cv_safe_to_define___extensions__+:} false; then : 3569 $as_echo_n "(cached) " >&6 3570else 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573 3574# define __EXTENSIONS__ 1 3575 $ac_includes_default 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584if ac_fn_c_try_compile "$LINENO"; then : 3585 ac_cv_safe_to_define___extensions__=yes 3586else 3587 ac_cv_safe_to_define___extensions__=no 3588fi 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590fi 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3592$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3593 test $ac_cv_safe_to_define___extensions__ = yes && 3594 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3595 3596 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3597 3598 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3599 3600 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3601 3602 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3603 3604 3605# Check whether --enable-largefile was given. 3606if test "${enable_largefile+set}" = set; then : 3607 enableval=$enable_largefile; 3608fi 3609 3610if test "$enable_largefile" != no; then 3611 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3613$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3614if ${ac_cv_sys_largefile_CC+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 ac_cv_sys_largefile_CC=no 3618 if test "$GCC" != yes; then 3619 ac_save_CC=$CC 3620 while :; do 3621 # IRIX 6.2 and later do not support large files by default, 3622 # so use the C compiler's -n32 option if that helps. 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625#include <sys/types.h> 3626 /* Check that off_t can represent 2**63 - 1 correctly. 3627 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3628 since some C++ compilers masquerading as C compilers 3629 incorrectly reject 9223372036854775807. */ 3630#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3632 && LARGE_OFF_T % 2147483647 == 1) 3633 ? 1 : -1]; 3634int 3635main () 3636{ 3637 3638 ; 3639 return 0; 3640} 3641_ACEOF 3642 if ac_fn_c_try_compile "$LINENO"; then : 3643 break 3644fi 3645rm -f core conftest.err conftest.$ac_objext 3646 CC="$CC -n32" 3647 if ac_fn_c_try_compile "$LINENO"; then : 3648 ac_cv_sys_largefile_CC=' -n32'; break 3649fi 3650rm -f core conftest.err conftest.$ac_objext 3651 break 3652 done 3653 CC=$ac_save_CC 3654 rm -f conftest.$ac_ext 3655 fi 3656fi 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3658$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3659 if test "$ac_cv_sys_largefile_CC" != no; then 3660 CC=$CC$ac_cv_sys_largefile_CC 3661 fi 3662 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3664$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3665if ${ac_cv_sys_file_offset_bits+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 while :; do 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671#include <sys/types.h> 3672 /* Check that off_t can represent 2**63 - 1 correctly. 3673 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3674 since some C++ compilers masquerading as C compilers 3675 incorrectly reject 9223372036854775807. */ 3676#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3678 && LARGE_OFF_T % 2147483647 == 1) 3679 ? 1 : -1]; 3680int 3681main () 3682{ 3683 3684 ; 3685 return 0; 3686} 3687_ACEOF 3688if ac_fn_c_try_compile "$LINENO"; then : 3689 ac_cv_sys_file_offset_bits=no; break 3690fi 3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694#define _FILE_OFFSET_BITS 64 3695#include <sys/types.h> 3696 /* Check that off_t can represent 2**63 - 1 correctly. 3697 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3698 since some C++ compilers masquerading as C compilers 3699 incorrectly reject 9223372036854775807. */ 3700#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3702 && LARGE_OFF_T % 2147483647 == 1) 3703 ? 1 : -1]; 3704int 3705main () 3706{ 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712if ac_fn_c_try_compile "$LINENO"; then : 3713 ac_cv_sys_file_offset_bits=64; break 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716 ac_cv_sys_file_offset_bits=unknown 3717 break 3718done 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3721$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3722case $ac_cv_sys_file_offset_bits in #( 3723 no | unknown) ;; 3724 *) 3725cat >>confdefs.h <<_ACEOF 3726#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3727_ACEOF 3728;; 3729esac 3730rm -rf conftest* 3731 if test $ac_cv_sys_file_offset_bits = unknown; then 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3733$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3734if ${ac_cv_sys_large_files+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 while :; do 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740#include <sys/types.h> 3741 /* Check that off_t can represent 2**63 - 1 correctly. 3742 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3743 since some C++ compilers masquerading as C compilers 3744 incorrectly reject 9223372036854775807. */ 3745#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3747 && LARGE_OFF_T % 2147483647 == 1) 3748 ? 1 : -1]; 3749int 3750main () 3751{ 3752 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757if ac_fn_c_try_compile "$LINENO"; then : 3758 ac_cv_sys_large_files=no; break 3759fi 3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763#define _LARGE_FILES 1 3764#include <sys/types.h> 3765 /* Check that off_t can represent 2**63 - 1 correctly. 3766 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3767 since some C++ compilers masquerading as C compilers 3768 incorrectly reject 9223372036854775807. */ 3769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3771 && LARGE_OFF_T % 2147483647 == 1) 3772 ? 1 : -1]; 3773int 3774main () 3775{ 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO"; then : 3782 ac_cv_sys_large_files=1; break 3783fi 3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3785 ac_cv_sys_large_files=unknown 3786 break 3787done 3788fi 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3790$as_echo "$ac_cv_sys_large_files" >&6; } 3791case $ac_cv_sys_large_files in #( 3792 no | unknown) ;; 3793 *) 3794cat >>confdefs.h <<_ACEOF 3795#define _LARGE_FILES $ac_cv_sys_large_files 3796_ACEOF 3797;; 3798esac 3799rm -rf conftest* 3800 fi 3801fi 3802 3803 3804# Initialize Automake 3805am__api_version='1.11' 3806 3807ac_aux_dir= 3808for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3809 if test -f "$ac_dir/install-sh"; then 3810 ac_aux_dir=$ac_dir 3811 ac_install_sh="$ac_aux_dir/install-sh -c" 3812 break 3813 elif test -f "$ac_dir/install.sh"; then 3814 ac_aux_dir=$ac_dir 3815 ac_install_sh="$ac_aux_dir/install.sh -c" 3816 break 3817 elif test -f "$ac_dir/shtool"; then 3818 ac_aux_dir=$ac_dir 3819 ac_install_sh="$ac_aux_dir/shtool install -c" 3820 break 3821 fi 3822done 3823if test -z "$ac_aux_dir"; then 3824 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3825fi 3826 3827# These three variables are undocumented and unsupported, 3828# and are intended to be withdrawn in a future Autoconf release. 3829# They can cause serious problems if a builder's source tree is in a directory 3830# whose full name contains unusual characters. 3831ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3832ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3833ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3834 3835 3836# Find a good install program. We prefer a C program (faster), 3837# so one script is as good as another. But avoid the broken or 3838# incompatible versions: 3839# SysV /etc/install, /usr/sbin/install 3840# SunOS /usr/etc/install 3841# IRIX /sbin/install 3842# AIX /bin/install 3843# AmigaOS /C/install, which installs bootblocks on floppy discs 3844# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3845# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3846# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3847# OS/2's system install, which has a completely different semantic 3848# ./install, which can be erroneously created by make from ./install.sh. 3849# Reject install programs that cannot install multiple files. 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3851$as_echo_n "checking for a BSD-compatible install... " >&6; } 3852if test -z "$INSTALL"; then 3853if ${ac_cv_path_install+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3857for as_dir in $PATH 3858do 3859 IFS=$as_save_IFS 3860 test -z "$as_dir" && as_dir=. 3861 # Account for people who put trailing slashes in PATH elements. 3862case $as_dir/ in #(( 3863 ./ | .// | /[cC]/* | \ 3864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3865 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3866 /usr/ucb/* ) ;; 3867 *) 3868 # OSF1 and SCO ODT 3.0 have their own names for install. 3869 # Don't use installbsd from OSF since it installs stuff as root 3870 # by default. 3871 for ac_prog in ginstall scoinst install; do 3872 for ac_exec_ext in '' $ac_executable_extensions; do 3873 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3874 if test $ac_prog = install && 3875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3876 # AIX install. It has an incompatible calling convention. 3877 : 3878 elif test $ac_prog = install && 3879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3880 # program-specific install script used by HP pwplus--don't use. 3881 : 3882 else 3883 rm -rf conftest.one conftest.two conftest.dir 3884 echo one > conftest.one 3885 echo two > conftest.two 3886 mkdir conftest.dir 3887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3888 test -s conftest.one && test -s conftest.two && 3889 test -s conftest.dir/conftest.one && 3890 test -s conftest.dir/conftest.two 3891 then 3892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3893 break 3 3894 fi 3895 fi 3896 fi 3897 done 3898 done 3899 ;; 3900esac 3901 3902 done 3903IFS=$as_save_IFS 3904 3905rm -rf conftest.one conftest.two conftest.dir 3906 3907fi 3908 if test "${ac_cv_path_install+set}" = set; then 3909 INSTALL=$ac_cv_path_install 3910 else 3911 # As a last resort, use the slow shell script. Don't cache a 3912 # value for INSTALL within a source directory, because that will 3913 # break other packages using the cache if that directory is 3914 # removed, or if the value is a relative name. 3915 INSTALL=$ac_install_sh 3916 fi 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3919$as_echo "$INSTALL" >&6; } 3920 3921# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3922# It thinks the first close brace ends the variable substitution. 3923test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3924 3925test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3926 3927test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3928 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3930$as_echo_n "checking whether build environment is sane... " >&6; } 3931# Just in case 3932sleep 1 3933echo timestamp > conftest.file 3934# Reject unsafe characters in $srcdir or the absolute working directory 3935# name. Accept space and tab only in the latter. 3936am_lf=' 3937' 3938case `pwd` in 3939 *[\\\"\#\$\&\'\`$am_lf]*) 3940 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3941esac 3942case $srcdir in 3943 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3944 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3945esac 3946 3947# Do `set' in a subshell so we don't clobber the current shell's 3948# arguments. Must try -L first in case configure is actually a 3949# symlink; some systems play weird games with the mod time of symlinks 3950# (eg FreeBSD returns the mod time of the symlink's containing 3951# directory). 3952if ( 3953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3954 if test "$*" = "X"; then 3955 # -L didn't work. 3956 set X `ls -t "$srcdir/configure" conftest.file` 3957 fi 3958 rm -f conftest.file 3959 if test "$*" != "X $srcdir/configure conftest.file" \ 3960 && test "$*" != "X conftest.file $srcdir/configure"; then 3961 3962 # If neither matched, then we have a broken ls. This can happen 3963 # if, for instance, CONFIG_SHELL is bash and it inherits a 3964 # broken ls alias from the environment. This has actually 3965 # happened. Such a system could not be considered "sane". 3966 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3967alias in your environment" "$LINENO" 5 3968 fi 3969 3970 test "$2" = conftest.file 3971 ) 3972then 3973 # Ok. 3974 : 3975else 3976 as_fn_error $? "newly created file is older than distributed files! 3977Check your system clock" "$LINENO" 5 3978fi 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3980$as_echo "yes" >&6; } 3981test "$program_prefix" != NONE && 3982 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3983# Use a double $ so make ignores it. 3984test "$program_suffix" != NONE && 3985 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3986# Double any \ or $. 3987# By default was `s,x,x', remove it if useless. 3988ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3989program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3990 3991# expand $ac_aux_dir to an absolute path 3992am_aux_dir=`cd $ac_aux_dir && pwd` 3993 3994if test x"${MISSING+set}" != xset; then 3995 case $am_aux_dir in 3996 *\ * | *\ *) 3997 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3998 *) 3999 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4000 esac 4001fi 4002# Use eval to expand $SHELL 4003if eval "$MISSING --run true"; then 4004 am_missing_run="$MISSING --run " 4005else 4006 am_missing_run= 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4008$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4009fi 4010 4011if test x"${install_sh}" != xset; then 4012 case $am_aux_dir in 4013 *\ * | *\ *) 4014 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4015 *) 4016 install_sh="\${SHELL} $am_aux_dir/install-sh" 4017 esac 4018fi 4019 4020# Installed binaries are usually stripped using `strip' when the user 4021# run `make install-strip'. However `strip' might not be the right 4022# tool to use in cross-compilation environments, therefore Automake 4023# will honor the `STRIP' environment variable to overrule this program. 4024if test "$cross_compiling" != no; then 4025 if test -n "$ac_tool_prefix"; then 4026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4027set dummy ${ac_tool_prefix}strip; ac_word=$2 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4029$as_echo_n "checking for $ac_word... " >&6; } 4030if ${ac_cv_prog_STRIP+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 if test -n "$STRIP"; then 4034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4035else 4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH 4038do 4039 IFS=$as_save_IFS 4040 test -z "$as_dir" && as_dir=. 4041 for ac_exec_ext in '' $ac_executable_extensions; do 4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4045 break 2 4046 fi 4047done 4048 done 4049IFS=$as_save_IFS 4050 4051fi 4052fi 4053STRIP=$ac_cv_prog_STRIP 4054if test -n "$STRIP"; then 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4056$as_echo "$STRIP" >&6; } 4057else 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4059$as_echo "no" >&6; } 4060fi 4061 4062 4063fi 4064if test -z "$ac_cv_prog_STRIP"; then 4065 ac_ct_STRIP=$STRIP 4066 # Extract the first word of "strip", so it can be a program name with args. 4067set dummy strip; ac_word=$2 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4069$as_echo_n "checking for $ac_word... " >&6; } 4070if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 if test -n "$ac_ct_STRIP"; then 4074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4075else 4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4083 ac_cv_prog_ac_ct_STRIP="strip" 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087done 4088 done 4089IFS=$as_save_IFS 4090 4091fi 4092fi 4093ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4094if test -n "$ac_ct_STRIP"; then 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4096$as_echo "$ac_ct_STRIP" >&6; } 4097else 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099$as_echo "no" >&6; } 4100fi 4101 4102 if test "x$ac_ct_STRIP" = x; then 4103 STRIP=":" 4104 else 4105 case $cross_compiling:$ac_tool_warned in 4106yes:) 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4109ac_tool_warned=yes ;; 4110esac 4111 STRIP=$ac_ct_STRIP 4112 fi 4113else 4114 STRIP="$ac_cv_prog_STRIP" 4115fi 4116 4117fi 4118INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4119 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4121$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4122if test -z "$MKDIR_P"; then 4123 if ${ac_cv_path_mkdir+:} false; then : 4124 $as_echo_n "(cached) " >&6 4125else 4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_prog in mkdir gmkdir; do 4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4134 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4135 'mkdir (GNU coreutils) '* | \ 4136 'mkdir (coreutils) '* | \ 4137 'mkdir (fileutils) '4.1*) 4138 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4139 break 3;; 4140 esac 4141 done 4142 done 4143 done 4144IFS=$as_save_IFS 4145 4146fi 4147 4148 test -d ./--version && rmdir ./--version 4149 if test "${ac_cv_path_mkdir+set}" = set; then 4150 MKDIR_P="$ac_cv_path_mkdir -p" 4151 else 4152 # As a last resort, use the slow shell script. Don't cache a 4153 # value for MKDIR_P within a source directory, because that will 4154 # break other packages using the cache if that directory is 4155 # removed, or if the value is a relative name. 4156 MKDIR_P="$ac_install_sh -d" 4157 fi 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4160$as_echo "$MKDIR_P" >&6; } 4161 4162mkdir_p="$MKDIR_P" 4163case $mkdir_p in 4164 [\\/$]* | ?:[\\/]*) ;; 4165 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4166esac 4167 4168for ac_prog in gawk mawk nawk awk 4169do 4170 # Extract the first word of "$ac_prog", so it can be a program name with args. 4171set dummy $ac_prog; ac_word=$2 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4173$as_echo_n "checking for $ac_word... " >&6; } 4174if ${ac_cv_prog_AWK+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 if test -n "$AWK"; then 4178 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4179else 4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4181for as_dir in $PATH 4182do 4183 IFS=$as_save_IFS 4184 test -z "$as_dir" && as_dir=. 4185 for ac_exec_ext in '' $ac_executable_extensions; do 4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4187 ac_cv_prog_AWK="$ac_prog" 4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4189 break 2 4190 fi 4191done 4192 done 4193IFS=$as_save_IFS 4194 4195fi 4196fi 4197AWK=$ac_cv_prog_AWK 4198if test -n "$AWK"; then 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4200$as_echo "$AWK" >&6; } 4201else 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4203$as_echo "no" >&6; } 4204fi 4205 4206 4207 test -n "$AWK" && break 4208done 4209 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4211$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4212set x ${MAKE-make} 4213ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4214if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 cat >conftest.make <<\_ACEOF 4218SHELL = /bin/sh 4219all: 4220 @echo '@@@%%%=$(MAKE)=@@@%%%' 4221_ACEOF 4222# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4223case `${MAKE-make} -f conftest.make 2>/dev/null` in 4224 *@@@%%%=?*=@@@%%%*) 4225 eval ac_cv_prog_make_${ac_make}_set=yes;; 4226 *) 4227 eval ac_cv_prog_make_${ac_make}_set=no;; 4228esac 4229rm -f conftest.make 4230fi 4231if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4233$as_echo "yes" >&6; } 4234 SET_MAKE= 4235else 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4237$as_echo "no" >&6; } 4238 SET_MAKE="MAKE=${MAKE-make}" 4239fi 4240 4241rm -rf .tst 2>/dev/null 4242mkdir .tst 2>/dev/null 4243if test -d .tst; then 4244 am__leading_dot=. 4245else 4246 am__leading_dot=_ 4247fi 4248rmdir .tst 2>/dev/null 4249 4250DEPDIR="${am__leading_dot}deps" 4251 4252ac_config_commands="$ac_config_commands depfiles" 4253 4254 4255am_make=${MAKE-make} 4256cat > confinc << 'END' 4257am__doit: 4258 @echo this is the am__doit target 4259.PHONY: am__doit 4260END 4261# If we don't find an include directive, just comment out the code. 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4263$as_echo_n "checking for style of include used by $am_make... " >&6; } 4264am__include="#" 4265am__quote= 4266_am_result=none 4267# First try GNU make style include. 4268echo "include confinc" > confmf 4269# Ignore all kinds of additional output from `make'. 4270case `$am_make -s -f confmf 2> /dev/null` in #( 4271*the\ am__doit\ target*) 4272 am__include=include 4273 am__quote= 4274 _am_result=GNU 4275 ;; 4276esac 4277# Now try BSD make style include. 4278if test "$am__include" = "#"; then 4279 echo '.include "confinc"' > confmf 4280 case `$am_make -s -f confmf 2> /dev/null` in #( 4281 *the\ am__doit\ target*) 4282 am__include=.include 4283 am__quote="\"" 4284 _am_result=BSD 4285 ;; 4286 esac 4287fi 4288 4289 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4291$as_echo "$_am_result" >&6; } 4292rm -f confinc confmf 4293 4294# Check whether --enable-dependency-tracking was given. 4295if test "${enable_dependency_tracking+set}" = set; then : 4296 enableval=$enable_dependency_tracking; 4297fi 4298 4299if test "x$enable_dependency_tracking" != xno; then 4300 am_depcomp="$ac_aux_dir/depcomp" 4301 AMDEPBACKSLASH='\' 4302 am__nodep='_no' 4303fi 4304 if test "x$enable_dependency_tracking" != xno; then 4305 AMDEP_TRUE= 4306 AMDEP_FALSE='#' 4307else 4308 AMDEP_TRUE='#' 4309 AMDEP_FALSE= 4310fi 4311 4312 4313if test "`cd $srcdir && pwd`" != "`pwd`"; then 4314 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4315 # is not polluted with repeated "-I." 4316 am__isrc=' -I$(srcdir)' 4317 # test to see if srcdir already configured 4318 if test -f $srcdir/config.status; then 4319 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4320 fi 4321fi 4322 4323# test whether we have cygpath 4324if test -z "$CYGPATH_W"; then 4325 if (cygpath --version) >/dev/null 2>/dev/null; then 4326 CYGPATH_W='cygpath -w' 4327 else 4328 CYGPATH_W=echo 4329 fi 4330fi 4331 4332 4333# Define the identity of the package. 4334 PACKAGE='sessreg' 4335 VERSION='1.0.8' 4336 4337 4338cat >>confdefs.h <<_ACEOF 4339#define PACKAGE "$PACKAGE" 4340_ACEOF 4341 4342 4343cat >>confdefs.h <<_ACEOF 4344#define VERSION "$VERSION" 4345_ACEOF 4346 4347# Some tools Automake needs. 4348 4349ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4350 4351 4352AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4353 4354 4355AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4356 4357 4358AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4359 4360 4361MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4362 4363# We need awk for the "check" target. The system "awk" is bad on 4364# some platforms. 4365# Always define AMTAR for backward compatibility. 4366 4367AMTAR=${AMTAR-"${am_missing_run}tar"} 4368 4369am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4370 4371 4372 4373 4374depcc="$CC" am_compiler_list= 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4377$as_echo_n "checking dependency style of $depcc... " >&6; } 4378if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4382 # We make a subdir and do the tests there. Otherwise we can end up 4383 # making bogus files that we don't know about and never remove. For 4384 # instance it was reported that on HP-UX the gcc test will end up 4385 # making a dummy file named `D' -- because `-MD' means `put the output 4386 # in D'. 4387 rm -rf conftest.dir 4388 mkdir conftest.dir 4389 # Copy depcomp to subdir because otherwise we won't find it if we're 4390 # using a relative directory. 4391 cp "$am_depcomp" conftest.dir 4392 cd conftest.dir 4393 # We will build objects and dependencies in a subdirectory because 4394 # it helps to detect inapplicable dependency modes. For instance 4395 # both Tru64's cc and ICC support -MD to output dependencies as a 4396 # side effect of compilation, but ICC will put the dependencies in 4397 # the current directory while Tru64 will put them in the object 4398 # directory. 4399 mkdir sub 4400 4401 am_cv_CC_dependencies_compiler_type=none 4402 if test "$am_compiler_list" = ""; then 4403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4404 fi 4405 am__universal=false 4406 case " $depcc " in #( 4407 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4408 esac 4409 4410 for depmode in $am_compiler_list; do 4411 # Setup a source with many dependencies, because some compilers 4412 # like to wrap large dependency lists on column 80 (with \), and 4413 # we should not choose a depcomp mode which is confused by this. 4414 # 4415 # We need to recreate these files for each test, as the compiler may 4416 # overwrite some of them when testing with obscure command lines. 4417 # This happens at least with the AIX C compiler. 4418 : > sub/conftest.c 4419 for i in 1 2 3 4 5 6; do 4420 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4422 # Solaris 8's {/usr,}/bin/sh. 4423 touch sub/conftst$i.h 4424 done 4425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4426 4427 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4428 # mode. It turns out that the SunPro C++ compiler does not properly 4429 # handle `-M -o', and we need to detect this. Also, some Intel 4430 # versions had trouble with output in subdirs 4431 am__obj=sub/conftest.${OBJEXT-o} 4432 am__minus_obj="-o $am__obj" 4433 case $depmode in 4434 gcc) 4435 # This depmode causes a compiler race in universal mode. 4436 test "$am__universal" = false || continue 4437 ;; 4438 nosideeffect) 4439 # after this tag, mechanisms are not by side-effect, so they'll 4440 # only be used when explicitly requested 4441 if test "x$enable_dependency_tracking" = xyes; then 4442 continue 4443 else 4444 break 4445 fi 4446 ;; 4447 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4448 # This compiler won't grok `-c -o', but also, the minuso test has 4449 # not run yet. These depmodes are late enough in the game, and 4450 # so weak that their functioning should not be impacted. 4451 am__obj=conftest.${OBJEXT-o} 4452 am__minus_obj= 4453 ;; 4454 none) break ;; 4455 esac 4456 if depmode=$depmode \ 4457 source=sub/conftest.c object=$am__obj \ 4458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4459 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4460 >/dev/null 2>conftest.err && 4461 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4463 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4465 # icc doesn't choke on unknown options, it will just issue warnings 4466 # or remarks (even with -Werror). So we grep stderr for any message 4467 # that says an option was ignored or not supported. 4468 # When given -MP, icc 7.0 and 7.1 complain thusly: 4469 # icc: Command line warning: ignoring option '-M'; no argument required 4470 # The diagnosis changed in icc 8.0: 4471 # icc: Command line remark: option '-MP' not supported 4472 if (grep 'ignoring option' conftest.err || 4473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4474 am_cv_CC_dependencies_compiler_type=$depmode 4475 break 4476 fi 4477 fi 4478 done 4479 4480 cd .. 4481 rm -rf conftest.dir 4482else 4483 am_cv_CC_dependencies_compiler_type=none 4484fi 4485 4486fi 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4488$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4489CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4490 4491 if 4492 test "x$enable_dependency_tracking" != xno \ 4493 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4494 am__fastdepCC_TRUE= 4495 am__fastdepCC_FALSE='#' 4496else 4497 am__fastdepCC_TRUE='#' 4498 am__fastdepCC_FALSE= 4499fi 4500 4501 4502 4503 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4505$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4506 # Check whether --enable-maintainer-mode was given. 4507if test "${enable_maintainer_mode+set}" = set; then : 4508 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4509else 4510 USE_MAINTAINER_MODE=no 4511fi 4512 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4514$as_echo "$USE_MAINTAINER_MODE" >&6; } 4515 if test $USE_MAINTAINER_MODE = yes; then 4516 MAINTAINER_MODE_TRUE= 4517 MAINTAINER_MODE_FALSE='#' 4518else 4519 MAINTAINER_MODE_TRUE='#' 4520 MAINTAINER_MODE_FALSE= 4521fi 4522 4523 MAINT=$MAINTAINER_MODE_TRUE 4524 4525 4526 4527# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4540$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4541if ${ac_cv_prog_cc_c99+:} false; then : 4542 $as_echo_n "(cached) " >&6 4543else 4544 ac_cv_prog_cc_c99=no 4545ac_save_CC=$CC 4546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#include <stdarg.h> 4549#include <stdbool.h> 4550#include <stdlib.h> 4551#include <wchar.h> 4552#include <stdio.h> 4553 4554// Check varargs macros. These examples are taken from C99 6.10.3.5. 4555#define debug(...) fprintf (stderr, __VA_ARGS__) 4556#define showlist(...) puts (#__VA_ARGS__) 4557#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4558static void 4559test_varargs_macros (void) 4560{ 4561 int x = 1234; 4562 int y = 5678; 4563 debug ("Flag"); 4564 debug ("X = %d\n", x); 4565 showlist (The first, second, and third items.); 4566 report (x>y, "x is %d but y is %d", x, y); 4567} 4568 4569// Check long long types. 4570#define BIG64 18446744073709551615ull 4571#define BIG32 4294967295ul 4572#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4573#if !BIG_OK 4574 your preprocessor is broken; 4575#endif 4576#if BIG_OK 4577#else 4578 your preprocessor is broken; 4579#endif 4580static long long int bignum = -9223372036854775807LL; 4581static unsigned long long int ubignum = BIG64; 4582 4583struct incomplete_array 4584{ 4585 int datasize; 4586 double data[]; 4587}; 4588 4589struct named_init { 4590 int number; 4591 const wchar_t *name; 4592 double average; 4593}; 4594 4595typedef const char *ccp; 4596 4597static inline int 4598test_restrict (ccp restrict text) 4599{ 4600 // See if C++-style comments work. 4601 // Iterate through items via the restricted pointer. 4602 // Also check for declarations in for loops. 4603 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4604 continue; 4605 return 0; 4606} 4607 4608// Check varargs and va_copy. 4609static void 4610test_varargs (const char *format, ...) 4611{ 4612 va_list args; 4613 va_start (args, format); 4614 va_list args_copy; 4615 va_copy (args_copy, args); 4616 4617 const char *str; 4618 int number; 4619 float fnumber; 4620 4621 while (*format) 4622 { 4623 switch (*format++) 4624 { 4625 case 's': // string 4626 str = va_arg (args_copy, const char *); 4627 break; 4628 case 'd': // int 4629 number = va_arg (args_copy, int); 4630 break; 4631 case 'f': // float 4632 fnumber = va_arg (args_copy, double); 4633 break; 4634 default: 4635 break; 4636 } 4637 } 4638 va_end (args_copy); 4639 va_end (args); 4640} 4641 4642int 4643main () 4644{ 4645 4646 // Check bool. 4647 _Bool success = false; 4648 4649 // Check restrict. 4650 if (test_restrict ("String literal") == 0) 4651 success = true; 4652 char *restrict newvar = "Another string"; 4653 4654 // Check varargs. 4655 test_varargs ("s, d' f .", "string", 65, 34.234); 4656 test_varargs_macros (); 4657 4658 // Check flexible array members. 4659 struct incomplete_array *ia = 4660 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4661 ia->datasize = 10; 4662 for (int i = 0; i < ia->datasize; ++i) 4663 ia->data[i] = i * 1.234; 4664 4665 // Check named initializers. 4666 struct named_init ni = { 4667 .number = 34, 4668 .name = L"Test wide string", 4669 .average = 543.34343, 4670 }; 4671 4672 ni.number = 58; 4673 4674 int dynamic_array[ni.number]; 4675 dynamic_array[ni.number - 1] = 543; 4676 4677 // work around unused variable warnings 4678 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4679 || dynamic_array[ni.number - 1] != 543); 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4686do 4687 CC="$ac_save_CC $ac_arg" 4688 if ac_fn_c_try_compile "$LINENO"; then : 4689 ac_cv_prog_cc_c99=$ac_arg 4690fi 4691rm -f core conftest.err conftest.$ac_objext 4692 test "x$ac_cv_prog_cc_c99" != "xno" && break 4693done 4694rm -f conftest.$ac_ext 4695CC=$ac_save_CC 4696 4697fi 4698# AC_CACHE_VAL 4699case "x$ac_cv_prog_cc_c99" in 4700 x) 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4702$as_echo "none needed" >&6; } ;; 4703 xno) 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4705$as_echo "unsupported" >&6; } ;; 4706 *) 4707 CC="$CC $ac_cv_prog_cc_c99" 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4709$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4710esac 4711if test "x$ac_cv_prog_cc_c99" != xno; then : 4712 4713fi 4714 4715 4716 4717 4718 4719 4720ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4721if test "x$ac_cv_have_decl___clang__" = xyes; then : 4722 CLANGCC="yes" 4723else 4724 CLANGCC="no" 4725fi 4726 4727ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4728if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4729 INTELCC="yes" 4730else 4731 INTELCC="no" 4732fi 4733 4734ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4735if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4736 SUNCC="yes" 4737else 4738 SUNCC="no" 4739fi 4740 4741 4742 4743 4744if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4745 if test -n "$ac_tool_prefix"; then 4746 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4747set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4749$as_echo_n "checking for $ac_word... " >&6; } 4750if ${ac_cv_path_PKG_CONFIG+:} false; then : 4751 $as_echo_n "(cached) " >&6 4752else 4753 case $PKG_CONFIG in 4754 [\\/]* | ?:[\\/]*) 4755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4756 ;; 4757 *) 4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773 ;; 4774esac 4775fi 4776PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4777if test -n "$PKG_CONFIG"; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4779$as_echo "$PKG_CONFIG" >&6; } 4780else 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4782$as_echo "no" >&6; } 4783fi 4784 4785 4786fi 4787if test -z "$ac_cv_path_PKG_CONFIG"; then 4788 ac_pt_PKG_CONFIG=$PKG_CONFIG 4789 # Extract the first word of "pkg-config", so it can be a program name with args. 4790set dummy pkg-config; ac_word=$2 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4792$as_echo_n "checking for $ac_word... " >&6; } 4793if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 case $ac_pt_PKG_CONFIG in 4797 [\\/]* | ?:[\\/]*) 4798 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4799 ;; 4800 *) 4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4802for as_dir in $PATH 4803do 4804 IFS=$as_save_IFS 4805 test -z "$as_dir" && as_dir=. 4806 for ac_exec_ext in '' $ac_executable_extensions; do 4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4808 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4810 break 2 4811 fi 4812done 4813 done 4814IFS=$as_save_IFS 4815 4816 ;; 4817esac 4818fi 4819ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4820if test -n "$ac_pt_PKG_CONFIG"; then 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4822$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4823else 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825$as_echo "no" >&6; } 4826fi 4827 4828 if test "x$ac_pt_PKG_CONFIG" = x; then 4829 PKG_CONFIG="" 4830 else 4831 case $cross_compiling:$ac_tool_warned in 4832yes:) 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4835ac_tool_warned=yes ;; 4836esac 4837 PKG_CONFIG=$ac_pt_PKG_CONFIG 4838 fi 4839else 4840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4841fi 4842 4843fi 4844if test -n "$PKG_CONFIG"; then 4845 _pkg_min_version=0.9.0 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4847$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4848 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4850$as_echo "yes" >&6; } 4851 else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853$as_echo "no" >&6; } 4854 PKG_CONFIG="" 4855 fi 4856 4857fi 4858# Make sure we can run config.sub. 4859$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4861 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4863$as_echo_n "checking build system type... " >&6; } 4864if ${ac_cv_build+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 ac_build_alias=$build_alias 4868test "x$ac_build_alias" = x && 4869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4870test "x$ac_build_alias" = x && 4871 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4872ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4874 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4877$as_echo "$ac_cv_build" >&6; } 4878case $ac_cv_build in 4879*-*-*) ;; 4880*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4881esac 4882build=$ac_cv_build 4883ac_save_IFS=$IFS; IFS='-' 4884set x $ac_cv_build 4885shift 4886build_cpu=$1 4887build_vendor=$2 4888shift; shift 4889# Remember, the first character of IFS is used to create $*, 4890# except with old shells: 4891build_os=$* 4892IFS=$ac_save_IFS 4893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4897$as_echo_n "checking host system type... " >&6; } 4898if ${ac_cv_host+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 if test "x$host_alias" = x; then 4902 ac_cv_host=$ac_cv_build 4903else 4904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4906fi 4907 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4910$as_echo "$ac_cv_host" >&6; } 4911case $ac_cv_host in 4912*-*-*) ;; 4913*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4914esac 4915host=$ac_cv_host 4916ac_save_IFS=$IFS; IFS='-' 4917set x $ac_cv_host 4918shift 4919host_cpu=$1 4920host_vendor=$2 4921shift; shift 4922# Remember, the first character of IFS is used to create $*, 4923# except with old shells: 4924host_os=$* 4925IFS=$ac_save_IFS 4926case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4927 4928 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4930$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4931if ${ac_cv_path_SED+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4935 for ac_i in 1 2 3 4 5 6 7; do 4936 ac_script="$ac_script$as_nl$ac_script" 4937 done 4938 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4939 { ac_script=; unset ac_script;} 4940 if test -z "$SED"; then 4941 ac_path_SED_found=false 4942 # Loop through the user's path and test for each of PROGNAME-LIST 4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944for as_dir in $PATH 4945do 4946 IFS=$as_save_IFS 4947 test -z "$as_dir" && as_dir=. 4948 for ac_prog in sed gsed; do 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4951 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4952# Check for GNU ac_path_SED and select it if it is found. 4953 # Check for GNU $ac_path_SED 4954case `"$ac_path_SED" --version 2>&1` in 4955*GNU*) 4956 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4957*) 4958 ac_count=0 4959 $as_echo_n 0123456789 >"conftest.in" 4960 while : 4961 do 4962 cat "conftest.in" "conftest.in" >"conftest.tmp" 4963 mv "conftest.tmp" "conftest.in" 4964 cp "conftest.in" "conftest.nl" 4965 $as_echo '' >> "conftest.nl" 4966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4968 as_fn_arith $ac_count + 1 && ac_count=$as_val 4969 if test $ac_count -gt ${ac_path_SED_max-0}; then 4970 # Best one so far, save it but keep looking for a better one 4971 ac_cv_path_SED="$ac_path_SED" 4972 ac_path_SED_max=$ac_count 4973 fi 4974 # 10*(2^10) chars as input seems more than enough 4975 test $ac_count -gt 10 && break 4976 done 4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4978esac 4979 4980 $ac_path_SED_found && break 3 4981 done 4982 done 4983 done 4984IFS=$as_save_IFS 4985 if test -z "$ac_cv_path_SED"; then 4986 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4987 fi 4988else 4989 ac_cv_path_SED=$SED 4990fi 4991 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4994$as_echo "$ac_cv_path_SED" >&6; } 4995 SED="$ac_cv_path_SED" 4996 rm -f conftest.sed 4997 4998 4999 5000 5001 5002 5003# Check whether --enable-selective-werror was given. 5004if test "${enable_selective_werror+set}" = set; then : 5005 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5006else 5007 SELECTIVE_WERROR=yes 5008fi 5009 5010 5011 5012 5013 5014# -v is too short to test reliably with XORG_TESTSET_CFLAG 5015if test "x$SUNCC" = "xyes"; then 5016 BASE_CFLAGS="-v" 5017else 5018 BASE_CFLAGS="" 5019fi 5020 5021# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035xorg_testset_save_CFLAGS="$CFLAGS" 5036 5037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5045/* end confdefs.h. */ 5046int i; 5047_ACEOF 5048if ac_fn_c_try_compile "$LINENO"; then : 5049 xorg_cv_cc_flag_unknown_warning_option=yes 5050else 5051 xorg_cv_cc_flag_unknown_warning_option=no 5052fi 5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059fi 5060 5061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073int i; 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO"; then : 5076 xorg_cv_cc_flag_unused_command_line_argument=yes 5077else 5078 xorg_cv_cc_flag_unused_command_line_argument=no 5079fi 5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5081fi 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5085 CFLAGS="$xorg_testset_save_CFLAGS" 5086fi 5087 5088found="no" 5089 5090 if test $found = "no" ; then 5091 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5093 fi 5094 5095 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5097 fi 5098 5099 CFLAGS="$CFLAGS -Wall" 5100 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5102$as_echo_n "checking if $CC supports -Wall... " >&6; } 5103 cacheid=xorg_cv_cc_flag__Wall 5104 if eval \${$cacheid+:} false; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109int i; 5110int 5111main () 5112{ 5113 5114 ; 5115 return 0; 5116} 5117_ACEOF 5118if ac_fn_c_try_link "$LINENO"; then : 5119 eval $cacheid=yes 5120else 5121 eval $cacheid=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext \ 5124 conftest$ac_exeext conftest.$ac_ext 5125fi 5126 5127 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129 5130 eval supported=\$$cacheid 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5132$as_echo "$supported" >&6; } 5133 if test "$supported" = "yes" ; then 5134 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5135 found="yes" 5136 fi 5137 fi 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153xorg_testset_save_CFLAGS="$CFLAGS" 5154 5155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163/* end confdefs.h. */ 5164int i; 5165_ACEOF 5166if ac_fn_c_try_compile "$LINENO"; then : 5167 xorg_cv_cc_flag_unknown_warning_option=yes 5168else 5169 xorg_cv_cc_flag_unknown_warning_option=no 5170fi 5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5172fi 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5176 CFLAGS="$xorg_testset_save_CFLAGS" 5177fi 5178 5179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191int i; 5192_ACEOF 5193if ac_fn_c_try_compile "$LINENO"; then : 5194 xorg_cv_cc_flag_unused_command_line_argument=yes 5195else 5196 xorg_cv_cc_flag_unused_command_line_argument=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204fi 5205 5206found="no" 5207 5208 if test $found = "no" ; then 5209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5211 fi 5212 5213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 fi 5216 5217 CFLAGS="$CFLAGS -Wpointer-arith" 5218 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5220$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5221 cacheid=xorg_cv_cc_flag__Wpointer_arith 5222 if eval \${$cacheid+:} false; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5226/* end confdefs.h. */ 5227int i; 5228int 5229main () 5230{ 5231 5232 ; 5233 return 0; 5234} 5235_ACEOF 5236if ac_fn_c_try_link "$LINENO"; then : 5237 eval $cacheid=yes 5238else 5239 eval $cacheid=no 5240fi 5241rm -f core conftest.err conftest.$ac_objext \ 5242 conftest$ac_exeext conftest.$ac_ext 5243fi 5244 5245 5246 CFLAGS="$xorg_testset_save_CFLAGS" 5247 5248 eval supported=\$$cacheid 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5250$as_echo "$supported" >&6; } 5251 if test "$supported" = "yes" ; then 5252 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5253 found="yes" 5254 fi 5255 fi 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271xorg_testset_save_CFLAGS="$CFLAGS" 5272 5273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282int i; 5283_ACEOF 5284if ac_fn_c_try_compile "$LINENO"; then : 5285 xorg_cv_cc_flag_unknown_warning_option=yes 5286else 5287 xorg_cv_cc_flag_unknown_warning_option=no 5288fi 5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295fi 5296 5297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 fi 5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309int i; 5310_ACEOF 5311if ac_fn_c_try_compile "$LINENO"; then : 5312 xorg_cv_cc_flag_unused_command_line_argument=yes 5313else 5314 xorg_cv_cc_flag_unused_command_line_argument=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317fi 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322fi 5323 5324found="no" 5325 5326 if test $found = "no" ; then 5327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 5331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 fi 5334 5335 CFLAGS="$CFLAGS -Wmissing-declarations" 5336 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5338$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5339 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5340 if eval \${$cacheid+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345int i; 5346int 5347main () 5348{ 5349 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354if ac_fn_c_try_link "$LINENO"; then : 5355 eval $cacheid=yes 5356else 5357 eval $cacheid=no 5358fi 5359rm -f core conftest.err conftest.$ac_objext \ 5360 conftest$ac_exeext conftest.$ac_ext 5361fi 5362 5363 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 5366 eval supported=\$$cacheid 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5368$as_echo "$supported" >&6; } 5369 if test "$supported" = "yes" ; then 5370 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5371 found="yes" 5372 fi 5373 fi 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389xorg_testset_save_CFLAGS="$CFLAGS" 5390 5391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400int i; 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO"; then : 5403 xorg_cv_cc_flag_unknown_warning_option=yes 5404else 5405 xorg_cv_cc_flag_unknown_warning_option=no 5406fi 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408fi 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5412 CFLAGS="$xorg_testset_save_CFLAGS" 5413fi 5414 5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 fi 5419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427int i; 5428_ACEOF 5429if ac_fn_c_try_compile "$LINENO"; then : 5430 xorg_cv_cc_flag_unused_command_line_argument=yes 5431else 5432 xorg_cv_cc_flag_unused_command_line_argument=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440fi 5441 5442found="no" 5443 5444 if test $found = "no" ; then 5445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 fi 5448 5449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 fi 5452 5453 CFLAGS="$CFLAGS -Wformat=2" 5454 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5456$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5457 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5458 if eval \${$cacheid+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464int 5465main () 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_link "$LINENO"; then : 5473 eval $cacheid=yes 5474else 5475 eval $cacheid=no 5476fi 5477rm -f core conftest.err conftest.$ac_objext \ 5478 conftest$ac_exeext conftest.$ac_ext 5479fi 5480 5481 5482 CFLAGS="$xorg_testset_save_CFLAGS" 5483 5484 eval supported=\$$cacheid 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5486$as_echo "$supported" >&6; } 5487 if test "$supported" = "yes" ; then 5488 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5489 found="yes" 5490 fi 5491 fi 5492 5493 if test $found = "no" ; then 5494 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5496 fi 5497 5498 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5500 fi 5501 5502 CFLAGS="$CFLAGS -Wformat" 5503 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5505$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5506 cacheid=xorg_cv_cc_flag__Wformat 5507 if eval \${$cacheid+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512int i; 5513int 5514main () 5515{ 5516 5517 ; 5518 return 0; 5519} 5520_ACEOF 5521if ac_fn_c_try_link "$LINENO"; then : 5522 eval $cacheid=yes 5523else 5524 eval $cacheid=no 5525fi 5526rm -f core conftest.err conftest.$ac_objext \ 5527 conftest$ac_exeext conftest.$ac_ext 5528fi 5529 5530 5531 CFLAGS="$xorg_testset_save_CFLAGS" 5532 5533 eval supported=\$$cacheid 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5535$as_echo "$supported" >&6; } 5536 if test "$supported" = "yes" ; then 5537 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5538 found="yes" 5539 fi 5540 fi 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558xorg_testset_save_CFLAGS="$CFLAGS" 5559 5560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569int i; 5570_ACEOF 5571if ac_fn_c_try_compile "$LINENO"; then : 5572 xorg_cv_cc_flag_unknown_warning_option=yes 5573else 5574 xorg_cv_cc_flag_unknown_warning_option=no 5575fi 5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5577fi 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582fi 5583 5584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5587 fi 5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596int i; 5597_ACEOF 5598if ac_fn_c_try_compile "$LINENO"; then : 5599 xorg_cv_cc_flag_unused_command_line_argument=yes 5600else 5601 xorg_cv_cc_flag_unused_command_line_argument=no 5602fi 5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5604fi 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5608 CFLAGS="$xorg_testset_save_CFLAGS" 5609fi 5610 5611found="no" 5612 5613 if test $found = "no" ; then 5614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 5618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5620 fi 5621 5622 CFLAGS="$CFLAGS -Wstrict-prototypes" 5623 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5625$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5626 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5627 if eval \${$cacheid+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633int 5634main () 5635{ 5636 5637 ; 5638 return 0; 5639} 5640_ACEOF 5641if ac_fn_c_try_link "$LINENO"; then : 5642 eval $cacheid=yes 5643else 5644 eval $cacheid=no 5645fi 5646rm -f core conftest.err conftest.$ac_objext \ 5647 conftest$ac_exeext conftest.$ac_ext 5648fi 5649 5650 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652 5653 eval supported=\$$cacheid 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5655$as_echo "$supported" >&6; } 5656 if test "$supported" = "yes" ; then 5657 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5658 found="yes" 5659 fi 5660 fi 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676xorg_testset_save_CFLAGS="$CFLAGS" 5677 5678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687int i; 5688_ACEOF 5689if ac_fn_c_try_compile "$LINENO"; then : 5690 xorg_cv_cc_flag_unknown_warning_option=yes 5691else 5692 xorg_cv_cc_flag_unknown_warning_option=no 5693fi 5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5699 CFLAGS="$xorg_testset_save_CFLAGS" 5700fi 5701 5702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711else 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713/* end confdefs.h. */ 5714int i; 5715_ACEOF 5716if ac_fn_c_try_compile "$LINENO"; then : 5717 xorg_cv_cc_flag_unused_command_line_argument=yes 5718else 5719 xorg_cv_cc_flag_unused_command_line_argument=no 5720fi 5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5726 CFLAGS="$xorg_testset_save_CFLAGS" 5727fi 5728 5729found="no" 5730 5731 if test $found = "no" ; then 5732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5734 fi 5735 5736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5738 fi 5739 5740 CFLAGS="$CFLAGS -Wmissing-prototypes" 5741 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5743$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5744 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5745 if eval \${$cacheid+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750int i; 5751int 5752main () 5753{ 5754 5755 ; 5756 return 0; 5757} 5758_ACEOF 5759if ac_fn_c_try_link "$LINENO"; then : 5760 eval $cacheid=yes 5761else 5762 eval $cacheid=no 5763fi 5764rm -f core conftest.err conftest.$ac_objext \ 5765 conftest$ac_exeext conftest.$ac_ext 5766fi 5767 5768 5769 CFLAGS="$xorg_testset_save_CFLAGS" 5770 5771 eval supported=\$$cacheid 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5773$as_echo "$supported" >&6; } 5774 if test "$supported" = "yes" ; then 5775 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5776 found="yes" 5777 fi 5778 fi 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794xorg_testset_save_CFLAGS="$CFLAGS" 5795 5796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805int i; 5806_ACEOF 5807if ac_fn_c_try_compile "$LINENO"; then : 5808 xorg_cv_cc_flag_unknown_warning_option=yes 5809else 5810 xorg_cv_cc_flag_unknown_warning_option=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5817 CFLAGS="$xorg_testset_save_CFLAGS" 5818fi 5819 5820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5823 fi 5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5831/* end confdefs.h. */ 5832int i; 5833_ACEOF 5834if ac_fn_c_try_compile "$LINENO"; then : 5835 xorg_cv_cc_flag_unused_command_line_argument=yes 5836else 5837 xorg_cv_cc_flag_unused_command_line_argument=no 5838fi 5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5840fi 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5844 CFLAGS="$xorg_testset_save_CFLAGS" 5845fi 5846 5847found="no" 5848 5849 if test $found = "no" ; then 5850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 5854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 fi 5857 5858 CFLAGS="$CFLAGS -Wnested-externs" 5859 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5861$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5862 cacheid=xorg_cv_cc_flag__Wnested_externs 5863 if eval \${$cacheid+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868int i; 5869int 5870main () 5871{ 5872 5873 ; 5874 return 0; 5875} 5876_ACEOF 5877if ac_fn_c_try_link "$LINENO"; then : 5878 eval $cacheid=yes 5879else 5880 eval $cacheid=no 5881fi 5882rm -f core conftest.err conftest.$ac_objext \ 5883 conftest$ac_exeext conftest.$ac_ext 5884fi 5885 5886 5887 CFLAGS="$xorg_testset_save_CFLAGS" 5888 5889 eval supported=\$$cacheid 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5891$as_echo "$supported" >&6; } 5892 if test "$supported" = "yes" ; then 5893 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5894 found="yes" 5895 fi 5896 fi 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912xorg_testset_save_CFLAGS="$CFLAGS" 5913 5914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920else 5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922/* end confdefs.h. */ 5923int i; 5924_ACEOF 5925if ac_fn_c_try_compile "$LINENO"; then : 5926 xorg_cv_cc_flag_unknown_warning_option=yes 5927else 5928 xorg_cv_cc_flag_unknown_warning_option=no 5929fi 5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5931fi 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936fi 5937 5938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5941 fi 5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5946 $as_echo_n "(cached) " >&6 5947else 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949/* end confdefs.h. */ 5950int i; 5951_ACEOF 5952if ac_fn_c_try_compile "$LINENO"; then : 5953 xorg_cv_cc_flag_unused_command_line_argument=yes 5954else 5955 xorg_cv_cc_flag_unused_command_line_argument=no 5956fi 5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963fi 5964 5965found="no" 5966 5967 if test $found = "no" ; then 5968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 5972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 fi 5975 5976 CFLAGS="$CFLAGS -Wbad-function-cast" 5977 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5979$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5980 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5981 if eval \${$cacheid+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5985/* end confdefs.h. */ 5986int i; 5987int 5988main () 5989{ 5990 5991 ; 5992 return 0; 5993} 5994_ACEOF 5995if ac_fn_c_try_link "$LINENO"; then : 5996 eval $cacheid=yes 5997else 5998 eval $cacheid=no 5999fi 6000rm -f core conftest.err conftest.$ac_objext \ 6001 conftest$ac_exeext conftest.$ac_ext 6002fi 6003 6004 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006 6007 eval supported=\$$cacheid 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6009$as_echo "$supported" >&6; } 6010 if test "$supported" = "yes" ; then 6011 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6012 found="yes" 6013 fi 6014 fi 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030xorg_testset_save_CFLAGS="$CFLAGS" 6031 6032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038else 6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6040/* end confdefs.h. */ 6041int i; 6042_ACEOF 6043if ac_fn_c_try_compile "$LINENO"; then : 6044 xorg_cv_cc_flag_unknown_warning_option=yes 6045else 6046 xorg_cv_cc_flag_unknown_warning_option=no 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049fi 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6053 CFLAGS="$xorg_testset_save_CFLAGS" 6054fi 6055 6056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 fi 6060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068int i; 6069_ACEOF 6070if ac_fn_c_try_compile "$LINENO"; then : 6071 xorg_cv_cc_flag_unused_command_line_argument=yes 6072else 6073 xorg_cv_cc_flag_unused_command_line_argument=no 6074fi 6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6076fi 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6080 CFLAGS="$xorg_testset_save_CFLAGS" 6081fi 6082 6083found="no" 6084 6085 if test $found = "no" ; then 6086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6088 fi 6089 6090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6092 fi 6093 6094 CFLAGS="$CFLAGS -Wold-style-definition" 6095 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6097$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6098 cacheid=xorg_cv_cc_flag__Wold_style_definition 6099 if eval \${$cacheid+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6103/* end confdefs.h. */ 6104int i; 6105int 6106main () 6107{ 6108 6109 ; 6110 return 0; 6111} 6112_ACEOF 6113if ac_fn_c_try_link "$LINENO"; then : 6114 eval $cacheid=yes 6115else 6116 eval $cacheid=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext \ 6119 conftest$ac_exeext conftest.$ac_ext 6120fi 6121 6122 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124 6125 eval supported=\$$cacheid 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6127$as_echo "$supported" >&6; } 6128 if test "$supported" = "yes" ; then 6129 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6130 found="yes" 6131 fi 6132 fi 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148xorg_testset_save_CFLAGS="$CFLAGS" 6149 6150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6155 $as_echo_n "(cached) " >&6 6156else 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6158/* end confdefs.h. */ 6159int i; 6160_ACEOF 6161if ac_fn_c_try_compile "$LINENO"; then : 6162 xorg_cv_cc_flag_unknown_warning_option=yes 6163else 6164 xorg_cv_cc_flag_unknown_warning_option=no 6165fi 6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6167fi 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172fi 6173 6174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6177 fi 6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187_ACEOF 6188if ac_fn_c_try_compile "$LINENO"; then : 6189 xorg_cv_cc_flag_unused_command_line_argument=yes 6190else 6191 xorg_cv_cc_flag_unused_command_line_argument=no 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194fi 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199fi 6200 6201found="no" 6202 6203 if test $found = "no" ; then 6204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6206 fi 6207 6208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6210 fi 6211 6212 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6213 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6215$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6216 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6217 if eval \${$cacheid+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222int i; 6223int 6224main () 6225{ 6226 6227 ; 6228 return 0; 6229} 6230_ACEOF 6231if ac_fn_c_try_link "$LINENO"; then : 6232 eval $cacheid=yes 6233else 6234 eval $cacheid=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext \ 6237 conftest$ac_exeext conftest.$ac_ext 6238fi 6239 6240 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242 6243 eval supported=\$$cacheid 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6245$as_echo "$supported" >&6; } 6246 if test "$supported" = "yes" ; then 6247 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6248 found="yes" 6249 fi 6250 fi 6251 6252 6253 6254 6255 6256# This chunk adds additional warnings that could catch undesired effects. 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270xorg_testset_save_CFLAGS="$CFLAGS" 6271 6272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280/* end confdefs.h. */ 6281int i; 6282_ACEOF 6283if ac_fn_c_try_compile "$LINENO"; then : 6284 xorg_cv_cc_flag_unknown_warning_option=yes 6285else 6286 xorg_cv_cc_flag_unknown_warning_option=no 6287fi 6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6289fi 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6293 CFLAGS="$xorg_testset_save_CFLAGS" 6294fi 6295 6296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 fi 6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308int i; 6309_ACEOF 6310if ac_fn_c_try_compile "$LINENO"; then : 6311 xorg_cv_cc_flag_unused_command_line_argument=yes 6312else 6313 xorg_cv_cc_flag_unused_command_line_argument=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6316fi 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321fi 6322 6323found="no" 6324 6325 if test $found = "no" ; then 6326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 fi 6329 6330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6332 fi 6333 6334 CFLAGS="$CFLAGS -Wunused" 6335 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6337$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6338 cacheid=xorg_cv_cc_flag__Wunused 6339 if eval \${$cacheid+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344int i; 6345int 6346main () 6347{ 6348 6349 ; 6350 return 0; 6351} 6352_ACEOF 6353if ac_fn_c_try_link "$LINENO"; then : 6354 eval $cacheid=yes 6355else 6356 eval $cacheid=no 6357fi 6358rm -f core conftest.err conftest.$ac_objext \ 6359 conftest$ac_exeext conftest.$ac_ext 6360fi 6361 6362 6363 CFLAGS="$xorg_testset_save_CFLAGS" 6364 6365 eval supported=\$$cacheid 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6367$as_echo "$supported" >&6; } 6368 if test "$supported" = "yes" ; then 6369 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6370 found="yes" 6371 fi 6372 fi 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388xorg_testset_save_CFLAGS="$CFLAGS" 6389 6390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396else 6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399int i; 6400_ACEOF 6401if ac_fn_c_try_compile "$LINENO"; then : 6402 xorg_cv_cc_flag_unknown_warning_option=yes 6403else 6404 xorg_cv_cc_flag_unknown_warning_option=no 6405fi 6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6407fi 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6411 CFLAGS="$xorg_testset_save_CFLAGS" 6412fi 6413 6414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 fi 6418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6425/* end confdefs.h. */ 6426int i; 6427_ACEOF 6428if ac_fn_c_try_compile "$LINENO"; then : 6429 xorg_cv_cc_flag_unused_command_line_argument=yes 6430else 6431 xorg_cv_cc_flag_unused_command_line_argument=no 6432fi 6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6434fi 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6438 CFLAGS="$xorg_testset_save_CFLAGS" 6439fi 6440 6441found="no" 6442 6443 if test $found = "no" ; then 6444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 fi 6447 6448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6450 fi 6451 6452 CFLAGS="$CFLAGS -Wuninitialized" 6453 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6455$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6456 cacheid=xorg_cv_cc_flag__Wuninitialized 6457 if eval \${$cacheid+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462int i; 6463int 6464main () 6465{ 6466 6467 ; 6468 return 0; 6469} 6470_ACEOF 6471if ac_fn_c_try_link "$LINENO"; then : 6472 eval $cacheid=yes 6473else 6474 eval $cacheid=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext \ 6477 conftest$ac_exeext conftest.$ac_ext 6478fi 6479 6480 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482 6483 eval supported=\$$cacheid 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6485$as_echo "$supported" >&6; } 6486 if test "$supported" = "yes" ; then 6487 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6488 found="yes" 6489 fi 6490 fi 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506xorg_testset_save_CFLAGS="$CFLAGS" 6507 6508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517int i; 6518_ACEOF 6519if ac_fn_c_try_compile "$LINENO"; then : 6520 xorg_cv_cc_flag_unknown_warning_option=yes 6521else 6522 xorg_cv_cc_flag_unknown_warning_option=no 6523fi 6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6525fi 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6529 CFLAGS="$xorg_testset_save_CFLAGS" 6530fi 6531 6532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 fi 6536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544int i; 6545_ACEOF 6546if ac_fn_c_try_compile "$LINENO"; then : 6547 xorg_cv_cc_flag_unused_command_line_argument=yes 6548else 6549 xorg_cv_cc_flag_unused_command_line_argument=no 6550fi 6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6556 CFLAGS="$xorg_testset_save_CFLAGS" 6557fi 6558 6559found="no" 6560 6561 if test $found = "no" ; then 6562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 6566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 fi 6569 6570 CFLAGS="$CFLAGS -Wshadow" 6571 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6573$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6574 cacheid=xorg_cv_cc_flag__Wshadow 6575 if eval \${$cacheid+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581int 6582main () 6583{ 6584 6585 ; 6586 return 0; 6587} 6588_ACEOF 6589if ac_fn_c_try_link "$LINENO"; then : 6590 eval $cacheid=yes 6591else 6592 eval $cacheid=no 6593fi 6594rm -f core conftest.err conftest.$ac_objext \ 6595 conftest$ac_exeext conftest.$ac_ext 6596fi 6597 6598 6599 CFLAGS="$xorg_testset_save_CFLAGS" 6600 6601 eval supported=\$$cacheid 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6603$as_echo "$supported" >&6; } 6604 if test "$supported" = "yes" ; then 6605 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6606 found="yes" 6607 fi 6608 fi 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624xorg_testset_save_CFLAGS="$CFLAGS" 6625 6626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634/* end confdefs.h. */ 6635int i; 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO"; then : 6638 xorg_cv_cc_flag_unknown_warning_option=yes 6639else 6640 xorg_cv_cc_flag_unknown_warning_option=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6643fi 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648fi 6649 6650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661/* end confdefs.h. */ 6662int i; 6663_ACEOF 6664if ac_fn_c_try_compile "$LINENO"; then : 6665 xorg_cv_cc_flag_unused_command_line_argument=yes 6666else 6667 xorg_cv_cc_flag_unused_command_line_argument=no 6668fi 6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6670fi 6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6674 CFLAGS="$xorg_testset_save_CFLAGS" 6675fi 6676 6677found="no" 6678 6679 if test $found = "no" ; then 6680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6682 fi 6683 6684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6686 fi 6687 6688 CFLAGS="$CFLAGS -Wcast-qual" 6689 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6691$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6692 cacheid=xorg_cv_cc_flag__Wcast_qual 6693 if eval \${$cacheid+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698int i; 6699int 6700main () 6701{ 6702 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707if ac_fn_c_try_link "$LINENO"; then : 6708 eval $cacheid=yes 6709else 6710 eval $cacheid=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext \ 6713 conftest$ac_exeext conftest.$ac_ext 6714fi 6715 6716 6717 CFLAGS="$xorg_testset_save_CFLAGS" 6718 6719 eval supported=\$$cacheid 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6721$as_echo "$supported" >&6; } 6722 if test "$supported" = "yes" ; then 6723 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6724 found="yes" 6725 fi 6726 fi 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742xorg_testset_save_CFLAGS="$CFLAGS" 6743 6744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753int i; 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO"; then : 6756 xorg_cv_cc_flag_unknown_warning_option=yes 6757else 6758 xorg_cv_cc_flag_unknown_warning_option=no 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6761fi 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766fi 6767 6768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6771 fi 6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6776 $as_echo_n "(cached) " >&6 6777else 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779/* end confdefs.h. */ 6780int i; 6781_ACEOF 6782if ac_fn_c_try_compile "$LINENO"; then : 6783 xorg_cv_cc_flag_unused_command_line_argument=yes 6784else 6785 xorg_cv_cc_flag_unused_command_line_argument=no 6786fi 6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6792 CFLAGS="$xorg_testset_save_CFLAGS" 6793fi 6794 6795found="no" 6796 6797 if test $found = "no" ; then 6798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 fi 6801 6802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6804 fi 6805 6806 CFLAGS="$CFLAGS -Wmissing-noreturn" 6807 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6809$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6810 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6811 if eval \${$cacheid+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817int 6818main () 6819{ 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO"; then : 6826 eval $cacheid=yes 6827else 6828 eval $cacheid=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext \ 6831 conftest$ac_exeext conftest.$ac_ext 6832fi 6833 6834 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836 6837 eval supported=\$$cacheid 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6839$as_echo "$supported" >&6; } 6840 if test "$supported" = "yes" ; then 6841 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6842 found="yes" 6843 fi 6844 fi 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860xorg_testset_save_CFLAGS="$CFLAGS" 6861 6862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871int i; 6872_ACEOF 6873if ac_fn_c_try_compile "$LINENO"; then : 6874 xorg_cv_cc_flag_unknown_warning_option=yes 6875else 6876 xorg_cv_cc_flag_unknown_warning_option=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6879fi 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6883 CFLAGS="$xorg_testset_save_CFLAGS" 6884fi 6885 6886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6889 fi 6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899_ACEOF 6900if ac_fn_c_try_compile "$LINENO"; then : 6901 xorg_cv_cc_flag_unused_command_line_argument=yes 6902else 6903 xorg_cv_cc_flag_unused_command_line_argument=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911fi 6912 6913found="no" 6914 6915 if test $found = "no" ; then 6916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 fi 6919 6920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 fi 6923 6924 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6925 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6927$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6928 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6929 if eval \${$cacheid+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935int 6936main () 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_link "$LINENO"; then : 6944 eval $cacheid=yes 6945else 6946 eval $cacheid=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext \ 6949 conftest$ac_exeext conftest.$ac_ext 6950fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957$as_echo "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6960 found="yes" 6961 fi 6962 fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978xorg_testset_save_CFLAGS="$CFLAGS" 6979 6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989int i; 6990_ACEOF 6991if ac_fn_c_try_compile "$LINENO"; then : 6992 xorg_cv_cc_flag_unknown_warning_option=yes 6993else 6994 xorg_cv_cc_flag_unknown_warning_option=no 6995fi 6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6997fi 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7001 CFLAGS="$xorg_testset_save_CFLAGS" 7002fi 7003 7004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7007 fi 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017_ACEOF 7018if ac_fn_c_try_compile "$LINENO"; then : 7019 xorg_cv_cc_flag_unused_command_line_argument=yes 7020else 7021 xorg_cv_cc_flag_unused_command_line_argument=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029fi 7030 7031found="no" 7032 7033 if test $found = "no" ; then 7034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7036 fi 7037 7038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7040 fi 7041 7042 CFLAGS="$CFLAGS -Wredundant-decls" 7043 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7045$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7046 cacheid=xorg_cv_cc_flag__Wredundant_decls 7047 if eval \${$cacheid+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052int i; 7053int 7054main () 7055{ 7056 7057 ; 7058 return 0; 7059} 7060_ACEOF 7061if ac_fn_c_try_link "$LINENO"; then : 7062 eval $cacheid=yes 7063else 7064 eval $cacheid=no 7065fi 7066rm -f core conftest.err conftest.$ac_objext \ 7067 conftest$ac_exeext conftest.$ac_ext 7068fi 7069 7070 7071 CFLAGS="$xorg_testset_save_CFLAGS" 7072 7073 eval supported=\$$cacheid 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7075$as_echo "$supported" >&6; } 7076 if test "$supported" = "yes" ; then 7077 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7078 found="yes" 7079 fi 7080 fi 7081 7082 7083 7084# These are currently disabled because they are noisy. They will be enabled 7085# in the future once the codebase is sufficiently modernized to silence 7086# them. For now, I don't want them to drown out the other warnings. 7087# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 7088# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7089# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7090 7091# Turn some warnings into errors, so we don't accidently get successful builds 7092# when there are problems that should be fixed. 7093 7094if test "x$SELECTIVE_WERROR" = "xyes" ; then 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108xorg_testset_save_CFLAGS="$CFLAGS" 7109 7110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO"; then : 7122 xorg_cv_cc_flag_unknown_warning_option=yes 7123else 7124 xorg_cv_cc_flag_unknown_warning_option=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7131 CFLAGS="$xorg_testset_save_CFLAGS" 7132fi 7133 7134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 fi 7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146int i; 7147_ACEOF 7148if ac_fn_c_try_compile "$LINENO"; then : 7149 xorg_cv_cc_flag_unused_command_line_argument=yes 7150else 7151 xorg_cv_cc_flag_unused_command_line_argument=no 7152fi 7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7154fi 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159fi 7160 7161found="no" 7162 7163 if test $found = "no" ; then 7164 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7166 fi 7167 7168 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7170 fi 7171 7172 CFLAGS="$CFLAGS -Werror=implicit" 7173 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7175$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7176 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 7177 if eval \${$cacheid+:} false; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182int i; 7183int 7184main () 7185{ 7186 7187 ; 7188 return 0; 7189} 7190_ACEOF 7191if ac_fn_c_try_link "$LINENO"; then : 7192 eval $cacheid=yes 7193else 7194 eval $cacheid=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext \ 7197 conftest$ac_exeext conftest.$ac_ext 7198fi 7199 7200 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202 7203 eval supported=\$$cacheid 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7205$as_echo "$supported" >&6; } 7206 if test "$supported" = "yes" ; then 7207 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7208 found="yes" 7209 fi 7210 fi 7211 7212 if test $found = "no" ; then 7213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 fi 7216 7217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7219 fi 7220 7221 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7222 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7224$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7225 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 7226 if eval \${$cacheid+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7230/* end confdefs.h. */ 7231int i; 7232int 7233main () 7234{ 7235 7236 ; 7237 return 0; 7238} 7239_ACEOF 7240if ac_fn_c_try_link "$LINENO"; then : 7241 eval $cacheid=yes 7242else 7243 eval $cacheid=no 7244fi 7245rm -f core conftest.err conftest.$ac_objext \ 7246 conftest$ac_exeext conftest.$ac_ext 7247fi 7248 7249 7250 CFLAGS="$xorg_testset_save_CFLAGS" 7251 7252 eval supported=\$$cacheid 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7254$as_echo "$supported" >&6; } 7255 if test "$supported" = "yes" ; then 7256 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7257 found="yes" 7258 fi 7259 fi 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275xorg_testset_save_CFLAGS="$CFLAGS" 7276 7277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285/* end confdefs.h. */ 7286int i; 7287_ACEOF 7288if ac_fn_c_try_compile "$LINENO"; then : 7289 xorg_cv_cc_flag_unknown_warning_option=yes 7290else 7291 xorg_cv_cc_flag_unknown_warning_option=no 7292fi 7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7294fi 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7298 CFLAGS="$xorg_testset_save_CFLAGS" 7299fi 7300 7301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 fi 7305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7312/* end confdefs.h. */ 7313int i; 7314_ACEOF 7315if ac_fn_c_try_compile "$LINENO"; then : 7316 xorg_cv_cc_flag_unused_command_line_argument=yes 7317else 7318 xorg_cv_cc_flag_unused_command_line_argument=no 7319fi 7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7321fi 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7325 CFLAGS="$xorg_testset_save_CFLAGS" 7326fi 7327 7328found="no" 7329 7330 if test $found = "no" ; then 7331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7333 fi 7334 7335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7337 fi 7338 7339 CFLAGS="$CFLAGS -Werror=nonnull" 7340 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7342$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7343 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7344 if eval \${$cacheid+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349int i; 7350int 7351main () 7352{ 7353 7354 ; 7355 return 0; 7356} 7357_ACEOF 7358if ac_fn_c_try_link "$LINENO"; then : 7359 eval $cacheid=yes 7360else 7361 eval $cacheid=no 7362fi 7363rm -f core conftest.err conftest.$ac_objext \ 7364 conftest$ac_exeext conftest.$ac_ext 7365fi 7366 7367 7368 CFLAGS="$xorg_testset_save_CFLAGS" 7369 7370 eval supported=\$$cacheid 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7372$as_echo "$supported" >&6; } 7373 if test "$supported" = "yes" ; then 7374 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7375 found="yes" 7376 fi 7377 fi 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393xorg_testset_save_CFLAGS="$CFLAGS" 7394 7395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404int i; 7405_ACEOF 7406if ac_fn_c_try_compile "$LINENO"; then : 7407 xorg_cv_cc_flag_unknown_warning_option=yes 7408else 7409 xorg_cv_cc_flag_unknown_warning_option=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417fi 7418 7419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7422 fi 7423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7430/* end confdefs.h. */ 7431int i; 7432_ACEOF 7433if ac_fn_c_try_compile "$LINENO"; then : 7434 xorg_cv_cc_flag_unused_command_line_argument=yes 7435else 7436 xorg_cv_cc_flag_unused_command_line_argument=no 7437fi 7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7439fi 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7443 CFLAGS="$xorg_testset_save_CFLAGS" 7444fi 7445 7446found="no" 7447 7448 if test $found = "no" ; then 7449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 7453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7455 fi 7456 7457 CFLAGS="$CFLAGS -Werror=init-self" 7458 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7460$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7461 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7462 if eval \${$cacheid+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467int i; 7468int 7469main () 7470{ 7471 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_link "$LINENO"; then : 7477 eval $cacheid=yes 7478else 7479 eval $cacheid=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext \ 7482 conftest$ac_exeext conftest.$ac_ext 7483fi 7484 7485 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487 7488 eval supported=\$$cacheid 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7490$as_echo "$supported" >&6; } 7491 if test "$supported" = "yes" ; then 7492 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7493 found="yes" 7494 fi 7495 fi 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511xorg_testset_save_CFLAGS="$CFLAGS" 7512 7513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522int i; 7523_ACEOF 7524if ac_fn_c_try_compile "$LINENO"; then : 7525 xorg_cv_cc_flag_unknown_warning_option=yes 7526else 7527 xorg_cv_cc_flag_unknown_warning_option=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7530fi 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535fi 7536 7537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540 fi 7541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7545 $as_echo_n "(cached) " >&6 7546else 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549int i; 7550_ACEOF 7551if ac_fn_c_try_compile "$LINENO"; then : 7552 xorg_cv_cc_flag_unused_command_line_argument=yes 7553else 7554 xorg_cv_cc_flag_unused_command_line_argument=no 7555fi 7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7557fi 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7561 CFLAGS="$xorg_testset_save_CFLAGS" 7562fi 7563 7564found="no" 7565 7566 if test $found = "no" ; then 7567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 7571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7573 fi 7574 7575 CFLAGS="$CFLAGS -Werror=main" 7576 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7578$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7579 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7580 if eval \${$cacheid+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584/* end confdefs.h. */ 7585int i; 7586int 7587main () 7588{ 7589 7590 ; 7591 return 0; 7592} 7593_ACEOF 7594if ac_fn_c_try_link "$LINENO"; then : 7595 eval $cacheid=yes 7596else 7597 eval $cacheid=no 7598fi 7599rm -f core conftest.err conftest.$ac_objext \ 7600 conftest$ac_exeext conftest.$ac_ext 7601fi 7602 7603 7604 CFLAGS="$xorg_testset_save_CFLAGS" 7605 7606 eval supported=\$$cacheid 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7608$as_echo "$supported" >&6; } 7609 if test "$supported" = "yes" ; then 7610 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7611 found="yes" 7612 fi 7613 fi 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629xorg_testset_save_CFLAGS="$CFLAGS" 7630 7631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637else 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641_ACEOF 7642if ac_fn_c_try_compile "$LINENO"; then : 7643 xorg_cv_cc_flag_unknown_warning_option=yes 7644else 7645 xorg_cv_cc_flag_unknown_warning_option=no 7646fi 7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7648fi 7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7652 CFLAGS="$xorg_testset_save_CFLAGS" 7653fi 7654 7655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7658 fi 7659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667int i; 7668_ACEOF 7669if ac_fn_c_try_compile "$LINENO"; then : 7670 xorg_cv_cc_flag_unused_command_line_argument=yes 7671else 7672 xorg_cv_cc_flag_unused_command_line_argument=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680fi 7681 7682found="no" 7683 7684 if test $found = "no" ; then 7685 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 fi 7688 7689 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7691 fi 7692 7693 CFLAGS="$CFLAGS -Werror=missing-braces" 7694 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7696$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7697 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7698 if eval \${$cacheid+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703int i; 7704int 7705main () 7706{ 7707 7708 ; 7709 return 0; 7710} 7711_ACEOF 7712if ac_fn_c_try_link "$LINENO"; then : 7713 eval $cacheid=yes 7714else 7715 eval $cacheid=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext \ 7718 conftest$ac_exeext conftest.$ac_ext 7719fi 7720 7721 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723 7724 eval supported=\$$cacheid 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7726$as_echo "$supported" >&6; } 7727 if test "$supported" = "yes" ; then 7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7729 found="yes" 7730 fi 7731 fi 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747xorg_testset_save_CFLAGS="$CFLAGS" 7748 7749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758int i; 7759_ACEOF 7760if ac_fn_c_try_compile "$LINENO"; then : 7761 xorg_cv_cc_flag_unknown_warning_option=yes 7762else 7763 xorg_cv_cc_flag_unknown_warning_option=no 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7766fi 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7770 CFLAGS="$xorg_testset_save_CFLAGS" 7771fi 7772 7773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7776 fi 7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785int i; 7786_ACEOF 7787if ac_fn_c_try_compile "$LINENO"; then : 7788 xorg_cv_cc_flag_unused_command_line_argument=yes 7789else 7790 xorg_cv_cc_flag_unused_command_line_argument=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7793fi 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798fi 7799 7800found="no" 7801 7802 if test $found = "no" ; then 7803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7805 fi 7806 7807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7809 fi 7810 7811 CFLAGS="$CFLAGS -Werror=sequence-point" 7812 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7814$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7815 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7816 if eval \${$cacheid+:} false; then : 7817 $as_echo_n "(cached) " >&6 7818else 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821int i; 7822int 7823main () 7824{ 7825 7826 ; 7827 return 0; 7828} 7829_ACEOF 7830if ac_fn_c_try_link "$LINENO"; then : 7831 eval $cacheid=yes 7832else 7833 eval $cacheid=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext \ 7836 conftest$ac_exeext conftest.$ac_ext 7837fi 7838 7839 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841 7842 eval supported=\$$cacheid 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7844$as_echo "$supported" >&6; } 7845 if test "$supported" = "yes" ; then 7846 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7847 found="yes" 7848 fi 7849 fi 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865xorg_testset_save_CFLAGS="$CFLAGS" 7866 7867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876int i; 7877_ACEOF 7878if ac_fn_c_try_compile "$LINENO"; then : 7879 xorg_cv_cc_flag_unknown_warning_option=yes 7880else 7881 xorg_cv_cc_flag_unknown_warning_option=no 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889fi 7890 7891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7894 fi 7895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7899 $as_echo_n "(cached) " >&6 7900else 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903int i; 7904_ACEOF 7905if ac_fn_c_try_compile "$LINENO"; then : 7906 xorg_cv_cc_flag_unused_command_line_argument=yes 7907else 7908 xorg_cv_cc_flag_unused_command_line_argument=no 7909fi 7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7911fi 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7915 CFLAGS="$xorg_testset_save_CFLAGS" 7916fi 7917 7918found="no" 7919 7920 if test $found = "no" ; then 7921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7923 fi 7924 7925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7927 fi 7928 7929 CFLAGS="$CFLAGS -Werror=return-type" 7930 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7932$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7933 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7934 if eval \${$cacheid+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939int i; 7940int 7941main () 7942{ 7943 7944 ; 7945 return 0; 7946} 7947_ACEOF 7948if ac_fn_c_try_link "$LINENO"; then : 7949 eval $cacheid=yes 7950else 7951 eval $cacheid=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext \ 7954 conftest$ac_exeext conftest.$ac_ext 7955fi 7956 7957 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959 7960 eval supported=\$$cacheid 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7962$as_echo "$supported" >&6; } 7963 if test "$supported" = "yes" ; then 7964 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7965 found="yes" 7966 fi 7967 fi 7968 7969 if test $found = "no" ; then 7970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7972 fi 7973 7974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7976 fi 7977 7978 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7979 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7981$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7982 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7983 if eval \${$cacheid+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989int 7990main () 7991{ 7992 7993 ; 7994 return 0; 7995} 7996_ACEOF 7997if ac_fn_c_try_link "$LINENO"; then : 7998 eval $cacheid=yes 7999else 8000 eval $cacheid=no 8001fi 8002rm -f core conftest.err conftest.$ac_objext \ 8003 conftest$ac_exeext conftest.$ac_ext 8004fi 8005 8006 8007 CFLAGS="$xorg_testset_save_CFLAGS" 8008 8009 eval supported=\$$cacheid 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8011$as_echo "$supported" >&6; } 8012 if test "$supported" = "yes" ; then 8013 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8014 found="yes" 8015 fi 8016 fi 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032xorg_testset_save_CFLAGS="$CFLAGS" 8033 8034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8039 $as_echo_n "(cached) " >&6 8040else 8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043int i; 8044_ACEOF 8045if ac_fn_c_try_compile "$LINENO"; then : 8046 xorg_cv_cc_flag_unknown_warning_option=yes 8047else 8048 xorg_cv_cc_flag_unknown_warning_option=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8051fi 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056fi 8057 8058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 fi 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070int i; 8071_ACEOF 8072if ac_fn_c_try_compile "$LINENO"; then : 8073 xorg_cv_cc_flag_unused_command_line_argument=yes 8074else 8075 xorg_cv_cc_flag_unused_command_line_argument=no 8076fi 8077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8078fi 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8082 CFLAGS="$xorg_testset_save_CFLAGS" 8083fi 8084 8085found="no" 8086 8087 if test $found = "no" ; then 8088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 8092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 fi 8095 8096 CFLAGS="$CFLAGS -Werror=trigraphs" 8097 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8099$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8100 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 8101 if eval \${$cacheid+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107int 8108main () 8109{ 8110 8111 ; 8112 return 0; 8113} 8114_ACEOF 8115if ac_fn_c_try_link "$LINENO"; then : 8116 eval $cacheid=yes 8117else 8118 eval $cacheid=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext \ 8121 conftest$ac_exeext conftest.$ac_ext 8122fi 8123 8124 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126 8127 eval supported=\$$cacheid 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8129$as_echo "$supported" >&6; } 8130 if test "$supported" = "yes" ; then 8131 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8132 found="yes" 8133 fi 8134 fi 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150xorg_testset_save_CFLAGS="$CFLAGS" 8151 8152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8157 $as_echo_n "(cached) " >&6 8158else 8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160/* end confdefs.h. */ 8161int i; 8162_ACEOF 8163if ac_fn_c_try_compile "$LINENO"; then : 8164 xorg_cv_cc_flag_unknown_warning_option=yes 8165else 8166 xorg_cv_cc_flag_unknown_warning_option=no 8167fi 8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8169fi 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8173 CFLAGS="$xorg_testset_save_CFLAGS" 8174fi 8175 8176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8179 fi 8180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8187/* end confdefs.h. */ 8188int i; 8189_ACEOF 8190if ac_fn_c_try_compile "$LINENO"; then : 8191 xorg_cv_cc_flag_unused_command_line_argument=yes 8192else 8193 xorg_cv_cc_flag_unused_command_line_argument=no 8194fi 8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8196fi 8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8200 CFLAGS="$xorg_testset_save_CFLAGS" 8201fi 8202 8203found="no" 8204 8205 if test $found = "no" ; then 8206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 8210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8212 fi 8213 8214 CFLAGS="$CFLAGS -Werror=array-bounds" 8215 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8217$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8218 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 8219 if eval \${$cacheid+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224int i; 8225int 8226main () 8227{ 8228 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO"; then : 8234 eval $cacheid=yes 8235else 8236 eval $cacheid=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext \ 8239 conftest$ac_exeext conftest.$ac_ext 8240fi 8241 8242 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244 8245 eval supported=\$$cacheid 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8247$as_echo "$supported" >&6; } 8248 if test "$supported" = "yes" ; then 8249 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8250 found="yes" 8251 fi 8252 fi 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268xorg_testset_save_CFLAGS="$CFLAGS" 8269 8270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278/* end confdefs.h. */ 8279int i; 8280_ACEOF 8281if ac_fn_c_try_compile "$LINENO"; then : 8282 xorg_cv_cc_flag_unknown_warning_option=yes 8283else 8284 xorg_cv_cc_flag_unknown_warning_option=no 8285fi 8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8291 CFLAGS="$xorg_testset_save_CFLAGS" 8292fi 8293 8294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8297 fi 8298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306int i; 8307_ACEOF 8308if ac_fn_c_try_compile "$LINENO"; then : 8309 xorg_cv_cc_flag_unused_command_line_argument=yes 8310else 8311 xorg_cv_cc_flag_unused_command_line_argument=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319fi 8320 8321found="no" 8322 8323 if test $found = "no" ; then 8324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8326 fi 8327 8328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8330 fi 8331 8332 CFLAGS="$CFLAGS -Werror=write-strings" 8333 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8335$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8336 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8337 if eval \${$cacheid+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342int i; 8343int 8344main () 8345{ 8346 8347 ; 8348 return 0; 8349} 8350_ACEOF 8351if ac_fn_c_try_link "$LINENO"; then : 8352 eval $cacheid=yes 8353else 8354 eval $cacheid=no 8355fi 8356rm -f core conftest.err conftest.$ac_objext \ 8357 conftest$ac_exeext conftest.$ac_ext 8358fi 8359 8360 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362 8363 eval supported=\$$cacheid 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8365$as_echo "$supported" >&6; } 8366 if test "$supported" = "yes" ; then 8367 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8368 found="yes" 8369 fi 8370 fi 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386xorg_testset_save_CFLAGS="$CFLAGS" 8387 8388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO"; then : 8400 xorg_cv_cc_flag_unknown_warning_option=yes 8401else 8402 xorg_cv_cc_flag_unknown_warning_option=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8415 fi 8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423/* end confdefs.h. */ 8424int i; 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO"; then : 8427 xorg_cv_cc_flag_unused_command_line_argument=yes 8428else 8429 xorg_cv_cc_flag_unused_command_line_argument=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8432fi 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8437fi 8438 8439found="no" 8440 8441 if test $found = "no" ; then 8442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8444 fi 8445 8446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8448 fi 8449 8450 CFLAGS="$CFLAGS -Werror=address" 8451 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8453$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8454 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8455 if eval \${$cacheid+:} false; then : 8456 $as_echo_n "(cached) " >&6 8457else 8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8459/* end confdefs.h. */ 8460int i; 8461int 8462main () 8463{ 8464 8465 ; 8466 return 0; 8467} 8468_ACEOF 8469if ac_fn_c_try_link "$LINENO"; then : 8470 eval $cacheid=yes 8471else 8472 eval $cacheid=no 8473fi 8474rm -f core conftest.err conftest.$ac_objext \ 8475 conftest$ac_exeext conftest.$ac_ext 8476fi 8477 8478 8479 CFLAGS="$xorg_testset_save_CFLAGS" 8480 8481 eval supported=\$$cacheid 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8483$as_echo "$supported" >&6; } 8484 if test "$supported" = "yes" ; then 8485 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8486 found="yes" 8487 fi 8488 fi 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504xorg_testset_save_CFLAGS="$CFLAGS" 8505 8506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514/* end confdefs.h. */ 8515int i; 8516_ACEOF 8517if ac_fn_c_try_compile "$LINENO"; then : 8518 xorg_cv_cc_flag_unknown_warning_option=yes 8519else 8520 xorg_cv_cc_flag_unknown_warning_option=no 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528fi 8529 8530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8533 fi 8534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO"; then : 8545 xorg_cv_cc_flag_unused_command_line_argument=yes 8546else 8547 xorg_cv_cc_flag_unused_command_line_argument=no 8548fi 8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550fi 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8554 CFLAGS="$xorg_testset_save_CFLAGS" 8555fi 8556 8557found="no" 8558 8559 if test $found = "no" ; then 8560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8562 fi 8563 8564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8566 fi 8567 8568 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8569 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8571$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8572 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8573 if eval \${$cacheid+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579int 8580main () 8581{ 8582 8583 ; 8584 return 0; 8585} 8586_ACEOF 8587if ac_fn_c_try_link "$LINENO"; then : 8588 eval $cacheid=yes 8589else 8590 eval $cacheid=no 8591fi 8592rm -f core conftest.err conftest.$ac_objext \ 8593 conftest$ac_exeext conftest.$ac_ext 8594fi 8595 8596 8597 CFLAGS="$xorg_testset_save_CFLAGS" 8598 8599 eval supported=\$$cacheid 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8601$as_echo "$supported" >&6; } 8602 if test "$supported" = "yes" ; then 8603 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8604 found="yes" 8605 fi 8606 fi 8607 8608 if test $found = "no" ; then 8609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8611 fi 8612 8613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8615 fi 8616 8617 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8618 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8620$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8621 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8622 if eval \${$cacheid+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627int i; 8628int 8629main () 8630{ 8631 8632 ; 8633 return 0; 8634} 8635_ACEOF 8636if ac_fn_c_try_link "$LINENO"; then : 8637 eval $cacheid=yes 8638else 8639 eval $cacheid=no 8640fi 8641rm -f core conftest.err conftest.$ac_objext \ 8642 conftest$ac_exeext conftest.$ac_ext 8643fi 8644 8645 8646 CFLAGS="$xorg_testset_save_CFLAGS" 8647 8648 eval supported=\$$cacheid 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8650$as_echo "$supported" >&6; } 8651 if test "$supported" = "yes" ; then 8652 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8653 found="yes" 8654 fi 8655 fi 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671xorg_testset_save_CFLAGS="$CFLAGS" 8672 8673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681/* end confdefs.h. */ 8682int i; 8683_ACEOF 8684if ac_fn_c_try_compile "$LINENO"; then : 8685 xorg_cv_cc_flag_unknown_warning_option=yes 8686else 8687 xorg_cv_cc_flag_unknown_warning_option=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8690fi 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695fi 8696 8697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8700 fi 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int i; 8710_ACEOF 8711if ac_fn_c_try_compile "$LINENO"; then : 8712 xorg_cv_cc_flag_unused_command_line_argument=yes 8713else 8714 xorg_cv_cc_flag_unused_command_line_argument=no 8715fi 8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8717fi 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8721 CFLAGS="$xorg_testset_save_CFLAGS" 8722fi 8723 8724found="no" 8725 8726 if test $found = "no" ; then 8727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 fi 8730 8731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 fi 8734 8735 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8738$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8739 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8740 if eval \${$cacheid+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746int 8747main () 8748{ 8749 8750 ; 8751 return 0; 8752} 8753_ACEOF 8754if ac_fn_c_try_link "$LINENO"; then : 8755 eval $cacheid=yes 8756else 8757 eval $cacheid=no 8758fi 8759rm -f core conftest.err conftest.$ac_objext \ 8760 conftest$ac_exeext conftest.$ac_ext 8761fi 8762 8763 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765 8766 eval supported=\$$cacheid 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8768$as_echo "$supported" >&6; } 8769 if test "$supported" = "yes" ; then 8770 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8771 found="yes" 8772 fi 8773 fi 8774 8775 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8776else 8777{ $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 8778$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;} 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792xorg_testset_save_CFLAGS="$CFLAGS" 8793 8794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8802/* end confdefs.h. */ 8803int i; 8804_ACEOF 8805if ac_fn_c_try_compile "$LINENO"; then : 8806 xorg_cv_cc_flag_unknown_warning_option=yes 8807else 8808 xorg_cv_cc_flag_unknown_warning_option=no 8809fi 8810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8815 CFLAGS="$xorg_testset_save_CFLAGS" 8816fi 8817 8818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8821 fi 8822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8826 $as_echo_n "(cached) " >&6 8827else 8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829/* end confdefs.h. */ 8830int i; 8831_ACEOF 8832if ac_fn_c_try_compile "$LINENO"; then : 8833 xorg_cv_cc_flag_unused_command_line_argument=yes 8834else 8835 xorg_cv_cc_flag_unused_command_line_argument=no 8836fi 8837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8838fi 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8842 CFLAGS="$xorg_testset_save_CFLAGS" 8843fi 8844 8845found="no" 8846 8847 if test $found = "no" ; then 8848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 fi 8851 8852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8854 fi 8855 8856 CFLAGS="$CFLAGS -Wimplicit" 8857 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8859$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8860 cacheid=xorg_cv_cc_flag__Wimplicit 8861 if eval \${$cacheid+:} false; then : 8862 $as_echo_n "(cached) " >&6 8863else 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866int i; 8867int 8868main () 8869{ 8870 8871 ; 8872 return 0; 8873} 8874_ACEOF 8875if ac_fn_c_try_link "$LINENO"; then : 8876 eval $cacheid=yes 8877else 8878 eval $cacheid=no 8879fi 8880rm -f core conftest.err conftest.$ac_objext \ 8881 conftest$ac_exeext conftest.$ac_ext 8882fi 8883 8884 8885 CFLAGS="$xorg_testset_save_CFLAGS" 8886 8887 eval supported=\$$cacheid 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8889$as_echo "$supported" >&6; } 8890 if test "$supported" = "yes" ; then 8891 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8892 found="yes" 8893 fi 8894 fi 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910xorg_testset_save_CFLAGS="$CFLAGS" 8911 8912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921int i; 8922_ACEOF 8923if ac_fn_c_try_compile "$LINENO"; then : 8924 xorg_cv_cc_flag_unknown_warning_option=yes 8925else 8926 xorg_cv_cc_flag_unknown_warning_option=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8929fi 8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934fi 8935 8936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8939 fi 8940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8944 $as_echo_n "(cached) " >&6 8945else 8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947/* end confdefs.h. */ 8948int i; 8949_ACEOF 8950if ac_fn_c_try_compile "$LINENO"; then : 8951 xorg_cv_cc_flag_unused_command_line_argument=yes 8952else 8953 xorg_cv_cc_flag_unused_command_line_argument=no 8954fi 8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8956fi 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8960 CFLAGS="$xorg_testset_save_CFLAGS" 8961fi 8962 8963found="no" 8964 8965 if test $found = "no" ; then 8966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 fi 8969 8970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8972 fi 8973 8974 CFLAGS="$CFLAGS -Wnonnull" 8975 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8977$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8978 cacheid=xorg_cv_cc_flag__Wnonnull 8979 if eval \${$cacheid+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985int 8986main () 8987{ 8988 8989 ; 8990 return 0; 8991} 8992_ACEOF 8993if ac_fn_c_try_link "$LINENO"; then : 8994 eval $cacheid=yes 8995else 8996 eval $cacheid=no 8997fi 8998rm -f core conftest.err conftest.$ac_objext \ 8999 conftest$ac_exeext conftest.$ac_ext 9000fi 9001 9002 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004 9005 eval supported=\$$cacheid 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9007$as_echo "$supported" >&6; } 9008 if test "$supported" = "yes" ; then 9009 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9010 found="yes" 9011 fi 9012 fi 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028xorg_testset_save_CFLAGS="$CFLAGS" 9029 9030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038/* end confdefs.h. */ 9039int i; 9040_ACEOF 9041if ac_fn_c_try_compile "$LINENO"; then : 9042 xorg_cv_cc_flag_unknown_warning_option=yes 9043else 9044 xorg_cv_cc_flag_unknown_warning_option=no 9045fi 9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9047fi 9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052fi 9053 9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 fi 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066int i; 9067_ACEOF 9068if ac_fn_c_try_compile "$LINENO"; then : 9069 xorg_cv_cc_flag_unused_command_line_argument=yes 9070else 9071 xorg_cv_cc_flag_unused_command_line_argument=no 9072fi 9073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9074fi 9075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9078 CFLAGS="$xorg_testset_save_CFLAGS" 9079fi 9080 9081found="no" 9082 9083 if test $found = "no" ; then 9084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9086 fi 9087 9088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9090 fi 9091 9092 CFLAGS="$CFLAGS -Winit-self" 9093 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9095$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9096 cacheid=xorg_cv_cc_flag__Winit_self 9097 if eval \${$cacheid+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9101/* end confdefs.h. */ 9102int i; 9103int 9104main () 9105{ 9106 9107 ; 9108 return 0; 9109} 9110_ACEOF 9111if ac_fn_c_try_link "$LINENO"; then : 9112 eval $cacheid=yes 9113else 9114 eval $cacheid=no 9115fi 9116rm -f core conftest.err conftest.$ac_objext \ 9117 conftest$ac_exeext conftest.$ac_ext 9118fi 9119 9120 9121 CFLAGS="$xorg_testset_save_CFLAGS" 9122 9123 eval supported=\$$cacheid 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9125$as_echo "$supported" >&6; } 9126 if test "$supported" = "yes" ; then 9127 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9128 found="yes" 9129 fi 9130 fi 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146xorg_testset_save_CFLAGS="$CFLAGS" 9147 9148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154else 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156/* end confdefs.h. */ 9157int i; 9158_ACEOF 9159if ac_fn_c_try_compile "$LINENO"; then : 9160 xorg_cv_cc_flag_unknown_warning_option=yes 9161else 9162 xorg_cv_cc_flag_unknown_warning_option=no 9163fi 9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9165fi 9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9169 CFLAGS="$xorg_testset_save_CFLAGS" 9170fi 9171 9172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9175 fi 9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183/* end confdefs.h. */ 9184int i; 9185_ACEOF 9186if ac_fn_c_try_compile "$LINENO"; then : 9187 xorg_cv_cc_flag_unused_command_line_argument=yes 9188else 9189 xorg_cv_cc_flag_unused_command_line_argument=no 9190fi 9191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9192fi 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9196 CFLAGS="$xorg_testset_save_CFLAGS" 9197fi 9198 9199found="no" 9200 9201 if test $found = "no" ; then 9202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 fi 9205 9206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9208 fi 9209 9210 CFLAGS="$CFLAGS -Wmain" 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9213$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9214 cacheid=xorg_cv_cc_flag__Wmain 9215 if eval \${$cacheid+:} false; then : 9216 $as_echo_n "(cached) " >&6 9217else 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220int i; 9221int 9222main () 9223{ 9224 9225 ; 9226 return 0; 9227} 9228_ACEOF 9229if ac_fn_c_try_link "$LINENO"; then : 9230 eval $cacheid=yes 9231else 9232 eval $cacheid=no 9233fi 9234rm -f core conftest.err conftest.$ac_objext \ 9235 conftest$ac_exeext conftest.$ac_ext 9236fi 9237 9238 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240 9241 eval supported=\$$cacheid 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9243$as_echo "$supported" >&6; } 9244 if test "$supported" = "yes" ; then 9245 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9246 found="yes" 9247 fi 9248 fi 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264xorg_testset_save_CFLAGS="$CFLAGS" 9265 9266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9271 $as_echo_n "(cached) " >&6 9272else 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275int i; 9276_ACEOF 9277if ac_fn_c_try_compile "$LINENO"; then : 9278 xorg_cv_cc_flag_unknown_warning_option=yes 9279else 9280 xorg_cv_cc_flag_unknown_warning_option=no 9281fi 9282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9283fi 9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9287 CFLAGS="$xorg_testset_save_CFLAGS" 9288fi 9289 9290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9293 fi 9294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9298 $as_echo_n "(cached) " >&6 9299else 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302int i; 9303_ACEOF 9304if ac_fn_c_try_compile "$LINENO"; then : 9305 xorg_cv_cc_flag_unused_command_line_argument=yes 9306else 9307 xorg_cv_cc_flag_unused_command_line_argument=no 9308fi 9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9310fi 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315fi 9316 9317found="no" 9318 9319 if test $found = "no" ; then 9320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 fi 9323 9324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9326 fi 9327 9328 CFLAGS="$CFLAGS -Wmissing-braces" 9329 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9331$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9332 cacheid=xorg_cv_cc_flag__Wmissing_braces 9333 if eval \${$cacheid+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338int i; 9339int 9340main () 9341{ 9342 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347if ac_fn_c_try_link "$LINENO"; then : 9348 eval $cacheid=yes 9349else 9350 eval $cacheid=no 9351fi 9352rm -f core conftest.err conftest.$ac_objext \ 9353 conftest$ac_exeext conftest.$ac_ext 9354fi 9355 9356 9357 CFLAGS="$xorg_testset_save_CFLAGS" 9358 9359 eval supported=\$$cacheid 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9361$as_echo "$supported" >&6; } 9362 if test "$supported" = "yes" ; then 9363 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9364 found="yes" 9365 fi 9366 fi 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382xorg_testset_save_CFLAGS="$CFLAGS" 9383 9384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390else 9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9392/* end confdefs.h. */ 9393int i; 9394_ACEOF 9395if ac_fn_c_try_compile "$LINENO"; then : 9396 xorg_cv_cc_flag_unknown_warning_option=yes 9397else 9398 xorg_cv_cc_flag_unknown_warning_option=no 9399fi 9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9401fi 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406fi 9407 9408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9411 fi 9412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9416 $as_echo_n "(cached) " >&6 9417else 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420int i; 9421_ACEOF 9422if ac_fn_c_try_compile "$LINENO"; then : 9423 xorg_cv_cc_flag_unused_command_line_argument=yes 9424else 9425 xorg_cv_cc_flag_unused_command_line_argument=no 9426fi 9427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9428fi 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9432 CFLAGS="$xorg_testset_save_CFLAGS" 9433fi 9434 9435found="no" 9436 9437 if test $found = "no" ; then 9438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 fi 9441 9442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9444 fi 9445 9446 CFLAGS="$CFLAGS -Wsequence-point" 9447 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9449$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9450 cacheid=xorg_cv_cc_flag__Wsequence_point 9451 if eval \${$cacheid+:} false; then : 9452 $as_echo_n "(cached) " >&6 9453else 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457int 9458main () 9459{ 9460 9461 ; 9462 return 0; 9463} 9464_ACEOF 9465if ac_fn_c_try_link "$LINENO"; then : 9466 eval $cacheid=yes 9467else 9468 eval $cacheid=no 9469fi 9470rm -f core conftest.err conftest.$ac_objext \ 9471 conftest$ac_exeext conftest.$ac_ext 9472fi 9473 9474 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476 9477 eval supported=\$$cacheid 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9479$as_echo "$supported" >&6; } 9480 if test "$supported" = "yes" ; then 9481 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9482 found="yes" 9483 fi 9484 fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500xorg_testset_save_CFLAGS="$CFLAGS" 9501 9502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9507 $as_echo_n "(cached) " >&6 9508else 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO"; then : 9514 xorg_cv_cc_flag_unknown_warning_option=yes 9515else 9516 xorg_cv_cc_flag_unknown_warning_option=no 9517fi 9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9519fi 9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524fi 9525 9526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 fi 9530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO"; then : 9541 xorg_cv_cc_flag_unused_command_line_argument=yes 9542else 9543 xorg_cv_cc_flag_unused_command_line_argument=no 9544fi 9545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9546fi 9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9550 CFLAGS="$xorg_testset_save_CFLAGS" 9551fi 9552 9553found="no" 9554 9555 if test $found = "no" ; then 9556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 fi 9559 9560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9562 fi 9563 9564 CFLAGS="$CFLAGS -Wreturn-type" 9565 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9567$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9568 cacheid=xorg_cv_cc_flag__Wreturn_type 9569 if eval \${$cacheid+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571else 9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9573/* end confdefs.h. */ 9574int i; 9575int 9576main () 9577{ 9578 9579 ; 9580 return 0; 9581} 9582_ACEOF 9583if ac_fn_c_try_link "$LINENO"; then : 9584 eval $cacheid=yes 9585else 9586 eval $cacheid=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext \ 9589 conftest$ac_exeext conftest.$ac_ext 9590fi 9591 9592 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594 9595 eval supported=\$$cacheid 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9597$as_echo "$supported" >&6; } 9598 if test "$supported" = "yes" ; then 9599 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9600 found="yes" 9601 fi 9602 fi 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618xorg_testset_save_CFLAGS="$CFLAGS" 9619 9620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629int i; 9630_ACEOF 9631if ac_fn_c_try_compile "$LINENO"; then : 9632 xorg_cv_cc_flag_unknown_warning_option=yes 9633else 9634 xorg_cv_cc_flag_unknown_warning_option=no 9635fi 9636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9637fi 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642fi 9643 9644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9647 fi 9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9652 $as_echo_n "(cached) " >&6 9653else 9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9655/* end confdefs.h. */ 9656int i; 9657_ACEOF 9658if ac_fn_c_try_compile "$LINENO"; then : 9659 xorg_cv_cc_flag_unused_command_line_argument=yes 9660else 9661 xorg_cv_cc_flag_unused_command_line_argument=no 9662fi 9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9664fi 9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9668 CFLAGS="$xorg_testset_save_CFLAGS" 9669fi 9670 9671found="no" 9672 9673 if test $found = "no" ; then 9674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 fi 9677 9678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9680 fi 9681 9682 CFLAGS="$CFLAGS -Wtrigraphs" 9683 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9685$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9686 cacheid=xorg_cv_cc_flag__Wtrigraphs 9687 if eval \${$cacheid+:} false; then : 9688 $as_echo_n "(cached) " >&6 9689else 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692int i; 9693int 9694main () 9695{ 9696 9697 ; 9698 return 0; 9699} 9700_ACEOF 9701if ac_fn_c_try_link "$LINENO"; then : 9702 eval $cacheid=yes 9703else 9704 eval $cacheid=no 9705fi 9706rm -f core conftest.err conftest.$ac_objext \ 9707 conftest$ac_exeext conftest.$ac_ext 9708fi 9709 9710 9711 CFLAGS="$xorg_testset_save_CFLAGS" 9712 9713 eval supported=\$$cacheid 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9715$as_echo "$supported" >&6; } 9716 if test "$supported" = "yes" ; then 9717 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9718 found="yes" 9719 fi 9720 fi 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736xorg_testset_save_CFLAGS="$CFLAGS" 9737 9738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int i; 9748_ACEOF 9749if ac_fn_c_try_compile "$LINENO"; then : 9750 xorg_cv_cc_flag_unknown_warning_option=yes 9751else 9752 xorg_cv_cc_flag_unknown_warning_option=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9755fi 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9759 CFLAGS="$xorg_testset_save_CFLAGS" 9760fi 9761 9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 fi 9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9773/* end confdefs.h. */ 9774int i; 9775_ACEOF 9776if ac_fn_c_try_compile "$LINENO"; then : 9777 xorg_cv_cc_flag_unused_command_line_argument=yes 9778else 9779 xorg_cv_cc_flag_unused_command_line_argument=no 9780fi 9781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9782fi 9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787fi 9788 9789found="no" 9790 9791 if test $found = "no" ; then 9792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 fi 9795 9796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9798 fi 9799 9800 CFLAGS="$CFLAGS -Warray-bounds" 9801 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9803$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9804 cacheid=xorg_cv_cc_flag__Warray_bounds 9805 if eval \${$cacheid+:} false; then : 9806 $as_echo_n "(cached) " >&6 9807else 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int i; 9811int 9812main () 9813{ 9814 9815 ; 9816 return 0; 9817} 9818_ACEOF 9819if ac_fn_c_try_link "$LINENO"; then : 9820 eval $cacheid=yes 9821else 9822 eval $cacheid=no 9823fi 9824rm -f core conftest.err conftest.$ac_objext \ 9825 conftest$ac_exeext conftest.$ac_ext 9826fi 9827 9828 9829 CFLAGS="$xorg_testset_save_CFLAGS" 9830 9831 eval supported=\$$cacheid 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9833$as_echo "$supported" >&6; } 9834 if test "$supported" = "yes" ; then 9835 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9836 found="yes" 9837 fi 9838 fi 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854xorg_testset_save_CFLAGS="$CFLAGS" 9855 9856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862else 9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864/* end confdefs.h. */ 9865int i; 9866_ACEOF 9867if ac_fn_c_try_compile "$LINENO"; then : 9868 xorg_cv_cc_flag_unknown_warning_option=yes 9869else 9870 xorg_cv_cc_flag_unknown_warning_option=no 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878fi 9879 9880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9883 fi 9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9888 $as_echo_n "(cached) " >&6 9889else 9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9891/* end confdefs.h. */ 9892int i; 9893_ACEOF 9894if ac_fn_c_try_compile "$LINENO"; then : 9895 xorg_cv_cc_flag_unused_command_line_argument=yes 9896else 9897 xorg_cv_cc_flag_unused_command_line_argument=no 9898fi 9899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9900fi 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9904 CFLAGS="$xorg_testset_save_CFLAGS" 9905fi 9906 9907found="no" 9908 9909 if test $found = "no" ; then 9910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 9914 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9916 fi 9917 9918 CFLAGS="$CFLAGS -Wwrite-strings" 9919 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9921$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9922 cacheid=xorg_cv_cc_flag__Wwrite_strings 9923 if eval \${$cacheid+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925else 9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9927/* end confdefs.h. */ 9928int i; 9929int 9930main () 9931{ 9932 9933 ; 9934 return 0; 9935} 9936_ACEOF 9937if ac_fn_c_try_link "$LINENO"; then : 9938 eval $cacheid=yes 9939else 9940 eval $cacheid=no 9941fi 9942rm -f core conftest.err conftest.$ac_objext \ 9943 conftest$ac_exeext conftest.$ac_ext 9944fi 9945 9946 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948 9949 eval supported=\$$cacheid 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9951$as_echo "$supported" >&6; } 9952 if test "$supported" = "yes" ; then 9953 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9954 found="yes" 9955 fi 9956 fi 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972xorg_testset_save_CFLAGS="$CFLAGS" 9973 9974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982/* end confdefs.h. */ 9983int i; 9984_ACEOF 9985if ac_fn_c_try_compile "$LINENO"; then : 9986 xorg_cv_cc_flag_unknown_warning_option=yes 9987else 9988 xorg_cv_cc_flag_unknown_warning_option=no 9989fi 9990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9991fi 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996fi 9997 9998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 fi 10002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10006 $as_echo_n "(cached) " >&6 10007else 10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10009/* end confdefs.h. */ 10010int i; 10011_ACEOF 10012if ac_fn_c_try_compile "$LINENO"; then : 10013 xorg_cv_cc_flag_unused_command_line_argument=yes 10014else 10015 xorg_cv_cc_flag_unused_command_line_argument=no 10016fi 10017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10018fi 10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10022 CFLAGS="$xorg_testset_save_CFLAGS" 10023fi 10024 10025found="no" 10026 10027 if test $found = "no" ; then 10028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 fi 10031 10032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10034 fi 10035 10036 CFLAGS="$CFLAGS -Waddress" 10037 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10039$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10040 cacheid=xorg_cv_cc_flag__Waddress 10041 if eval \${$cacheid+:} false; then : 10042 $as_echo_n "(cached) " >&6 10043else 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045/* end confdefs.h. */ 10046int i; 10047int 10048main () 10049{ 10050 10051 ; 10052 return 0; 10053} 10054_ACEOF 10055if ac_fn_c_try_link "$LINENO"; then : 10056 eval $cacheid=yes 10057else 10058 eval $cacheid=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext \ 10061 conftest$ac_exeext conftest.$ac_ext 10062fi 10063 10064 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066 10067 eval supported=\$$cacheid 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10069$as_echo "$supported" >&6; } 10070 if test "$supported" = "yes" ; then 10071 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10072 found="yes" 10073 fi 10074 fi 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090xorg_testset_save_CFLAGS="$CFLAGS" 10091 10092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10100/* end confdefs.h. */ 10101int i; 10102_ACEOF 10103if ac_fn_c_try_compile "$LINENO"; then : 10104 xorg_cv_cc_flag_unknown_warning_option=yes 10105else 10106 xorg_cv_cc_flag_unknown_warning_option=no 10107fi 10108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10109fi 10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114fi 10115 10116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10119 fi 10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10124 $as_echo_n "(cached) " >&6 10125else 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int i; 10129_ACEOF 10130if ac_fn_c_try_compile "$LINENO"; then : 10131 xorg_cv_cc_flag_unused_command_line_argument=yes 10132else 10133 xorg_cv_cc_flag_unused_command_line_argument=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141fi 10142 10143found="no" 10144 10145 if test $found = "no" ; then 10146 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 fi 10149 10150 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10152 fi 10153 10154 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10155 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10157$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10158 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10159 if eval \${$cacheid+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164int i; 10165int 10166main () 10167{ 10168 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173if ac_fn_c_try_link "$LINENO"; then : 10174 eval $cacheid=yes 10175else 10176 eval $cacheid=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext \ 10179 conftest$ac_exeext conftest.$ac_ext 10180fi 10181 10182 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184 10185 eval supported=\$$cacheid 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10187$as_echo "$supported" >&6; } 10188 if test "$supported" = "yes" ; then 10189 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10190 found="yes" 10191 fi 10192 fi 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208xorg_testset_save_CFLAGS="$CFLAGS" 10209 10210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219int i; 10220_ACEOF 10221if ac_fn_c_try_compile "$LINENO"; then : 10222 xorg_cv_cc_flag_unknown_warning_option=yes 10223else 10224 xorg_cv_cc_flag_unknown_warning_option=no 10225fi 10226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10227fi 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10231 CFLAGS="$xorg_testset_save_CFLAGS" 10232fi 10233 10234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10237 fi 10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245/* end confdefs.h. */ 10246int i; 10247_ACEOF 10248if ac_fn_c_try_compile "$LINENO"; then : 10249 xorg_cv_cc_flag_unused_command_line_argument=yes 10250else 10251 xorg_cv_cc_flag_unused_command_line_argument=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10254fi 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259fi 10260 10261found="no" 10262 10263 if test $found = "no" ; then 10264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 fi 10267 10268 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10270 fi 10271 10272 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10273 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10275$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10276 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10277 if eval \${$cacheid+:} false; then : 10278 $as_echo_n "(cached) " >&6 10279else 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283int 10284main () 10285{ 10286 10287 ; 10288 return 0; 10289} 10290_ACEOF 10291if ac_fn_c_try_link "$LINENO"; then : 10292 eval $cacheid=yes 10293else 10294 eval $cacheid=no 10295fi 10296rm -f core conftest.err conftest.$ac_objext \ 10297 conftest$ac_exeext conftest.$ac_ext 10298fi 10299 10300 10301 CFLAGS="$xorg_testset_save_CFLAGS" 10302 10303 eval supported=\$$cacheid 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10305$as_echo "$supported" >&6; } 10306 if test "$supported" = "yes" ; then 10307 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10308 found="yes" 10309 fi 10310 fi 10311 10312 10313fi 10314 10315 10316 10317 10318 10319 10320 10321 CWARNFLAGS="$BASE_CFLAGS" 10322 if test "x$GCC" = xyes ; then 10323 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10324 fi 10325 10326 10327 10328 10329 10330 10331 10332 10333# Check whether --enable-strict-compilation was given. 10334if test "${enable_strict_compilation+set}" = set; then : 10335 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10336else 10337 STRICT_COMPILE=no 10338fi 10339 10340 10341 10342 10343 10344 10345STRICT_CFLAGS="" 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359xorg_testset_save_CFLAGS="$CFLAGS" 10360 10361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10366 $as_echo_n "(cached) " >&6 10367else 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370int i; 10371_ACEOF 10372if ac_fn_c_try_compile "$LINENO"; then : 10373 xorg_cv_cc_flag_unknown_warning_option=yes 10374else 10375 xorg_cv_cc_flag_unknown_warning_option=no 10376fi 10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10378fi 10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10382 CFLAGS="$xorg_testset_save_CFLAGS" 10383fi 10384 10385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10388 fi 10389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10393 $as_echo_n "(cached) " >&6 10394else 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397int i; 10398_ACEOF 10399if ac_fn_c_try_compile "$LINENO"; then : 10400 xorg_cv_cc_flag_unused_command_line_argument=yes 10401else 10402 xorg_cv_cc_flag_unused_command_line_argument=no 10403fi 10404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10409 CFLAGS="$xorg_testset_save_CFLAGS" 10410fi 10411 10412found="no" 10413 10414 if test $found = "no" ; then 10415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10417 fi 10418 10419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10421 fi 10422 10423 CFLAGS="$CFLAGS -pedantic" 10424 10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10426$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10427 cacheid=xorg_cv_cc_flag__pedantic 10428 if eval \${$cacheid+:} false; then : 10429 $as_echo_n "(cached) " >&6 10430else 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433int i; 10434int 10435main () 10436{ 10437 10438 ; 10439 return 0; 10440} 10441_ACEOF 10442if ac_fn_c_try_link "$LINENO"; then : 10443 eval $cacheid=yes 10444else 10445 eval $cacheid=no 10446fi 10447rm -f core conftest.err conftest.$ac_objext \ 10448 conftest$ac_exeext conftest.$ac_ext 10449fi 10450 10451 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453 10454 eval supported=\$$cacheid 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10456$as_echo "$supported" >&6; } 10457 if test "$supported" = "yes" ; then 10458 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10459 found="yes" 10460 fi 10461 fi 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477xorg_testset_save_CFLAGS="$CFLAGS" 10478 10479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485else 10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487/* end confdefs.h. */ 10488int i; 10489_ACEOF 10490if ac_fn_c_try_compile "$LINENO"; then : 10491 xorg_cv_cc_flag_unknown_warning_option=yes 10492else 10493 xorg_cv_cc_flag_unknown_warning_option=no 10494fi 10495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10496fi 10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10500 CFLAGS="$xorg_testset_save_CFLAGS" 10501fi 10502 10503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10506 fi 10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515int i; 10516_ACEOF 10517if ac_fn_c_try_compile "$LINENO"; then : 10518 xorg_cv_cc_flag_unused_command_line_argument=yes 10519else 10520 xorg_cv_cc_flag_unused_command_line_argument=no 10521fi 10522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10523fi 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10527 CFLAGS="$xorg_testset_save_CFLAGS" 10528fi 10529 10530found="no" 10531 10532 if test $found = "no" ; then 10533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10535 fi 10536 10537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10539 fi 10540 10541 CFLAGS="$CFLAGS -Werror" 10542 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10544$as_echo_n "checking if $CC supports -Werror... " >&6; } 10545 cacheid=xorg_cv_cc_flag__Werror 10546 if eval \${$cacheid+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551int i; 10552int 10553main () 10554{ 10555 10556 ; 10557 return 0; 10558} 10559_ACEOF 10560if ac_fn_c_try_link "$LINENO"; then : 10561 eval $cacheid=yes 10562else 10563 eval $cacheid=no 10564fi 10565rm -f core conftest.err conftest.$ac_objext \ 10566 conftest$ac_exeext conftest.$ac_ext 10567fi 10568 10569 10570 CFLAGS="$xorg_testset_save_CFLAGS" 10571 10572 eval supported=\$$cacheid 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10574$as_echo "$supported" >&6; } 10575 if test "$supported" = "yes" ; then 10576 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10577 found="yes" 10578 fi 10579 fi 10580 10581 if test $found = "no" ; then 10582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10584 fi 10585 10586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 fi 10589 10590 CFLAGS="$CFLAGS -errwarn" 10591 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10593$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10594 cacheid=xorg_cv_cc_flag__errwarn 10595 if eval \${$cacheid+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int i; 10601int 10602main () 10603{ 10604 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO"; then : 10610 eval $cacheid=yes 10611else 10612 eval $cacheid=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext \ 10615 conftest$ac_exeext conftest.$ac_ext 10616fi 10617 10618 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620 10621 eval supported=\$$cacheid 10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10623$as_echo "$supported" >&6; } 10624 if test "$supported" = "yes" ; then 10625 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10626 found="yes" 10627 fi 10628 fi 10629 10630 10631 10632# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10633# activate it with -Werror, so we add it here explicitly. 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647xorg_testset_save_CFLAGS="$CFLAGS" 10648 10649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10654 $as_echo_n "(cached) " >&6 10655else 10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658int i; 10659_ACEOF 10660if ac_fn_c_try_compile "$LINENO"; then : 10661 xorg_cv_cc_flag_unknown_warning_option=yes 10662else 10663 xorg_cv_cc_flag_unknown_warning_option=no 10664fi 10665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10666fi 10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10670 CFLAGS="$xorg_testset_save_CFLAGS" 10671fi 10672 10673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10676 fi 10677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10681 $as_echo_n "(cached) " >&6 10682else 10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684/* end confdefs.h. */ 10685int i; 10686_ACEOF 10687if ac_fn_c_try_compile "$LINENO"; then : 10688 xorg_cv_cc_flag_unused_command_line_argument=yes 10689else 10690 xorg_cv_cc_flag_unused_command_line_argument=no 10691fi 10692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10693fi 10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10697 CFLAGS="$xorg_testset_save_CFLAGS" 10698fi 10699 10700found="no" 10701 10702 if test $found = "no" ; then 10703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10705 fi 10706 10707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10709 fi 10710 10711 CFLAGS="$CFLAGS -Werror=attributes" 10712 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10714$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10715 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10716 if eval \${$cacheid+:} false; then : 10717 $as_echo_n "(cached) " >&6 10718else 10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10720/* end confdefs.h. */ 10721int i; 10722int 10723main () 10724{ 10725 10726 ; 10727 return 0; 10728} 10729_ACEOF 10730if ac_fn_c_try_link "$LINENO"; then : 10731 eval $cacheid=yes 10732else 10733 eval $cacheid=no 10734fi 10735rm -f core conftest.err conftest.$ac_objext \ 10736 conftest$ac_exeext conftest.$ac_ext 10737fi 10738 10739 10740 CFLAGS="$xorg_testset_save_CFLAGS" 10741 10742 eval supported=\$$cacheid 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10744$as_echo "$supported" >&6; } 10745 if test "$supported" = "yes" ; then 10746 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10747 found="yes" 10748 fi 10749 fi 10750 10751 10752 10753if test "x$STRICT_COMPILE" = "xyes"; then 10754 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10755 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10756fi 10757 10758 10759 10760 10761 10762 10763cat >>confdefs.h <<_ACEOF 10764#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10765_ACEOF 10766 10767 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10768 if test "x$PVM" = "x"; then 10769 PVM="0" 10770 fi 10771 10772cat >>confdefs.h <<_ACEOF 10773#define PACKAGE_VERSION_MINOR $PVM 10774_ACEOF 10775 10776 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10777 if test "x$PVP" = "x"; then 10778 PVP="0" 10779 fi 10780 10781cat >>confdefs.h <<_ACEOF 10782#define PACKAGE_VERSION_PATCHLEVEL $PVP 10783_ACEOF 10784 10785 10786 10787CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10788mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10789|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10790echo 'git directory not found: installing possibly empty changelog.' >&2)" 10791 10792 10793 10794 10795macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10796INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10797mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10798|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10799echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10800 10801 10802 10803 10804 10805 10806if test x$APP_MAN_SUFFIX = x ; then 10807 APP_MAN_SUFFIX=1 10808fi 10809if test x$APP_MAN_DIR = x ; then 10810 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10811fi 10812 10813if test x$LIB_MAN_SUFFIX = x ; then 10814 LIB_MAN_SUFFIX=3 10815fi 10816if test x$LIB_MAN_DIR = x ; then 10817 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10818fi 10819 10820if test x$FILE_MAN_SUFFIX = x ; then 10821 case $host_os in 10822 solaris*) FILE_MAN_SUFFIX=4 ;; 10823 *) FILE_MAN_SUFFIX=5 ;; 10824 esac 10825fi 10826if test x$FILE_MAN_DIR = x ; then 10827 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10828fi 10829 10830if test x$MISC_MAN_SUFFIX = x ; then 10831 case $host_os in 10832 solaris*) MISC_MAN_SUFFIX=5 ;; 10833 *) MISC_MAN_SUFFIX=7 ;; 10834 esac 10835fi 10836if test x$MISC_MAN_DIR = x ; then 10837 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10838fi 10839 10840if test x$DRIVER_MAN_SUFFIX = x ; then 10841 case $host_os in 10842 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10843 *) DRIVER_MAN_SUFFIX=4 ;; 10844 esac 10845fi 10846if test x$DRIVER_MAN_DIR = x ; then 10847 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10848fi 10849 10850if test x$ADMIN_MAN_SUFFIX = x ; then 10851 case $host_os in 10852 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10853 *) ADMIN_MAN_SUFFIX=8 ;; 10854 esac 10855fi 10856if test x$ADMIN_MAN_DIR = x ; then 10857 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10858fi 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874XORG_MAN_PAGE="X Version 11" 10875 10876MAN_SUBSTS="\ 10877 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10878 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10879 -e 's|__xservername__|Xorg|g' \ 10880 -e 's|__xconfigfile__|xorg.conf|g' \ 10881 -e 's|__projectroot__|\$(prefix)|g' \ 10882 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10883 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10884 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10885 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10886 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10887 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10888 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10889 10890 10891 10892# Check whether --enable-silent-rules was given. 10893if test "${enable_silent_rules+set}" = set; then : 10894 enableval=$enable_silent_rules; 10895fi 10896 10897case $enable_silent_rules in 10898yes) AM_DEFAULT_VERBOSITY=0;; 10899no) AM_DEFAULT_VERBOSITY=1;; 10900*) AM_DEFAULT_VERBOSITY=0;; 10901esac 10902AM_BACKSLASH='\' 10903 10904 10905 10906 10907 10908 10909 10910# Check whether --with-lint was given. 10911if test "${with_lint+set}" = set; then : 10912 withval=$with_lint; use_lint=$withval 10913else 10914 use_lint=no 10915fi 10916 10917 10918# Obtain platform specific info like program name and options 10919# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10920case $host_os in 10921 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10922 lint_name=splint 10923 lint_options="-badflag" 10924 ;; 10925 *freebsd* | *netbsd*) 10926 lint_name=lint 10927 lint_options="-u -b" 10928 ;; 10929 *solaris*) 10930 lint_name=lint 10931 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10932 ;; 10933esac 10934 10935# Test for the presence of the program (either guessed by the code or spelled out by the user) 10936if test "x$use_lint" = x"yes" ; then 10937 # Extract the first word of "$lint_name", so it can be a program name with args. 10938set dummy $lint_name; ac_word=$2 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10940$as_echo_n "checking for $ac_word... " >&6; } 10941if ${ac_cv_path_LINT+:} false; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 case $LINT in 10945 [\\/]* | ?:[\\/]*) 10946 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10947 ;; 10948 *) 10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10950for as_dir in $PATH 10951do 10952 IFS=$as_save_IFS 10953 test -z "$as_dir" && as_dir=. 10954 for ac_exec_ext in '' $ac_executable_extensions; do 10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10956 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10958 break 2 10959 fi 10960done 10961 done 10962IFS=$as_save_IFS 10963 10964 ;; 10965esac 10966fi 10967LINT=$ac_cv_path_LINT 10968if test -n "$LINT"; then 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10970$as_echo "$LINT" >&6; } 10971else 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10973$as_echo "no" >&6; } 10974fi 10975 10976 10977 if test "x$LINT" = "x"; then 10978 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10979 fi 10980elif test "x$use_lint" = x"no" ; then 10981 if test "x$LINT" != "x"; then 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10983$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10984 fi 10985else 10986 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10987fi 10988 10989# User supplied flags override default flags 10990if test "x$LINT_FLAGS" != "x"; then 10991 lint_options=$LINT_FLAGS 10992fi 10993 10994LINT_FLAGS=$lint_options 10995 10996 if test "x$LINT" != x; then 10997 LINT_TRUE= 10998 LINT_FALSE='#' 10999else 11000 LINT_TRUE='#' 11001 LINT_FALSE= 11002fi 11003 11004 11005 11006 11007# Checks for header files. 11008for ac_header in lastlog.h pwd.h utmp.h utmpx.h sys/param.h 11009do : 11010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11011ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11013 cat >>confdefs.h <<_ACEOF 11014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11015_ACEOF 11016 11017fi 11018 11019done 11020 11021 11022# Checks for typedefs, structures, and compiler characteristics. 11023ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 11024 #include <sys/types.h> 11025 #include <utmp.h> 11026 11027" 11028if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : 11029 11030cat >>confdefs.h <<_ACEOF 11031#define HAVE_STRUCT_UTMP_UT_HOST 1 11032_ACEOF 11033 11034 11035fi 11036ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " 11037 #include <sys/types.h> 11038 #include <utmp.h> 11039 11040" 11041if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then : 11042 11043cat >>confdefs.h <<_ACEOF 11044#define HAVE_STRUCT_UTMP_UT_ID 1 11045_ACEOF 11046 11047 11048fi 11049ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " 11050 #include <sys/types.h> 11051 #include <utmp.h> 11052 11053" 11054if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : 11055 11056cat >>confdefs.h <<_ACEOF 11057#define HAVE_STRUCT_UTMP_UT_PID 1 11058_ACEOF 11059 11060 11061fi 11062ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " 11063 #include <sys/types.h> 11064 #include <utmp.h> 11065 11066" 11067if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then : 11068 11069cat >>confdefs.h <<_ACEOF 11070#define HAVE_STRUCT_UTMP_UT_TYPE 1 11071_ACEOF 11072 11073 11074fi 11075 11076ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h> 11077" 11078if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then : 11079 11080cat >>confdefs.h <<_ACEOF 11081#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 11082_ACEOF 11083 11084 11085fi 11086 11087ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 11088 #include <sys/types.h> 11089 #ifdef HAVE_UTMP_H 11090 #include <utmp.h> 11091 #endif 11092 #ifdef HAVE_LASTLOG_H 11093 #include <lastlog.h> 11094 #endif 11095 11096" 11097if test "x$ac_cv_type_struct_lastlog" = xyes; then : 11098 11099cat >>confdefs.h <<_ACEOF 11100#define HAVE_STRUCT_LASTLOG 1 11101_ACEOF 11102 11103 11104fi 11105 11106 11107# Checks for library functions. 11108for ac_func in pututline updwtmpx utmpxname 11109do : 11110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11111ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11112if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11113 cat >>confdefs.h <<_ACEOF 11114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11115_ACEOF 11116 11117fi 11118done 11119 11120 11121# Obtain compiler/linker options for depedencies 11122 11123pkg_failed=no 11124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5 11125$as_echo_n "checking for SESSREG... " >&6; } 11126 11127if test -n "$SESSREG_CFLAGS"; then 11128 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS" 11129 elif test -n "$PKG_CONFIG"; then 11130 if test -n "$PKG_CONFIG" && \ 11131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11132 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11133 ac_status=$? 11134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11135 test $ac_status = 0; }; then 11136 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 11137else 11138 pkg_failed=yes 11139fi 11140 else 11141 pkg_failed=untried 11142fi 11143if test -n "$SESSREG_LIBS"; then 11144 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS" 11145 elif test -n "$PKG_CONFIG"; then 11146 if test -n "$PKG_CONFIG" && \ 11147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11148 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11149 ac_status=$? 11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11151 test $ac_status = 0; }; then 11152 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 11153else 11154 pkg_failed=yes 11155fi 11156 else 11157 pkg_failed=untried 11158fi 11159 11160 11161 11162if test $pkg_failed = yes; then 11163 11164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11165 _pkg_short_errors_supported=yes 11166else 11167 _pkg_short_errors_supported=no 11168fi 11169 if test $_pkg_short_errors_supported = yes; then 11170 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 11171 else 11172 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 11173 fi 11174 # Put the nasty error message in config.log where it belongs 11175 echo "$SESSREG_PKG_ERRORS" >&5 11176 11177 as_fn_error $? "Package requirements (xproto) were not met: 11178 11179$SESSREG_PKG_ERRORS 11180 11181Consider adjusting the PKG_CONFIG_PATH environment variable if you 11182installed software in a non-standard prefix. 11183 11184Alternatively, you may set the environment variables SESSREG_CFLAGS 11185and SESSREG_LIBS to avoid the need to call pkg-config. 11186See the pkg-config man page for more details. 11187" "$LINENO" 5 11188elif test $pkg_failed = untried; then 11189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11191as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11192is in your PATH or set the PKG_CONFIG environment variable to the full 11193path to pkg-config. 11194 11195Alternatively, you may set the environment variables SESSREG_CFLAGS 11196and SESSREG_LIBS to avoid the need to call pkg-config. 11197See the pkg-config man page for more details. 11198 11199To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11200See \`config.log' for more details" "$LINENO" 5; } 11201else 11202 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS 11203 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11205$as_echo "yes" >&6; } 11206 : 11207fi 11208 11209ac_config_files="$ac_config_files Makefile man/Makefile" 11210 11211cat >confcache <<\_ACEOF 11212# This file is a shell script that caches the results of configure 11213# tests run on this system so they can be shared between configure 11214# scripts and configure runs, see configure's option --config-cache. 11215# It is not useful on other systems. If it contains results you don't 11216# want to keep, you may remove or edit it. 11217# 11218# config.status only pays attention to the cache file if you give it 11219# the --recheck option to rerun configure. 11220# 11221# `ac_cv_env_foo' variables (set or unset) will be overridden when 11222# loading this file, other *unset* `ac_cv_foo' will be assigned the 11223# following values. 11224 11225_ACEOF 11226 11227# The following way of writing the cache mishandles newlines in values, 11228# but we know of no workaround that is simple, portable, and efficient. 11229# So, we kill variables containing newlines. 11230# Ultrix sh set writes to stderr and can't be redirected directly, 11231# and sets the high bit in the cache file unless we assign to the vars. 11232( 11233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11234 eval ac_val=\$$ac_var 11235 case $ac_val in #( 11236 *${as_nl}*) 11237 case $ac_var in #( 11238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11240 esac 11241 case $ac_var in #( 11242 _ | IFS | as_nl) ;; #( 11243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11244 *) { eval $ac_var=; unset $ac_var;} ;; 11245 esac ;; 11246 esac 11247 done 11248 11249 (set) 2>&1 | 11250 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11251 *${as_nl}ac_space=\ *) 11252 # `set' does not quote correctly, so add quotes: double-quote 11253 # substitution turns \\\\ into \\, and sed turns \\ into \. 11254 sed -n \ 11255 "s/'/'\\\\''/g; 11256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11257 ;; #( 11258 *) 11259 # `set' quotes correctly as required by POSIX, so do not add quotes. 11260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11261 ;; 11262 esac | 11263 sort 11264) | 11265 sed ' 11266 /^ac_cv_env_/b end 11267 t clear 11268 :clear 11269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11270 t end 11271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11272 :end' >>confcache 11273if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11274 if test -w "$cache_file"; then 11275 if test "x$cache_file" != "x/dev/null"; then 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11277$as_echo "$as_me: updating cache $cache_file" >&6;} 11278 if test ! -f "$cache_file" || test -h "$cache_file"; then 11279 cat confcache >"$cache_file" 11280 else 11281 case $cache_file in #( 11282 */* | ?:*) 11283 mv -f confcache "$cache_file"$$ && 11284 mv -f "$cache_file"$$ "$cache_file" ;; #( 11285 *) 11286 mv -f confcache "$cache_file" ;; 11287 esac 11288 fi 11289 fi 11290 else 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11292$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11293 fi 11294fi 11295rm -f confcache 11296 11297test "x$prefix" = xNONE && prefix=$ac_default_prefix 11298# Let make expand exec_prefix. 11299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11300 11301DEFS=-DHAVE_CONFIG_H 11302 11303ac_libobjs= 11304ac_ltlibobjs= 11305U= 11306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11307 # 1. Remove the extension, and $U if already installed. 11308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11309 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11311 # will be set to the directory where LIBOBJS objects are built. 11312 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11313 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11314done 11315LIBOBJS=$ac_libobjs 11316 11317LTLIBOBJS=$ac_ltlibobjs 11318 11319 11320if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11321 as_fn_error $? "conditional \"AMDEP\" was never defined. 11322Usually this means the macro was only invoked conditionally." "$LINENO" 5 11323fi 11324if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11326Usually this means the macro was only invoked conditionally." "$LINENO" 5 11327fi 11328 if test -n "$EXEEXT"; then 11329 am__EXEEXT_TRUE= 11330 am__EXEEXT_FALSE='#' 11331else 11332 am__EXEEXT_TRUE='#' 11333 am__EXEEXT_FALSE= 11334fi 11335 11336if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11337 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11338Usually this means the macro was only invoked conditionally." "$LINENO" 5 11339fi 11340if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11341 as_fn_error $? "conditional \"LINT\" was never defined. 11342Usually this means the macro was only invoked conditionally." "$LINENO" 5 11343fi 11344 11345: "${CONFIG_STATUS=./config.status}" 11346ac_write_fail=0 11347ac_clean_files_save=$ac_clean_files 11348ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11349{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11350$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11351as_write_fail=0 11352cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11353#! $SHELL 11354# Generated by $as_me. 11355# Run this file to recreate the current configuration. 11356# Compiler output produced by configure, useful for debugging 11357# configure, is in config.log if it exists. 11358 11359debug=false 11360ac_cs_recheck=false 11361ac_cs_silent=false 11362 11363SHELL=\${CONFIG_SHELL-$SHELL} 11364export SHELL 11365_ASEOF 11366cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11367## -------------------- ## 11368## M4sh Initialization. ## 11369## -------------------- ## 11370 11371# Be more Bourne compatible 11372DUALCASE=1; export DUALCASE # for MKS sh 11373if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11374 emulate sh 11375 NULLCMD=: 11376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11377 # is contrary to our usage. Disable this feature. 11378 alias -g '${1+"$@"}'='"$@"' 11379 setopt NO_GLOB_SUBST 11380else 11381 case `(set -o) 2>/dev/null` in #( 11382 *posix*) : 11383 set -o posix ;; #( 11384 *) : 11385 ;; 11386esac 11387fi 11388 11389 11390as_nl=' 11391' 11392export as_nl 11393# Printing a long string crashes Solaris 7 /usr/bin/printf. 11394as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11395as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11396as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11397# Prefer a ksh shell builtin over an external printf program on Solaris, 11398# but without wasting forks for bash or zsh. 11399if test -z "$BASH_VERSION$ZSH_VERSION" \ 11400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11401 as_echo='print -r --' 11402 as_echo_n='print -rn --' 11403elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11404 as_echo='printf %s\n' 11405 as_echo_n='printf %s' 11406else 11407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11409 as_echo_n='/usr/ucb/echo -n' 11410 else 11411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11412 as_echo_n_body='eval 11413 arg=$1; 11414 case $arg in #( 11415 *"$as_nl"*) 11416 expr "X$arg" : "X\\(.*\\)$as_nl"; 11417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11418 esac; 11419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11420 ' 11421 export as_echo_n_body 11422 as_echo_n='sh -c $as_echo_n_body as_echo' 11423 fi 11424 export as_echo_body 11425 as_echo='sh -c $as_echo_body as_echo' 11426fi 11427 11428# The user is always right. 11429if test "${PATH_SEPARATOR+set}" != set; then 11430 PATH_SEPARATOR=: 11431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11433 PATH_SEPARATOR=';' 11434 } 11435fi 11436 11437 11438# IFS 11439# We need space, tab and new line, in precisely that order. Quoting is 11440# there to prevent editors from complaining about space-tab. 11441# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11442# splitting by setting IFS to empty value.) 11443IFS=" "" $as_nl" 11444 11445# Find who we are. Look in the path if we contain no directory separator. 11446as_myself= 11447case $0 in #(( 11448 *[\\/]* ) as_myself=$0 ;; 11449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11450for as_dir in $PATH 11451do 11452 IFS=$as_save_IFS 11453 test -z "$as_dir" && as_dir=. 11454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11455 done 11456IFS=$as_save_IFS 11457 11458 ;; 11459esac 11460# We did not find ourselves, most probably we were run as `sh COMMAND' 11461# in which case we are not to be found in the path. 11462if test "x$as_myself" = x; then 11463 as_myself=$0 11464fi 11465if test ! -f "$as_myself"; then 11466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11467 exit 1 11468fi 11469 11470# Unset variables that we do not need and which cause bugs (e.g. in 11471# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11472# suppresses any "Segmentation fault" message there. '((' could 11473# trigger a bug in pdksh 5.2.14. 11474for as_var in BASH_ENV ENV MAIL MAILPATH 11475do eval test x\${$as_var+set} = xset \ 11476 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11477done 11478PS1='$ ' 11479PS2='> ' 11480PS4='+ ' 11481 11482# NLS nuisances. 11483LC_ALL=C 11484export LC_ALL 11485LANGUAGE=C 11486export LANGUAGE 11487 11488# CDPATH. 11489(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11490 11491 11492# as_fn_error STATUS ERROR [LINENO LOG_FD] 11493# ---------------------------------------- 11494# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11495# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11496# script with STATUS, using 1 if that was 0. 11497as_fn_error () 11498{ 11499 as_status=$1; test $as_status -eq 0 && as_status=1 11500 if test "$4"; then 11501 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11502 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11503 fi 11504 $as_echo "$as_me: error: $2" >&2 11505 as_fn_exit $as_status 11506} # as_fn_error 11507 11508 11509# as_fn_set_status STATUS 11510# ----------------------- 11511# Set $? to STATUS, without forking. 11512as_fn_set_status () 11513{ 11514 return $1 11515} # as_fn_set_status 11516 11517# as_fn_exit STATUS 11518# ----------------- 11519# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11520as_fn_exit () 11521{ 11522 set +e 11523 as_fn_set_status $1 11524 exit $1 11525} # as_fn_exit 11526 11527# as_fn_unset VAR 11528# --------------- 11529# Portably unset VAR. 11530as_fn_unset () 11531{ 11532 { eval $1=; unset $1;} 11533} 11534as_unset=as_fn_unset 11535# as_fn_append VAR VALUE 11536# ---------------------- 11537# Append the text in VALUE to the end of the definition contained in VAR. Take 11538# advantage of any shell optimizations that allow amortized linear growth over 11539# repeated appends, instead of the typical quadratic growth present in naive 11540# implementations. 11541if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11542 eval 'as_fn_append () 11543 { 11544 eval $1+=\$2 11545 }' 11546else 11547 as_fn_append () 11548 { 11549 eval $1=\$$1\$2 11550 } 11551fi # as_fn_append 11552 11553# as_fn_arith ARG... 11554# ------------------ 11555# Perform arithmetic evaluation on the ARGs, and store the result in the 11556# global $as_val. Take advantage of shells that can avoid forks. The arguments 11557# must be portable across $(()) and expr. 11558if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11559 eval 'as_fn_arith () 11560 { 11561 as_val=$(( $* )) 11562 }' 11563else 11564 as_fn_arith () 11565 { 11566 as_val=`expr "$@" || test $? -eq 1` 11567 } 11568fi # as_fn_arith 11569 11570 11571if expr a : '\(a\)' >/dev/null 2>&1 && 11572 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11573 as_expr=expr 11574else 11575 as_expr=false 11576fi 11577 11578if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11579 as_basename=basename 11580else 11581 as_basename=false 11582fi 11583 11584if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11585 as_dirname=dirname 11586else 11587 as_dirname=false 11588fi 11589 11590as_me=`$as_basename -- "$0" || 11591$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11592 X"$0" : 'X\(//\)$' \| \ 11593 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11594$as_echo X/"$0" | 11595 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11596 s//\1/ 11597 q 11598 } 11599 /^X\/\(\/\/\)$/{ 11600 s//\1/ 11601 q 11602 } 11603 /^X\/\(\/\).*/{ 11604 s//\1/ 11605 q 11606 } 11607 s/.*/./; q'` 11608 11609# Avoid depending upon Character Ranges. 11610as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11611as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11612as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11613as_cr_digits='0123456789' 11614as_cr_alnum=$as_cr_Letters$as_cr_digits 11615 11616ECHO_C= ECHO_N= ECHO_T= 11617case `echo -n x` in #((((( 11618-n*) 11619 case `echo 'xy\c'` in 11620 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11621 xy) ECHO_C='\c';; 11622 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11623 ECHO_T=' ';; 11624 esac;; 11625*) 11626 ECHO_N='-n';; 11627esac 11628 11629rm -f conf$$ conf$$.exe conf$$.file 11630if test -d conf$$.dir; then 11631 rm -f conf$$.dir/conf$$.file 11632else 11633 rm -f conf$$.dir 11634 mkdir conf$$.dir 2>/dev/null 11635fi 11636if (echo >conf$$.file) 2>/dev/null; then 11637 if ln -s conf$$.file conf$$ 2>/dev/null; then 11638 as_ln_s='ln -s' 11639 # ... but there are two gotchas: 11640 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11641 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11642 # In both cases, we have to default to `cp -p'. 11643 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11644 as_ln_s='cp -p' 11645 elif ln conf$$.file conf$$ 2>/dev/null; then 11646 as_ln_s=ln 11647 else 11648 as_ln_s='cp -p' 11649 fi 11650else 11651 as_ln_s='cp -p' 11652fi 11653rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11654rmdir conf$$.dir 2>/dev/null 11655 11656 11657# as_fn_mkdir_p 11658# ------------- 11659# Create "$as_dir" as a directory, including parents if necessary. 11660as_fn_mkdir_p () 11661{ 11662 11663 case $as_dir in #( 11664 -*) as_dir=./$as_dir;; 11665 esac 11666 test -d "$as_dir" || eval $as_mkdir_p || { 11667 as_dirs= 11668 while :; do 11669 case $as_dir in #( 11670 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11671 *) as_qdir=$as_dir;; 11672 esac 11673 as_dirs="'$as_qdir' $as_dirs" 11674 as_dir=`$as_dirname -- "$as_dir" || 11675$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11676 X"$as_dir" : 'X\(//\)[^/]' \| \ 11677 X"$as_dir" : 'X\(//\)$' \| \ 11678 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11679$as_echo X"$as_dir" | 11680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11681 s//\1/ 11682 q 11683 } 11684 /^X\(\/\/\)[^/].*/{ 11685 s//\1/ 11686 q 11687 } 11688 /^X\(\/\/\)$/{ 11689 s//\1/ 11690 q 11691 } 11692 /^X\(\/\).*/{ 11693 s//\1/ 11694 q 11695 } 11696 s/.*/./; q'` 11697 test -d "$as_dir" && break 11698 done 11699 test -z "$as_dirs" || eval "mkdir $as_dirs" 11700 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11701 11702 11703} # as_fn_mkdir_p 11704if mkdir -p . 2>/dev/null; then 11705 as_mkdir_p='mkdir -p "$as_dir"' 11706else 11707 test -d ./-p && rmdir ./-p 11708 as_mkdir_p=false 11709fi 11710 11711if test -x / >/dev/null 2>&1; then 11712 as_test_x='test -x' 11713else 11714 if ls -dL / >/dev/null 2>&1; then 11715 as_ls_L_option=L 11716 else 11717 as_ls_L_option= 11718 fi 11719 as_test_x=' 11720 eval sh -c '\'' 11721 if test -d "$1"; then 11722 test -d "$1/."; 11723 else 11724 case $1 in #( 11725 -*)set "./$1";; 11726 esac; 11727 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11728 ???[sx]*):;;*)false;;esac;fi 11729 '\'' sh 11730 ' 11731fi 11732as_executable_p=$as_test_x 11733 11734# Sed expression to map a string onto a valid CPP name. 11735as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11736 11737# Sed expression to map a string onto a valid variable name. 11738as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11739 11740 11741exec 6>&1 11742## ----------------------------------- ## 11743## Main body of $CONFIG_STATUS script. ## 11744## ----------------------------------- ## 11745_ASEOF 11746test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11747 11748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11749# Save the log message, to keep $0 and so on meaningful, and to 11750# report actual input values of CONFIG_FILES etc. instead of their 11751# values after options handling. 11752ac_log=" 11753This file was extended by sessreg $as_me 1.0.8, which was 11754generated by GNU Autoconf 2.68. Invocation command line was 11755 11756 CONFIG_FILES = $CONFIG_FILES 11757 CONFIG_HEADERS = $CONFIG_HEADERS 11758 CONFIG_LINKS = $CONFIG_LINKS 11759 CONFIG_COMMANDS = $CONFIG_COMMANDS 11760 $ $0 $@ 11761 11762on `(hostname || uname -n) 2>/dev/null | sed 1q` 11763" 11764 11765_ACEOF 11766 11767case $ac_config_files in *" 11768"*) set x $ac_config_files; shift; ac_config_files=$*;; 11769esac 11770 11771case $ac_config_headers in *" 11772"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11773esac 11774 11775 11776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11777# Files that config.status was made for. 11778config_files="$ac_config_files" 11779config_headers="$ac_config_headers" 11780config_commands="$ac_config_commands" 11781 11782_ACEOF 11783 11784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11785ac_cs_usage="\ 11786\`$as_me' instantiates files and other configuration actions 11787from templates according to the current configuration. Unless the files 11788and actions are specified as TAGs, all are instantiated by default. 11789 11790Usage: $0 [OPTION]... [TAG]... 11791 11792 -h, --help print this help, then exit 11793 -V, --version print version number and configuration settings, then exit 11794 --config print configuration, then exit 11795 -q, --quiet, --silent 11796 do not print progress messages 11797 -d, --debug don't remove temporary files 11798 --recheck update $as_me by reconfiguring in the same conditions 11799 --file=FILE[:TEMPLATE] 11800 instantiate the configuration file FILE 11801 --header=FILE[:TEMPLATE] 11802 instantiate the configuration header FILE 11803 11804Configuration files: 11805$config_files 11806 11807Configuration headers: 11808$config_headers 11809 11810Configuration commands: 11811$config_commands 11812 11813Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11814 11815_ACEOF 11816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11817ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11818ac_cs_version="\\ 11819sessreg config.status 1.0.8 11820configured by $0, generated by GNU Autoconf 2.68, 11821 with options \\"\$ac_cs_config\\" 11822 11823Copyright (C) 2010 Free Software Foundation, Inc. 11824This config.status script is free software; the Free Software Foundation 11825gives unlimited permission to copy, distribute and modify it." 11826 11827ac_pwd='$ac_pwd' 11828srcdir='$srcdir' 11829INSTALL='$INSTALL' 11830MKDIR_P='$MKDIR_P' 11831AWK='$AWK' 11832test -n "\$AWK" || AWK=awk 11833_ACEOF 11834 11835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11836# The default lists apply if the user does not specify any file. 11837ac_need_defaults=: 11838while test $# != 0 11839do 11840 case $1 in 11841 --*=?*) 11842 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11844 ac_shift=: 11845 ;; 11846 --*=) 11847 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11848 ac_optarg= 11849 ac_shift=: 11850 ;; 11851 *) 11852 ac_option=$1 11853 ac_optarg=$2 11854 ac_shift=shift 11855 ;; 11856 esac 11857 11858 case $ac_option in 11859 # Handling of the options. 11860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11861 ac_cs_recheck=: ;; 11862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11863 $as_echo "$ac_cs_version"; exit ;; 11864 --config | --confi | --conf | --con | --co | --c ) 11865 $as_echo "$ac_cs_config"; exit ;; 11866 --debug | --debu | --deb | --de | --d | -d ) 11867 debug=: ;; 11868 --file | --fil | --fi | --f ) 11869 $ac_shift 11870 case $ac_optarg in 11871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11872 '') as_fn_error $? "missing file argument" ;; 11873 esac 11874 as_fn_append CONFIG_FILES " '$ac_optarg'" 11875 ac_need_defaults=false;; 11876 --header | --heade | --head | --hea ) 11877 $ac_shift 11878 case $ac_optarg in 11879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11880 esac 11881 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11882 ac_need_defaults=false;; 11883 --he | --h) 11884 # Conflict between --help and --header 11885 as_fn_error $? "ambiguous option: \`$1' 11886Try \`$0 --help' for more information.";; 11887 --help | --hel | -h ) 11888 $as_echo "$ac_cs_usage"; exit ;; 11889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11890 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11891 ac_cs_silent=: ;; 11892 11893 # This is an error. 11894 -*) as_fn_error $? "unrecognized option: \`$1' 11895Try \`$0 --help' for more information." ;; 11896 11897 *) as_fn_append ac_config_targets " $1" 11898 ac_need_defaults=false ;; 11899 11900 esac 11901 shift 11902done 11903 11904ac_configure_extra_args= 11905 11906if $ac_cs_silent; then 11907 exec 6>/dev/null 11908 ac_configure_extra_args="$ac_configure_extra_args --silent" 11909fi 11910 11911_ACEOF 11912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11913if \$ac_cs_recheck; then 11914 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11915 shift 11916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11917 CONFIG_SHELL='$SHELL' 11918 export CONFIG_SHELL 11919 exec "\$@" 11920fi 11921 11922_ACEOF 11923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11924exec 5>>config.log 11925{ 11926 echo 11927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11928## Running $as_me. ## 11929_ASBOX 11930 $as_echo "$ac_log" 11931} >&5 11932 11933_ACEOF 11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11935# 11936# INIT-COMMANDS 11937# 11938AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11939 11940_ACEOF 11941 11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11943 11944# Handling of arguments. 11945for ac_config_target in $ac_config_targets 11946do 11947 case $ac_config_target in 11948 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11949 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11950 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11951 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11952 11953 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11954 esac 11955done 11956 11957 11958# If the user did not use the arguments to specify the items to instantiate, 11959# then the envvar interface is used. Set only those that are not. 11960# We use the long form for the default assignment because of an extremely 11961# bizarre bug on SunOS 4.1.3. 11962if $ac_need_defaults; then 11963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11964 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11966fi 11967 11968# Have a temporary directory for convenience. Make it in the build tree 11969# simply because there is no reason against having it here, and in addition, 11970# creating and moving files from /tmp can sometimes cause problems. 11971# Hook for its removal unless debugging. 11972# Note that there is a small window in which the directory will not be cleaned: 11973# after its creation but before its name has been assigned to `$tmp'. 11974$debug || 11975{ 11976 tmp= ac_tmp= 11977 trap 'exit_status=$? 11978 : "${ac_tmp:=$tmp}" 11979 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11980' 0 11981 trap 'as_fn_exit 1' 1 2 13 15 11982} 11983# Create a (secure) tmp directory for tmp files. 11984 11985{ 11986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11987 test -d "$tmp" 11988} || 11989{ 11990 tmp=./conf$$-$RANDOM 11991 (umask 077 && mkdir "$tmp") 11992} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11993ac_tmp=$tmp 11994 11995# Set up the scripts for CONFIG_FILES section. 11996# No need to generate them if there are no CONFIG_FILES. 11997# This happens for instance with `./config.status config.h'. 11998if test -n "$CONFIG_FILES"; then 11999 12000 12001ac_cr=`echo X | tr X '\015'` 12002# On cygwin, bash can eat \r inside `` if the user requested igncr. 12003# But we know of no other shell where ac_cr would be empty at this 12004# point, so we can use a bashism as a fallback. 12005if test "x$ac_cr" = x; then 12006 eval ac_cr=\$\'\\r\' 12007fi 12008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12010 ac_cs_awk_cr='\\r' 12011else 12012 ac_cs_awk_cr=$ac_cr 12013fi 12014 12015echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12016_ACEOF 12017 12018 12019{ 12020 echo "cat >conf$$subs.awk <<_ACEOF" && 12021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12022 echo "_ACEOF" 12023} >conf$$subs.sh || 12024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12025ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12026ac_delim='%!_!# ' 12027for ac_last_try in false false false false false :; do 12028 . ./conf$$subs.sh || 12029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12030 12031 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12032 if test $ac_delim_n = $ac_delim_num; then 12033 break 12034 elif $ac_last_try; then 12035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12036 else 12037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12038 fi 12039done 12040rm -f conf$$subs.sh 12041 12042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12043cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12044_ACEOF 12045sed -n ' 12046h 12047s/^/S["/; s/!.*/"]=/ 12048p 12049g 12050s/^[^!]*!// 12051:repl 12052t repl 12053s/'"$ac_delim"'$// 12054t delim 12055:nl 12056h 12057s/\(.\{148\}\)..*/\1/ 12058t more1 12059s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12060p 12061n 12062b repl 12063:more1 12064s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12065p 12066g 12067s/.\{148\}// 12068t nl 12069:delim 12070h 12071s/\(.\{148\}\)..*/\1/ 12072t more2 12073s/["\\]/\\&/g; s/^/"/; s/$/"/ 12074p 12075b 12076:more2 12077s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12078p 12079g 12080s/.\{148\}// 12081t delim 12082' <conf$$subs.awk | sed ' 12083/^[^""]/{ 12084 N 12085 s/\n// 12086} 12087' >>$CONFIG_STATUS || ac_write_fail=1 12088rm -f conf$$subs.awk 12089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12090_ACAWK 12091cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12092 for (key in S) S_is_set[key] = 1 12093 FS = "" 12094 12095} 12096{ 12097 line = $ 0 12098 nfields = split(line, field, "@") 12099 substed = 0 12100 len = length(field[1]) 12101 for (i = 2; i < nfields; i++) { 12102 key = field[i] 12103 keylen = length(key) 12104 if (S_is_set[key]) { 12105 value = S[key] 12106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12107 len += length(value) + length(field[++i]) 12108 substed = 1 12109 } else 12110 len += 1 + keylen 12111 } 12112 12113 print line 12114} 12115 12116_ACAWK 12117_ACEOF 12118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12119if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12120 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12121else 12122 cat 12123fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12124 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12125_ACEOF 12126 12127# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12128# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12129# trailing colons and then remove the whole line if VPATH becomes empty 12130# (actually we leave an empty line to preserve line numbers). 12131if test "x$srcdir" = x.; then 12132 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12133h 12134s/// 12135s/^/:/ 12136s/[ ]*$/:/ 12137s/:\$(srcdir):/:/g 12138s/:\${srcdir}:/:/g 12139s/:@srcdir@:/:/g 12140s/^:*// 12141s/:*$// 12142x 12143s/\(=[ ]*\).*/\1/ 12144G 12145s/\n// 12146s/^[^=]*=[ ]*$// 12147}' 12148fi 12149 12150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12151fi # test -n "$CONFIG_FILES" 12152 12153# Set up the scripts for CONFIG_HEADERS section. 12154# No need to generate them if there are no CONFIG_HEADERS. 12155# This happens for instance with `./config.status Makefile'. 12156if test -n "$CONFIG_HEADERS"; then 12157cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12158BEGIN { 12159_ACEOF 12160 12161# Transform confdefs.h into an awk script `defines.awk', embedded as 12162# here-document in config.status, that substitutes the proper values into 12163# config.h.in to produce config.h. 12164 12165# Create a delimiter string that does not exist in confdefs.h, to ease 12166# handling of long lines. 12167ac_delim='%!_!# ' 12168for ac_last_try in false false :; do 12169 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12170 if test -z "$ac_tt"; then 12171 break 12172 elif $ac_last_try; then 12173 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12174 else 12175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12176 fi 12177done 12178 12179# For the awk script, D is an array of macro values keyed by name, 12180# likewise P contains macro parameters if any. Preserve backslash 12181# newline sequences. 12182 12183ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12184sed -n ' 12185s/.\{148\}/&'"$ac_delim"'/g 12186t rset 12187:rset 12188s/^[ ]*#[ ]*define[ ][ ]*/ / 12189t def 12190d 12191:def 12192s/\\$// 12193t bsnl 12194s/["\\]/\\&/g 12195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12196D["\1"]=" \3"/p 12197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12198d 12199:bsnl 12200s/["\\]/\\&/g 12201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12202D["\1"]=" \3\\\\\\n"\\/p 12203t cont 12204s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12205t cont 12206d 12207:cont 12208n 12209s/.\{148\}/&'"$ac_delim"'/g 12210t clear 12211:clear 12212s/\\$// 12213t bsnlc 12214s/["\\]/\\&/g; s/^/"/; s/$/"/p 12215d 12216:bsnlc 12217s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12218b cont 12219' <confdefs.h | sed ' 12220s/'"$ac_delim"'/"\\\ 12221"/g' >>$CONFIG_STATUS || ac_write_fail=1 12222 12223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12224 for (key in D) D_is_set[key] = 1 12225 FS = "" 12226} 12227/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12228 line = \$ 0 12229 split(line, arg, " ") 12230 if (arg[1] == "#") { 12231 defundef = arg[2] 12232 mac1 = arg[3] 12233 } else { 12234 defundef = substr(arg[1], 2) 12235 mac1 = arg[2] 12236 } 12237 split(mac1, mac2, "(") #) 12238 macro = mac2[1] 12239 prefix = substr(line, 1, index(line, defundef) - 1) 12240 if (D_is_set[macro]) { 12241 # Preserve the white space surrounding the "#". 12242 print prefix "define", macro P[macro] D[macro] 12243 next 12244 } else { 12245 # Replace #undef with comments. This is necessary, for example, 12246 # in the case of _POSIX_SOURCE, which is predefined and required 12247 # on some systems where configure will not decide to define it. 12248 if (defundef == "undef") { 12249 print "/*", prefix defundef, macro, "*/" 12250 next 12251 } 12252 } 12253} 12254{ print } 12255_ACAWK 12256_ACEOF 12257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12258 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12259fi # test -n "$CONFIG_HEADERS" 12260 12261 12262eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12263shift 12264for ac_tag 12265do 12266 case $ac_tag in 12267 :[FHLC]) ac_mode=$ac_tag; continue;; 12268 esac 12269 case $ac_mode$ac_tag in 12270 :[FHL]*:*);; 12271 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12272 :[FH]-) ac_tag=-:-;; 12273 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12274 esac 12275 ac_save_IFS=$IFS 12276 IFS=: 12277 set x $ac_tag 12278 IFS=$ac_save_IFS 12279 shift 12280 ac_file=$1 12281 shift 12282 12283 case $ac_mode in 12284 :L) ac_source=$1;; 12285 :[FH]) 12286 ac_file_inputs= 12287 for ac_f 12288 do 12289 case $ac_f in 12290 -) ac_f="$ac_tmp/stdin";; 12291 *) # Look for the file first in the build tree, then in the source tree 12292 # (if the path is not absolute). The absolute path cannot be DOS-style, 12293 # because $ac_f cannot contain `:'. 12294 test -f "$ac_f" || 12295 case $ac_f in 12296 [\\/$]*) false;; 12297 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12298 esac || 12299 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12300 esac 12301 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12302 as_fn_append ac_file_inputs " '$ac_f'" 12303 done 12304 12305 # Let's still pretend it is `configure' which instantiates (i.e., don't 12306 # use $as_me), people would be surprised to read: 12307 # /* config.h. Generated by config.status. */ 12308 configure_input='Generated from '` 12309 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12310 `' by configure.' 12311 if test x"$ac_file" != x-; then 12312 configure_input="$ac_file. $configure_input" 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12314$as_echo "$as_me: creating $ac_file" >&6;} 12315 fi 12316 # Neutralize special characters interpreted by sed in replacement strings. 12317 case $configure_input in #( 12318 *\&* | *\|* | *\\* ) 12319 ac_sed_conf_input=`$as_echo "$configure_input" | 12320 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12321 *) ac_sed_conf_input=$configure_input;; 12322 esac 12323 12324 case $ac_tag in 12325 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12327 esac 12328 ;; 12329 esac 12330 12331 ac_dir=`$as_dirname -- "$ac_file" || 12332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12333 X"$ac_file" : 'X\(//\)[^/]' \| \ 12334 X"$ac_file" : 'X\(//\)$' \| \ 12335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12336$as_echo X"$ac_file" | 12337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12338 s//\1/ 12339 q 12340 } 12341 /^X\(\/\/\)[^/].*/{ 12342 s//\1/ 12343 q 12344 } 12345 /^X\(\/\/\)$/{ 12346 s//\1/ 12347 q 12348 } 12349 /^X\(\/\).*/{ 12350 s//\1/ 12351 q 12352 } 12353 s/.*/./; q'` 12354 as_dir="$ac_dir"; as_fn_mkdir_p 12355 ac_builddir=. 12356 12357case "$ac_dir" in 12358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12359*) 12360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12361 # A ".." for each directory in $ac_dir_suffix. 12362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12363 case $ac_top_builddir_sub in 12364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12366 esac ;; 12367esac 12368ac_abs_top_builddir=$ac_pwd 12369ac_abs_builddir=$ac_pwd$ac_dir_suffix 12370# for backward compatibility: 12371ac_top_builddir=$ac_top_build_prefix 12372 12373case $srcdir in 12374 .) # We are building in place. 12375 ac_srcdir=. 12376 ac_top_srcdir=$ac_top_builddir_sub 12377 ac_abs_top_srcdir=$ac_pwd ;; 12378 [\\/]* | ?:[\\/]* ) # Absolute name. 12379 ac_srcdir=$srcdir$ac_dir_suffix; 12380 ac_top_srcdir=$srcdir 12381 ac_abs_top_srcdir=$srcdir ;; 12382 *) # Relative name. 12383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12384 ac_top_srcdir=$ac_top_build_prefix$srcdir 12385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12386esac 12387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12388 12389 12390 case $ac_mode in 12391 :F) 12392 # 12393 # CONFIG_FILE 12394 # 12395 12396 case $INSTALL in 12397 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12398 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12399 esac 12400 ac_MKDIR_P=$MKDIR_P 12401 case $MKDIR_P in 12402 [\\/$]* | ?:[\\/]* ) ;; 12403 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12404 esac 12405_ACEOF 12406 12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12408# If the template does not know about datarootdir, expand it. 12409# FIXME: This hack should be removed a few years after 2.60. 12410ac_datarootdir_hack=; ac_datarootdir_seen= 12411ac_sed_dataroot=' 12412/datarootdir/ { 12413 p 12414 q 12415} 12416/@datadir@/p 12417/@docdir@/p 12418/@infodir@/p 12419/@localedir@/p 12420/@mandir@/p' 12421case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12422*datarootdir*) ac_datarootdir_seen=yes;; 12423*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12425$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12426_ACEOF 12427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12428 ac_datarootdir_hack=' 12429 s&@datadir@&$datadir&g 12430 s&@docdir@&$docdir&g 12431 s&@infodir@&$infodir&g 12432 s&@localedir@&$localedir&g 12433 s&@mandir@&$mandir&g 12434 s&\\\${datarootdir}&$datarootdir&g' ;; 12435esac 12436_ACEOF 12437 12438# Neutralize VPATH when `$srcdir' = `.'. 12439# Shell code in configure.ac might set extrasub. 12440# FIXME: do we really want to maintain this feature? 12441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12442ac_sed_extra="$ac_vpsub 12443$extrasub 12444_ACEOF 12445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446:t 12447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12448s|@configure_input@|$ac_sed_conf_input|;t t 12449s&@top_builddir@&$ac_top_builddir_sub&;t t 12450s&@top_build_prefix@&$ac_top_build_prefix&;t t 12451s&@srcdir@&$ac_srcdir&;t t 12452s&@abs_srcdir@&$ac_abs_srcdir&;t t 12453s&@top_srcdir@&$ac_top_srcdir&;t t 12454s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12455s&@builddir@&$ac_builddir&;t t 12456s&@abs_builddir@&$ac_abs_builddir&;t t 12457s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12458s&@INSTALL@&$ac_INSTALL&;t t 12459s&@MKDIR_P@&$ac_MKDIR_P&;t t 12460$ac_datarootdir_hack 12461" 12462eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12463 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12464 12465test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12466 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12467 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12468 "$ac_tmp/out"`; test -z "$ac_out"; } && 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12470which seems to be undefined. Please make sure it is defined" >&5 12471$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12472which seems to be undefined. Please make sure it is defined" >&2;} 12473 12474 rm -f "$ac_tmp/stdin" 12475 case $ac_file in 12476 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12477 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12478 esac \ 12479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12480 ;; 12481 :H) 12482 # 12483 # CONFIG_HEADER 12484 # 12485 if test x"$ac_file" != x-; then 12486 { 12487 $as_echo "/* $configure_input */" \ 12488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12489 } >"$ac_tmp/config.h" \ 12490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12491 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12493$as_echo "$as_me: $ac_file is unchanged" >&6;} 12494 else 12495 rm -f "$ac_file" 12496 mv "$ac_tmp/config.h" "$ac_file" \ 12497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12498 fi 12499 else 12500 $as_echo "/* $configure_input */" \ 12501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12502 || as_fn_error $? "could not create -" "$LINENO" 5 12503 fi 12504# Compute "$ac_file"'s index in $config_headers. 12505_am_arg="$ac_file" 12506_am_stamp_count=1 12507for _am_header in $config_headers :; do 12508 case $_am_header in 12509 $_am_arg | $_am_arg:* ) 12510 break ;; 12511 * ) 12512 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12513 esac 12514done 12515echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12516$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12517 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12518 X"$_am_arg" : 'X\(//\)$' \| \ 12519 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12520$as_echo X"$_am_arg" | 12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12522 s//\1/ 12523 q 12524 } 12525 /^X\(\/\/\)[^/].*/{ 12526 s//\1/ 12527 q 12528 } 12529 /^X\(\/\/\)$/{ 12530 s//\1/ 12531 q 12532 } 12533 /^X\(\/\).*/{ 12534 s//\1/ 12535 q 12536 } 12537 s/.*/./; q'`/stamp-h$_am_stamp_count 12538 ;; 12539 12540 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12541$as_echo "$as_me: executing $ac_file commands" >&6;} 12542 ;; 12543 esac 12544 12545 12546 case $ac_file$ac_mode in 12547 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12548 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12549 # are listed without --file. Let's play safe and only enable the eval 12550 # if we detect the quoting. 12551 case $CONFIG_FILES in 12552 *\'*) eval set x "$CONFIG_FILES" ;; 12553 *) set x $CONFIG_FILES ;; 12554 esac 12555 shift 12556 for mf 12557 do 12558 # Strip MF so we end up with the name of the file. 12559 mf=`echo "$mf" | sed -e 's/:.*$//'` 12560 # Check whether this is an Automake generated Makefile or not. 12561 # We used to match only the files named `Makefile.in', but 12562 # some people rename them; so instead we look at the file content. 12563 # Grep'ing the first line is not enough: some people post-process 12564 # each Makefile.in and add a new line on top of each file to say so. 12565 # Grep'ing the whole file is not good either: AIX grep has a line 12566 # limit of 2048, but all sed's we know have understand at least 4000. 12567 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12568 dirpart=`$as_dirname -- "$mf" || 12569$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12570 X"$mf" : 'X\(//\)[^/]' \| \ 12571 X"$mf" : 'X\(//\)$' \| \ 12572 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12573$as_echo X"$mf" | 12574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12575 s//\1/ 12576 q 12577 } 12578 /^X\(\/\/\)[^/].*/{ 12579 s//\1/ 12580 q 12581 } 12582 /^X\(\/\/\)$/{ 12583 s//\1/ 12584 q 12585 } 12586 /^X\(\/\).*/{ 12587 s//\1/ 12588 q 12589 } 12590 s/.*/./; q'` 12591 else 12592 continue 12593 fi 12594 # Extract the definition of DEPDIR, am__include, and am__quote 12595 # from the Makefile without running `make'. 12596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12597 test -z "$DEPDIR" && continue 12598 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12599 test -z "am__include" && continue 12600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12601 # When using ansi2knr, U may be empty or an underscore; expand it 12602 U=`sed -n 's/^U = //p' < "$mf"` 12603 # Find all dependency output files, they are included files with 12604 # $(DEPDIR) in their names. We invoke sed twice because it is the 12605 # simplest approach to changing $(DEPDIR) to its actual value in the 12606 # expansion. 12607 for file in `sed -n " 12608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12610 # Make sure the directory exists. 12611 test -f "$dirpart/$file" && continue 12612 fdir=`$as_dirname -- "$file" || 12613$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12614 X"$file" : 'X\(//\)[^/]' \| \ 12615 X"$file" : 'X\(//\)$' \| \ 12616 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12617$as_echo X"$file" | 12618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12619 s//\1/ 12620 q 12621 } 12622 /^X\(\/\/\)[^/].*/{ 12623 s//\1/ 12624 q 12625 } 12626 /^X\(\/\/\)$/{ 12627 s//\1/ 12628 q 12629 } 12630 /^X\(\/\).*/{ 12631 s//\1/ 12632 q 12633 } 12634 s/.*/./; q'` 12635 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12636 # echo "creating $dirpart/$file" 12637 echo '# dummy' > "$dirpart/$file" 12638 done 12639 done 12640} 12641 ;; 12642 12643 esac 12644done # for ac_tag 12645 12646 12647as_fn_exit 0 12648_ACEOF 12649ac_clean_files=$ac_clean_files_save 12650 12651test $ac_write_fail = 0 || 12652 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12653 12654 12655# configure is writing to config.log, and then calls config.status. 12656# config.status does its own redirection, appending to config.log. 12657# Unfortunately, on DOS this fails, as config.log is still kept open 12658# by configure, so config.status won't be able to write to it; its 12659# output is simply discarded. So we exec the FD to /dev/null, 12660# effectively closing config.log, so it can be properly (re)opened and 12661# appended to by config.status. When coming back to configure, we 12662# need to make the FD available again. 12663if test "$no_create" != yes; then 12664 ac_cs_success=: 12665 ac_config_status_args= 12666 test "$silent" = yes && 12667 ac_config_status_args="$ac_config_status_args --quiet" 12668 exec 5>/dev/null 12669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12670 exec 5>>config.log 12671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12672 # would make configure fail if this is the last instruction. 12673 $ac_cs_success || as_fn_exit 1 12674fi 12675if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12677$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12678fi 12679 12680