configure revision 8b8e729c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sessreg 1.1.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/sessreg/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='sessreg' 583PACKAGE_TARNAME='sessreg' 584PACKAGE_VERSION='1.1.2' 585PACKAGE_STRING='sessreg 1.1.2' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/sessreg/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630SESSREG_LIBS 631SESSREG_CFLAGS 632LINT_FALSE 633LINT_TRUE 634LINT_FLAGS 635LINT 636MAN_SUBSTS 637XORG_MAN_PAGE 638ADMIN_MAN_DIR 639DRIVER_MAN_DIR 640MISC_MAN_DIR 641FILE_MAN_DIR 642LIB_MAN_DIR 643APP_MAN_DIR 644ADMIN_MAN_SUFFIX 645DRIVER_MAN_SUFFIX 646MISC_MAN_SUFFIX 647FILE_MAN_SUFFIX 648LIB_MAN_SUFFIX 649APP_MAN_SUFFIX 650SED 651host_os 652host_vendor 653host_cpu 654host 655build_os 656build_vendor 657build_cpu 658build 659INSTALL_CMD 660PKG_CONFIG_LIBDIR 661PKG_CONFIG_PATH 662PKG_CONFIG 663CHANGELOG_CMD 664STRICT_CFLAGS 665CWARNFLAGS 666BASE_CFLAGS 667AM_BACKSLASH 668AM_DEFAULT_VERBOSITY 669AM_DEFAULT_V 670AM_V 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681am__untar 682am__tar 683AMTAR 684am__leading_dot 685SET_MAKE 686AWK 687mkdir_p 688MKDIR_P 689INSTALL_STRIP_PROGRAM 690STRIP 691install_sh 692MAKEINFO 693AUTOHEADER 694AUTOMAKE 695AUTOCONF 696ACLOCAL 697VERSION 698PACKAGE 699CYGPATH_W 700am__isrc 701INSTALL_DATA 702INSTALL_SCRIPT 703INSTALL_PROGRAM 704EGREP 705GREP 706CPP 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_largefile 756enable_dependency_tracking 757enable_silent_rules 758enable_selective_werror 759enable_strict_compilation 760with_lint 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765CC 766CFLAGS 767LDFLAGS 768LIBS 769CPPFLAGS 770CPP 771PKG_CONFIG 772PKG_CONFIG_PATH 773PKG_CONFIG_LIBDIR 774LINT 775LINT_FLAGS 776SESSREG_CFLAGS 777SESSREG_LIBS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 as_fn_error $? "working directory cannot be determined" 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 as_fn_error $? "pwd does not report name of working directory" 1250 1251 1252# Find the source files, if location was not specified. 1253if test -z "$srcdir"; then 1254 ac_srcdir_defaulted=yes 1255 # Try the directory containing this script, then the parent directory. 1256 ac_confdir=`$as_dirname -- "$as_myself" || 1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258 X"$as_myself" : 'X\(//\)[^/]' \| \ 1259 X"$as_myself" : 'X\(//\)$' \| \ 1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261$as_echo X"$as_myself" | 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)[^/].*/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\).*/{ 1275 s//\1/ 1276 q 1277 } 1278 s/.*/./; q'` 1279 srcdir=$ac_confdir 1280 if test ! -r "$srcdir/$ac_unique_file"; then 1281 srcdir=.. 1282 fi 1283else 1284 ac_srcdir_defaulted=no 1285fi 1286if test ! -r "$srcdir/$ac_unique_file"; then 1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1289fi 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1291ac_abs_confdir=`( 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures sessreg 1.1.2 to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking ...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375Program names: 1376 --program-prefix=PREFIX prepend PREFIX to installed program names 1377 --program-suffix=SUFFIX append SUFFIX to installed program names 1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of sessreg 1.1.2:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --disable-largefile omit support for large files 1397 --enable-dependency-tracking 1398 do not reject slow dependency extractors 1399 --disable-dependency-tracking 1400 speeds up one-time build 1401 --enable-silent-rules less verbose build output (undo: "make V=1") 1402 --disable-silent-rules verbose build output (undo: "make V=0") 1403 --disable-selective-werror 1404 Turn off selective compiler errors. (default: 1405 enabled) 1406 --enable-strict-compilation 1407 Enable all warnings from compiler and make them 1408 errors (default: disabled) 1409 1410Optional Packages: 1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1413 --with-lint Use a lint-style source code checker (default: 1414 disabled) 1415 1416Some influential environment variables: 1417 CC C compiler command 1418 CFLAGS C compiler flags 1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1420 nonstandard directory <lib dir> 1421 LIBS libraries to pass to the linker, e.g. -l<library> 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1423 you have headers in a nonstandard directory <include dir> 1424 CPP C preprocessor 1425 PKG_CONFIG path to pkg-config utility 1426 PKG_CONFIG_PATH 1427 directories to add to pkg-config's search path 1428 PKG_CONFIG_LIBDIR 1429 path overriding pkg-config's built-in search path 1430 LINT Path to a lint-style command 1431 LINT_FLAGS Flags for the lint-style command 1432 SESSREG_CFLAGS 1433 C compiler flags for SESSREG, overriding pkg-config 1434 SESSREG_LIBS 1435 linker flags for SESSREG, overriding pkg-config 1436 1437Use these variables to override the choices made by `configure' or to help 1438it to find libraries and programs with nonstandard names/locations. 1439 1440Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/issues>. 1441_ACEOF 1442ac_status=$? 1443fi 1444 1445if test "$ac_init_help" = "recursive"; then 1446 # If there are subdirs, report their specific --help. 1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1448 test -d "$ac_dir" || 1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1450 continue 1451 ac_builddir=. 1452 1453case "$ac_dir" in 1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1455*) 1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1457 # A ".." for each directory in $ac_dir_suffix. 1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1459 case $ac_top_builddir_sub in 1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1462 esac ;; 1463esac 1464ac_abs_top_builddir=$ac_pwd 1465ac_abs_builddir=$ac_pwd$ac_dir_suffix 1466# for backward compatibility: 1467ac_top_builddir=$ac_top_build_prefix 1468 1469case $srcdir in 1470 .) # We are building in place. 1471 ac_srcdir=. 1472 ac_top_srcdir=$ac_top_builddir_sub 1473 ac_abs_top_srcdir=$ac_pwd ;; 1474 [\\/]* | ?:[\\/]* ) # Absolute name. 1475 ac_srcdir=$srcdir$ac_dir_suffix; 1476 ac_top_srcdir=$srcdir 1477 ac_abs_top_srcdir=$srcdir ;; 1478 *) # Relative name. 1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1480 ac_top_srcdir=$ac_top_build_prefix$srcdir 1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1482esac 1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1484 1485 cd "$ac_dir" || { ac_status=$?; continue; } 1486 # Check for guested configure. 1487 if test -f "$ac_srcdir/configure.gnu"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1490 elif test -f "$ac_srcdir/configure"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure" --help=recursive 1493 else 1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1495 fi || ac_status=$? 1496 cd "$ac_pwd" || { ac_status=$?; break; } 1497 done 1498fi 1499 1500test -n "$ac_init_help" && exit $ac_status 1501if $ac_init_version; then 1502 cat <<\_ACEOF 1503sessreg configure 1.1.2 1504generated by GNU Autoconf 2.69 1505 1506Copyright (C) 2012 Free Software Foundation, Inc. 1507This configure script is free software; the Free Software Foundation 1508gives unlimited permission to copy, distribute and modify it. 1509_ACEOF 1510 exit 1511fi 1512 1513## ------------------------ ## 1514## Autoconf initialization. ## 1515## ------------------------ ## 1516 1517# ac_fn_c_try_compile LINENO 1518# -------------------------- 1519# Try to compile conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_compile () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext 1524 if { { ac_try="$ac_compile" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_compile") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest.$ac_objext; then : 1543 ac_retval=0 1544else 1545 $as_echo "$as_me: failed program was:" >&5 1546sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_c_try_compile 1554 1555# ac_fn_c_try_cpp LINENO 1556# ---------------------- 1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_cpp () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 if { { ac_try="$ac_cpp conftest.$ac_ext" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } > conftest.i && { 1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 }; then : 1580 ac_retval=0 1581else 1582 $as_echo "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 as_fn_set_status $ac_retval 1589 1590} # ac_fn_c_try_cpp 1591 1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1593# ------------------------------------------------------- 1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1595# the include files in INCLUDES and setting the cache variable VAR 1596# accordingly. 1597ac_fn_c_check_header_mongrel () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 if eval \${$3+:} false; then : 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1602$as_echo_n "checking for $2... " >&6; } 1603if eval \${$3+:} false; then : 1604 $as_echo_n "(cached) " >&6 1605fi 1606eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608$as_echo "$ac_res" >&6; } 1609else 1610 # Is the header compilable? 1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1612$as_echo_n "checking $2 usability... " >&6; } 1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1614/* end confdefs.h. */ 1615$4 1616#include <$2> 1617_ACEOF 1618if ac_fn_c_try_compile "$LINENO"; then : 1619 ac_header_compiler=yes 1620else 1621 ac_header_compiler=no 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1625$as_echo "$ac_header_compiler" >&6; } 1626 1627# Is the header present? 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1629$as_echo_n "checking $2 presence... " >&6; } 1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1631/* end confdefs.h. */ 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_cpp "$LINENO"; then : 1635 ac_header_preproc=yes 1636else 1637 ac_header_preproc=no 1638fi 1639rm -f conftest.err conftest.i conftest.$ac_ext 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1641$as_echo "$ac_header_preproc" >&6; } 1642 1643# So? What about this header? 1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1645 yes:no: ) 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1650 ;; 1651 no:yes:* ) 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1655$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1659$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1662( $as_echo "## --------------------------------------------------------------------- ## 1663## Report this to https://gitlab.freedesktop.org/xorg/app/sessreg/issues ## 1664## --------------------------------------------------------------------- ##" 1665 ) | sed "s/^/$as_me: WARNING: /" >&2 1666 ;; 1667esac 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 eval "$3=\$ac_header_compiler" 1674fi 1675eval ac_res=\$$3 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677$as_echo "$ac_res" >&6; } 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_mongrel 1682 1683# ac_fn_c_try_run LINENO 1684# ---------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1686# that executables *can* be run. 1687ac_fn_c_try_run () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>&5 1698 ac_status=$? 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1701 { { case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_try") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; }; }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: program exited with status $ac_status" >&5 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=$ac_status 1718fi 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_run 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1757# --------------------------------------------- 1758# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1759# accordingly. 1760ac_fn_c_check_decl () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 as_decl_name=`echo $2|sed 's/ *(.*//'` 1764 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1766$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1767if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773int 1774main () 1775{ 1776#ifndef $as_decl_name 1777#ifdef __cplusplus 1778 (void) $as_decl_use; 1779#else 1780 (void) $as_decl_name; 1781#endif 1782#endif 1783 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788if ac_fn_c_try_compile "$LINENO"; then : 1789 eval "$3=yes" 1790else 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_decl 1801 1802# ac_fn_c_try_link LINENO 1803# ----------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_link () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext conftest$ac_exeext 1809 if { { ac_try="$ac_link" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_link") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest$ac_exeext && { 1828 test "$cross_compiling" = yes || 1829 test -x conftest$ac_exeext 1830 }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 1837fi 1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1840 # interfere with the next link command; also delete a directory that is 1841 # left behind by Apple's compiler. We do this before executing the actions. 1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846} # ac_fn_c_try_link 1847 1848# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1849# ---------------------------------------------------- 1850# Tries to find if the field MEMBER exists in type AGGR, after including 1851# INCLUDES, setting cache variable VAR accordingly. 1852ac_fn_c_check_member () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1856$as_echo_n "checking for $2.$3... " >&6; } 1857if eval \${$4+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862$5 1863int 1864main () 1865{ 1866static $2 ac_aggr; 1867if (ac_aggr.$3) 1868return 0; 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873if ac_fn_c_try_compile "$LINENO"; then : 1874 eval "$4=yes" 1875else 1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877/* end confdefs.h. */ 1878$5 1879int 1880main () 1881{ 1882static $2 ac_aggr; 1883if (sizeof ac_aggr.$3) 1884return 0; 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 eval "$4=yes" 1891else 1892 eval "$4=no" 1893fi 1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1895fi 1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1897fi 1898eval ac_res=\$$4 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 1903} # ac_fn_c_check_member 1904 1905# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1906# ------------------------------------------- 1907# Tests whether TYPE exists after having included INCLUDES, setting cache 1908# variable VAR accordingly. 1909ac_fn_c_check_type () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if eval \${$3+:} false; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 eval "$3=no" 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920$4 1921int 1922main () 1923{ 1924if (sizeof ($2)) 1925 return 0; 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO"; then : 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934int 1935main () 1936{ 1937if (sizeof (($2))) 1938 return 0; 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 1945else 1946 eval "$3=yes" 1947fi 1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 1957} # ac_fn_c_check_type 1958 1959# ac_fn_c_check_func LINENO FUNC VAR 1960# ---------------------------------- 1961# Tests whether FUNC exists, setting the cache variable VAR accordingly 1962ac_fn_c_check_func () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1966$as_echo_n "checking for $2... " >&6; } 1967if eval \${$3+:} false; then : 1968 $as_echo_n "(cached) " >&6 1969else 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1974#define $2 innocuous_$2 1975 1976/* System header to define __stub macros and hopefully few prototypes, 1977 which can conflict with char $2 (); below. 1978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1979 <limits.h> exists even on freestanding compilers. */ 1980 1981#ifdef __STDC__ 1982# include <limits.h> 1983#else 1984# include <assert.h> 1985#endif 1986 1987#undef $2 1988 1989/* Override any GCC internal prototype to avoid an error. 1990 Use char because int might match the return type of a GCC 1991 builtin and then its argument prototype would still apply. */ 1992#ifdef __cplusplus 1993extern "C" 1994#endif 1995char $2 (); 1996/* The GNU C library defines this for functions which it implements 1997 to always fail with ENOSYS. Some functions are actually named 1998 something starting with __ and the normal name is an alias. */ 1999#if defined __stub_$2 || defined __stub___$2 2000choke me 2001#endif 2002 2003int 2004main () 2005{ 2006return $2 (); 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_link "$LINENO"; then : 2012 eval "$3=yes" 2013else 2014 eval "$3=no" 2015fi 2016rm -f core conftest.err conftest.$ac_objext \ 2017 conftest$ac_exeext conftest.$ac_ext 2018fi 2019eval ac_res=\$$3 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2021$as_echo "$ac_res" >&6; } 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 2024} # ac_fn_c_check_func 2025cat >config.log <<_ACEOF 2026This file contains any messages produced by compilers while 2027running configure, to aid debugging if configure makes a mistake. 2028 2029It was created by sessreg $as_me 1.1.2, which was 2030generated by GNU Autoconf 2.69. Invocation command line was 2031 2032 $ $0 $@ 2033 2034_ACEOF 2035exec 5>>config.log 2036{ 2037cat <<_ASUNAME 2038## --------- ## 2039## Platform. ## 2040## --------- ## 2041 2042hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2043uname -m = `(uname -m) 2>/dev/null || echo unknown` 2044uname -r = `(uname -r) 2>/dev/null || echo unknown` 2045uname -s = `(uname -s) 2>/dev/null || echo unknown` 2046uname -v = `(uname -v) 2>/dev/null || echo unknown` 2047 2048/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2049/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2050 2051/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2052/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2053/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2054/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2055/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2056/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2057/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2058 2059_ASUNAME 2060 2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2062for as_dir in $PATH 2063do 2064 IFS=$as_save_IFS 2065 test -z "$as_dir" && as_dir=. 2066 $as_echo "PATH: $as_dir" 2067 done 2068IFS=$as_save_IFS 2069 2070} >&5 2071 2072cat >&5 <<_ACEOF 2073 2074 2075## ----------- ## 2076## Core tests. ## 2077## ----------- ## 2078 2079_ACEOF 2080 2081 2082# Keep a trace of the command line. 2083# Strip out --no-create and --no-recursion so they do not pile up. 2084# Strip out --silent because we don't want to record it for future runs. 2085# Also quote any args containing shell meta-characters. 2086# Make two passes to allow for proper duplicate-argument suppression. 2087ac_configure_args= 2088ac_configure_args0= 2089ac_configure_args1= 2090ac_must_keep_next=false 2091for ac_pass in 1 2 2092do 2093 for ac_arg 2094 do 2095 case $ac_arg in 2096 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2098 | -silent | --silent | --silen | --sile | --sil) 2099 continue ;; 2100 *\'*) 2101 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2102 esac 2103 case $ac_pass in 2104 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2105 2) 2106 as_fn_append ac_configure_args1 " '$ac_arg'" 2107 if test $ac_must_keep_next = true; then 2108 ac_must_keep_next=false # Got value, back to normal. 2109 else 2110 case $ac_arg in 2111 *=* | --config-cache | -C | -disable-* | --disable-* \ 2112 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2113 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2114 | -with-* | --with-* | -without-* | --without-* | --x) 2115 case "$ac_configure_args0 " in 2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2117 esac 2118 ;; 2119 -* ) ac_must_keep_next=true ;; 2120 esac 2121 fi 2122 as_fn_append ac_configure_args " '$ac_arg'" 2123 ;; 2124 esac 2125 done 2126done 2127{ ac_configure_args0=; unset ac_configure_args0;} 2128{ ac_configure_args1=; unset ac_configure_args1;} 2129 2130# When interrupted or exit'd, cleanup temporary files, and complete 2131# config.log. We remove comments because anyway the quotes in there 2132# would cause problems or look ugly. 2133# WARNING: Use '\'' to represent an apostrophe within the trap. 2134# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2135trap 'exit_status=$? 2136 # Save into config.log some information that might help in debugging. 2137 { 2138 echo 2139 2140 $as_echo "## ---------------- ## 2141## Cache variables. ## 2142## ---------------- ##" 2143 echo 2144 # The following way of writing the cache mishandles newlines in values, 2145( 2146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2147 eval ac_val=\$$ac_var 2148 case $ac_val in #( 2149 *${as_nl}*) 2150 case $ac_var in #( 2151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2153 esac 2154 case $ac_var in #( 2155 _ | IFS | as_nl) ;; #( 2156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2157 *) { eval $ac_var=; unset $ac_var;} ;; 2158 esac ;; 2159 esac 2160 done 2161 (set) 2>&1 | 2162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2163 *${as_nl}ac_space=\ *) 2164 sed -n \ 2165 "s/'\''/'\''\\\\'\'''\''/g; 2166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2167 ;; #( 2168 *) 2169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2170 ;; 2171 esac | 2172 sort 2173) 2174 echo 2175 2176 $as_echo "## ----------------- ## 2177## Output variables. ## 2178## ----------------- ##" 2179 echo 2180 for ac_var in $ac_subst_vars 2181 do 2182 eval ac_val=\$$ac_var 2183 case $ac_val in 2184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2185 esac 2186 $as_echo "$ac_var='\''$ac_val'\''" 2187 done | sort 2188 echo 2189 2190 if test -n "$ac_subst_files"; then 2191 $as_echo "## ------------------- ## 2192## File substitutions. ## 2193## ------------------- ##" 2194 echo 2195 for ac_var in $ac_subst_files 2196 do 2197 eval ac_val=\$$ac_var 2198 case $ac_val in 2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2200 esac 2201 $as_echo "$ac_var='\''$ac_val'\''" 2202 done | sort 2203 echo 2204 fi 2205 2206 if test -s confdefs.h; then 2207 $as_echo "## ----------- ## 2208## confdefs.h. ## 2209## ----------- ##" 2210 echo 2211 cat confdefs.h 2212 echo 2213 fi 2214 test "$ac_signal" != 0 && 2215 $as_echo "$as_me: caught signal $ac_signal" 2216 $as_echo "$as_me: exit $exit_status" 2217 } >&5 2218 rm -f core *.core core.conftest.* && 2219 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2220 exit $exit_status 2221' 0 2222for ac_signal in 1 2 13 15; do 2223 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2224done 2225ac_signal=0 2226 2227# confdefs.h avoids OS command line length limits that DEFS can exceed. 2228rm -f -r conftest* confdefs.h 2229 2230$as_echo "/* confdefs.h */" > confdefs.h 2231 2232# Predefined preprocessor variables. 2233 2234cat >>confdefs.h <<_ACEOF 2235#define PACKAGE_NAME "$PACKAGE_NAME" 2236_ACEOF 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_VERSION "$PACKAGE_VERSION" 2244_ACEOF 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_STRING "$PACKAGE_STRING" 2248_ACEOF 2249 2250cat >>confdefs.h <<_ACEOF 2251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2252_ACEOF 2253 2254cat >>confdefs.h <<_ACEOF 2255#define PACKAGE_URL "$PACKAGE_URL" 2256_ACEOF 2257 2258 2259# Let the site file select an alternate cache file if it wants to. 2260# Prefer an explicitly selected file to automatically selected ones. 2261ac_site_file1=NONE 2262ac_site_file2=NONE 2263if test -n "$CONFIG_SITE"; then 2264 # We do not want a PATH search for config.site. 2265 case $CONFIG_SITE in #(( 2266 -*) ac_site_file1=./$CONFIG_SITE;; 2267 */*) ac_site_file1=$CONFIG_SITE;; 2268 *) ac_site_file1=./$CONFIG_SITE;; 2269 esac 2270elif test "x$prefix" != xNONE; then 2271 ac_site_file1=$prefix/share/config.site 2272 ac_site_file2=$prefix/etc/config.site 2273else 2274 ac_site_file1=$ac_default_prefix/share/config.site 2275 ac_site_file2=$ac_default_prefix/etc/config.site 2276fi 2277for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2278do 2279 test "x$ac_site_file" = xNONE && continue 2280 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2282$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2283 sed 's/^/| /' "$ac_site_file" >&5 2284 . "$ac_site_file" \ 2285 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2287as_fn_error $? "failed to load site script $ac_site_file 2288See \`config.log' for more details" "$LINENO" 5; } 2289 fi 2290done 2291 2292if test -r "$cache_file"; then 2293 # Some versions of bash will fail to source /dev/null (special files 2294 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2295 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2297$as_echo "$as_me: loading cache $cache_file" >&6;} 2298 case $cache_file in 2299 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2300 *) . "./$cache_file";; 2301 esac 2302 fi 2303else 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2305$as_echo "$as_me: creating cache $cache_file" >&6;} 2306 >$cache_file 2307fi 2308 2309# Check that the precious variables saved in the cache have kept the same 2310# value. 2311ac_cache_corrupted=false 2312for ac_var in $ac_precious_vars; do 2313 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2314 eval ac_new_set=\$ac_env_${ac_var}_set 2315 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2316 eval ac_new_val=\$ac_env_${ac_var}_value 2317 case $ac_old_set,$ac_new_set in 2318 set,) 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2321 ac_cache_corrupted=: ;; 2322 ,set) 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2325 ac_cache_corrupted=: ;; 2326 ,);; 2327 *) 2328 if test "x$ac_old_val" != "x$ac_new_val"; then 2329 # differences in whitespace do not lead to failure. 2330 ac_old_val_w=`echo x $ac_old_val` 2331 ac_new_val_w=`echo x $ac_new_val` 2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2335 ac_cache_corrupted=: 2336 else 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2339 eval $ac_var=\$ac_old_val 2340 fi 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2342$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2344$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2345 fi;; 2346 esac 2347 # Pass precious variables to config.status. 2348 if test "$ac_new_set" = set; then 2349 case $ac_new_val in 2350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2351 *) ac_arg=$ac_var=$ac_new_val ;; 2352 esac 2353 case " $ac_configure_args " in 2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2355 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2356 esac 2357 fi 2358done 2359if $ac_cache_corrupted; then 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2364 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2365fi 2366## -------------------- ## 2367## Main body of script. ## 2368## -------------------- ## 2369 2370ac_ext=c 2371ac_cpp='$CPP $CPPFLAGS' 2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2374ac_compiler_gnu=$ac_cv_c_compiler_gnu 2375 2376 2377 2378ac_config_headers="$ac_config_headers config.h" 2379 2380ac_aux_dir= 2381for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2382 if test -f "$ac_dir/install-sh"; then 2383 ac_aux_dir=$ac_dir 2384 ac_install_sh="$ac_aux_dir/install-sh -c" 2385 break 2386 elif test -f "$ac_dir/install.sh"; then 2387 ac_aux_dir=$ac_dir 2388 ac_install_sh="$ac_aux_dir/install.sh -c" 2389 break 2390 elif test -f "$ac_dir/shtool"; then 2391 ac_aux_dir=$ac_dir 2392 ac_install_sh="$ac_aux_dir/shtool install -c" 2393 break 2394 fi 2395done 2396if test -z "$ac_aux_dir"; then 2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2398fi 2399 2400# These three variables are undocumented and unsupported, 2401# and are intended to be withdrawn in a future Autoconf release. 2402# They can cause serious problems if a builder's source tree is in a directory 2403# whose full name contains unusual characters. 2404ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2405ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2406ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2407 2408 2409# Expand $ac_aux_dir to an absolute path. 2410am_aux_dir=`cd "$ac_aux_dir" && pwd` 2411 2412ac_ext=c 2413ac_cpp='$CPP $CPPFLAGS' 2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2416ac_compiler_gnu=$ac_cv_c_compiler_gnu 2417if test -n "$ac_tool_prefix"; then 2418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2419set dummy ${ac_tool_prefix}gcc; ac_word=$2 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2421$as_echo_n "checking for $ac_word... " >&6; } 2422if ${ac_cv_prog_CC+:} false; then : 2423 $as_echo_n "(cached) " >&6 2424else 2425 if test -n "$CC"; then 2426 ac_cv_prog_CC="$CC" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2435 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440 done 2441IFS=$as_save_IFS 2442 2443fi 2444fi 2445CC=$ac_cv_prog_CC 2446if test -n "$CC"; then 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2448$as_echo "$CC" >&6; } 2449else 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2451$as_echo "no" >&6; } 2452fi 2453 2454 2455fi 2456if test -z "$ac_cv_prog_CC"; then 2457 ac_ct_CC=$CC 2458 # Extract the first word of "gcc", so it can be a program name with args. 2459set dummy gcc; ac_word=$2 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if ${ac_cv_prog_ac_ct_CC+:} false; then : 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$ac_ct_CC"; then 2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2475 ac_cv_prog_ac_ct_CC="gcc" 2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480 done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485ac_ct_CC=$ac_cv_prog_ac_ct_CC 2486if test -n "$ac_ct_CC"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2488$as_echo "$ac_ct_CC" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 if test "x$ac_ct_CC" = x; then 2495 CC="" 2496 else 2497 case $cross_compiling:$ac_tool_warned in 2498yes:) 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2501ac_tool_warned=yes ;; 2502esac 2503 CC=$ac_ct_CC 2504 fi 2505else 2506 CC="$ac_cv_prog_CC" 2507fi 2508 2509if test -z "$CC"; then 2510 if test -n "$ac_tool_prefix"; then 2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2512set dummy ${ac_tool_prefix}cc; ac_word=$2 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2514$as_echo_n "checking for $ac_word... " >&6; } 2515if ${ac_cv_prog_CC+:} false; then : 2516 $as_echo_n "(cached) " >&6 2517else 2518 if test -n "$CC"; then 2519 ac_cv_prog_CC="$CC" # Let the user override the test. 2520else 2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2528 ac_cv_prog_CC="${ac_tool_prefix}cc" 2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2530 break 2 2531 fi 2532done 2533 done 2534IFS=$as_save_IFS 2535 2536fi 2537fi 2538CC=$ac_cv_prog_CC 2539if test -n "$CC"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2541$as_echo "$CC" >&6; } 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2544$as_echo "no" >&6; } 2545fi 2546 2547 2548 fi 2549fi 2550if test -z "$CC"; then 2551 # Extract the first word of "cc", so it can be a program name with args. 2552set dummy cc; ac_word=$2 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554$as_echo_n "checking for $ac_word... " >&6; } 2555if ${ac_cv_prog_CC+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test -n "$CC"; then 2559 ac_cv_prog_CC="$CC" # Let the user override the test. 2560else 2561 ac_prog_rejected=no 2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_exec_ext in '' $ac_executable_extensions; do 2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2570 ac_prog_rejected=yes 2571 continue 2572 fi 2573 ac_cv_prog_CC="cc" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581if test $ac_prog_rejected = yes; then 2582 # We found a bogon in the path, so make sure we never use it. 2583 set dummy $ac_cv_prog_CC 2584 shift 2585 if test $# != 0; then 2586 # We chose a different compiler from the bogus one. 2587 # However, it has the same basename, so the bogon will be chosen 2588 # first if we set CC to just the basename; use the full file name. 2589 shift 2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2591 fi 2592fi 2593fi 2594fi 2595CC=$ac_cv_prog_CC 2596if test -n "$CC"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2598$as_echo "$CC" >&6; } 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 2605fi 2606if test -z "$CC"; then 2607 if test -n "$ac_tool_prefix"; then 2608 for ac_prog in cl.exe 2609 do 2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2611set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2613$as_echo_n "checking for $ac_word... " >&6; } 2614if ${ac_cv_prog_CC+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 if test -n "$CC"; then 2618 ac_cv_prog_CC="$CC" # Let the user override the test. 2619else 2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621for as_dir in $PATH 2622do 2623 IFS=$as_save_IFS 2624 test -z "$as_dir" && as_dir=. 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2629 break 2 2630 fi 2631done 2632 done 2633IFS=$as_save_IFS 2634 2635fi 2636fi 2637CC=$ac_cv_prog_CC 2638if test -n "$CC"; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2640$as_echo "$CC" >&6; } 2641else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643$as_echo "no" >&6; } 2644fi 2645 2646 2647 test -n "$CC" && break 2648 done 2649fi 2650if test -z "$CC"; then 2651 ac_ct_CC=$CC 2652 for ac_prog in cl.exe 2653do 2654 # Extract the first word of "$ac_prog", so it can be a program name with args. 2655set dummy $ac_prog; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if ${ac_cv_prog_ac_ct_CC+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$ac_ct_CC"; then 2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2671 ac_cv_prog_ac_ct_CC="$ac_prog" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681ac_ct_CC=$ac_cv_prog_ac_ct_CC 2682if test -n "$ac_ct_CC"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2684$as_echo "$ac_ct_CC" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 2691 test -n "$ac_ct_CC" && break 2692done 2693 2694 if test "x$ac_ct_CC" = x; then 2695 CC="" 2696 else 2697 case $cross_compiling:$ac_tool_warned in 2698yes:) 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2701ac_tool_warned=yes ;; 2702esac 2703 CC=$ac_ct_CC 2704 fi 2705fi 2706 2707fi 2708 2709 2710test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2712as_fn_error $? "no acceptable C compiler found in \$PATH 2713See \`config.log' for more details" "$LINENO" 5; } 2714 2715# Provide some information about the compiler. 2716$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2717set X $ac_compile 2718ac_compiler=$2 2719for ac_option in --version -v -V -qversion; do 2720 { { ac_try="$ac_compiler $ac_option >&5" 2721case "(($ac_try" in 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2723 *) ac_try_echo=$ac_try;; 2724esac 2725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2726$as_echo "$ac_try_echo"; } >&5 2727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2728 ac_status=$? 2729 if test -s conftest.err; then 2730 sed '10a\ 2731... rest of stderr output deleted ... 2732 10q' conftest.err >conftest.er1 2733 cat conftest.er1 >&5 2734 fi 2735 rm -f conftest.er1 conftest.err 2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2737 test $ac_status = 0; } 2738done 2739 2740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2741/* end confdefs.h. */ 2742 2743int 2744main () 2745{ 2746 2747 ; 2748 return 0; 2749} 2750_ACEOF 2751ac_clean_files_save=$ac_clean_files 2752ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2753# Try to create an executable without -o first, disregard a.out. 2754# It will help us diagnose broken compilers, and finding out an intuition 2755# of exeext. 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2757$as_echo_n "checking whether the C compiler works... " >&6; } 2758ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2759 2760# The possible output files: 2761ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2762 2763ac_rmfiles= 2764for ac_file in $ac_files 2765do 2766 case $ac_file in 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2769 esac 2770done 2771rm -f $ac_rmfiles 2772 2773if { { ac_try="$ac_link_default" 2774case "(($ac_try" in 2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2776 *) ac_try_echo=$ac_try;; 2777esac 2778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2779$as_echo "$ac_try_echo"; } >&5 2780 (eval "$ac_link_default") 2>&5 2781 ac_status=$? 2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2783 test $ac_status = 0; }; then : 2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2786# in a Makefile. We should not override ac_cv_exeext if it was cached, 2787# so that the user can short-circuit this test for compilers unknown to 2788# Autoconf. 2789for ac_file in $ac_files '' 2790do 2791 test -f "$ac_file" || continue 2792 case $ac_file in 2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2794 ;; 2795 [ab].out ) 2796 # We found the default executable, but exeext='' is most 2797 # certainly right. 2798 break;; 2799 *.* ) 2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2801 then :; else 2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2803 fi 2804 # We set ac_cv_exeext here because the later test for it is not 2805 # safe: cross compilers may not add the suffix if given an `-o' 2806 # argument, so we may need to know it at that point already. 2807 # Even if this section looks crufty: it has the advantage of 2808 # actually working. 2809 break;; 2810 * ) 2811 break;; 2812 esac 2813done 2814test "$ac_cv_exeext" = no && ac_cv_exeext= 2815 2816else 2817 ac_file='' 2818fi 2819if test -z "$ac_file"; then : 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822$as_echo "$as_me: failed program was:" >&5 2823sed 's/^/| /' conftest.$ac_ext >&5 2824 2825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2827as_fn_error 77 "C compiler cannot create executables 2828See \`config.log' for more details" "$LINENO" 5; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2831$as_echo "yes" >&6; } 2832fi 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2834$as_echo_n "checking for C compiler default output file name... " >&6; } 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2836$as_echo "$ac_file" >&6; } 2837ac_exeext=$ac_cv_exeext 2838 2839rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2840ac_clean_files=$ac_clean_files_save 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2842$as_echo_n "checking for suffix of executables... " >&6; } 2843if { { 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; }; then : 2854 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2855# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2856# work properly (i.e., refer to `conftest.exe'), while it won't with 2857# `rm'. 2858for ac_file in conftest.exe conftest conftest.*; do 2859 test -f "$ac_file" || continue 2860 case $ac_file in 2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2863 break;; 2864 * ) break;; 2865 esac 2866done 2867else 2868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2870as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2871See \`config.log' for more details" "$LINENO" 5; } 2872fi 2873rm -f conftest conftest$ac_cv_exeext 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2875$as_echo "$ac_cv_exeext" >&6; } 2876 2877rm -f conftest.$ac_ext 2878EXEEXT=$ac_cv_exeext 2879ac_exeext=$EXEEXT 2880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2881/* end confdefs.h. */ 2882#include <stdio.h> 2883int 2884main () 2885{ 2886FILE *f = fopen ("conftest.out", "w"); 2887 return ferror (f) || fclose (f) != 0; 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893ac_clean_files="$ac_clean_files conftest.out" 2894# Check that the compiler produces executables we can run. If not, either 2895# the compiler is broken, or we cross compile. 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2897$as_echo_n "checking whether we are cross compiling... " >&6; } 2898if test "$cross_compiling" != yes; then 2899 { { ac_try="$ac_link" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2905$as_echo "$ac_try_echo"; } >&5 2906 (eval "$ac_link") 2>&5 2907 ac_status=$? 2908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2909 test $ac_status = 0; } 2910 if { ac_try='./conftest$ac_cv_exeext' 2911 { { case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914esac 2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2916$as_echo "$ac_try_echo"; } >&5 2917 (eval "$ac_try") 2>&5 2918 ac_status=$? 2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2920 test $ac_status = 0; }; }; then 2921 cross_compiling=no 2922 else 2923 if test "$cross_compiling" = maybe; then 2924 cross_compiling=yes 2925 else 2926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2928as_fn_error $? "cannot run C compiled programs. 2929If you meant to cross compile, use \`--host'. 2930See \`config.log' for more details" "$LINENO" 5; } 2931 fi 2932 fi 2933fi 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2935$as_echo "$cross_compiling" >&6; } 2936 2937rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2938ac_clean_files=$ac_clean_files_save 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2940$as_echo_n "checking for suffix of object files... " >&6; } 2941if ${ac_cv_objext+:} false; then : 2942 $as_echo_n "(cached) " >&6 2943else 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2945/* end confdefs.h. */ 2946 2947int 2948main () 2949{ 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955rm -f conftest.o conftest.obj 2956if { { ac_try="$ac_compile" 2957case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960esac 2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2962$as_echo "$ac_try_echo"; } >&5 2963 (eval "$ac_compile") 2>&5 2964 ac_status=$? 2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2966 test $ac_status = 0; }; then : 2967 for ac_file in conftest.o conftest.obj conftest.*; do 2968 test -f "$ac_file" || continue; 2969 case $ac_file in 2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2972 break;; 2973 esac 2974done 2975else 2976 $as_echo "$as_me: failed program was:" >&5 2977sed 's/^/| /' conftest.$ac_ext >&5 2978 2979{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2981as_fn_error $? "cannot compute suffix of object files: cannot compile 2982See \`config.log' for more details" "$LINENO" 5; } 2983fi 2984rm -f conftest.$ac_cv_objext conftest.$ac_ext 2985fi 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2987$as_echo "$ac_cv_objext" >&6; } 2988OBJEXT=$ac_cv_objext 2989ac_objext=$OBJEXT 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2991$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2992if ${ac_cv_c_compiler_gnu+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001#ifndef __GNUC__ 3002 choke me 3003#endif 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009if ac_fn_c_try_compile "$LINENO"; then : 3010 ac_compiler_gnu=yes 3011else 3012 ac_compiler_gnu=no 3013fi 3014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3015ac_cv_c_compiler_gnu=$ac_compiler_gnu 3016 3017fi 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3019$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3020if test $ac_compiler_gnu = yes; then 3021 GCC=yes 3022else 3023 GCC= 3024fi 3025ac_test_CFLAGS=${CFLAGS+set} 3026ac_save_CFLAGS=$CFLAGS 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3028$as_echo_n "checking whether $CC accepts -g... " >&6; } 3029if ${ac_cv_prog_cc_g+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 ac_save_c_werror_flag=$ac_c_werror_flag 3033 ac_c_werror_flag=yes 3034 ac_cv_prog_cc_g=no 3035 CFLAGS="-g" 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038 3039int 3040main () 3041{ 3042 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047if ac_fn_c_try_compile "$LINENO"; then : 3048 ac_cv_prog_cc_g=yes 3049else 3050 CFLAGS="" 3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3052/* end confdefs.h. */ 3053 3054int 3055main () 3056{ 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062if ac_fn_c_try_compile "$LINENO"; then : 3063 3064else 3065 ac_c_werror_flag=$ac_save_c_werror_flag 3066 CFLAGS="-g" 3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3068/* end confdefs.h. */ 3069 3070int 3071main () 3072{ 3073 3074 ; 3075 return 0; 3076} 3077_ACEOF 3078if ac_fn_c_try_compile "$LINENO"; then : 3079 ac_cv_prog_cc_g=yes 3080fi 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082fi 3083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3084fi 3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3086 ac_c_werror_flag=$ac_save_c_werror_flag 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3089$as_echo "$ac_cv_prog_cc_g" >&6; } 3090if test "$ac_test_CFLAGS" = set; then 3091 CFLAGS=$ac_save_CFLAGS 3092elif test $ac_cv_prog_cc_g = yes; then 3093 if test "$GCC" = yes; then 3094 CFLAGS="-g -O2" 3095 else 3096 CFLAGS="-g" 3097 fi 3098else 3099 if test "$GCC" = yes; then 3100 CFLAGS="-O2" 3101 else 3102 CFLAGS= 3103 fi 3104fi 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3107if ${ac_cv_prog_cc_c89+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 ac_cv_prog_cc_c89=no 3111ac_save_CC=$CC 3112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114#include <stdarg.h> 3115#include <stdio.h> 3116struct stat; 3117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3118struct buf { int x; }; 3119FILE * (*rcsopen) (struct buf *, struct stat *, int); 3120static char *e (p, i) 3121 char **p; 3122 int i; 3123{ 3124 return p[i]; 3125} 3126static char *f (char * (*g) (char **, int), char **p, ...) 3127{ 3128 char *s; 3129 va_list v; 3130 va_start (v,p); 3131 s = g (p, va_arg (v,int)); 3132 va_end (v); 3133 return s; 3134} 3135 3136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3137 function prototypes and stuff, but not '\xHH' hex character constants. 3138 These don't provoke an error unfortunately, instead are silently treated 3139 as 'x'. The following induces an error, until -std is added to get 3140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3141 array size at least. It's necessary to write '\x00'==0 to get something 3142 that's true only with -std. */ 3143int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3144 3145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3146 inside strings and character constants. */ 3147#define FOO(x) 'x' 3148int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3149 3150int test (int i, double x); 3151struct s1 {int (*f) (int a);}; 3152struct s2 {int (*f) (double a);}; 3153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3154int argc; 3155char **argv; 3156int 3157main () 3158{ 3159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3166do 3167 CC="$ac_save_CC $ac_arg" 3168 if ac_fn_c_try_compile "$LINENO"; then : 3169 ac_cv_prog_cc_c89=$ac_arg 3170fi 3171rm -f core conftest.err conftest.$ac_objext 3172 test "x$ac_cv_prog_cc_c89" != "xno" && break 3173done 3174rm -f conftest.$ac_ext 3175CC=$ac_save_CC 3176 3177fi 3178# AC_CACHE_VAL 3179case "x$ac_cv_prog_cc_c89" in 3180 x) 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3182$as_echo "none needed" >&6; } ;; 3183 xno) 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3185$as_echo "unsupported" >&6; } ;; 3186 *) 3187 CC="$CC $ac_cv_prog_cc_c89" 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3190esac 3191if test "x$ac_cv_prog_cc_c89" != xno; then : 3192 3193fi 3194 3195ac_ext=c 3196ac_cpp='$CPP $CPPFLAGS' 3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3199ac_compiler_gnu=$ac_cv_c_compiler_gnu 3200 3201ac_ext=c 3202ac_cpp='$CPP $CPPFLAGS' 3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3205ac_compiler_gnu=$ac_cv_c_compiler_gnu 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3207$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3208if ${am_cv_prog_cc_c_o+:} false; then : 3209 $as_echo_n "(cached) " >&6 3210else 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213 3214int 3215main () 3216{ 3217 3218 ; 3219 return 0; 3220} 3221_ACEOF 3222 # Make sure it works both with $CC and with simple cc. 3223 # Following AC_PROG_CC_C_O, we do the test twice because some 3224 # compilers refuse to overwrite an existing .o file with -o, 3225 # though they will create one. 3226 am_cv_prog_cc_c_o=yes 3227 for am_i in 1 2; do 3228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3230 ac_status=$? 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); } \ 3233 && test -f conftest2.$ac_objext; then 3234 : OK 3235 else 3236 am_cv_prog_cc_c_o=no 3237 break 3238 fi 3239 done 3240 rm -f core conftest* 3241 unset am_i 3242fi 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3244$as_echo "$am_cv_prog_cc_c_o" >&6; } 3245if test "$am_cv_prog_cc_c_o" != yes; then 3246 # Losing compiler, so override with the script. 3247 # FIXME: It is wrong to rewrite CC. 3248 # But if we don't then we get into trouble of one sort or another. 3249 # A longer-term fix would be to have automake use am__CC in this case, 3250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3251 CC="$am_aux_dir/compile $CC" 3252fi 3253ac_ext=c 3254ac_cpp='$CPP $CPPFLAGS' 3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3257ac_compiler_gnu=$ac_cv_c_compiler_gnu 3258 3259 3260 3261ac_ext=c 3262ac_cpp='$CPP $CPPFLAGS' 3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3265ac_compiler_gnu=$ac_cv_c_compiler_gnu 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3267$as_echo_n "checking how to run the C preprocessor... " >&6; } 3268# On Suns, sometimes $CPP names a directory. 3269if test -n "$CPP" && test -d "$CPP"; then 3270 CPP= 3271fi 3272if test -z "$CPP"; then 3273 if ${ac_cv_prog_CPP+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275else 3276 # Double quotes because CPP needs to be expanded 3277 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3278 do 3279 ac_preproc_ok=false 3280for ac_c_preproc_warn_flag in '' yes 3281do 3282 # Use a header file that comes with gcc, so configuring glibc 3283 # with a fresh cross-compiler works. 3284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3285 # <limits.h> exists even on freestanding compilers. 3286 # On the NeXT, cc -E runs the code through the compiler's parser, 3287 # not just through cpp. "Syntax error" is here to catch this case. 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290#ifdef __STDC__ 3291# include <limits.h> 3292#else 3293# include <assert.h> 3294#endif 3295 Syntax error 3296_ACEOF 3297if ac_fn_c_try_cpp "$LINENO"; then : 3298 3299else 3300 # Broken: fails on valid input. 3301continue 3302fi 3303rm -f conftest.err conftest.i conftest.$ac_ext 3304 3305 # OK, works on sane cases. Now check whether nonexistent headers 3306 # can be detected and how. 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3308/* end confdefs.h. */ 3309#include <ac_nonexistent.h> 3310_ACEOF 3311if ac_fn_c_try_cpp "$LINENO"; then : 3312 # Broken: success on invalid input. 3313continue 3314else 3315 # Passes both tests. 3316ac_preproc_ok=: 3317break 3318fi 3319rm -f conftest.err conftest.i conftest.$ac_ext 3320 3321done 3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3323rm -f conftest.i conftest.err conftest.$ac_ext 3324if $ac_preproc_ok; then : 3325 break 3326fi 3327 3328 done 3329 ac_cv_prog_CPP=$CPP 3330 3331fi 3332 CPP=$ac_cv_prog_CPP 3333else 3334 ac_cv_prog_CPP=$CPP 3335fi 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3337$as_echo "$CPP" >&6; } 3338ac_preproc_ok=false 3339for ac_c_preproc_warn_flag in '' yes 3340do 3341 # Use a header file that comes with gcc, so configuring glibc 3342 # with a fresh cross-compiler works. 3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3344 # <limits.h> exists even on freestanding compilers. 3345 # On the NeXT, cc -E runs the code through the compiler's parser, 3346 # not just through cpp. "Syntax error" is here to catch this case. 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348/* end confdefs.h. */ 3349#ifdef __STDC__ 3350# include <limits.h> 3351#else 3352# include <assert.h> 3353#endif 3354 Syntax error 3355_ACEOF 3356if ac_fn_c_try_cpp "$LINENO"; then : 3357 3358else 3359 # Broken: fails on valid input. 3360continue 3361fi 3362rm -f conftest.err conftest.i conftest.$ac_ext 3363 3364 # OK, works on sane cases. Now check whether nonexistent headers 3365 # can be detected and how. 3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368#include <ac_nonexistent.h> 3369_ACEOF 3370if ac_fn_c_try_cpp "$LINENO"; then : 3371 # Broken: success on invalid input. 3372continue 3373else 3374 # Passes both tests. 3375ac_preproc_ok=: 3376break 3377fi 3378rm -f conftest.err conftest.i conftest.$ac_ext 3379 3380done 3381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3382rm -f conftest.i conftest.err conftest.$ac_ext 3383if $ac_preproc_ok; then : 3384 3385else 3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3388as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3389See \`config.log' for more details" "$LINENO" 5; } 3390fi 3391 3392ac_ext=c 3393ac_cpp='$CPP $CPPFLAGS' 3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3396ac_compiler_gnu=$ac_cv_c_compiler_gnu 3397 3398 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3400$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3401if ${ac_cv_path_GREP+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if test -z "$GREP"; then 3405 ac_path_GREP_found=false 3406 # Loop through the user's path and test for each of PROGNAME-LIST 3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3409do 3410 IFS=$as_save_IFS 3411 test -z "$as_dir" && as_dir=. 3412 for ac_prog in grep ggrep; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3415 as_fn_executable_p "$ac_path_GREP" || continue 3416# Check for GNU ac_path_GREP and select it if it is found. 3417 # Check for GNU $ac_path_GREP 3418case `"$ac_path_GREP" --version 2>&1` in 3419*GNU*) 3420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3421*) 3422 ac_count=0 3423 $as_echo_n 0123456789 >"conftest.in" 3424 while : 3425 do 3426 cat "conftest.in" "conftest.in" >"conftest.tmp" 3427 mv "conftest.tmp" "conftest.in" 3428 cp "conftest.in" "conftest.nl" 3429 $as_echo 'GREP' >> "conftest.nl" 3430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3432 as_fn_arith $ac_count + 1 && ac_count=$as_val 3433 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3434 # Best one so far, save it but keep looking for a better one 3435 ac_cv_path_GREP="$ac_path_GREP" 3436 ac_path_GREP_max=$ac_count 3437 fi 3438 # 10*(2^10) chars as input seems more than enough 3439 test $ac_count -gt 10 && break 3440 done 3441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3442esac 3443 3444 $ac_path_GREP_found && break 3 3445 done 3446 done 3447 done 3448IFS=$as_save_IFS 3449 if test -z "$ac_cv_path_GREP"; then 3450 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3451 fi 3452else 3453 ac_cv_path_GREP=$GREP 3454fi 3455 3456fi 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3458$as_echo "$ac_cv_path_GREP" >&6; } 3459 GREP="$ac_cv_path_GREP" 3460 3461 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3463$as_echo_n "checking for egrep... " >&6; } 3464if ${ac_cv_path_EGREP+:} false; then : 3465 $as_echo_n "(cached) " >&6 3466else 3467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3468 then ac_cv_path_EGREP="$GREP -E" 3469 else 3470 if test -z "$EGREP"; then 3471 ac_path_EGREP_found=false 3472 # Loop through the user's path and test for each of PROGNAME-LIST 3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3475do 3476 IFS=$as_save_IFS 3477 test -z "$as_dir" && as_dir=. 3478 for ac_prog in egrep; do 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3481 as_fn_executable_p "$ac_path_EGREP" || continue 3482# Check for GNU ac_path_EGREP and select it if it is found. 3483 # Check for GNU $ac_path_EGREP 3484case `"$ac_path_EGREP" --version 2>&1` in 3485*GNU*) 3486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3487*) 3488 ac_count=0 3489 $as_echo_n 0123456789 >"conftest.in" 3490 while : 3491 do 3492 cat "conftest.in" "conftest.in" >"conftest.tmp" 3493 mv "conftest.tmp" "conftest.in" 3494 cp "conftest.in" "conftest.nl" 3495 $as_echo 'EGREP' >> "conftest.nl" 3496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3498 as_fn_arith $ac_count + 1 && ac_count=$as_val 3499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3500 # Best one so far, save it but keep looking for a better one 3501 ac_cv_path_EGREP="$ac_path_EGREP" 3502 ac_path_EGREP_max=$ac_count 3503 fi 3504 # 10*(2^10) chars as input seems more than enough 3505 test $ac_count -gt 10 && break 3506 done 3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3508esac 3509 3510 $ac_path_EGREP_found && break 3 3511 done 3512 done 3513 done 3514IFS=$as_save_IFS 3515 if test -z "$ac_cv_path_EGREP"; then 3516 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3517 fi 3518else 3519 ac_cv_path_EGREP=$EGREP 3520fi 3521 3522 fi 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3525$as_echo "$ac_cv_path_EGREP" >&6; } 3526 EGREP="$ac_cv_path_EGREP" 3527 3528 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3530$as_echo_n "checking for ANSI C header files... " >&6; } 3531if ${ac_cv_header_stdc+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536#include <stdlib.h> 3537#include <stdarg.h> 3538#include <string.h> 3539#include <float.h> 3540 3541int 3542main () 3543{ 3544 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549if ac_fn_c_try_compile "$LINENO"; then : 3550 ac_cv_header_stdc=yes 3551else 3552 ac_cv_header_stdc=no 3553fi 3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3555 3556if test $ac_cv_header_stdc = yes; then 3557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559/* end confdefs.h. */ 3560#include <string.h> 3561 3562_ACEOF 3563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3564 $EGREP "memchr" >/dev/null 2>&1; then : 3565 3566else 3567 ac_cv_header_stdc=no 3568fi 3569rm -f conftest* 3570 3571fi 3572 3573if test $ac_cv_header_stdc = yes; then 3574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577#include <stdlib.h> 3578 3579_ACEOF 3580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3581 $EGREP "free" >/dev/null 2>&1; then : 3582 3583else 3584 ac_cv_header_stdc=no 3585fi 3586rm -f conftest* 3587 3588fi 3589 3590if test $ac_cv_header_stdc = yes; then 3591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3592 if test "$cross_compiling" = yes; then : 3593 : 3594else 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597#include <ctype.h> 3598#include <stdlib.h> 3599#if ((' ' & 0x0FF) == 0x020) 3600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3602#else 3603# define ISLOWER(c) \ 3604 (('a' <= (c) && (c) <= 'i') \ 3605 || ('j' <= (c) && (c) <= 'r') \ 3606 || ('s' <= (c) && (c) <= 'z')) 3607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3608#endif 3609 3610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3611int 3612main () 3613{ 3614 int i; 3615 for (i = 0; i < 256; i++) 3616 if (XOR (islower (i), ISLOWER (i)) 3617 || toupper (i) != TOUPPER (i)) 3618 return 2; 3619 return 0; 3620} 3621_ACEOF 3622if ac_fn_c_try_run "$LINENO"; then : 3623 3624else 3625 ac_cv_header_stdc=no 3626fi 3627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3628 conftest.$ac_objext conftest.beam conftest.$ac_ext 3629fi 3630 3631fi 3632fi 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3634$as_echo "$ac_cv_header_stdc" >&6; } 3635if test $ac_cv_header_stdc = yes; then 3636 3637$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3638 3639fi 3640 3641# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3642for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3643 inttypes.h stdint.h unistd.h 3644do : 3645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3646ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3647" 3648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3649 cat >>confdefs.h <<_ACEOF 3650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3651_ACEOF 3652 3653fi 3654 3655done 3656 3657 3658 3659 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3660if test "x$ac_cv_header_minix_config_h" = xyes; then : 3661 MINIX=yes 3662else 3663 MINIX= 3664fi 3665 3666 3667 if test "$MINIX" = yes; then 3668 3669$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3670 3671 3672$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3673 3674 3675$as_echo "#define _MINIX 1" >>confdefs.h 3676 3677 fi 3678 3679 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3681$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3682if ${ac_cv_safe_to_define___extensions__+:} false; then : 3683 $as_echo_n "(cached) " >&6 3684else 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687 3688# define __EXTENSIONS__ 1 3689 $ac_includes_default 3690int 3691main () 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698if ac_fn_c_try_compile "$LINENO"; then : 3699 ac_cv_safe_to_define___extensions__=yes 3700else 3701 ac_cv_safe_to_define___extensions__=no 3702fi 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3706$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3707 test $ac_cv_safe_to_define___extensions__ = yes && 3708 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3709 3710 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3711 3712 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3713 3714 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3715 3716 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3717 3718 3719# Check whether --enable-largefile was given. 3720if test "${enable_largefile+set}" = set; then : 3721 enableval=$enable_largefile; 3722fi 3723 3724if test "$enable_largefile" != no; then 3725 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3727$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3728if ${ac_cv_sys_largefile_CC+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 ac_cv_sys_largefile_CC=no 3732 if test "$GCC" != yes; then 3733 ac_save_CC=$CC 3734 while :; do 3735 # IRIX 6.2 and later do not support large files by default, 3736 # so use the C compiler's -n32 option if that helps. 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739#include <sys/types.h> 3740 /* Check that off_t can represent 2**63 - 1 correctly. 3741 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3742 since some C++ compilers masquerading as C compilers 3743 incorrectly reject 9223372036854775807. */ 3744#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3746 && LARGE_OFF_T % 2147483647 == 1) 3747 ? 1 : -1]; 3748int 3749main () 3750{ 3751 3752 ; 3753 return 0; 3754} 3755_ACEOF 3756 if ac_fn_c_try_compile "$LINENO"; then : 3757 break 3758fi 3759rm -f core conftest.err conftest.$ac_objext 3760 CC="$CC -n32" 3761 if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_cv_sys_largefile_CC=' -n32'; break 3763fi 3764rm -f core conftest.err conftest.$ac_objext 3765 break 3766 done 3767 CC=$ac_save_CC 3768 rm -f conftest.$ac_ext 3769 fi 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3772$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3773 if test "$ac_cv_sys_largefile_CC" != no; then 3774 CC=$CC$ac_cv_sys_largefile_CC 3775 fi 3776 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3778$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3779if ${ac_cv_sys_file_offset_bits+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 while :; do 3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785#include <sys/types.h> 3786 /* Check that off_t can represent 2**63 - 1 correctly. 3787 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3788 since some C++ compilers masquerading as C compilers 3789 incorrectly reject 9223372036854775807. */ 3790#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3792 && LARGE_OFF_T % 2147483647 == 1) 3793 ? 1 : -1]; 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802if ac_fn_c_try_compile "$LINENO"; then : 3803 ac_cv_sys_file_offset_bits=no; break 3804fi 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#define _FILE_OFFSET_BITS 64 3809#include <sys/types.h> 3810 /* Check that off_t can represent 2**63 - 1 correctly. 3811 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3812 since some C++ compilers masquerading as C compilers 3813 incorrectly reject 9223372036854775807. */ 3814#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3816 && LARGE_OFF_T % 2147483647 == 1) 3817 ? 1 : -1]; 3818int 3819main () 3820{ 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_cv_sys_file_offset_bits=64; break 3828fi 3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3830 ac_cv_sys_file_offset_bits=unknown 3831 break 3832done 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3835$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3836case $ac_cv_sys_file_offset_bits in #( 3837 no | unknown) ;; 3838 *) 3839cat >>confdefs.h <<_ACEOF 3840#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3841_ACEOF 3842;; 3843esac 3844rm -rf conftest* 3845 if test $ac_cv_sys_file_offset_bits = unknown; then 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3847$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3848if ${ac_cv_sys_large_files+:} false; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 while :; do 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854#include <sys/types.h> 3855 /* Check that off_t can represent 2**63 - 1 correctly. 3856 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3857 since some C++ compilers masquerading as C compilers 3858 incorrectly reject 9223372036854775807. */ 3859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3861 && LARGE_OFF_T % 2147483647 == 1) 3862 ? 1 : -1]; 3863int 3864main () 3865{ 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_cv_sys_large_files=no; break 3873fi 3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877#define _LARGE_FILES 1 3878#include <sys/types.h> 3879 /* Check that off_t can represent 2**63 - 1 correctly. 3880 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3881 since some C++ compilers masquerading as C compilers 3882 incorrectly reject 9223372036854775807. */ 3883#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3885 && LARGE_OFF_T % 2147483647 == 1) 3886 ? 1 : -1]; 3887int 3888main () 3889{ 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_sys_large_files=1; break 3897fi 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899 ac_cv_sys_large_files=unknown 3900 break 3901done 3902fi 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3904$as_echo "$ac_cv_sys_large_files" >&6; } 3905case $ac_cv_sys_large_files in #( 3906 no | unknown) ;; 3907 *) 3908cat >>confdefs.h <<_ACEOF 3909#define _LARGE_FILES $ac_cv_sys_large_files 3910_ACEOF 3911;; 3912esac 3913rm -rf conftest* 3914 fi 3915 3916 3917fi 3918 3919 3920# Initialize Automake 3921am__api_version='1.15' 3922 3923# Find a good install program. We prefer a C program (faster), 3924# so one script is as good as another. But avoid the broken or 3925# incompatible versions: 3926# SysV /etc/install, /usr/sbin/install 3927# SunOS /usr/etc/install 3928# IRIX /sbin/install 3929# AIX /bin/install 3930# AmigaOS /C/install, which installs bootblocks on floppy discs 3931# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3932# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3933# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3934# OS/2's system install, which has a completely different semantic 3935# ./install, which can be erroneously created by make from ./install.sh. 3936# Reject install programs that cannot install multiple files. 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3938$as_echo_n "checking for a BSD-compatible install... " >&6; } 3939if test -z "$INSTALL"; then 3940if ${ac_cv_path_install+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3944for as_dir in $PATH 3945do 3946 IFS=$as_save_IFS 3947 test -z "$as_dir" && as_dir=. 3948 # Account for people who put trailing slashes in PATH elements. 3949case $as_dir/ in #(( 3950 ./ | .// | /[cC]/* | \ 3951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3952 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3953 /usr/ucb/* ) ;; 3954 *) 3955 # OSF1 and SCO ODT 3.0 have their own names for install. 3956 # Don't use installbsd from OSF since it installs stuff as root 3957 # by default. 3958 for ac_prog in ginstall scoinst install; do 3959 for ac_exec_ext in '' $ac_executable_extensions; do 3960 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3961 if test $ac_prog = install && 3962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3963 # AIX install. It has an incompatible calling convention. 3964 : 3965 elif test $ac_prog = install && 3966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3967 # program-specific install script used by HP pwplus--don't use. 3968 : 3969 else 3970 rm -rf conftest.one conftest.two conftest.dir 3971 echo one > conftest.one 3972 echo two > conftest.two 3973 mkdir conftest.dir 3974 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3975 test -s conftest.one && test -s conftest.two && 3976 test -s conftest.dir/conftest.one && 3977 test -s conftest.dir/conftest.two 3978 then 3979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3980 break 3 3981 fi 3982 fi 3983 fi 3984 done 3985 done 3986 ;; 3987esac 3988 3989 done 3990IFS=$as_save_IFS 3991 3992rm -rf conftest.one conftest.two conftest.dir 3993 3994fi 3995 if test "${ac_cv_path_install+set}" = set; then 3996 INSTALL=$ac_cv_path_install 3997 else 3998 # As a last resort, use the slow shell script. Don't cache a 3999 # value for INSTALL within a source directory, because that will 4000 # break other packages using the cache if that directory is 4001 # removed, or if the value is a relative name. 4002 INSTALL=$ac_install_sh 4003 fi 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4006$as_echo "$INSTALL" >&6; } 4007 4008# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4009# It thinks the first close brace ends the variable substitution. 4010test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4011 4012test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4013 4014test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4015 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4017$as_echo_n "checking whether build environment is sane... " >&6; } 4018# Reject unsafe characters in $srcdir or the absolute working directory 4019# name. Accept space and tab only in the latter. 4020am_lf=' 4021' 4022case `pwd` in 4023 *[\\\"\#\$\&\'\`$am_lf]*) 4024 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4025esac 4026case $srcdir in 4027 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4028 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4029esac 4030 4031# Do 'set' in a subshell so we don't clobber the current shell's 4032# arguments. Must try -L first in case configure is actually a 4033# symlink; some systems play weird games with the mod time of symlinks 4034# (eg FreeBSD returns the mod time of the symlink's containing 4035# directory). 4036if ( 4037 am_has_slept=no 4038 for am_try in 1 2; do 4039 echo "timestamp, slept: $am_has_slept" > conftest.file 4040 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4041 if test "$*" = "X"; then 4042 # -L didn't work. 4043 set X `ls -t "$srcdir/configure" conftest.file` 4044 fi 4045 if test "$*" != "X $srcdir/configure conftest.file" \ 4046 && test "$*" != "X conftest.file $srcdir/configure"; then 4047 4048 # If neither matched, then we have a broken ls. This can happen 4049 # if, for instance, CONFIG_SHELL is bash and it inherits a 4050 # broken ls alias from the environment. This has actually 4051 # happened. Such a system could not be considered "sane". 4052 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4053 alias in your environment" "$LINENO" 5 4054 fi 4055 if test "$2" = conftest.file || test $am_try -eq 2; then 4056 break 4057 fi 4058 # Just in case. 4059 sleep 1 4060 am_has_slept=yes 4061 done 4062 test "$2" = conftest.file 4063 ) 4064then 4065 # Ok. 4066 : 4067else 4068 as_fn_error $? "newly created file is older than distributed files! 4069Check your system clock" "$LINENO" 5 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4072$as_echo "yes" >&6; } 4073# If we didn't sleep, we still need to ensure time stamps of config.status and 4074# generated files are strictly newer. 4075am_sleep_pid= 4076if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4077 ( sleep 1 ) & 4078 am_sleep_pid=$! 4079fi 4080 4081rm -f conftest.file 4082 4083test "$program_prefix" != NONE && 4084 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4085# Use a double $ so make ignores it. 4086test "$program_suffix" != NONE && 4087 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4088# Double any \ or $. 4089# By default was `s,x,x', remove it if useless. 4090ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4091program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4092 4093if test x"${MISSING+set}" != xset; then 4094 case $am_aux_dir in 4095 *\ * | *\ *) 4096 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4097 *) 4098 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4099 esac 4100fi 4101# Use eval to expand $SHELL 4102if eval "$MISSING --is-lightweight"; then 4103 am_missing_run="$MISSING " 4104else 4105 am_missing_run= 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4107$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4108fi 4109 4110if test x"${install_sh+set}" != xset; then 4111 case $am_aux_dir in 4112 *\ * | *\ *) 4113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4114 *) 4115 install_sh="\${SHELL} $am_aux_dir/install-sh" 4116 esac 4117fi 4118 4119# Installed binaries are usually stripped using 'strip' when the user 4120# run "make install-strip". However 'strip' might not be the right 4121# tool to use in cross-compilation environments, therefore Automake 4122# will honor the 'STRIP' environment variable to overrule this program. 4123if test "$cross_compiling" != no; then 4124 if test -n "$ac_tool_prefix"; then 4125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4126set dummy ${ac_tool_prefix}strip; ac_word=$2 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4128$as_echo_n "checking for $ac_word... " >&6; } 4129if ${ac_cv_prog_STRIP+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 if test -n "$STRIP"; then 4133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4134else 4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH 4137do 4138 IFS=$as_save_IFS 4139 test -z "$as_dir" && as_dir=. 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4142 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4144 break 2 4145 fi 4146done 4147 done 4148IFS=$as_save_IFS 4149 4150fi 4151fi 4152STRIP=$ac_cv_prog_STRIP 4153if test -n "$STRIP"; then 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4155$as_echo "$STRIP" >&6; } 4156else 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4158$as_echo "no" >&6; } 4159fi 4160 4161 4162fi 4163if test -z "$ac_cv_prog_STRIP"; then 4164 ac_ct_STRIP=$STRIP 4165 # Extract the first word of "strip", so it can be a program name with args. 4166set dummy strip; ac_word=$2 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4168$as_echo_n "checking for $ac_word... " >&6; } 4169if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 if test -n "$ac_ct_STRIP"; then 4173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4174else 4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4182 ac_cv_prog_ac_ct_STRIP="strip" 4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186done 4187 done 4188IFS=$as_save_IFS 4189 4190fi 4191fi 4192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4193if test -n "$ac_ct_STRIP"; then 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4195$as_echo "$ac_ct_STRIP" >&6; } 4196else 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198$as_echo "no" >&6; } 4199fi 4200 4201 if test "x$ac_ct_STRIP" = x; then 4202 STRIP=":" 4203 else 4204 case $cross_compiling:$ac_tool_warned in 4205yes:) 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4208ac_tool_warned=yes ;; 4209esac 4210 STRIP=$ac_ct_STRIP 4211 fi 4212else 4213 STRIP="$ac_cv_prog_STRIP" 4214fi 4215 4216fi 4217INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4218 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4220$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4221if test -z "$MKDIR_P"; then 4222 if ${ac_cv_path_mkdir+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_prog in mkdir gmkdir; do 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4234 'mkdir (GNU coreutils) '* | \ 4235 'mkdir (coreutils) '* | \ 4236 'mkdir (fileutils) '4.1*) 4237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4238 break 3;; 4239 esac 4240 done 4241 done 4242 done 4243IFS=$as_save_IFS 4244 4245fi 4246 4247 test -d ./--version && rmdir ./--version 4248 if test "${ac_cv_path_mkdir+set}" = set; then 4249 MKDIR_P="$ac_cv_path_mkdir -p" 4250 else 4251 # As a last resort, use the slow shell script. Don't cache a 4252 # value for MKDIR_P within a source directory, because that will 4253 # break other packages using the cache if that directory is 4254 # removed, or if the value is a relative name. 4255 MKDIR_P="$ac_install_sh -d" 4256 fi 4257fi 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4259$as_echo "$MKDIR_P" >&6; } 4260 4261for ac_prog in gawk mawk nawk awk 4262do 4263 # Extract the first word of "$ac_prog", so it can be a program name with args. 4264set dummy $ac_prog; ac_word=$2 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4266$as_echo_n "checking for $ac_word... " >&6; } 4267if ${ac_cv_prog_AWK+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 if test -n "$AWK"; then 4271 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4272else 4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4280 ac_cv_prog_AWK="$ac_prog" 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284done 4285 done 4286IFS=$as_save_IFS 4287 4288fi 4289fi 4290AWK=$ac_cv_prog_AWK 4291if test -n "$AWK"; then 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4293$as_echo "$AWK" >&6; } 4294else 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4296$as_echo "no" >&6; } 4297fi 4298 4299 4300 test -n "$AWK" && break 4301done 4302 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4304$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4305set x ${MAKE-make} 4306ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4307if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 cat >conftest.make <<\_ACEOF 4311SHELL = /bin/sh 4312all: 4313 @echo '@@@%%%=$(MAKE)=@@@%%%' 4314_ACEOF 4315# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4316case `${MAKE-make} -f conftest.make 2>/dev/null` in 4317 *@@@%%%=?*=@@@%%%*) 4318 eval ac_cv_prog_make_${ac_make}_set=yes;; 4319 *) 4320 eval ac_cv_prog_make_${ac_make}_set=no;; 4321esac 4322rm -f conftest.make 4323fi 4324if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4326$as_echo "yes" >&6; } 4327 SET_MAKE= 4328else 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4330$as_echo "no" >&6; } 4331 SET_MAKE="MAKE=${MAKE-make}" 4332fi 4333 4334rm -rf .tst 2>/dev/null 4335mkdir .tst 2>/dev/null 4336if test -d .tst; then 4337 am__leading_dot=. 4338else 4339 am__leading_dot=_ 4340fi 4341rmdir .tst 2>/dev/null 4342 4343DEPDIR="${am__leading_dot}deps" 4344 4345ac_config_commands="$ac_config_commands depfiles" 4346 4347 4348am_make=${MAKE-make} 4349cat > confinc << 'END' 4350am__doit: 4351 @echo this is the am__doit target 4352.PHONY: am__doit 4353END 4354# If we don't find an include directive, just comment out the code. 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4356$as_echo_n "checking for style of include used by $am_make... " >&6; } 4357am__include="#" 4358am__quote= 4359_am_result=none 4360# First try GNU make style include. 4361echo "include confinc" > confmf 4362# Ignore all kinds of additional output from 'make'. 4363case `$am_make -s -f confmf 2> /dev/null` in #( 4364*the\ am__doit\ target*) 4365 am__include=include 4366 am__quote= 4367 _am_result=GNU 4368 ;; 4369esac 4370# Now try BSD make style include. 4371if test "$am__include" = "#"; then 4372 echo '.include "confinc"' > confmf 4373 case `$am_make -s -f confmf 2> /dev/null` in #( 4374 *the\ am__doit\ target*) 4375 am__include=.include 4376 am__quote="\"" 4377 _am_result=BSD 4378 ;; 4379 esac 4380fi 4381 4382 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4384$as_echo "$_am_result" >&6; } 4385rm -f confinc confmf 4386 4387# Check whether --enable-dependency-tracking was given. 4388if test "${enable_dependency_tracking+set}" = set; then : 4389 enableval=$enable_dependency_tracking; 4390fi 4391 4392if test "x$enable_dependency_tracking" != xno; then 4393 am_depcomp="$ac_aux_dir/depcomp" 4394 AMDEPBACKSLASH='\' 4395 am__nodep='_no' 4396fi 4397 if test "x$enable_dependency_tracking" != xno; then 4398 AMDEP_TRUE= 4399 AMDEP_FALSE='#' 4400else 4401 AMDEP_TRUE='#' 4402 AMDEP_FALSE= 4403fi 4404 4405 4406# Check whether --enable-silent-rules was given. 4407if test "${enable_silent_rules+set}" = set; then : 4408 enableval=$enable_silent_rules; 4409fi 4410 4411case $enable_silent_rules in # ((( 4412 yes) AM_DEFAULT_VERBOSITY=0;; 4413 no) AM_DEFAULT_VERBOSITY=1;; 4414 *) AM_DEFAULT_VERBOSITY=1;; 4415esac 4416am_make=${MAKE-make} 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4418$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4419if ${am_cv_make_support_nested_variables+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if $as_echo 'TRUE=$(BAR$(V)) 4423BAR0=false 4424BAR1=true 4425V=1 4426am__doit: 4427 @$(TRUE) 4428.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4429 am_cv_make_support_nested_variables=yes 4430else 4431 am_cv_make_support_nested_variables=no 4432fi 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4435$as_echo "$am_cv_make_support_nested_variables" >&6; } 4436if test $am_cv_make_support_nested_variables = yes; then 4437 AM_V='$(V)' 4438 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4439else 4440 AM_V=$AM_DEFAULT_VERBOSITY 4441 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4442fi 4443AM_BACKSLASH='\' 4444 4445if test "`cd $srcdir && pwd`" != "`pwd`"; then 4446 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4447 # is not polluted with repeated "-I." 4448 am__isrc=' -I$(srcdir)' 4449 # test to see if srcdir already configured 4450 if test -f $srcdir/config.status; then 4451 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4452 fi 4453fi 4454 4455# test whether we have cygpath 4456if test -z "$CYGPATH_W"; then 4457 if (cygpath --version) >/dev/null 2>/dev/null; then 4458 CYGPATH_W='cygpath -w' 4459 else 4460 CYGPATH_W=echo 4461 fi 4462fi 4463 4464 4465# Define the identity of the package. 4466 PACKAGE='sessreg' 4467 VERSION='1.1.2' 4468 4469 4470cat >>confdefs.h <<_ACEOF 4471#define PACKAGE "$PACKAGE" 4472_ACEOF 4473 4474 4475cat >>confdefs.h <<_ACEOF 4476#define VERSION "$VERSION" 4477_ACEOF 4478 4479# Some tools Automake needs. 4480 4481ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4482 4483 4484AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4485 4486 4487AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4488 4489 4490AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4491 4492 4493MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4494 4495# For better backward compatibility. To be removed once Automake 1.9.x 4496# dies out for good. For more background, see: 4497# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4498# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4499mkdir_p='$(MKDIR_P)' 4500 4501# We need awk for the "check" target (and possibly the TAP driver). The 4502# system "awk" is bad on some platforms. 4503# Always define AMTAR for backward compatibility. Yes, it's still used 4504# in the wild :-( We should find a proper way to deprecate it ... 4505AMTAR='$${TAR-tar}' 4506 4507 4508# We'll loop over all known methods to create a tar archive until one works. 4509_am_tools='gnutar pax cpio none' 4510 4511am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4512 4513 4514 4515 4516 4517depcc="$CC" am_compiler_list= 4518 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4520$as_echo_n "checking dependency style of $depcc... " >&6; } 4521if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4525 # We make a subdir and do the tests there. Otherwise we can end up 4526 # making bogus files that we don't know about and never remove. For 4527 # instance it was reported that on HP-UX the gcc test will end up 4528 # making a dummy file named 'D' -- because '-MD' means "put the output 4529 # in D". 4530 rm -rf conftest.dir 4531 mkdir conftest.dir 4532 # Copy depcomp to subdir because otherwise we won't find it if we're 4533 # using a relative directory. 4534 cp "$am_depcomp" conftest.dir 4535 cd conftest.dir 4536 # We will build objects and dependencies in a subdirectory because 4537 # it helps to detect inapplicable dependency modes. For instance 4538 # both Tru64's cc and ICC support -MD to output dependencies as a 4539 # side effect of compilation, but ICC will put the dependencies in 4540 # the current directory while Tru64 will put them in the object 4541 # directory. 4542 mkdir sub 4543 4544 am_cv_CC_dependencies_compiler_type=none 4545 if test "$am_compiler_list" = ""; then 4546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4547 fi 4548 am__universal=false 4549 case " $depcc " in #( 4550 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4551 esac 4552 4553 for depmode in $am_compiler_list; do 4554 # Setup a source with many dependencies, because some compilers 4555 # like to wrap large dependency lists on column 80 (with \), and 4556 # we should not choose a depcomp mode which is confused by this. 4557 # 4558 # We need to recreate these files for each test, as the compiler may 4559 # overwrite some of them when testing with obscure command lines. 4560 # This happens at least with the AIX C compiler. 4561 : > sub/conftest.c 4562 for i in 1 2 3 4 5 6; do 4563 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4564 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4565 # Solaris 10 /bin/sh. 4566 echo '/* dummy */' > sub/conftst$i.h 4567 done 4568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4569 4570 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4571 # mode. It turns out that the SunPro C++ compiler does not properly 4572 # handle '-M -o', and we need to detect this. Also, some Intel 4573 # versions had trouble with output in subdirs. 4574 am__obj=sub/conftest.${OBJEXT-o} 4575 am__minus_obj="-o $am__obj" 4576 case $depmode in 4577 gcc) 4578 # This depmode causes a compiler race in universal mode. 4579 test "$am__universal" = false || continue 4580 ;; 4581 nosideeffect) 4582 # After this tag, mechanisms are not by side-effect, so they'll 4583 # only be used when explicitly requested. 4584 if test "x$enable_dependency_tracking" = xyes; then 4585 continue 4586 else 4587 break 4588 fi 4589 ;; 4590 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4591 # This compiler won't grok '-c -o', but also, the minuso test has 4592 # not run yet. These depmodes are late enough in the game, and 4593 # so weak that their functioning should not be impacted. 4594 am__obj=conftest.${OBJEXT-o} 4595 am__minus_obj= 4596 ;; 4597 none) break ;; 4598 esac 4599 if depmode=$depmode \ 4600 source=sub/conftest.c object=$am__obj \ 4601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4603 >/dev/null 2>conftest.err && 4604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4608 # icc doesn't choke on unknown options, it will just issue warnings 4609 # or remarks (even with -Werror). So we grep stderr for any message 4610 # that says an option was ignored or not supported. 4611 # When given -MP, icc 7.0 and 7.1 complain thusly: 4612 # icc: Command line warning: ignoring option '-M'; no argument required 4613 # The diagnosis changed in icc 8.0: 4614 # icc: Command line remark: option '-MP' not supported 4615 if (grep 'ignoring option' conftest.err || 4616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4617 am_cv_CC_dependencies_compiler_type=$depmode 4618 break 4619 fi 4620 fi 4621 done 4622 4623 cd .. 4624 rm -rf conftest.dir 4625else 4626 am_cv_CC_dependencies_compiler_type=none 4627fi 4628 4629fi 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4631$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4633 4634 if 4635 test "x$enable_dependency_tracking" != xno \ 4636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4637 am__fastdepCC_TRUE= 4638 am__fastdepCC_FALSE='#' 4639else 4640 am__fastdepCC_TRUE='#' 4641 am__fastdepCC_FALSE= 4642fi 4643 4644 4645 4646# POSIX will say in a future version that running "rm -f" with no argument 4647# is OK; and we want to be able to make that assumption in our Makefile 4648# recipes. So use an aggressive probe to check that the usage we want is 4649# actually supported "in the wild" to an acceptable degree. 4650# See automake bug#10828. 4651# To make any issue more visible, cause the running configure to be aborted 4652# by default if the 'rm' program in use doesn't match our expectations; the 4653# user can still override this though. 4654if rm -f && rm -fr && rm -rf; then : OK; else 4655 cat >&2 <<'END' 4656Oops! 4657 4658Your 'rm' program seems unable to run without file operands specified 4659on the command line, even when the '-f' option is present. This is contrary 4660to the behaviour of most rm programs out there, and not conforming with 4661the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4662 4663Please tell bug-automake@gnu.org about your system, including the value 4664of your $PATH and any error possibly output before this message. This 4665can help us improve future automake versions. 4666 4667END 4668 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4669 echo 'Configuration will proceed anyway, since you have set the' >&2 4670 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4671 echo >&2 4672 else 4673 cat >&2 <<'END' 4674Aborting the configuration process, to ensure you take notice of the issue. 4675 4676You can download and install GNU coreutils to get an 'rm' implementation 4677that behaves properly: <http://www.gnu.org/software/coreutils/>. 4678 4679If you want to complete the configuration process using your problematic 4680'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4681to "yes", and re-run configure. 4682 4683END 4684 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4685 fi 4686fi 4687 4688 4689# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4702$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4703if ${ac_cv_prog_cc_c99+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 ac_cv_prog_cc_c99=no 4707ac_save_CC=$CC 4708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710#include <stdarg.h> 4711#include <stdbool.h> 4712#include <stdlib.h> 4713#include <wchar.h> 4714#include <stdio.h> 4715 4716// Check varargs macros. These examples are taken from C99 6.10.3.5. 4717#define debug(...) fprintf (stderr, __VA_ARGS__) 4718#define showlist(...) puts (#__VA_ARGS__) 4719#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4720static void 4721test_varargs_macros (void) 4722{ 4723 int x = 1234; 4724 int y = 5678; 4725 debug ("Flag"); 4726 debug ("X = %d\n", x); 4727 showlist (The first, second, and third items.); 4728 report (x>y, "x is %d but y is %d", x, y); 4729} 4730 4731// Check long long types. 4732#define BIG64 18446744073709551615ull 4733#define BIG32 4294967295ul 4734#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4735#if !BIG_OK 4736 your preprocessor is broken; 4737#endif 4738#if BIG_OK 4739#else 4740 your preprocessor is broken; 4741#endif 4742static long long int bignum = -9223372036854775807LL; 4743static unsigned long long int ubignum = BIG64; 4744 4745struct incomplete_array 4746{ 4747 int datasize; 4748 double data[]; 4749}; 4750 4751struct named_init { 4752 int number; 4753 const wchar_t *name; 4754 double average; 4755}; 4756 4757typedef const char *ccp; 4758 4759static inline int 4760test_restrict (ccp restrict text) 4761{ 4762 // See if C++-style comments work. 4763 // Iterate through items via the restricted pointer. 4764 // Also check for declarations in for loops. 4765 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4766 continue; 4767 return 0; 4768} 4769 4770// Check varargs and va_copy. 4771static void 4772test_varargs (const char *format, ...) 4773{ 4774 va_list args; 4775 va_start (args, format); 4776 va_list args_copy; 4777 va_copy (args_copy, args); 4778 4779 const char *str; 4780 int number; 4781 float fnumber; 4782 4783 while (*format) 4784 { 4785 switch (*format++) 4786 { 4787 case 's': // string 4788 str = va_arg (args_copy, const char *); 4789 break; 4790 case 'd': // int 4791 number = va_arg (args_copy, int); 4792 break; 4793 case 'f': // float 4794 fnumber = va_arg (args_copy, double); 4795 break; 4796 default: 4797 break; 4798 } 4799 } 4800 va_end (args_copy); 4801 va_end (args); 4802} 4803 4804int 4805main () 4806{ 4807 4808 // Check bool. 4809 _Bool success = false; 4810 4811 // Check restrict. 4812 if (test_restrict ("String literal") == 0) 4813 success = true; 4814 char *restrict newvar = "Another string"; 4815 4816 // Check varargs. 4817 test_varargs ("s, d' f .", "string", 65, 34.234); 4818 test_varargs_macros (); 4819 4820 // Check flexible array members. 4821 struct incomplete_array *ia = 4822 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4823 ia->datasize = 10; 4824 for (int i = 0; i < ia->datasize; ++i) 4825 ia->data[i] = i * 1.234; 4826 4827 // Check named initializers. 4828 struct named_init ni = { 4829 .number = 34, 4830 .name = L"Test wide string", 4831 .average = 543.34343, 4832 }; 4833 4834 ni.number = 58; 4835 4836 int dynamic_array[ni.number]; 4837 dynamic_array[ni.number - 1] = 543; 4838 4839 // work around unused variable warnings 4840 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4841 || dynamic_array[ni.number - 1] != 543); 4842 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4848do 4849 CC="$ac_save_CC $ac_arg" 4850 if ac_fn_c_try_compile "$LINENO"; then : 4851 ac_cv_prog_cc_c99=$ac_arg 4852fi 4853rm -f core conftest.err conftest.$ac_objext 4854 test "x$ac_cv_prog_cc_c99" != "xno" && break 4855done 4856rm -f conftest.$ac_ext 4857CC=$ac_save_CC 4858 4859fi 4860# AC_CACHE_VAL 4861case "x$ac_cv_prog_cc_c99" in 4862 x) 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4864$as_echo "none needed" >&6; } ;; 4865 xno) 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4867$as_echo "unsupported" >&6; } ;; 4868 *) 4869 CC="$CC $ac_cv_prog_cc_c99" 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4871$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4872esac 4873if test "x$ac_cv_prog_cc_c99" != xno; then : 4874 4875fi 4876 4877 4878 4879 4880 4881 4882ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4883if test "x$ac_cv_have_decl___clang__" = xyes; then : 4884 CLANGCC="yes" 4885else 4886 CLANGCC="no" 4887fi 4888 4889ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4890if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4891 INTELCC="yes" 4892else 4893 INTELCC="no" 4894fi 4895 4896ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4897if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4898 SUNCC="yes" 4899else 4900 SUNCC="no" 4901fi 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4912 if test -n "$ac_tool_prefix"; then 4913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4914set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4916$as_echo_n "checking for $ac_word... " >&6; } 4917if ${ac_cv_path_PKG_CONFIG+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 case $PKG_CONFIG in 4921 [\\/]* | ?:[\\/]*) 4922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4923 ;; 4924 *) 4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH 4927do 4928 IFS=$as_save_IFS 4929 test -z "$as_dir" && as_dir=. 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4934 break 2 4935 fi 4936done 4937 done 4938IFS=$as_save_IFS 4939 4940 ;; 4941esac 4942fi 4943PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4944if test -n "$PKG_CONFIG"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4946$as_echo "$PKG_CONFIG" >&6; } 4947else 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4949$as_echo "no" >&6; } 4950fi 4951 4952 4953fi 4954if test -z "$ac_cv_path_PKG_CONFIG"; then 4955 ac_pt_PKG_CONFIG=$PKG_CONFIG 4956 # Extract the first word of "pkg-config", so it can be a program name with args. 4957set dummy pkg-config; ac_word=$2 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4959$as_echo_n "checking for $ac_word... " >&6; } 4960if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 case $ac_pt_PKG_CONFIG in 4964 [\\/]* | ?:[\\/]*) 4965 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4966 ;; 4967 *) 4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4969for as_dir in $PATH 4970do 4971 IFS=$as_save_IFS 4972 test -z "$as_dir" && as_dir=. 4973 for ac_exec_ext in '' $ac_executable_extensions; do 4974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4975 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4977 break 2 4978 fi 4979done 4980 done 4981IFS=$as_save_IFS 4982 4983 ;; 4984esac 4985fi 4986ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4987if test -n "$ac_pt_PKG_CONFIG"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4989$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 if test "x$ac_pt_PKG_CONFIG" = x; then 4996 PKG_CONFIG="" 4997 else 4998 case $cross_compiling:$ac_tool_warned in 4999yes:) 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5002ac_tool_warned=yes ;; 5003esac 5004 PKG_CONFIG=$ac_pt_PKG_CONFIG 5005 fi 5006else 5007 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5008fi 5009 5010fi 5011if test -n "$PKG_CONFIG"; then 5012 _pkg_min_version=0.9.0 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5014$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5015 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5017$as_echo "yes" >&6; } 5018 else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020$as_echo "no" >&6; } 5021 PKG_CONFIG="" 5022 fi 5023fi 5024# Make sure we can run config.sub. 5025$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5026 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5027 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5029$as_echo_n "checking build system type... " >&6; } 5030if ${ac_cv_build+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 ac_build_alias=$build_alias 5034test "x$ac_build_alias" = x && 5035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5036test "x$ac_build_alias" = x && 5037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5038ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5040 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5043$as_echo "$ac_cv_build" >&6; } 5044case $ac_cv_build in 5045*-*-*) ;; 5046*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5047esac 5048build=$ac_cv_build 5049ac_save_IFS=$IFS; IFS='-' 5050set x $ac_cv_build 5051shift 5052build_cpu=$1 5053build_vendor=$2 5054shift; shift 5055# Remember, the first character of IFS is used to create $*, 5056# except with old shells: 5057build_os=$* 5058IFS=$ac_save_IFS 5059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5063$as_echo_n "checking host system type... " >&6; } 5064if ${ac_cv_host+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 if test "x$host_alias" = x; then 5068 ac_cv_host=$ac_cv_build 5069else 5070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5071 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5072fi 5073 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5076$as_echo "$ac_cv_host" >&6; } 5077case $ac_cv_host in 5078*-*-*) ;; 5079*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5080esac 5081host=$ac_cv_host 5082ac_save_IFS=$IFS; IFS='-' 5083set x $ac_cv_host 5084shift 5085host_cpu=$1 5086host_vendor=$2 5087shift; shift 5088# Remember, the first character of IFS is used to create $*, 5089# except with old shells: 5090host_os=$* 5091IFS=$ac_save_IFS 5092case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5093 5094 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5096$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5097if ${ac_cv_path_SED+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5101 for ac_i in 1 2 3 4 5 6 7; do 5102 ac_script="$ac_script$as_nl$ac_script" 5103 done 5104 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5105 { ac_script=; unset ac_script;} 5106 if test -z "$SED"; then 5107 ac_path_SED_found=false 5108 # Loop through the user's path and test for each of PROGNAME-LIST 5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5110for as_dir in $PATH 5111do 5112 IFS=$as_save_IFS 5113 test -z "$as_dir" && as_dir=. 5114 for ac_prog in sed gsed; do 5115 for ac_exec_ext in '' $ac_executable_extensions; do 5116 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5117 as_fn_executable_p "$ac_path_SED" || continue 5118# Check for GNU ac_path_SED and select it if it is found. 5119 # Check for GNU $ac_path_SED 5120case `"$ac_path_SED" --version 2>&1` in 5121*GNU*) 5122 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5123*) 5124 ac_count=0 5125 $as_echo_n 0123456789 >"conftest.in" 5126 while : 5127 do 5128 cat "conftest.in" "conftest.in" >"conftest.tmp" 5129 mv "conftest.tmp" "conftest.in" 5130 cp "conftest.in" "conftest.nl" 5131 $as_echo '' >> "conftest.nl" 5132 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5134 as_fn_arith $ac_count + 1 && ac_count=$as_val 5135 if test $ac_count -gt ${ac_path_SED_max-0}; then 5136 # Best one so far, save it but keep looking for a better one 5137 ac_cv_path_SED="$ac_path_SED" 5138 ac_path_SED_max=$ac_count 5139 fi 5140 # 10*(2^10) chars as input seems more than enough 5141 test $ac_count -gt 10 && break 5142 done 5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5144esac 5145 5146 $ac_path_SED_found && break 3 5147 done 5148 done 5149 done 5150IFS=$as_save_IFS 5151 if test -z "$ac_cv_path_SED"; then 5152 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5153 fi 5154else 5155 ac_cv_path_SED=$SED 5156fi 5157 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5160$as_echo "$ac_cv_path_SED" >&6; } 5161 SED="$ac_cv_path_SED" 5162 rm -f conftest.sed 5163 5164 5165 5166 5167 5168 5169# Check whether --enable-selective-werror was given. 5170if test "${enable_selective_werror+set}" = set; then : 5171 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5172else 5173 SELECTIVE_WERROR=yes 5174fi 5175 5176 5177 5178 5179 5180# -v is too short to test reliably with XORG_TESTSET_CFLAG 5181if test "x$SUNCC" = "xyes"; then 5182 BASE_CFLAGS="-v" 5183else 5184 BASE_CFLAGS="" 5185fi 5186 5187# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201xorg_testset_save_CFLAGS="$CFLAGS" 5202 5203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212int i; 5213_ACEOF 5214if ac_fn_c_try_compile "$LINENO"; then : 5215 xorg_cv_cc_flag_unknown_warning_option=yes 5216else 5217 xorg_cv_cc_flag_unknown_warning_option=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225fi 5226 5227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5230 fi 5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239int i; 5240_ACEOF 5241if ac_fn_c_try_compile "$LINENO"; then : 5242 xorg_cv_cc_flag_unused_command_line_argument=yes 5243else 5244 xorg_cv_cc_flag_unused_command_line_argument=no 5245fi 5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5247fi 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5251 CFLAGS="$xorg_testset_save_CFLAGS" 5252fi 5253 5254found="no" 5255 5256 if test $found = "no" ; then 5257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5259 fi 5260 5261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5263 fi 5264 5265 CFLAGS="$CFLAGS -Wall" 5266 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5268$as_echo_n "checking if $CC supports -Wall... " >&6; } 5269 cacheid=xorg_cv_cc_flag__Wall 5270 if eval \${$cacheid+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275int i; 5276int 5277main () 5278{ 5279 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284if ac_fn_c_try_link "$LINENO"; then : 5285 eval $cacheid=yes 5286else 5287 eval $cacheid=no 5288fi 5289rm -f core conftest.err conftest.$ac_objext \ 5290 conftest$ac_exeext conftest.$ac_ext 5291fi 5292 5293 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295 5296 eval supported=\$$cacheid 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5298$as_echo "$supported" >&6; } 5299 if test "$supported" = "yes" ; then 5300 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5301 found="yes" 5302 fi 5303 fi 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319xorg_testset_save_CFLAGS="$CFLAGS" 5320 5321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327else 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329/* end confdefs.h. */ 5330int i; 5331_ACEOF 5332if ac_fn_c_try_compile "$LINENO"; then : 5333 xorg_cv_cc_flag_unknown_warning_option=yes 5334else 5335 xorg_cv_cc_flag_unknown_warning_option=no 5336fi 5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5338fi 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5342 CFLAGS="$xorg_testset_save_CFLAGS" 5343fi 5344 5345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5348 fi 5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357int i; 5358_ACEOF 5359if ac_fn_c_try_compile "$LINENO"; then : 5360 xorg_cv_cc_flag_unused_command_line_argument=yes 5361else 5362 xorg_cv_cc_flag_unused_command_line_argument=no 5363fi 5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5365fi 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5369 CFLAGS="$xorg_testset_save_CFLAGS" 5370fi 5371 5372found="no" 5373 5374 if test $found = "no" ; then 5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5377 fi 5378 5379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5381 fi 5382 5383 CFLAGS="$CFLAGS -Wpointer-arith" 5384 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5386$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5387 cacheid=xorg_cv_cc_flag__Wpointer_arith 5388 if eval \${$cacheid+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393int i; 5394int 5395main () 5396{ 5397 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402if ac_fn_c_try_link "$LINENO"; then : 5403 eval $cacheid=yes 5404else 5405 eval $cacheid=no 5406fi 5407rm -f core conftest.err conftest.$ac_objext \ 5408 conftest$ac_exeext conftest.$ac_ext 5409fi 5410 5411 5412 CFLAGS="$xorg_testset_save_CFLAGS" 5413 5414 eval supported=\$$cacheid 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5416$as_echo "$supported" >&6; } 5417 if test "$supported" = "yes" ; then 5418 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5419 found="yes" 5420 fi 5421 fi 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437xorg_testset_save_CFLAGS="$CFLAGS" 5438 5439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448int i; 5449_ACEOF 5450if ac_fn_c_try_compile "$LINENO"; then : 5451 xorg_cv_cc_flag_unknown_warning_option=yes 5452else 5453 xorg_cv_cc_flag_unknown_warning_option=no 5454fi 5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5460 CFLAGS="$xorg_testset_save_CFLAGS" 5461fi 5462 5463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5466 fi 5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474/* end confdefs.h. */ 5475int i; 5476_ACEOF 5477if ac_fn_c_try_compile "$LINENO"; then : 5478 xorg_cv_cc_flag_unused_command_line_argument=yes 5479else 5480 xorg_cv_cc_flag_unused_command_line_argument=no 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5483fi 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5487 CFLAGS="$xorg_testset_save_CFLAGS" 5488fi 5489 5490found="no" 5491 5492 if test $found = "no" ; then 5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5495 fi 5496 5497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5499 fi 5500 5501 CFLAGS="$CFLAGS -Wmissing-declarations" 5502 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5504$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5505 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5506 if eval \${$cacheid+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5510/* end confdefs.h. */ 5511int i; 5512int 5513main () 5514{ 5515 5516 ; 5517 return 0; 5518} 5519_ACEOF 5520if ac_fn_c_try_link "$LINENO"; then : 5521 eval $cacheid=yes 5522else 5523 eval $cacheid=no 5524fi 5525rm -f core conftest.err conftest.$ac_objext \ 5526 conftest$ac_exeext conftest.$ac_ext 5527fi 5528 5529 5530 CFLAGS="$xorg_testset_save_CFLAGS" 5531 5532 eval supported=\$$cacheid 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5534$as_echo "$supported" >&6; } 5535 if test "$supported" = "yes" ; then 5536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5537 found="yes" 5538 fi 5539 fi 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555xorg_testset_save_CFLAGS="$CFLAGS" 5556 5557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566int i; 5567_ACEOF 5568if ac_fn_c_try_compile "$LINENO"; then : 5569 xorg_cv_cc_flag_unknown_warning_option=yes 5570else 5571 xorg_cv_cc_flag_unknown_warning_option=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5578 CFLAGS="$xorg_testset_save_CFLAGS" 5579fi 5580 5581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5584 fi 5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593int i; 5594_ACEOF 5595if ac_fn_c_try_compile "$LINENO"; then : 5596 xorg_cv_cc_flag_unused_command_line_argument=yes 5597else 5598 xorg_cv_cc_flag_unused_command_line_argument=no 5599fi 5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5601fi 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5605 CFLAGS="$xorg_testset_save_CFLAGS" 5606fi 5607 5608found="no" 5609 5610 if test $found = "no" ; then 5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5613 fi 5614 5615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5617 fi 5618 5619 CFLAGS="$CFLAGS -Wformat=2" 5620 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5622$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5623 cacheid=xorg_cv_cc_flag__Wformat_2 5624 if eval \${$cacheid+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628/* end confdefs.h. */ 5629int i; 5630int 5631main () 5632{ 5633 5634 ; 5635 return 0; 5636} 5637_ACEOF 5638if ac_fn_c_try_link "$LINENO"; then : 5639 eval $cacheid=yes 5640else 5641 eval $cacheid=no 5642fi 5643rm -f core conftest.err conftest.$ac_objext \ 5644 conftest$ac_exeext conftest.$ac_ext 5645fi 5646 5647 5648 CFLAGS="$xorg_testset_save_CFLAGS" 5649 5650 eval supported=\$$cacheid 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5652$as_echo "$supported" >&6; } 5653 if test "$supported" = "yes" ; then 5654 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5655 found="yes" 5656 fi 5657 fi 5658 5659 if test $found = "no" ; then 5660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5662 fi 5663 5664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5666 fi 5667 5668 CFLAGS="$CFLAGS -Wformat" 5669 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5671$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5672 cacheid=xorg_cv_cc_flag__Wformat 5673 if eval \${$cacheid+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675else 5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5677/* end confdefs.h. */ 5678int i; 5679int 5680main () 5681{ 5682 5683 ; 5684 return 0; 5685} 5686_ACEOF 5687if ac_fn_c_try_link "$LINENO"; then : 5688 eval $cacheid=yes 5689else 5690 eval $cacheid=no 5691fi 5692rm -f core conftest.err conftest.$ac_objext \ 5693 conftest$ac_exeext conftest.$ac_ext 5694fi 5695 5696 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698 5699 eval supported=\$$cacheid 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5701$as_echo "$supported" >&6; } 5702 if test "$supported" = "yes" ; then 5703 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5704 found="yes" 5705 fi 5706 fi 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724xorg_testset_save_CFLAGS="$CFLAGS" 5725 5726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735int i; 5736_ACEOF 5737if ac_fn_c_try_compile "$LINENO"; then : 5738 xorg_cv_cc_flag_unknown_warning_option=yes 5739else 5740 xorg_cv_cc_flag_unknown_warning_option=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5743fi 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748fi 5749 5750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5753 fi 5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763_ACEOF 5764if ac_fn_c_try_compile "$LINENO"; then : 5765 xorg_cv_cc_flag_unused_command_line_argument=yes 5766else 5767 xorg_cv_cc_flag_unused_command_line_argument=no 5768fi 5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775fi 5776 5777found="no" 5778 5779 if test $found = "no" ; then 5780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5782 fi 5783 5784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5786 fi 5787 5788 CFLAGS="$CFLAGS -Wstrict-prototypes" 5789 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5791$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5792 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5793 if eval \${$cacheid+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799int 5800main () 5801{ 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807if ac_fn_c_try_link "$LINENO"; then : 5808 eval $cacheid=yes 5809else 5810 eval $cacheid=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext \ 5813 conftest$ac_exeext conftest.$ac_ext 5814fi 5815 5816 5817 CFLAGS="$xorg_testset_save_CFLAGS" 5818 5819 eval supported=\$$cacheid 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5821$as_echo "$supported" >&6; } 5822 if test "$supported" = "yes" ; then 5823 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5824 found="yes" 5825 fi 5826 fi 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842xorg_testset_save_CFLAGS="$CFLAGS" 5843 5844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853int i; 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 xorg_cv_cc_flag_unknown_warning_option=yes 5857else 5858 xorg_cv_cc_flag_unknown_warning_option=no 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866fi 5867 5868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5871 fi 5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO"; then : 5883 xorg_cv_cc_flag_unused_command_line_argument=yes 5884else 5885 xorg_cv_cc_flag_unused_command_line_argument=no 5886fi 5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893fi 5894 5895found="no" 5896 5897 if test $found = "no" ; then 5898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 fi 5901 5902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5904 fi 5905 5906 CFLAGS="$CFLAGS -Wmissing-prototypes" 5907 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5909$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5910 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5911 if eval \${$cacheid+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917int 5918main () 5919{ 5920 5921 ; 5922 return 0; 5923} 5924_ACEOF 5925if ac_fn_c_try_link "$LINENO"; then : 5926 eval $cacheid=yes 5927else 5928 eval $cacheid=no 5929fi 5930rm -f core conftest.err conftest.$ac_objext \ 5931 conftest$ac_exeext conftest.$ac_ext 5932fi 5933 5934 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936 5937 eval supported=\$$cacheid 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5939$as_echo "$supported" >&6; } 5940 if test "$supported" = "yes" ; then 5941 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5942 found="yes" 5943 fi 5944 fi 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960xorg_testset_save_CFLAGS="$CFLAGS" 5961 5962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972_ACEOF 5973if ac_fn_c_try_compile "$LINENO"; then : 5974 xorg_cv_cc_flag_unknown_warning_option=yes 5975else 5976 xorg_cv_cc_flag_unknown_warning_option=no 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5979fi 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO"; then : 6001 xorg_cv_cc_flag_unused_command_line_argument=yes 6002else 6003 xorg_cv_cc_flag_unused_command_line_argument=no 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006fi 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6010 CFLAGS="$xorg_testset_save_CFLAGS" 6011fi 6012 6013found="no" 6014 6015 if test $found = "no" ; then 6016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6018 fi 6019 6020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6022 fi 6023 6024 CFLAGS="$CFLAGS -Wnested-externs" 6025 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6027$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6028 cacheid=xorg_cv_cc_flag__Wnested_externs 6029 if eval \${$cacheid+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6033/* end confdefs.h. */ 6034int i; 6035int 6036main () 6037{ 6038 6039 ; 6040 return 0; 6041} 6042_ACEOF 6043if ac_fn_c_try_link "$LINENO"; then : 6044 eval $cacheid=yes 6045else 6046 eval $cacheid=no 6047fi 6048rm -f core conftest.err conftest.$ac_objext \ 6049 conftest$ac_exeext conftest.$ac_ext 6050fi 6051 6052 6053 CFLAGS="$xorg_testset_save_CFLAGS" 6054 6055 eval supported=\$$cacheid 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6057$as_echo "$supported" >&6; } 6058 if test "$supported" = "yes" ; then 6059 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6060 found="yes" 6061 fi 6062 fi 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078xorg_testset_save_CFLAGS="$CFLAGS" 6079 6080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO"; then : 6092 xorg_cv_cc_flag_unknown_warning_option=yes 6093else 6094 xorg_cv_cc_flag_unknown_warning_option=no 6095fi 6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6097fi 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6101 CFLAGS="$xorg_testset_save_CFLAGS" 6102fi 6103 6104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6107 fi 6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6112 $as_echo_n "(cached) " >&6 6113else 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116int i; 6117_ACEOF 6118if ac_fn_c_try_compile "$LINENO"; then : 6119 xorg_cv_cc_flag_unused_command_line_argument=yes 6120else 6121 xorg_cv_cc_flag_unused_command_line_argument=no 6122fi 6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6124fi 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6128 CFLAGS="$xorg_testset_save_CFLAGS" 6129fi 6130 6131found="no" 6132 6133 if test $found = "no" ; then 6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 fi 6137 6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 fi 6141 6142 CFLAGS="$CFLAGS -Wbad-function-cast" 6143 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6145$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6146 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6147 if eval \${$cacheid+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152int i; 6153int 6154main () 6155{ 6156 6157 ; 6158 return 0; 6159} 6160_ACEOF 6161if ac_fn_c_try_link "$LINENO"; then : 6162 eval $cacheid=yes 6163else 6164 eval $cacheid=no 6165fi 6166rm -f core conftest.err conftest.$ac_objext \ 6167 conftest$ac_exeext conftest.$ac_ext 6168fi 6169 6170 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172 6173 eval supported=\$$cacheid 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6175$as_echo "$supported" >&6; } 6176 if test "$supported" = "yes" ; then 6177 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6178 found="yes" 6179 fi 6180 fi 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196xorg_testset_save_CFLAGS="$CFLAGS" 6197 6198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO"; then : 6210 xorg_cv_cc_flag_unknown_warning_option=yes 6211else 6212 xorg_cv_cc_flag_unknown_warning_option=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6215fi 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220fi 6221 6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6225 fi 6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6233/* end confdefs.h. */ 6234int i; 6235_ACEOF 6236if ac_fn_c_try_compile "$LINENO"; then : 6237 xorg_cv_cc_flag_unused_command_line_argument=yes 6238else 6239 xorg_cv_cc_flag_unused_command_line_argument=no 6240fi 6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6242fi 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6246 CFLAGS="$xorg_testset_save_CFLAGS" 6247fi 6248 6249found="no" 6250 6251 if test $found = "no" ; then 6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 fi 6255 6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6258 fi 6259 6260 CFLAGS="$CFLAGS -Wold-style-definition" 6261 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6263$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6264 cacheid=xorg_cv_cc_flag__Wold_style_definition 6265 if eval \${$cacheid+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270int i; 6271int 6272main () 6273{ 6274 6275 ; 6276 return 0; 6277} 6278_ACEOF 6279if ac_fn_c_try_link "$LINENO"; then : 6280 eval $cacheid=yes 6281else 6282 eval $cacheid=no 6283fi 6284rm -f core conftest.err conftest.$ac_objext \ 6285 conftest$ac_exeext conftest.$ac_ext 6286fi 6287 6288 6289 CFLAGS="$xorg_testset_save_CFLAGS" 6290 6291 eval supported=\$$cacheid 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6293$as_echo "$supported" >&6; } 6294 if test "$supported" = "yes" ; then 6295 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6296 found="yes" 6297 fi 6298 fi 6299 6300 if test $found = "no" ; then 6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 fi 6304 6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6307 fi 6308 6309 CFLAGS="$CFLAGS -fd" 6310 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6312$as_echo_n "checking if $CC supports -fd... " >&6; } 6313 cacheid=xorg_cv_cc_flag__fd 6314 if eval \${$cacheid+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318/* end confdefs.h. */ 6319int i; 6320int 6321main () 6322{ 6323 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328if ac_fn_c_try_link "$LINENO"; then : 6329 eval $cacheid=yes 6330else 6331 eval $cacheid=no 6332fi 6333rm -f core conftest.err conftest.$ac_objext \ 6334 conftest$ac_exeext conftest.$ac_ext 6335fi 6336 6337 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339 6340 eval supported=\$$cacheid 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6342$as_echo "$supported" >&6; } 6343 if test "$supported" = "yes" ; then 6344 BASE_CFLAGS="$BASE_CFLAGS -fd" 6345 found="yes" 6346 fi 6347 fi 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363xorg_testset_save_CFLAGS="$CFLAGS" 6364 6365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO"; then : 6377 xorg_cv_cc_flag_unknown_warning_option=yes 6378else 6379 xorg_cv_cc_flag_unknown_warning_option=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387fi 6388 6389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 fi 6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401int i; 6402_ACEOF 6403if ac_fn_c_try_compile "$LINENO"; then : 6404 xorg_cv_cc_flag_unused_command_line_argument=yes 6405else 6406 xorg_cv_cc_flag_unused_command_line_argument=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6409fi 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414fi 6415 6416found="no" 6417 6418 if test $found = "no" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6425 fi 6426 6427 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6428 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6430$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6431 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6432 if eval \${$cacheid+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438int 6439main () 6440{ 6441 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO"; then : 6447 eval $cacheid=yes 6448else 6449 eval $cacheid=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext \ 6452 conftest$ac_exeext conftest.$ac_ext 6453fi 6454 6455 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457 6458 eval supported=\$$cacheid 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6460$as_echo "$supported" >&6; } 6461 if test "$supported" = "yes" ; then 6462 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6463 found="yes" 6464 fi 6465 fi 6466 6467 6468 6469 6470 6471# This chunk adds additional warnings that could catch undesired effects. 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485xorg_testset_save_CFLAGS="$CFLAGS" 6486 6487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6492 $as_echo_n "(cached) " >&6 6493else 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496int i; 6497_ACEOF 6498if ac_fn_c_try_compile "$LINENO"; then : 6499 xorg_cv_cc_flag_unknown_warning_option=yes 6500else 6501 xorg_cv_cc_flag_unknown_warning_option=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509fi 6510 6511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6519 $as_echo_n "(cached) " >&6 6520else 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523int i; 6524_ACEOF 6525if ac_fn_c_try_compile "$LINENO"; then : 6526 xorg_cv_cc_flag_unused_command_line_argument=yes 6527else 6528 xorg_cv_cc_flag_unused_command_line_argument=no 6529fi 6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6531fi 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6535 CFLAGS="$xorg_testset_save_CFLAGS" 6536fi 6537 6538found="no" 6539 6540 if test $found = "no" ; then 6541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6543 fi 6544 6545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6547 fi 6548 6549 CFLAGS="$CFLAGS -Wunused" 6550 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6552$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6553 cacheid=xorg_cv_cc_flag__Wunused 6554 if eval \${$cacheid+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560int 6561main () 6562{ 6563 6564 ; 6565 return 0; 6566} 6567_ACEOF 6568if ac_fn_c_try_link "$LINENO"; then : 6569 eval $cacheid=yes 6570else 6571 eval $cacheid=no 6572fi 6573rm -f core conftest.err conftest.$ac_objext \ 6574 conftest$ac_exeext conftest.$ac_ext 6575fi 6576 6577 6578 CFLAGS="$xorg_testset_save_CFLAGS" 6579 6580 eval supported=\$$cacheid 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6582$as_echo "$supported" >&6; } 6583 if test "$supported" = "yes" ; then 6584 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6585 found="yes" 6586 fi 6587 fi 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603xorg_testset_save_CFLAGS="$CFLAGS" 6604 6605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613/* end confdefs.h. */ 6614int i; 6615_ACEOF 6616if ac_fn_c_try_compile "$LINENO"; then : 6617 xorg_cv_cc_flag_unknown_warning_option=yes 6618else 6619 xorg_cv_cc_flag_unknown_warning_option=no 6620fi 6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6622fi 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6626 CFLAGS="$xorg_testset_save_CFLAGS" 6627fi 6628 6629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641int i; 6642_ACEOF 6643if ac_fn_c_try_compile "$LINENO"; then : 6644 xorg_cv_cc_flag_unused_command_line_argument=yes 6645else 6646 xorg_cv_cc_flag_unused_command_line_argument=no 6647fi 6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6649fi 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6653 CFLAGS="$xorg_testset_save_CFLAGS" 6654fi 6655 6656found="no" 6657 6658 if test $found = "no" ; then 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 fi 6662 6663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 fi 6666 6667 CFLAGS="$CFLAGS -Wuninitialized" 6668 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6670$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6671 cacheid=xorg_cv_cc_flag__Wuninitialized 6672 if eval \${$cacheid+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678int 6679main () 6680{ 6681 6682 ; 6683 return 0; 6684} 6685_ACEOF 6686if ac_fn_c_try_link "$LINENO"; then : 6687 eval $cacheid=yes 6688else 6689 eval $cacheid=no 6690fi 6691rm -f core conftest.err conftest.$ac_objext \ 6692 conftest$ac_exeext conftest.$ac_ext 6693fi 6694 6695 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697 6698 eval supported=\$$cacheid 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6700$as_echo "$supported" >&6; } 6701 if test "$supported" = "yes" ; then 6702 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6703 found="yes" 6704 fi 6705 fi 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721xorg_testset_save_CFLAGS="$CFLAGS" 6722 6723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731/* end confdefs.h. */ 6732int i; 6733_ACEOF 6734if ac_fn_c_try_compile "$LINENO"; then : 6735 xorg_cv_cc_flag_unknown_warning_option=yes 6736else 6737 xorg_cv_cc_flag_unknown_warning_option=no 6738fi 6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6740fi 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6744 CFLAGS="$xorg_testset_save_CFLAGS" 6745fi 6746 6747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 fi 6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758/* end confdefs.h. */ 6759int i; 6760_ACEOF 6761if ac_fn_c_try_compile "$LINENO"; then : 6762 xorg_cv_cc_flag_unused_command_line_argument=yes 6763else 6764 xorg_cv_cc_flag_unused_command_line_argument=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6767fi 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772fi 6773 6774found="no" 6775 6776 if test $found = "no" ; then 6777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6779 fi 6780 6781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 fi 6784 6785 CFLAGS="$CFLAGS -Wshadow" 6786 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6788$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6789 cacheid=xorg_cv_cc_flag__Wshadow 6790 if eval \${$cacheid+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795int i; 6796int 6797main () 6798{ 6799 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804if ac_fn_c_try_link "$LINENO"; then : 6805 eval $cacheid=yes 6806else 6807 eval $cacheid=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext \ 6810 conftest$ac_exeext conftest.$ac_ext 6811fi 6812 6813 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815 6816 eval supported=\$$cacheid 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6818$as_echo "$supported" >&6; } 6819 if test "$supported" = "yes" ; then 6820 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6821 found="yes" 6822 fi 6823 fi 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839xorg_testset_save_CFLAGS="$CFLAGS" 6840 6841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850int i; 6851_ACEOF 6852if ac_fn_c_try_compile "$LINENO"; then : 6853 xorg_cv_cc_flag_unknown_warning_option=yes 6854else 6855 xorg_cv_cc_flag_unknown_warning_option=no 6856fi 6857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6858fi 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6862 CFLAGS="$xorg_testset_save_CFLAGS" 6863fi 6864 6865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6868 fi 6869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876/* end confdefs.h. */ 6877int i; 6878_ACEOF 6879if ac_fn_c_try_compile "$LINENO"; then : 6880 xorg_cv_cc_flag_unused_command_line_argument=yes 6881else 6882 xorg_cv_cc_flag_unused_command_line_argument=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6885fi 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890fi 6891 6892found="no" 6893 6894 if test $found = "no" ; then 6895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6897 fi 6898 6899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6901 fi 6902 6903 CFLAGS="$CFLAGS -Wmissing-noreturn" 6904 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6906$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6907 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6908 if eval \${$cacheid+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6912/* end confdefs.h. */ 6913int i; 6914int 6915main () 6916{ 6917 6918 ; 6919 return 0; 6920} 6921_ACEOF 6922if ac_fn_c_try_link "$LINENO"; then : 6923 eval $cacheid=yes 6924else 6925 eval $cacheid=no 6926fi 6927rm -f core conftest.err conftest.$ac_objext \ 6928 conftest$ac_exeext conftest.$ac_ext 6929fi 6930 6931 6932 CFLAGS="$xorg_testset_save_CFLAGS" 6933 6934 eval supported=\$$cacheid 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6936$as_echo "$supported" >&6; } 6937 if test "$supported" = "yes" ; then 6938 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6939 found="yes" 6940 fi 6941 fi 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957xorg_testset_save_CFLAGS="$CFLAGS" 6958 6959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968int i; 6969_ACEOF 6970if ac_fn_c_try_compile "$LINENO"; then : 6971 xorg_cv_cc_flag_unknown_warning_option=yes 6972else 6973 xorg_cv_cc_flag_unknown_warning_option=no 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976fi 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981fi 6982 6983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 fi 6987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6994/* end confdefs.h. */ 6995int i; 6996_ACEOF 6997if ac_fn_c_try_compile "$LINENO"; then : 6998 xorg_cv_cc_flag_unused_command_line_argument=yes 6999else 7000 xorg_cv_cc_flag_unused_command_line_argument=no 7001fi 7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7003fi 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7007 CFLAGS="$xorg_testset_save_CFLAGS" 7008fi 7009 7010found="no" 7011 7012 if test $found = "no" ; then 7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 fi 7016 7017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7019 fi 7020 7021 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7022 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7024$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7025 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7026 if eval \${$cacheid+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7030/* end confdefs.h. */ 7031int i; 7032int 7033main () 7034{ 7035 7036 ; 7037 return 0; 7038} 7039_ACEOF 7040if ac_fn_c_try_link "$LINENO"; then : 7041 eval $cacheid=yes 7042else 7043 eval $cacheid=no 7044fi 7045rm -f core conftest.err conftest.$ac_objext \ 7046 conftest$ac_exeext conftest.$ac_ext 7047fi 7048 7049 7050 CFLAGS="$xorg_testset_save_CFLAGS" 7051 7052 eval supported=\$$cacheid 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7054$as_echo "$supported" >&6; } 7055 if test "$supported" = "yes" ; then 7056 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7057 found="yes" 7058 fi 7059 fi 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075xorg_testset_save_CFLAGS="$CFLAGS" 7076 7077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086int i; 7087_ACEOF 7088if ac_fn_c_try_compile "$LINENO"; then : 7089 xorg_cv_cc_flag_unknown_warning_option=yes 7090else 7091 xorg_cv_cc_flag_unknown_warning_option=no 7092fi 7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7094fi 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7098 CFLAGS="$xorg_testset_save_CFLAGS" 7099fi 7100 7101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112/* end confdefs.h. */ 7113int i; 7114_ACEOF 7115if ac_fn_c_try_compile "$LINENO"; then : 7116 xorg_cv_cc_flag_unused_command_line_argument=yes 7117else 7118 xorg_cv_cc_flag_unused_command_line_argument=no 7119fi 7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7121fi 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7125 CFLAGS="$xorg_testset_save_CFLAGS" 7126fi 7127 7128found="no" 7129 7130 if test $found = "no" ; then 7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 fi 7134 7135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7137 fi 7138 7139 CFLAGS="$CFLAGS -Wredundant-decls" 7140 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7142$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7143 cacheid=xorg_cv_cc_flag__Wredundant_decls 7144 if eval \${$cacheid+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7148/* end confdefs.h. */ 7149int i; 7150int 7151main () 7152{ 7153 7154 ; 7155 return 0; 7156} 7157_ACEOF 7158if ac_fn_c_try_link "$LINENO"; then : 7159 eval $cacheid=yes 7160else 7161 eval $cacheid=no 7162fi 7163rm -f core conftest.err conftest.$ac_objext \ 7164 conftest$ac_exeext conftest.$ac_ext 7165fi 7166 7167 7168 CFLAGS="$xorg_testset_save_CFLAGS" 7169 7170 eval supported=\$$cacheid 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7172$as_echo "$supported" >&6; } 7173 if test "$supported" = "yes" ; then 7174 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7175 found="yes" 7176 fi 7177 fi 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193xorg_testset_save_CFLAGS="$CFLAGS" 7194 7195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205_ACEOF 7206if ac_fn_c_try_compile "$LINENO"; then : 7207 xorg_cv_cc_flag_unknown_warning_option=yes 7208else 7209 xorg_cv_cc_flag_unknown_warning_option=no 7210fi 7211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7212fi 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217fi 7218 7219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7222 fi 7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7230/* end confdefs.h. */ 7231int i; 7232_ACEOF 7233if ac_fn_c_try_compile "$LINENO"; then : 7234 xorg_cv_cc_flag_unused_command_line_argument=yes 7235else 7236 xorg_cv_cc_flag_unused_command_line_argument=no 7237fi 7238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244fi 7245 7246found="no" 7247 7248 if test $found = "no" ; then 7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7251 fi 7252 7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7255 fi 7256 7257 CFLAGS="$CFLAGS -Wlogical-op" 7258 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7260$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7261 cacheid=xorg_cv_cc_flag__Wlogical_op 7262 if eval \${$cacheid+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267int i; 7268int 7269main () 7270{ 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276if ac_fn_c_try_link "$LINENO"; then : 7277 eval $cacheid=yes 7278else 7279 eval $cacheid=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext \ 7282 conftest$ac_exeext conftest.$ac_ext 7283fi 7284 7285 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287 7288 eval supported=\$$cacheid 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7290$as_echo "$supported" >&6; } 7291 if test "$supported" = "yes" ; then 7292 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7293 found="yes" 7294 fi 7295 fi 7296 7297 7298 7299# These are currently disabled because they are noisy. They will be enabled 7300# in the future once the codebase is sufficiently modernized to silence 7301# them. For now, I don't want them to drown out the other warnings. 7302# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7303# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7304# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7305 7306# Turn some warnings into errors, so we don't accidently get successful builds 7307# when there are problems that should be fixed. 7308 7309if test "x$SELECTIVE_WERROR" = "xyes" ; then 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323xorg_testset_save_CFLAGS="$CFLAGS" 7324 7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335_ACEOF 7336if ac_fn_c_try_compile "$LINENO"; then : 7337 xorg_cv_cc_flag_unknown_warning_option=yes 7338else 7339 xorg_cv_cc_flag_unknown_warning_option=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347fi 7348 7349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7352 fi 7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int i; 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO"; then : 7364 xorg_cv_cc_flag_unused_command_line_argument=yes 7365else 7366 xorg_cv_cc_flag_unused_command_line_argument=no 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7369fi 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374fi 7375 7376found="no" 7377 7378 if test $found = "no" ; then 7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7381 fi 7382 7383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7385 fi 7386 7387 CFLAGS="$CFLAGS -Werror=implicit" 7388 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7390$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7391 cacheid=xorg_cv_cc_flag__Werror_implicit 7392 if eval \${$cacheid+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397int i; 7398int 7399main () 7400{ 7401 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_link "$LINENO"; then : 7407 eval $cacheid=yes 7408else 7409 eval $cacheid=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext \ 7412 conftest$ac_exeext conftest.$ac_ext 7413fi 7414 7415 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417 7418 eval supported=\$$cacheid 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7420$as_echo "$supported" >&6; } 7421 if test "$supported" = "yes" ; then 7422 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7423 found="yes" 7424 fi 7425 fi 7426 7427 if test $found = "no" ; then 7428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7430 fi 7431 7432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7434 fi 7435 7436 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7437 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7439$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7440 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7441 if eval \${$cacheid+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446int i; 7447int 7448main () 7449{ 7450 7451 ; 7452 return 0; 7453} 7454_ACEOF 7455if ac_fn_c_try_link "$LINENO"; then : 7456 eval $cacheid=yes 7457else 7458 eval $cacheid=no 7459fi 7460rm -f core conftest.err conftest.$ac_objext \ 7461 conftest$ac_exeext conftest.$ac_ext 7462fi 7463 7464 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466 7467 eval supported=\$$cacheid 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7469$as_echo "$supported" >&6; } 7470 if test "$supported" = "yes" ; then 7471 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7472 found="yes" 7473 fi 7474 fi 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490xorg_testset_save_CFLAGS="$CFLAGS" 7491 7492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7500/* end confdefs.h. */ 7501int i; 7502_ACEOF 7503if ac_fn_c_try_compile "$LINENO"; then : 7504 xorg_cv_cc_flag_unknown_warning_option=yes 7505else 7506 xorg_cv_cc_flag_unknown_warning_option=no 7507fi 7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7509fi 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7514fi 7515 7516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7527/* end confdefs.h. */ 7528int i; 7529_ACEOF 7530if ac_fn_c_try_compile "$LINENO"; then : 7531 xorg_cv_cc_flag_unused_command_line_argument=yes 7532else 7533 xorg_cv_cc_flag_unused_command_line_argument=no 7534fi 7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7536fi 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7540 CFLAGS="$xorg_testset_save_CFLAGS" 7541fi 7542 7543found="no" 7544 7545 if test $found = "no" ; then 7546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7548 fi 7549 7550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7552 fi 7553 7554 CFLAGS="$CFLAGS -Werror=nonnull" 7555 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7557$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7558 cacheid=xorg_cv_cc_flag__Werror_nonnull 7559 if eval \${$cacheid+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565int 7566main () 7567{ 7568 7569 ; 7570 return 0; 7571} 7572_ACEOF 7573if ac_fn_c_try_link "$LINENO"; then : 7574 eval $cacheid=yes 7575else 7576 eval $cacheid=no 7577fi 7578rm -f core conftest.err conftest.$ac_objext \ 7579 conftest$ac_exeext conftest.$ac_ext 7580fi 7581 7582 7583 CFLAGS="$xorg_testset_save_CFLAGS" 7584 7585 eval supported=\$$cacheid 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7587$as_echo "$supported" >&6; } 7588 if test "$supported" = "yes" ; then 7589 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7590 found="yes" 7591 fi 7592 fi 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608xorg_testset_save_CFLAGS="$CFLAGS" 7609 7610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619int i; 7620_ACEOF 7621if ac_fn_c_try_compile "$LINENO"; then : 7622 xorg_cv_cc_flag_unknown_warning_option=yes 7623else 7624 xorg_cv_cc_flag_unknown_warning_option=no 7625fi 7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7627fi 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7631 CFLAGS="$xorg_testset_save_CFLAGS" 7632fi 7633 7634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 fi 7638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646int i; 7647_ACEOF 7648if ac_fn_c_try_compile "$LINENO"; then : 7649 xorg_cv_cc_flag_unused_command_line_argument=yes 7650else 7651 xorg_cv_cc_flag_unused_command_line_argument=no 7652fi 7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7654fi 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659fi 7660 7661found="no" 7662 7663 if test $found = "no" ; then 7664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7666 fi 7667 7668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7670 fi 7671 7672 CFLAGS="$CFLAGS -Werror=init-self" 7673 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7675$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7676 cacheid=xorg_cv_cc_flag__Werror_init_self 7677 if eval \${$cacheid+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682int i; 7683int 7684main () 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_link "$LINENO"; then : 7692 eval $cacheid=yes 7693else 7694 eval $cacheid=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext \ 7697 conftest$ac_exeext conftest.$ac_ext 7698fi 7699 7700 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702 7703 eval supported=\$$cacheid 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7705$as_echo "$supported" >&6; } 7706 if test "$supported" = "yes" ; then 7707 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7708 found="yes" 7709 fi 7710 fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726xorg_testset_save_CFLAGS="$CFLAGS" 7727 7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737int i; 7738_ACEOF 7739if ac_fn_c_try_compile "$LINENO"; then : 7740 xorg_cv_cc_flag_unknown_warning_option=yes 7741else 7742 xorg_cv_cc_flag_unknown_warning_option=no 7743fi 7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7745fi 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7749 CFLAGS="$xorg_testset_save_CFLAGS" 7750fi 7751 7752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 fi 7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765_ACEOF 7766if ac_fn_c_try_compile "$LINENO"; then : 7767 xorg_cv_cc_flag_unused_command_line_argument=yes 7768else 7769 xorg_cv_cc_flag_unused_command_line_argument=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777fi 7778 7779found="no" 7780 7781 if test $found = "no" ; then 7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 fi 7789 7790 CFLAGS="$CFLAGS -Werror=main" 7791 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7793$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7794 cacheid=xorg_cv_cc_flag__Werror_main 7795 if eval \${$cacheid+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800int i; 7801int 7802main () 7803{ 7804 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809if ac_fn_c_try_link "$LINENO"; then : 7810 eval $cacheid=yes 7811else 7812 eval $cacheid=no 7813fi 7814rm -f core conftest.err conftest.$ac_objext \ 7815 conftest$ac_exeext conftest.$ac_ext 7816fi 7817 7818 7819 CFLAGS="$xorg_testset_save_CFLAGS" 7820 7821 eval supported=\$$cacheid 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7823$as_echo "$supported" >&6; } 7824 if test "$supported" = "yes" ; then 7825 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7826 found="yes" 7827 fi 7828 fi 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844xorg_testset_save_CFLAGS="$CFLAGS" 7845 7846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856_ACEOF 7857if ac_fn_c_try_compile "$LINENO"; then : 7858 xorg_cv_cc_flag_unknown_warning_option=yes 7859else 7860 xorg_cv_cc_flag_unknown_warning_option=no 7861fi 7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868fi 7869 7870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO"; then : 7885 xorg_cv_cc_flag_unused_command_line_argument=yes 7886else 7887 xorg_cv_cc_flag_unused_command_line_argument=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897found="no" 7898 7899 if test $found = "no" ; then 7900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 fi 7903 7904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7906 fi 7907 7908 CFLAGS="$CFLAGS -Werror=missing-braces" 7909 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7911$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7912 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7913 if eval \${$cacheid+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917/* end confdefs.h. */ 7918int i; 7919int 7920main () 7921{ 7922 7923 ; 7924 return 0; 7925} 7926_ACEOF 7927if ac_fn_c_try_link "$LINENO"; then : 7928 eval $cacheid=yes 7929else 7930 eval $cacheid=no 7931fi 7932rm -f core conftest.err conftest.$ac_objext \ 7933 conftest$ac_exeext conftest.$ac_ext 7934fi 7935 7936 7937 CFLAGS="$xorg_testset_save_CFLAGS" 7938 7939 eval supported=\$$cacheid 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7941$as_echo "$supported" >&6; } 7942 if test "$supported" = "yes" ; then 7943 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7944 found="yes" 7945 fi 7946 fi 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962xorg_testset_save_CFLAGS="$CFLAGS" 7963 7964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_cc_flag_unknown_warning_option=yes 7977else 7978 xorg_cv_cc_flag_unknown_warning_option=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7991 fi 7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001_ACEOF 8002if ac_fn_c_try_compile "$LINENO"; then : 8003 xorg_cv_cc_flag_unused_command_line_argument=yes 8004else 8005 xorg_cv_cc_flag_unused_command_line_argument=no 8006fi 8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8008fi 8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013fi 8014 8015found="no" 8016 8017 if test $found = "no" ; then 8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8020 fi 8021 8022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024 fi 8025 8026 CFLAGS="$CFLAGS -Werror=sequence-point" 8027 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8029$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8030 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8031 if eval \${$cacheid+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037int 8038main () 8039{ 8040 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045if ac_fn_c_try_link "$LINENO"; then : 8046 eval $cacheid=yes 8047else 8048 eval $cacheid=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext \ 8051 conftest$ac_exeext conftest.$ac_ext 8052fi 8053 8054 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056 8057 eval supported=\$$cacheid 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8059$as_echo "$supported" >&6; } 8060 if test "$supported" = "yes" ; then 8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8062 found="yes" 8063 fi 8064 fi 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080xorg_testset_save_CFLAGS="$CFLAGS" 8081 8082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO"; then : 8094 xorg_cv_cc_flag_unknown_warning_option=yes 8095else 8096 xorg_cv_cc_flag_unknown_warning_option=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104fi 8105 8106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8109 fi 8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119_ACEOF 8120if ac_fn_c_try_compile "$LINENO"; then : 8121 xorg_cv_cc_flag_unused_command_line_argument=yes 8122else 8123 xorg_cv_cc_flag_unused_command_line_argument=no 8124fi 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8130 CFLAGS="$xorg_testset_save_CFLAGS" 8131fi 8132 8133found="no" 8134 8135 if test $found = "no" ; then 8136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8138 fi 8139 8140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8142 fi 8143 8144 CFLAGS="$CFLAGS -Werror=return-type" 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8147$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8148 cacheid=xorg_cv_cc_flag__Werror_return_type 8149 if eval \${$cacheid+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154int i; 8155int 8156main () 8157{ 8158 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163if ac_fn_c_try_link "$LINENO"; then : 8164 eval $cacheid=yes 8165else 8166 eval $cacheid=no 8167fi 8168rm -f core conftest.err conftest.$ac_objext \ 8169 conftest$ac_exeext conftest.$ac_ext 8170fi 8171 8172 8173 CFLAGS="$xorg_testset_save_CFLAGS" 8174 8175 eval supported=\$$cacheid 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8177$as_echo "$supported" >&6; } 8178 if test "$supported" = "yes" ; then 8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8180 found="yes" 8181 fi 8182 fi 8183 8184 if test $found = "no" ; then 8185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8187 fi 8188 8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 fi 8192 8193 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8194 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8196$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8197 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8198 if eval \${$cacheid+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204int 8205main () 8206{ 8207 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO"; then : 8213 eval $cacheid=yes 8214else 8215 eval $cacheid=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219fi 8220 8221 8222 CFLAGS="$xorg_testset_save_CFLAGS" 8223 8224 eval supported=\$$cacheid 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8226$as_echo "$supported" >&6; } 8227 if test "$supported" = "yes" ; then 8228 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8229 found="yes" 8230 fi 8231 fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247xorg_testset_save_CFLAGS="$CFLAGS" 8248 8249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255else 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258int i; 8259_ACEOF 8260if ac_fn_c_try_compile "$LINENO"; then : 8261 xorg_cv_cc_flag_unknown_warning_option=yes 8262else 8263 xorg_cv_cc_flag_unknown_warning_option=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8266fi 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271fi 8272 8273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286_ACEOF 8287if ac_fn_c_try_compile "$LINENO"; then : 8288 xorg_cv_cc_flag_unused_command_line_argument=yes 8289else 8290 xorg_cv_cc_flag_unused_command_line_argument=no 8291fi 8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8293fi 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298fi 8299 8300found="no" 8301 8302 if test $found = "no" ; then 8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 8307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309 fi 8310 8311 CFLAGS="$CFLAGS -Werror=trigraphs" 8312 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8314$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8315 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8316 if eval \${$cacheid+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8320/* end confdefs.h. */ 8321int i; 8322int 8323main () 8324{ 8325 8326 ; 8327 return 0; 8328} 8329_ACEOF 8330if ac_fn_c_try_link "$LINENO"; then : 8331 eval $cacheid=yes 8332else 8333 eval $cacheid=no 8334fi 8335rm -f core conftest.err conftest.$ac_objext \ 8336 conftest$ac_exeext conftest.$ac_ext 8337fi 8338 8339 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8341 8342 eval supported=\$$cacheid 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8344$as_echo "$supported" >&6; } 8345 if test "$supported" = "yes" ; then 8346 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8347 found="yes" 8348 fi 8349 fi 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365xorg_testset_save_CFLAGS="$CFLAGS" 8366 8367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377_ACEOF 8378if ac_fn_c_try_compile "$LINENO"; then : 8379 xorg_cv_cc_flag_unknown_warning_option=yes 8380else 8381 xorg_cv_cc_flag_unknown_warning_option=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389fi 8390 8391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403int i; 8404_ACEOF 8405if ac_fn_c_try_compile "$LINENO"; then : 8406 xorg_cv_cc_flag_unused_command_line_argument=yes 8407else 8408 xorg_cv_cc_flag_unused_command_line_argument=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8411fi 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416fi 8417 8418found="no" 8419 8420 if test $found = "no" ; then 8421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8423 fi 8424 8425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8427 fi 8428 8429 CFLAGS="$CFLAGS -Werror=array-bounds" 8430 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8432$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8433 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8434 if eval \${$cacheid+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440int 8441main () 8442{ 8443 8444 ; 8445 return 0; 8446} 8447_ACEOF 8448if ac_fn_c_try_link "$LINENO"; then : 8449 eval $cacheid=yes 8450else 8451 eval $cacheid=no 8452fi 8453rm -f core conftest.err conftest.$ac_objext \ 8454 conftest$ac_exeext conftest.$ac_ext 8455fi 8456 8457 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 8460 eval supported=\$$cacheid 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8462$as_echo "$supported" >&6; } 8463 if test "$supported" = "yes" ; then 8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8465 found="yes" 8466 fi 8467 fi 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483xorg_testset_save_CFLAGS="$CFLAGS" 8484 8485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495_ACEOF 8496if ac_fn_c_try_compile "$LINENO"; then : 8497 xorg_cv_cc_flag_unknown_warning_option=yes 8498else 8499 xorg_cv_cc_flag_unknown_warning_option=no 8500fi 8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8506 CFLAGS="$xorg_testset_save_CFLAGS" 8507fi 8508 8509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 fi 8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO"; then : 8524 xorg_cv_cc_flag_unused_command_line_argument=yes 8525else 8526 xorg_cv_cc_flag_unused_command_line_argument=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534fi 8535 8536found="no" 8537 8538 if test $found = "no" ; then 8539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8541 fi 8542 8543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8545 fi 8546 8547 CFLAGS="$CFLAGS -Werror=write-strings" 8548 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8550$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8551 cacheid=xorg_cv_cc_flag__Werror_write_strings 8552 if eval \${$cacheid+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566if ac_fn_c_try_link "$LINENO"; then : 8567 eval $cacheid=yes 8568else 8569 eval $cacheid=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext \ 8572 conftest$ac_exeext conftest.$ac_ext 8573fi 8574 8575 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577 8578 eval supported=\$$cacheid 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8580$as_echo "$supported" >&6; } 8581 if test "$supported" = "yes" ; then 8582 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8583 found="yes" 8584 fi 8585 fi 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601xorg_testset_save_CFLAGS="$CFLAGS" 8602 8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO"; then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616else 8617 xorg_cv_cc_flag_unknown_warning_option=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638/* end confdefs.h. */ 8639int i; 8640_ACEOF 8641if ac_fn_c_try_compile "$LINENO"; then : 8642 xorg_cv_cc_flag_unused_command_line_argument=yes 8643else 8644 xorg_cv_cc_flag_unused_command_line_argument=no 8645fi 8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8647fi 8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8651 CFLAGS="$xorg_testset_save_CFLAGS" 8652fi 8653 8654found="no" 8655 8656 if test $found = "no" ; then 8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 fi 8660 8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8663 fi 8664 8665 CFLAGS="$CFLAGS -Werror=address" 8666 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8668$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8669 cacheid=xorg_cv_cc_flag__Werror_address 8670 if eval \${$cacheid+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676int 8677main () 8678{ 8679 8680 ; 8681 return 0; 8682} 8683_ACEOF 8684if ac_fn_c_try_link "$LINENO"; then : 8685 eval $cacheid=yes 8686else 8687 eval $cacheid=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext \ 8690 conftest$ac_exeext conftest.$ac_ext 8691fi 8692 8693 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695 8696 eval supported=\$$cacheid 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8698$as_echo "$supported" >&6; } 8699 if test "$supported" = "yes" ; then 8700 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8701 found="yes" 8702 fi 8703 fi 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719xorg_testset_save_CFLAGS="$CFLAGS" 8720 8721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730int i; 8731_ACEOF 8732if ac_fn_c_try_compile "$LINENO"; then : 8733 xorg_cv_cc_flag_unknown_warning_option=yes 8734else 8735 xorg_cv_cc_flag_unknown_warning_option=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8748 fi 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO"; then : 8760 xorg_cv_cc_flag_unused_command_line_argument=yes 8761else 8762 xorg_cv_cc_flag_unused_command_line_argument=no 8763fi 8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8784 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8786$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8788 if eval \${$cacheid+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793int i; 8794int 8795main () 8796{ 8797 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802if ac_fn_c_try_link "$LINENO"; then : 8803 eval $cacheid=yes 8804else 8805 eval $cacheid=no 8806fi 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809fi 8810 8811 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813 8814 eval supported=\$$cacheid 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8816$as_echo "$supported" >&6; } 8817 if test "$supported" = "yes" ; then 8818 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8819 found="yes" 8820 fi 8821 fi 8822 8823 if test $found = "no" ; then 8824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 fi 8827 8828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8830 fi 8831 8832 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8833 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8835$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8836 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8837 if eval \${$cacheid+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843int 8844main () 8845{ 8846 8847 ; 8848 return 0; 8849} 8850_ACEOF 8851if ac_fn_c_try_link "$LINENO"; then : 8852 eval $cacheid=yes 8853else 8854 eval $cacheid=no 8855fi 8856rm -f core conftest.err conftest.$ac_objext \ 8857 conftest$ac_exeext conftest.$ac_ext 8858fi 8859 8860 8861 CFLAGS="$xorg_testset_save_CFLAGS" 8862 8863 eval supported=\$$cacheid 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8865$as_echo "$supported" >&6; } 8866 if test "$supported" = "yes" ; then 8867 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8868 found="yes" 8869 fi 8870 fi 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886xorg_testset_save_CFLAGS="$CFLAGS" 8887 8888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 xorg_cv_cc_flag_unknown_warning_option=yes 8901else 8902 xorg_cv_cc_flag_unknown_warning_option=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910fi 8911 8912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8915 fi 8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921else 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924int i; 8925_ACEOF 8926if ac_fn_c_try_compile "$LINENO"; then : 8927 xorg_cv_cc_flag_unused_command_line_argument=yes 8928else 8929 xorg_cv_cc_flag_unused_command_line_argument=no 8930fi 8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8932fi 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8936 CFLAGS="$xorg_testset_save_CFLAGS" 8937fi 8938 8939found="no" 8940 8941 if test $found = "no" ; then 8942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 fi 8945 8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8948 fi 8949 8950 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8951 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8953$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8954 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8955 if eval \${$cacheid+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961int 8962main () 8963{ 8964 8965 ; 8966 return 0; 8967} 8968_ACEOF 8969if ac_fn_c_try_link "$LINENO"; then : 8970 eval $cacheid=yes 8971else 8972 eval $cacheid=no 8973fi 8974rm -f core conftest.err conftest.$ac_objext \ 8975 conftest$ac_exeext conftest.$ac_ext 8976fi 8977 8978 8979 CFLAGS="$xorg_testset_save_CFLAGS" 8980 8981 eval supported=\$$cacheid 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8983$as_echo "$supported" >&6; } 8984 if test "$supported" = "yes" ; then 8985 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8986 found="yes" 8987 fi 8988 fi 8989 8990 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8991else 8992{ $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 8993$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;} 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007xorg_testset_save_CFLAGS="$CFLAGS" 9008 9009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9014 $as_echo_n "(cached) " >&6 9015else 9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017/* end confdefs.h. */ 9018int i; 9019_ACEOF 9020if ac_fn_c_try_compile "$LINENO"; then : 9021 xorg_cv_cc_flag_unknown_warning_option=yes 9022else 9023 xorg_cv_cc_flag_unknown_warning_option=no 9024fi 9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031fi 9032 9033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 fi 9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045int i; 9046_ACEOF 9047if ac_fn_c_try_compile "$LINENO"; then : 9048 xorg_cv_cc_flag_unused_command_line_argument=yes 9049else 9050 xorg_cv_cc_flag_unused_command_line_argument=no 9051fi 9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9053fi 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058fi 9059 9060found="no" 9061 9062 if test $found = "no" ; then 9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9065 fi 9066 9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9069 fi 9070 9071 CFLAGS="$CFLAGS -Wimplicit" 9072 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9074$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9075 cacheid=xorg_cv_cc_flag__Wimplicit 9076 if eval \${$cacheid+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081int i; 9082int 9083main () 9084{ 9085 9086 ; 9087 return 0; 9088} 9089_ACEOF 9090if ac_fn_c_try_link "$LINENO"; then : 9091 eval $cacheid=yes 9092else 9093 eval $cacheid=no 9094fi 9095rm -f core conftest.err conftest.$ac_objext \ 9096 conftest$ac_exeext conftest.$ac_ext 9097fi 9098 9099 9100 CFLAGS="$xorg_testset_save_CFLAGS" 9101 9102 eval supported=\$$cacheid 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9104$as_echo "$supported" >&6; } 9105 if test "$supported" = "yes" ; then 9106 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9107 found="yes" 9108 fi 9109 fi 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125xorg_testset_save_CFLAGS="$CFLAGS" 9126 9127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9135/* end confdefs.h. */ 9136int i; 9137_ACEOF 9138if ac_fn_c_try_compile "$LINENO"; then : 9139 xorg_cv_cc_flag_unknown_warning_option=yes 9140else 9141 xorg_cv_cc_flag_unknown_warning_option=no 9142fi 9143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9144fi 9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149fi 9150 9151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 fi 9155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9159 $as_echo_n "(cached) " >&6 9160else 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162/* end confdefs.h. */ 9163int i; 9164_ACEOF 9165if ac_fn_c_try_compile "$LINENO"; then : 9166 xorg_cv_cc_flag_unused_command_line_argument=yes 9167else 9168 xorg_cv_cc_flag_unused_command_line_argument=no 9169fi 9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9171fi 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9175 CFLAGS="$xorg_testset_save_CFLAGS" 9176fi 9177 9178found="no" 9179 9180 if test $found = "no" ; then 9181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9183 fi 9184 9185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 fi 9188 9189 CFLAGS="$CFLAGS -Wnonnull" 9190 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9192$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9193 cacheid=xorg_cv_cc_flag__Wnonnull 9194 if eval \${$cacheid+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9198/* end confdefs.h. */ 9199int i; 9200int 9201main () 9202{ 9203 9204 ; 9205 return 0; 9206} 9207_ACEOF 9208if ac_fn_c_try_link "$LINENO"; then : 9209 eval $cacheid=yes 9210else 9211 eval $cacheid=no 9212fi 9213rm -f core conftest.err conftest.$ac_objext \ 9214 conftest$ac_exeext conftest.$ac_ext 9215fi 9216 9217 9218 CFLAGS="$xorg_testset_save_CFLAGS" 9219 9220 eval supported=\$$cacheid 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9222$as_echo "$supported" >&6; } 9223 if test "$supported" = "yes" ; then 9224 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9225 found="yes" 9226 fi 9227 fi 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243xorg_testset_save_CFLAGS="$CFLAGS" 9244 9245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9253/* end confdefs.h. */ 9254int i; 9255_ACEOF 9256if ac_fn_c_try_compile "$LINENO"; then : 9257 xorg_cv_cc_flag_unknown_warning_option=yes 9258else 9259 xorg_cv_cc_flag_unknown_warning_option=no 9260fi 9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9262fi 9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267fi 9268 9269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9277 $as_echo_n "(cached) " >&6 9278else 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280/* end confdefs.h. */ 9281int i; 9282_ACEOF 9283if ac_fn_c_try_compile "$LINENO"; then : 9284 xorg_cv_cc_flag_unused_command_line_argument=yes 9285else 9286 xorg_cv_cc_flag_unused_command_line_argument=no 9287fi 9288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9289fi 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294fi 9295 9296found="no" 9297 9298 if test $found = "no" ; then 9299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301 fi 9302 9303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9305 fi 9306 9307 CFLAGS="$CFLAGS -Winit-self" 9308 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9310$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9311 cacheid=xorg_cv_cc_flag__Winit_self 9312 if eval \${$cacheid+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318int 9319main () 9320{ 9321 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326if ac_fn_c_try_link "$LINENO"; then : 9327 eval $cacheid=yes 9328else 9329 eval $cacheid=no 9330fi 9331rm -f core conftest.err conftest.$ac_objext \ 9332 conftest$ac_exeext conftest.$ac_ext 9333fi 9334 9335 9336 CFLAGS="$xorg_testset_save_CFLAGS" 9337 9338 eval supported=\$$cacheid 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9340$as_echo "$supported" >&6; } 9341 if test "$supported" = "yes" ; then 9342 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9343 found="yes" 9344 fi 9345 fi 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361xorg_testset_save_CFLAGS="$CFLAGS" 9362 9363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9368 $as_echo_n "(cached) " >&6 9369else 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9371/* end confdefs.h. */ 9372int i; 9373_ACEOF 9374if ac_fn_c_try_compile "$LINENO"; then : 9375 xorg_cv_cc_flag_unknown_warning_option=yes 9376else 9377 xorg_cv_cc_flag_unknown_warning_option=no 9378fi 9379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9380fi 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9384 CFLAGS="$xorg_testset_save_CFLAGS" 9385fi 9386 9387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9390 fi 9391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396else 9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9398/* end confdefs.h. */ 9399int i; 9400_ACEOF 9401if ac_fn_c_try_compile "$LINENO"; then : 9402 xorg_cv_cc_flag_unused_command_line_argument=yes 9403else 9404 xorg_cv_cc_flag_unused_command_line_argument=no 9405fi 9406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9407fi 9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9411 CFLAGS="$xorg_testset_save_CFLAGS" 9412fi 9413 9414found="no" 9415 9416 if test $found = "no" ; then 9417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9419 fi 9420 9421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9423 fi 9424 9425 CFLAGS="$CFLAGS -Wmain" 9426 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9428$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9429 cacheid=xorg_cv_cc_flag__Wmain 9430 if eval \${$cacheid+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435int i; 9436int 9437main () 9438{ 9439 9440 ; 9441 return 0; 9442} 9443_ACEOF 9444if ac_fn_c_try_link "$LINENO"; then : 9445 eval $cacheid=yes 9446else 9447 eval $cacheid=no 9448fi 9449rm -f core conftest.err conftest.$ac_objext \ 9450 conftest$ac_exeext conftest.$ac_ext 9451fi 9452 9453 9454 CFLAGS="$xorg_testset_save_CFLAGS" 9455 9456 eval supported=\$$cacheid 9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9458$as_echo "$supported" >&6; } 9459 if test "$supported" = "yes" ; then 9460 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9461 found="yes" 9462 fi 9463 fi 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479xorg_testset_save_CFLAGS="$CFLAGS" 9480 9481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9486 $as_echo_n "(cached) " >&6 9487else 9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9489/* end confdefs.h. */ 9490int i; 9491_ACEOF 9492if ac_fn_c_try_compile "$LINENO"; then : 9493 xorg_cv_cc_flag_unknown_warning_option=yes 9494else 9495 xorg_cv_cc_flag_unknown_warning_option=no 9496fi 9497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9498fi 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9502 CFLAGS="$xorg_testset_save_CFLAGS" 9503fi 9504 9505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9508 fi 9509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9513 $as_echo_n "(cached) " >&6 9514else 9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9516/* end confdefs.h. */ 9517int i; 9518_ACEOF 9519if ac_fn_c_try_compile "$LINENO"; then : 9520 xorg_cv_cc_flag_unused_command_line_argument=yes 9521else 9522 xorg_cv_cc_flag_unused_command_line_argument=no 9523fi 9524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9525fi 9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9529 CFLAGS="$xorg_testset_save_CFLAGS" 9530fi 9531 9532found="no" 9533 9534 if test $found = "no" ; then 9535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9537 fi 9538 9539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9541 fi 9542 9543 CFLAGS="$CFLAGS -Wmissing-braces" 9544 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9546$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9547 cacheid=xorg_cv_cc_flag__Wmissing_braces 9548 if eval \${$cacheid+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553int i; 9554int 9555main () 9556{ 9557 9558 ; 9559 return 0; 9560} 9561_ACEOF 9562if ac_fn_c_try_link "$LINENO"; then : 9563 eval $cacheid=yes 9564else 9565 eval $cacheid=no 9566fi 9567rm -f core conftest.err conftest.$ac_objext \ 9568 conftest$ac_exeext conftest.$ac_ext 9569fi 9570 9571 9572 CFLAGS="$xorg_testset_save_CFLAGS" 9573 9574 eval supported=\$$cacheid 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9576$as_echo "$supported" >&6; } 9577 if test "$supported" = "yes" ; then 9578 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9579 found="yes" 9580 fi 9581 fi 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597xorg_testset_save_CFLAGS="$CFLAGS" 9598 9599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608int i; 9609_ACEOF 9610if ac_fn_c_try_compile "$LINENO"; then : 9611 xorg_cv_cc_flag_unknown_warning_option=yes 9612else 9613 xorg_cv_cc_flag_unknown_warning_option=no 9614fi 9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9616fi 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621fi 9622 9623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 fi 9627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636_ACEOF 9637if ac_fn_c_try_compile "$LINENO"; then : 9638 xorg_cv_cc_flag_unused_command_line_argument=yes 9639else 9640 xorg_cv_cc_flag_unused_command_line_argument=no 9641fi 9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648fi 9649 9650found="no" 9651 9652 if test $found = "no" ; then 9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9655 fi 9656 9657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9659 fi 9660 9661 CFLAGS="$CFLAGS -Wsequence-point" 9662 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9664$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9665 cacheid=xorg_cv_cc_flag__Wsequence_point 9666 if eval \${$cacheid+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670/* end confdefs.h. */ 9671int i; 9672int 9673main () 9674{ 9675 9676 ; 9677 return 0; 9678} 9679_ACEOF 9680if ac_fn_c_try_link "$LINENO"; then : 9681 eval $cacheid=yes 9682else 9683 eval $cacheid=no 9684fi 9685rm -f core conftest.err conftest.$ac_objext \ 9686 conftest$ac_exeext conftest.$ac_ext 9687fi 9688 9689 9690 CFLAGS="$xorg_testset_save_CFLAGS" 9691 9692 eval supported=\$$cacheid 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9694$as_echo "$supported" >&6; } 9695 if test "$supported" = "yes" ; then 9696 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9697 found="yes" 9698 fi 9699 fi 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715xorg_testset_save_CFLAGS="$CFLAGS" 9716 9717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725/* end confdefs.h. */ 9726int i; 9727_ACEOF 9728if ac_fn_c_try_compile "$LINENO"; then : 9729 xorg_cv_cc_flag_unknown_warning_option=yes 9730else 9731 xorg_cv_cc_flag_unknown_warning_option=no 9732fi 9733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9734fi 9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9738 CFLAGS="$xorg_testset_save_CFLAGS" 9739fi 9740 9741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 fi 9745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9752/* end confdefs.h. */ 9753int i; 9754_ACEOF 9755if ac_fn_c_try_compile "$LINENO"; then : 9756 xorg_cv_cc_flag_unused_command_line_argument=yes 9757else 9758 xorg_cv_cc_flag_unused_command_line_argument=no 9759fi 9760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9761fi 9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9765 CFLAGS="$xorg_testset_save_CFLAGS" 9766fi 9767 9768found="no" 9769 9770 if test $found = "no" ; then 9771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9773 fi 9774 9775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9777 fi 9778 9779 CFLAGS="$CFLAGS -Wreturn-type" 9780 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9782$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9783 cacheid=xorg_cv_cc_flag__Wreturn_type 9784 if eval \${$cacheid+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790int 9791main () 9792{ 9793 9794 ; 9795 return 0; 9796} 9797_ACEOF 9798if ac_fn_c_try_link "$LINENO"; then : 9799 eval $cacheid=yes 9800else 9801 eval $cacheid=no 9802fi 9803rm -f core conftest.err conftest.$ac_objext \ 9804 conftest$ac_exeext conftest.$ac_ext 9805fi 9806 9807 9808 CFLAGS="$xorg_testset_save_CFLAGS" 9809 9810 eval supported=\$$cacheid 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9812$as_echo "$supported" >&6; } 9813 if test "$supported" = "yes" ; then 9814 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9815 found="yes" 9816 fi 9817 fi 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833xorg_testset_save_CFLAGS="$CFLAGS" 9834 9835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841else 9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843/* end confdefs.h. */ 9844int i; 9845_ACEOF 9846if ac_fn_c_try_compile "$LINENO"; then : 9847 xorg_cv_cc_flag_unknown_warning_option=yes 9848else 9849 xorg_cv_cc_flag_unknown_warning_option=no 9850fi 9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9852fi 9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857fi 9858 9859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 fi 9863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9867 $as_echo_n "(cached) " >&6 9868else 9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9870/* end confdefs.h. */ 9871int i; 9872_ACEOF 9873if ac_fn_c_try_compile "$LINENO"; then : 9874 xorg_cv_cc_flag_unused_command_line_argument=yes 9875else 9876 xorg_cv_cc_flag_unused_command_line_argument=no 9877fi 9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9879fi 9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9883 CFLAGS="$xorg_testset_save_CFLAGS" 9884fi 9885 9886found="no" 9887 9888 if test $found = "no" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 9893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9895 fi 9896 9897 CFLAGS="$CFLAGS -Wtrigraphs" 9898 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9900$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9901 cacheid=xorg_cv_cc_flag__Wtrigraphs 9902 if eval \${$cacheid+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907int i; 9908int 9909main () 9910{ 9911 9912 ; 9913 return 0; 9914} 9915_ACEOF 9916if ac_fn_c_try_link "$LINENO"; then : 9917 eval $cacheid=yes 9918else 9919 eval $cacheid=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext \ 9922 conftest$ac_exeext conftest.$ac_ext 9923fi 9924 9925 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 9928 eval supported=\$$cacheid 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9930$as_echo "$supported" >&6; } 9931 if test "$supported" = "yes" ; then 9932 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9933 found="yes" 9934 fi 9935 fi 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951xorg_testset_save_CFLAGS="$CFLAGS" 9952 9953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962int i; 9963_ACEOF 9964if ac_fn_c_try_compile "$LINENO"; then : 9965 xorg_cv_cc_flag_unknown_warning_option=yes 9966else 9967 xorg_cv_cc_flag_unknown_warning_option=no 9968fi 9969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9970fi 9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9974 CFLAGS="$xorg_testset_save_CFLAGS" 9975fi 9976 9977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9980 fi 9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986else 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989int i; 9990_ACEOF 9991if ac_fn_c_try_compile "$LINENO"; then : 9992 xorg_cv_cc_flag_unused_command_line_argument=yes 9993else 9994 xorg_cv_cc_flag_unused_command_line_argument=no 9995fi 9996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9997fi 9998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10001 CFLAGS="$xorg_testset_save_CFLAGS" 10002fi 10003 10004found="no" 10005 10006 if test $found = "no" ; then 10007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10009 fi 10010 10011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10013 fi 10014 10015 CFLAGS="$CFLAGS -Warray-bounds" 10016 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10018$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 10019 cacheid=xorg_cv_cc_flag__Warray_bounds 10020 if eval \${$cacheid+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022else 10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025int i; 10026int 10027main () 10028{ 10029 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO"; then : 10035 eval $cacheid=yes 10036else 10037 eval $cacheid=no 10038fi 10039rm -f core conftest.err conftest.$ac_objext \ 10040 conftest$ac_exeext conftest.$ac_ext 10041fi 10042 10043 10044 CFLAGS="$xorg_testset_save_CFLAGS" 10045 10046 eval supported=\$$cacheid 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10048$as_echo "$supported" >&6; } 10049 if test "$supported" = "yes" ; then 10050 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10051 found="yes" 10052 fi 10053 fi 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069xorg_testset_save_CFLAGS="$CFLAGS" 10070 10071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10076 $as_echo_n "(cached) " >&6 10077else 10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080int i; 10081_ACEOF 10082if ac_fn_c_try_compile "$LINENO"; then : 10083 xorg_cv_cc_flag_unknown_warning_option=yes 10084else 10085 xorg_cv_cc_flag_unknown_warning_option=no 10086fi 10087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10088fi 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10092 CFLAGS="$xorg_testset_save_CFLAGS" 10093fi 10094 10095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098 fi 10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10103 $as_echo_n "(cached) " >&6 10104else 10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106/* end confdefs.h. */ 10107int i; 10108_ACEOF 10109if ac_fn_c_try_compile "$LINENO"; then : 10110 xorg_cv_cc_flag_unused_command_line_argument=yes 10111else 10112 xorg_cv_cc_flag_unused_command_line_argument=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120fi 10121 10122found="no" 10123 10124 if test $found = "no" ; then 10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 fi 10128 10129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10131 fi 10132 10133 CFLAGS="$CFLAGS -Wwrite-strings" 10134 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10136$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10137 cacheid=xorg_cv_cc_flag__Wwrite_strings 10138 if eval \${$cacheid+:} false; then : 10139 $as_echo_n "(cached) " >&6 10140else 10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143int i; 10144int 10145main () 10146{ 10147 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152if ac_fn_c_try_link "$LINENO"; then : 10153 eval $cacheid=yes 10154else 10155 eval $cacheid=no 10156fi 10157rm -f core conftest.err conftest.$ac_objext \ 10158 conftest$ac_exeext conftest.$ac_ext 10159fi 10160 10161 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163 10164 eval supported=\$$cacheid 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10166$as_echo "$supported" >&6; } 10167 if test "$supported" = "yes" ; then 10168 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10169 found="yes" 10170 fi 10171 fi 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187xorg_testset_save_CFLAGS="$CFLAGS" 10188 10189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199_ACEOF 10200if ac_fn_c_try_compile "$LINENO"; then : 10201 xorg_cv_cc_flag_unknown_warning_option=yes 10202else 10203 xorg_cv_cc_flag_unknown_warning_option=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10206fi 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211fi 10212 10213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10216 fi 10217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226_ACEOF 10227if ac_fn_c_try_compile "$LINENO"; then : 10228 xorg_cv_cc_flag_unused_command_line_argument=yes 10229else 10230 xorg_cv_cc_flag_unused_command_line_argument=no 10231fi 10232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10233fi 10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238fi 10239 10240found="no" 10241 10242 if test $found = "no" ; then 10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10245 fi 10246 10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10249 fi 10250 10251 CFLAGS="$CFLAGS -Waddress" 10252 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10254$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10255 cacheid=xorg_cv_cc_flag__Waddress 10256 if eval \${$cacheid+:} false; then : 10257 $as_echo_n "(cached) " >&6 10258else 10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10260/* end confdefs.h. */ 10261int i; 10262int 10263main () 10264{ 10265 10266 ; 10267 return 0; 10268} 10269_ACEOF 10270if ac_fn_c_try_link "$LINENO"; then : 10271 eval $cacheid=yes 10272else 10273 eval $cacheid=no 10274fi 10275rm -f core conftest.err conftest.$ac_objext \ 10276 conftest$ac_exeext conftest.$ac_ext 10277fi 10278 10279 10280 CFLAGS="$xorg_testset_save_CFLAGS" 10281 10282 eval supported=\$$cacheid 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10284$as_echo "$supported" >&6; } 10285 if test "$supported" = "yes" ; then 10286 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10287 found="yes" 10288 fi 10289 fi 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305xorg_testset_save_CFLAGS="$CFLAGS" 10306 10307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315/* end confdefs.h. */ 10316int i; 10317_ACEOF 10318if ac_fn_c_try_compile "$LINENO"; then : 10319 xorg_cv_cc_flag_unknown_warning_option=yes 10320else 10321 xorg_cv_cc_flag_unknown_warning_option=no 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10324fi 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10328 CFLAGS="$xorg_testset_save_CFLAGS" 10329fi 10330 10331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int i; 10344_ACEOF 10345if ac_fn_c_try_compile "$LINENO"; then : 10346 xorg_cv_cc_flag_unused_command_line_argument=yes 10347else 10348 xorg_cv_cc_flag_unused_command_line_argument=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10351fi 10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356fi 10357 10358found="no" 10359 10360 if test $found = "no" ; then 10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 fi 10364 10365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367 fi 10368 10369 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10370 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10372$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10373 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10374 if eval \${$cacheid+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379int i; 10380int 10381main () 10382{ 10383 10384 ; 10385 return 0; 10386} 10387_ACEOF 10388if ac_fn_c_try_link "$LINENO"; then : 10389 eval $cacheid=yes 10390else 10391 eval $cacheid=no 10392fi 10393rm -f core conftest.err conftest.$ac_objext \ 10394 conftest$ac_exeext conftest.$ac_ext 10395fi 10396 10397 10398 CFLAGS="$xorg_testset_save_CFLAGS" 10399 10400 eval supported=\$$cacheid 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10402$as_echo "$supported" >&6; } 10403 if test "$supported" = "yes" ; then 10404 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10405 found="yes" 10406 fi 10407 fi 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423xorg_testset_save_CFLAGS="$CFLAGS" 10424 10425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435_ACEOF 10436if ac_fn_c_try_compile "$LINENO"; then : 10437 xorg_cv_cc_flag_unknown_warning_option=yes 10438else 10439 xorg_cv_cc_flag_unknown_warning_option=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10452 fi 10453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int i; 10462_ACEOF 10463if ac_fn_c_try_compile "$LINENO"; then : 10464 xorg_cv_cc_flag_unused_command_line_argument=yes 10465else 10466 xorg_cv_cc_flag_unused_command_line_argument=no 10467fi 10468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10469fi 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10473 CFLAGS="$xorg_testset_save_CFLAGS" 10474fi 10475 10476found="no" 10477 10478 if test $found = "no" ; then 10479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 fi 10482 10483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10485 fi 10486 10487 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10488 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10490$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10491 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10492 if eval \${$cacheid+:} false; then : 10493 $as_echo_n "(cached) " >&6 10494else 10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10496/* end confdefs.h. */ 10497int i; 10498int 10499main () 10500{ 10501 10502 ; 10503 return 0; 10504} 10505_ACEOF 10506if ac_fn_c_try_link "$LINENO"; then : 10507 eval $cacheid=yes 10508else 10509 eval $cacheid=no 10510fi 10511rm -f core conftest.err conftest.$ac_objext \ 10512 conftest$ac_exeext conftest.$ac_ext 10513fi 10514 10515 10516 CFLAGS="$xorg_testset_save_CFLAGS" 10517 10518 eval supported=\$$cacheid 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10520$as_echo "$supported" >&6; } 10521 if test "$supported" = "yes" ; then 10522 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10523 found="yes" 10524 fi 10525 fi 10526 10527 10528fi 10529 10530 10531 10532 10533 10534 10535 10536 CWARNFLAGS="$BASE_CFLAGS" 10537 if test "x$GCC" = xyes ; then 10538 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10539 fi 10540 10541 10542 10543 10544 10545 10546 10547 10548# Check whether --enable-strict-compilation was given. 10549if test "${enable_strict_compilation+set}" = set; then : 10550 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10551else 10552 STRICT_COMPILE=no 10553fi 10554 10555 10556 10557 10558 10559 10560STRICT_CFLAGS="" 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574xorg_testset_save_CFLAGS="$CFLAGS" 10575 10576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585int i; 10586_ACEOF 10587if ac_fn_c_try_compile "$LINENO"; then : 10588 xorg_cv_cc_flag_unknown_warning_option=yes 10589else 10590 xorg_cv_cc_flag_unknown_warning_option=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10593fi 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598fi 10599 10600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10603 fi 10604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10608 $as_echo_n "(cached) " >&6 10609else 10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10611/* end confdefs.h. */ 10612int i; 10613_ACEOF 10614if ac_fn_c_try_compile "$LINENO"; then : 10615 xorg_cv_cc_flag_unused_command_line_argument=yes 10616else 10617 xorg_cv_cc_flag_unused_command_line_argument=no 10618fi 10619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10620fi 10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10624 CFLAGS="$xorg_testset_save_CFLAGS" 10625fi 10626 10627found="no" 10628 10629 if test $found = "no" ; then 10630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10632 fi 10633 10634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10636 fi 10637 10638 CFLAGS="$CFLAGS -pedantic" 10639 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10641$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10642 cacheid=xorg_cv_cc_flag__pedantic 10643 if eval \${$cacheid+:} false; then : 10644 $as_echo_n "(cached) " >&6 10645else 10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647/* end confdefs.h. */ 10648int i; 10649int 10650main () 10651{ 10652 10653 ; 10654 return 0; 10655} 10656_ACEOF 10657if ac_fn_c_try_link "$LINENO"; then : 10658 eval $cacheid=yes 10659else 10660 eval $cacheid=no 10661fi 10662rm -f core conftest.err conftest.$ac_objext \ 10663 conftest$ac_exeext conftest.$ac_ext 10664fi 10665 10666 10667 CFLAGS="$xorg_testset_save_CFLAGS" 10668 10669 eval supported=\$$cacheid 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10671$as_echo "$supported" >&6; } 10672 if test "$supported" = "yes" ; then 10673 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10674 found="yes" 10675 fi 10676 fi 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692xorg_testset_save_CFLAGS="$CFLAGS" 10693 10694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703int i; 10704_ACEOF 10705if ac_fn_c_try_compile "$LINENO"; then : 10706 xorg_cv_cc_flag_unknown_warning_option=yes 10707else 10708 xorg_cv_cc_flag_unknown_warning_option=no 10709fi 10710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10711fi 10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10715 CFLAGS="$xorg_testset_save_CFLAGS" 10716fi 10717 10718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721 fi 10722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10726 $as_echo_n "(cached) " >&6 10727else 10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10729/* end confdefs.h. */ 10730int i; 10731_ACEOF 10732if ac_fn_c_try_compile "$LINENO"; then : 10733 xorg_cv_cc_flag_unused_command_line_argument=yes 10734else 10735 xorg_cv_cc_flag_unused_command_line_argument=no 10736fi 10737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10742 CFLAGS="$xorg_testset_save_CFLAGS" 10743fi 10744 10745found="no" 10746 10747 if test $found = "no" ; then 10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10750 fi 10751 10752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10754 fi 10755 10756 CFLAGS="$CFLAGS -Werror" 10757 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10759$as_echo_n "checking if $CC supports -Werror... " >&6; } 10760 cacheid=xorg_cv_cc_flag__Werror 10761 if eval \${$cacheid+:} false; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766int i; 10767int 10768main () 10769{ 10770 10771 ; 10772 return 0; 10773} 10774_ACEOF 10775if ac_fn_c_try_link "$LINENO"; then : 10776 eval $cacheid=yes 10777else 10778 eval $cacheid=no 10779fi 10780rm -f core conftest.err conftest.$ac_objext \ 10781 conftest$ac_exeext conftest.$ac_ext 10782fi 10783 10784 10785 CFLAGS="$xorg_testset_save_CFLAGS" 10786 10787 eval supported=\$$cacheid 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10789$as_echo "$supported" >&6; } 10790 if test "$supported" = "yes" ; then 10791 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10792 found="yes" 10793 fi 10794 fi 10795 10796 if test $found = "no" ; then 10797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10799 fi 10800 10801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10803 fi 10804 10805 CFLAGS="$CFLAGS -errwarn" 10806 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10808$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10809 cacheid=xorg_cv_cc_flag__errwarn 10810 if eval \${$cacheid+:} false; then : 10811 $as_echo_n "(cached) " >&6 10812else 10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815int i; 10816int 10817main () 10818{ 10819 10820 ; 10821 return 0; 10822} 10823_ACEOF 10824if ac_fn_c_try_link "$LINENO"; then : 10825 eval $cacheid=yes 10826else 10827 eval $cacheid=no 10828fi 10829rm -f core conftest.err conftest.$ac_objext \ 10830 conftest$ac_exeext conftest.$ac_ext 10831fi 10832 10833 10834 CFLAGS="$xorg_testset_save_CFLAGS" 10835 10836 eval supported=\$$cacheid 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10838$as_echo "$supported" >&6; } 10839 if test "$supported" = "yes" ; then 10840 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10841 found="yes" 10842 fi 10843 fi 10844 10845 10846 10847# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10848# activate it with -Werror, so we add it here explicitly. 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862xorg_testset_save_CFLAGS="$CFLAGS" 10863 10864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10869 $as_echo_n "(cached) " >&6 10870else 10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872/* end confdefs.h. */ 10873int i; 10874_ACEOF 10875if ac_fn_c_try_compile "$LINENO"; then : 10876 xorg_cv_cc_flag_unknown_warning_option=yes 10877else 10878 xorg_cv_cc_flag_unknown_warning_option=no 10879fi 10880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10881fi 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10885 CFLAGS="$xorg_testset_save_CFLAGS" 10886fi 10887 10888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10891 fi 10892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900int i; 10901_ACEOF 10902if ac_fn_c_try_compile "$LINENO"; then : 10903 xorg_cv_cc_flag_unused_command_line_argument=yes 10904else 10905 xorg_cv_cc_flag_unused_command_line_argument=no 10906fi 10907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10908fi 10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10912 CFLAGS="$xorg_testset_save_CFLAGS" 10913fi 10914 10915found="no" 10916 10917 if test $found = "no" ; then 10918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10920 fi 10921 10922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10924 fi 10925 10926 CFLAGS="$CFLAGS -Werror=attributes" 10927 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10929$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10930 cacheid=xorg_cv_cc_flag__Werror_attributes 10931 if eval \${$cacheid+:} false; then : 10932 $as_echo_n "(cached) " >&6 10933else 10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10935/* end confdefs.h. */ 10936int i; 10937int 10938main () 10939{ 10940 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_link "$LINENO"; then : 10946 eval $cacheid=yes 10947else 10948 eval $cacheid=no 10949fi 10950rm -f core conftest.err conftest.$ac_objext \ 10951 conftest$ac_exeext conftest.$ac_ext 10952fi 10953 10954 10955 CFLAGS="$xorg_testset_save_CFLAGS" 10956 10957 eval supported=\$$cacheid 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10959$as_echo "$supported" >&6; } 10960 if test "$supported" = "yes" ; then 10961 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10962 found="yes" 10963 fi 10964 fi 10965 10966 10967 10968if test "x$STRICT_COMPILE" = "xyes"; then 10969 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10970 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10971fi 10972 10973 10974 10975 10976 10977 10978cat >>confdefs.h <<_ACEOF 10979#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10980_ACEOF 10981 10982 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10983 if test "x$PVM" = "x"; then 10984 PVM="0" 10985 fi 10986 10987cat >>confdefs.h <<_ACEOF 10988#define PACKAGE_VERSION_MINOR $PVM 10989_ACEOF 10990 10991 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10992 if test "x$PVP" = "x"; then 10993 PVP="0" 10994 fi 10995 10996cat >>confdefs.h <<_ACEOF 10997#define PACKAGE_VERSION_PATCHLEVEL $PVP 10998_ACEOF 10999 11000 11001 11002CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 11003mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11004|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11005echo 'git directory not found: installing possibly empty changelog.' >&2)" 11006 11007 11008 11009 11010macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11011INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11012mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11013|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11014echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11015 11016 11017 11018 11019 11020 11021if test x$APP_MAN_SUFFIX = x ; then 11022 APP_MAN_SUFFIX=1 11023fi 11024if test x$APP_MAN_DIR = x ; then 11025 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11026fi 11027 11028if test x$LIB_MAN_SUFFIX = x ; then 11029 LIB_MAN_SUFFIX=3 11030fi 11031if test x$LIB_MAN_DIR = x ; then 11032 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11033fi 11034 11035if test x$FILE_MAN_SUFFIX = x ; then 11036 case $host_os in 11037 # Solaris 2.0 - 11 use SysV man page sections 11038 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 11039 *) FILE_MAN_SUFFIX=5 ;; 11040 esac 11041fi 11042if test x$FILE_MAN_DIR = x ; then 11043 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11044fi 11045 11046if test x$MISC_MAN_SUFFIX = x ; then 11047 case $host_os in 11048 # Solaris 2.0 - 11 use SysV man page sections 11049 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 11050 *) MISC_MAN_SUFFIX=7 ;; 11051 esac 11052fi 11053if test x$MISC_MAN_DIR = x ; then 11054 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11055fi 11056 11057if test x$DRIVER_MAN_SUFFIX = x ; then 11058 case $host_os in 11059 # Solaris 2.0 - 11 use SysV man page sections 11060 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 11061 *) DRIVER_MAN_SUFFIX=4 ;; 11062 esac 11063fi 11064if test x$DRIVER_MAN_DIR = x ; then 11065 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11066fi 11067 11068if test x$ADMIN_MAN_SUFFIX = x ; then 11069 case $host_os in 11070 # Solaris 2.0 - 11 use SysV man page sections 11071 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 11072 *) ADMIN_MAN_SUFFIX=8 ;; 11073 esac 11074fi 11075if test x$ADMIN_MAN_DIR = x ; then 11076 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11077fi 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093XORG_MAN_PAGE="X Version 11" 11094 11095MAN_SUBSTS="\ 11096 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11097 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11098 -e 's|__xservername__|Xorg|g' \ 11099 -e 's|__xconfigfile__|xorg.conf|g' \ 11100 -e 's|__projectroot__|\$(prefix)|g' \ 11101 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11102 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11103 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11104 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11105 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11106 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11107 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11108 11109 11110 11111# Check whether --enable-silent-rules was given. 11112if test "${enable_silent_rules+set}" = set; then : 11113 enableval=$enable_silent_rules; 11114fi 11115 11116case $enable_silent_rules in # ((( 11117 yes) AM_DEFAULT_VERBOSITY=0;; 11118 no) AM_DEFAULT_VERBOSITY=1;; 11119 *) AM_DEFAULT_VERBOSITY=0;; 11120esac 11121am_make=${MAKE-make} 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11123$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11124if ${am_cv_make_support_nested_variables+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 if $as_echo 'TRUE=$(BAR$(V)) 11128BAR0=false 11129BAR1=true 11130V=1 11131am__doit: 11132 @$(TRUE) 11133.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11134 am_cv_make_support_nested_variables=yes 11135else 11136 am_cv_make_support_nested_variables=no 11137fi 11138fi 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11140$as_echo "$am_cv_make_support_nested_variables" >&6; } 11141if test $am_cv_make_support_nested_variables = yes; then 11142 AM_V='$(V)' 11143 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11144else 11145 AM_V=$AM_DEFAULT_VERBOSITY 11146 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11147fi 11148AM_BACKSLASH='\' 11149 11150 11151 11152 11153 11154 11155 11156# Check whether --with-lint was given. 11157if test "${with_lint+set}" = set; then : 11158 withval=$with_lint; use_lint=$withval 11159else 11160 use_lint=no 11161fi 11162 11163 11164# Obtain platform specific info like program name and options 11165# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11166case $host_os in 11167 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11168 lint_name=splint 11169 lint_options="-badflag" 11170 ;; 11171 *freebsd* | *netbsd*) 11172 lint_name=lint 11173 lint_options="-u -b" 11174 ;; 11175 *solaris*) 11176 lint_name=lint 11177 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11178 ;; 11179esac 11180 11181# Test for the presence of the program (either guessed by the code or spelled out by the user) 11182if test "x$use_lint" = x"yes" ; then 11183 # Extract the first word of "$lint_name", so it can be a program name with args. 11184set dummy $lint_name; ac_word=$2 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11186$as_echo_n "checking for $ac_word... " >&6; } 11187if ${ac_cv_path_LINT+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 case $LINT in 11191 [\\/]* | ?:[\\/]*) 11192 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11193 ;; 11194 *) 11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11196for as_dir in $PATH 11197do 11198 IFS=$as_save_IFS 11199 test -z "$as_dir" && as_dir=. 11200 for ac_exec_ext in '' $ac_executable_extensions; do 11201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11202 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11204 break 2 11205 fi 11206done 11207 done 11208IFS=$as_save_IFS 11209 11210 ;; 11211esac 11212fi 11213LINT=$ac_cv_path_LINT 11214if test -n "$LINT"; then 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11216$as_echo "$LINT" >&6; } 11217else 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11219$as_echo "no" >&6; } 11220fi 11221 11222 11223 if test "x$LINT" = "x"; then 11224 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11225 fi 11226elif test "x$use_lint" = x"no" ; then 11227 if test "x$LINT" != "x"; then 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11229$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11230 fi 11231else 11232 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11233fi 11234 11235# User supplied flags override default flags 11236if test "x$LINT_FLAGS" != "x"; then 11237 lint_options=$LINT_FLAGS 11238fi 11239 11240LINT_FLAGS=$lint_options 11241 11242 if test "x$LINT" != x; then 11243 LINT_TRUE= 11244 LINT_FALSE='#' 11245else 11246 LINT_TRUE='#' 11247 LINT_FALSE= 11248fi 11249 11250 11251 11252 11253# Checks for header files. 11254for ac_header in lastlog.h pwd.h utmp.h utmpx.h sys/param.h 11255do : 11256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11257ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11258if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11259 cat >>confdefs.h <<_ACEOF 11260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11261_ACEOF 11262 11263fi 11264 11265done 11266 11267 11268# Checks for typedefs, structures, and compiler characteristics. 11269ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 11270 #include <sys/types.h> 11271 #include <utmp.h> 11272 11273" 11274if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : 11275 11276cat >>confdefs.h <<_ACEOF 11277#define HAVE_STRUCT_UTMP_UT_HOST 1 11278_ACEOF 11279 11280 11281fi 11282ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " 11283 #include <sys/types.h> 11284 #include <utmp.h> 11285 11286" 11287if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then : 11288 11289cat >>confdefs.h <<_ACEOF 11290#define HAVE_STRUCT_UTMP_UT_ID 1 11291_ACEOF 11292 11293 11294fi 11295ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " 11296 #include <sys/types.h> 11297 #include <utmp.h> 11298 11299" 11300if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : 11301 11302cat >>confdefs.h <<_ACEOF 11303#define HAVE_STRUCT_UTMP_UT_PID 1 11304_ACEOF 11305 11306 11307fi 11308ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " 11309 #include <sys/types.h> 11310 #include <utmp.h> 11311 11312" 11313if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then : 11314 11315cat >>confdefs.h <<_ACEOF 11316#define HAVE_STRUCT_UTMP_UT_TYPE 1 11317_ACEOF 11318 11319 11320fi 11321 11322ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h> 11323" 11324if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then : 11325 11326cat >>confdefs.h <<_ACEOF 11327#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 11328_ACEOF 11329 11330 11331fi 11332 11333ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 11334 #include <sys/types.h> 11335 #ifdef HAVE_UTMP_H 11336 #include <utmp.h> 11337 #endif 11338 #ifdef HAVE_LASTLOG_H 11339 #include <lastlog.h> 11340 #endif 11341 11342" 11343if test "x$ac_cv_type_struct_lastlog" = xyes; then : 11344 11345cat >>confdefs.h <<_ACEOF 11346#define HAVE_STRUCT_LASTLOG 1 11347_ACEOF 11348 11349 11350fi 11351 11352 11353# Checks for library functions. 11354for ac_func in pututline updwtmpx utmpxname 11355do : 11356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11357ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11358if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11359 cat >>confdefs.h <<_ACEOF 11360#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11361_ACEOF 11362 11363fi 11364done 11365 11366 11367# Obtain compiler/linker options for depedencies 11368 11369pkg_failed=no 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5 11371$as_echo_n "checking for SESSREG... " >&6; } 11372 11373if test -n "$SESSREG_CFLAGS"; then 11374 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS" 11375 elif test -n "$PKG_CONFIG"; then 11376 if test -n "$PKG_CONFIG" && \ 11377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11378 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11379 ac_status=$? 11380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11381 test $ac_status = 0; }; then 11382 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 11383 test "x$?" != "x0" && pkg_failed=yes 11384else 11385 pkg_failed=yes 11386fi 11387 else 11388 pkg_failed=untried 11389fi 11390if test -n "$SESSREG_LIBS"; then 11391 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS" 11392 elif test -n "$PKG_CONFIG"; then 11393 if test -n "$PKG_CONFIG" && \ 11394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11395 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11396 ac_status=$? 11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11398 test $ac_status = 0; }; then 11399 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 11400 test "x$?" != "x0" && pkg_failed=yes 11401else 11402 pkg_failed=yes 11403fi 11404 else 11405 pkg_failed=untried 11406fi 11407 11408 11409 11410if test $pkg_failed = yes; then 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11412$as_echo "no" >&6; } 11413 11414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11415 _pkg_short_errors_supported=yes 11416else 11417 _pkg_short_errors_supported=no 11418fi 11419 if test $_pkg_short_errors_supported = yes; then 11420 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 11421 else 11422 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 11423 fi 11424 # Put the nasty error message in config.log where it belongs 11425 echo "$SESSREG_PKG_ERRORS" >&5 11426 11427 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 11428 11429$SESSREG_PKG_ERRORS 11430 11431Consider adjusting the PKG_CONFIG_PATH environment variable if you 11432installed software in a non-standard prefix. 11433 11434Alternatively, you may set the environment variables SESSREG_CFLAGS 11435and SESSREG_LIBS to avoid the need to call pkg-config. 11436See the pkg-config man page for more details." "$LINENO" 5 11437elif test $pkg_failed = untried; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11439$as_echo "no" >&6; } 11440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11442as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11443is in your PATH or set the PKG_CONFIG environment variable to the full 11444path to pkg-config. 11445 11446Alternatively, you may set the environment variables SESSREG_CFLAGS 11447and SESSREG_LIBS to avoid the need to call pkg-config. 11448See the pkg-config man page for more details. 11449 11450To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11451See \`config.log' for more details" "$LINENO" 5; } 11452else 11453 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS 11454 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11456$as_echo "yes" >&6; } 11457 11458fi 11459 11460ac_config_files="$ac_config_files Makefile man/Makefile" 11461 11462cat >confcache <<\_ACEOF 11463# This file is a shell script that caches the results of configure 11464# tests run on this system so they can be shared between configure 11465# scripts and configure runs, see configure's option --config-cache. 11466# It is not useful on other systems. If it contains results you don't 11467# want to keep, you may remove or edit it. 11468# 11469# config.status only pays attention to the cache file if you give it 11470# the --recheck option to rerun configure. 11471# 11472# `ac_cv_env_foo' variables (set or unset) will be overridden when 11473# loading this file, other *unset* `ac_cv_foo' will be assigned the 11474# following values. 11475 11476_ACEOF 11477 11478# The following way of writing the cache mishandles newlines in values, 11479# but we know of no workaround that is simple, portable, and efficient. 11480# So, we kill variables containing newlines. 11481# Ultrix sh set writes to stderr and can't be redirected directly, 11482# and sets the high bit in the cache file unless we assign to the vars. 11483( 11484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11485 eval ac_val=\$$ac_var 11486 case $ac_val in #( 11487 *${as_nl}*) 11488 case $ac_var in #( 11489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11491 esac 11492 case $ac_var in #( 11493 _ | IFS | as_nl) ;; #( 11494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11495 *) { eval $ac_var=; unset $ac_var;} ;; 11496 esac ;; 11497 esac 11498 done 11499 11500 (set) 2>&1 | 11501 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11502 *${as_nl}ac_space=\ *) 11503 # `set' does not quote correctly, so add quotes: double-quote 11504 # substitution turns \\\\ into \\, and sed turns \\ into \. 11505 sed -n \ 11506 "s/'/'\\\\''/g; 11507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11508 ;; #( 11509 *) 11510 # `set' quotes correctly as required by POSIX, so do not add quotes. 11511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11512 ;; 11513 esac | 11514 sort 11515) | 11516 sed ' 11517 /^ac_cv_env_/b end 11518 t clear 11519 :clear 11520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11521 t end 11522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11523 :end' >>confcache 11524if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11525 if test -w "$cache_file"; then 11526 if test "x$cache_file" != "x/dev/null"; then 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11528$as_echo "$as_me: updating cache $cache_file" >&6;} 11529 if test ! -f "$cache_file" || test -h "$cache_file"; then 11530 cat confcache >"$cache_file" 11531 else 11532 case $cache_file in #( 11533 */* | ?:*) 11534 mv -f confcache "$cache_file"$$ && 11535 mv -f "$cache_file"$$ "$cache_file" ;; #( 11536 *) 11537 mv -f confcache "$cache_file" ;; 11538 esac 11539 fi 11540 fi 11541 else 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11543$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11544 fi 11545fi 11546rm -f confcache 11547 11548test "x$prefix" = xNONE && prefix=$ac_default_prefix 11549# Let make expand exec_prefix. 11550test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11551 11552DEFS=-DHAVE_CONFIG_H 11553 11554ac_libobjs= 11555ac_ltlibobjs= 11556U= 11557for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11558 # 1. Remove the extension, and $U if already installed. 11559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11562 # will be set to the directory where LIBOBJS objects are built. 11563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11565done 11566LIBOBJS=$ac_libobjs 11567 11568LTLIBOBJS=$ac_ltlibobjs 11569 11570 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11572$as_echo_n "checking that generated files are newer than configure... " >&6; } 11573 if test -n "$am_sleep_pid"; then 11574 # Hide warnings about reused PIDs. 11575 wait $am_sleep_pid 2>/dev/null 11576 fi 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11578$as_echo "done" >&6; } 11579if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11580 as_fn_error $? "conditional \"AMDEP\" was never defined. 11581Usually this means the macro was only invoked conditionally." "$LINENO" 5 11582fi 11583if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11584 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11585Usually this means the macro was only invoked conditionally." "$LINENO" 5 11586fi 11587 if test -n "$EXEEXT"; then 11588 am__EXEEXT_TRUE= 11589 am__EXEEXT_FALSE='#' 11590else 11591 am__EXEEXT_TRUE='#' 11592 am__EXEEXT_FALSE= 11593fi 11594 11595if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11596 as_fn_error $? "conditional \"LINT\" was never defined. 11597Usually this means the macro was only invoked conditionally." "$LINENO" 5 11598fi 11599 11600: "${CONFIG_STATUS=./config.status}" 11601ac_write_fail=0 11602ac_clean_files_save=$ac_clean_files 11603ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11604{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11605$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11606as_write_fail=0 11607cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11608#! $SHELL 11609# Generated by $as_me. 11610# Run this file to recreate the current configuration. 11611# Compiler output produced by configure, useful for debugging 11612# configure, is in config.log if it exists. 11613 11614debug=false 11615ac_cs_recheck=false 11616ac_cs_silent=false 11617 11618SHELL=\${CONFIG_SHELL-$SHELL} 11619export SHELL 11620_ASEOF 11621cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11622## -------------------- ## 11623## M4sh Initialization. ## 11624## -------------------- ## 11625 11626# Be more Bourne compatible 11627DUALCASE=1; export DUALCASE # for MKS sh 11628if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11629 emulate sh 11630 NULLCMD=: 11631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11632 # is contrary to our usage. Disable this feature. 11633 alias -g '${1+"$@"}'='"$@"' 11634 setopt NO_GLOB_SUBST 11635else 11636 case `(set -o) 2>/dev/null` in #( 11637 *posix*) : 11638 set -o posix ;; #( 11639 *) : 11640 ;; 11641esac 11642fi 11643 11644 11645as_nl=' 11646' 11647export as_nl 11648# Printing a long string crashes Solaris 7 /usr/bin/printf. 11649as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11650as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11652# Prefer a ksh shell builtin over an external printf program on Solaris, 11653# but without wasting forks for bash or zsh. 11654if test -z "$BASH_VERSION$ZSH_VERSION" \ 11655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11656 as_echo='print -r --' 11657 as_echo_n='print -rn --' 11658elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11659 as_echo='printf %s\n' 11660 as_echo_n='printf %s' 11661else 11662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11664 as_echo_n='/usr/ucb/echo -n' 11665 else 11666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11667 as_echo_n_body='eval 11668 arg=$1; 11669 case $arg in #( 11670 *"$as_nl"*) 11671 expr "X$arg" : "X\\(.*\\)$as_nl"; 11672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11673 esac; 11674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11675 ' 11676 export as_echo_n_body 11677 as_echo_n='sh -c $as_echo_n_body as_echo' 11678 fi 11679 export as_echo_body 11680 as_echo='sh -c $as_echo_body as_echo' 11681fi 11682 11683# The user is always right. 11684if test "${PATH_SEPARATOR+set}" != set; then 11685 PATH_SEPARATOR=: 11686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11688 PATH_SEPARATOR=';' 11689 } 11690fi 11691 11692 11693# IFS 11694# We need space, tab and new line, in precisely that order. Quoting is 11695# there to prevent editors from complaining about space-tab. 11696# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11697# splitting by setting IFS to empty value.) 11698IFS=" "" $as_nl" 11699 11700# Find who we are. Look in the path if we contain no directory separator. 11701as_myself= 11702case $0 in #(( 11703 *[\\/]* ) as_myself=$0 ;; 11704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11705for as_dir in $PATH 11706do 11707 IFS=$as_save_IFS 11708 test -z "$as_dir" && as_dir=. 11709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11710 done 11711IFS=$as_save_IFS 11712 11713 ;; 11714esac 11715# We did not find ourselves, most probably we were run as `sh COMMAND' 11716# in which case we are not to be found in the path. 11717if test "x$as_myself" = x; then 11718 as_myself=$0 11719fi 11720if test ! -f "$as_myself"; then 11721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11722 exit 1 11723fi 11724 11725# Unset variables that we do not need and which cause bugs (e.g. in 11726# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11727# suppresses any "Segmentation fault" message there. '((' could 11728# trigger a bug in pdksh 5.2.14. 11729for as_var in BASH_ENV ENV MAIL MAILPATH 11730do eval test x\${$as_var+set} = xset \ 11731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11732done 11733PS1='$ ' 11734PS2='> ' 11735PS4='+ ' 11736 11737# NLS nuisances. 11738LC_ALL=C 11739export LC_ALL 11740LANGUAGE=C 11741export LANGUAGE 11742 11743# CDPATH. 11744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11745 11746 11747# as_fn_error STATUS ERROR [LINENO LOG_FD] 11748# ---------------------------------------- 11749# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11750# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11751# script with STATUS, using 1 if that was 0. 11752as_fn_error () 11753{ 11754 as_status=$1; test $as_status -eq 0 && as_status=1 11755 if test "$4"; then 11756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11758 fi 11759 $as_echo "$as_me: error: $2" >&2 11760 as_fn_exit $as_status 11761} # as_fn_error 11762 11763 11764# as_fn_set_status STATUS 11765# ----------------------- 11766# Set $? to STATUS, without forking. 11767as_fn_set_status () 11768{ 11769 return $1 11770} # as_fn_set_status 11771 11772# as_fn_exit STATUS 11773# ----------------- 11774# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11775as_fn_exit () 11776{ 11777 set +e 11778 as_fn_set_status $1 11779 exit $1 11780} # as_fn_exit 11781 11782# as_fn_unset VAR 11783# --------------- 11784# Portably unset VAR. 11785as_fn_unset () 11786{ 11787 { eval $1=; unset $1;} 11788} 11789as_unset=as_fn_unset 11790# as_fn_append VAR VALUE 11791# ---------------------- 11792# Append the text in VALUE to the end of the definition contained in VAR. Take 11793# advantage of any shell optimizations that allow amortized linear growth over 11794# repeated appends, instead of the typical quadratic growth present in naive 11795# implementations. 11796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11797 eval 'as_fn_append () 11798 { 11799 eval $1+=\$2 11800 }' 11801else 11802 as_fn_append () 11803 { 11804 eval $1=\$$1\$2 11805 } 11806fi # as_fn_append 11807 11808# as_fn_arith ARG... 11809# ------------------ 11810# Perform arithmetic evaluation on the ARGs, and store the result in the 11811# global $as_val. Take advantage of shells that can avoid forks. The arguments 11812# must be portable across $(()) and expr. 11813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11814 eval 'as_fn_arith () 11815 { 11816 as_val=$(( $* )) 11817 }' 11818else 11819 as_fn_arith () 11820 { 11821 as_val=`expr "$@" || test $? -eq 1` 11822 } 11823fi # as_fn_arith 11824 11825 11826if expr a : '\(a\)' >/dev/null 2>&1 && 11827 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11828 as_expr=expr 11829else 11830 as_expr=false 11831fi 11832 11833if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11834 as_basename=basename 11835else 11836 as_basename=false 11837fi 11838 11839if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11840 as_dirname=dirname 11841else 11842 as_dirname=false 11843fi 11844 11845as_me=`$as_basename -- "$0" || 11846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11847 X"$0" : 'X\(//\)$' \| \ 11848 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11849$as_echo X/"$0" | 11850 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11851 s//\1/ 11852 q 11853 } 11854 /^X\/\(\/\/\)$/{ 11855 s//\1/ 11856 q 11857 } 11858 /^X\/\(\/\).*/{ 11859 s//\1/ 11860 q 11861 } 11862 s/.*/./; q'` 11863 11864# Avoid depending upon Character Ranges. 11865as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11867as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11868as_cr_digits='0123456789' 11869as_cr_alnum=$as_cr_Letters$as_cr_digits 11870 11871ECHO_C= ECHO_N= ECHO_T= 11872case `echo -n x` in #((((( 11873-n*) 11874 case `echo 'xy\c'` in 11875 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11876 xy) ECHO_C='\c';; 11877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11878 ECHO_T=' ';; 11879 esac;; 11880*) 11881 ECHO_N='-n';; 11882esac 11883 11884rm -f conf$$ conf$$.exe conf$$.file 11885if test -d conf$$.dir; then 11886 rm -f conf$$.dir/conf$$.file 11887else 11888 rm -f conf$$.dir 11889 mkdir conf$$.dir 2>/dev/null 11890fi 11891if (echo >conf$$.file) 2>/dev/null; then 11892 if ln -s conf$$.file conf$$ 2>/dev/null; then 11893 as_ln_s='ln -s' 11894 # ... but there are two gotchas: 11895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11897 # In both cases, we have to default to `cp -pR'. 11898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11899 as_ln_s='cp -pR' 11900 elif ln conf$$.file conf$$ 2>/dev/null; then 11901 as_ln_s=ln 11902 else 11903 as_ln_s='cp -pR' 11904 fi 11905else 11906 as_ln_s='cp -pR' 11907fi 11908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11909rmdir conf$$.dir 2>/dev/null 11910 11911 11912# as_fn_mkdir_p 11913# ------------- 11914# Create "$as_dir" as a directory, including parents if necessary. 11915as_fn_mkdir_p () 11916{ 11917 11918 case $as_dir in #( 11919 -*) as_dir=./$as_dir;; 11920 esac 11921 test -d "$as_dir" || eval $as_mkdir_p || { 11922 as_dirs= 11923 while :; do 11924 case $as_dir in #( 11925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11926 *) as_qdir=$as_dir;; 11927 esac 11928 as_dirs="'$as_qdir' $as_dirs" 11929 as_dir=`$as_dirname -- "$as_dir" || 11930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11931 X"$as_dir" : 'X\(//\)[^/]' \| \ 11932 X"$as_dir" : 'X\(//\)$' \| \ 11933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11934$as_echo X"$as_dir" | 11935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11936 s//\1/ 11937 q 11938 } 11939 /^X\(\/\/\)[^/].*/{ 11940 s//\1/ 11941 q 11942 } 11943 /^X\(\/\/\)$/{ 11944 s//\1/ 11945 q 11946 } 11947 /^X\(\/\).*/{ 11948 s//\1/ 11949 q 11950 } 11951 s/.*/./; q'` 11952 test -d "$as_dir" && break 11953 done 11954 test -z "$as_dirs" || eval "mkdir $as_dirs" 11955 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11956 11957 11958} # as_fn_mkdir_p 11959if mkdir -p . 2>/dev/null; then 11960 as_mkdir_p='mkdir -p "$as_dir"' 11961else 11962 test -d ./-p && rmdir ./-p 11963 as_mkdir_p=false 11964fi 11965 11966 11967# as_fn_executable_p FILE 11968# ----------------------- 11969# Test if FILE is an executable regular file. 11970as_fn_executable_p () 11971{ 11972 test -f "$1" && test -x "$1" 11973} # as_fn_executable_p 11974as_test_x='test -x' 11975as_executable_p=as_fn_executable_p 11976 11977# Sed expression to map a string onto a valid CPP name. 11978as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11979 11980# Sed expression to map a string onto a valid variable name. 11981as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11982 11983 11984exec 6>&1 11985## ----------------------------------- ## 11986## Main body of $CONFIG_STATUS script. ## 11987## ----------------------------------- ## 11988_ASEOF 11989test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11990 11991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11992# Save the log message, to keep $0 and so on meaningful, and to 11993# report actual input values of CONFIG_FILES etc. instead of their 11994# values after options handling. 11995ac_log=" 11996This file was extended by sessreg $as_me 1.1.2, which was 11997generated by GNU Autoconf 2.69. Invocation command line was 11998 11999 CONFIG_FILES = $CONFIG_FILES 12000 CONFIG_HEADERS = $CONFIG_HEADERS 12001 CONFIG_LINKS = $CONFIG_LINKS 12002 CONFIG_COMMANDS = $CONFIG_COMMANDS 12003 $ $0 $@ 12004 12005on `(hostname || uname -n) 2>/dev/null | sed 1q` 12006" 12007 12008_ACEOF 12009 12010case $ac_config_files in *" 12011"*) set x $ac_config_files; shift; ac_config_files=$*;; 12012esac 12013 12014case $ac_config_headers in *" 12015"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12016esac 12017 12018 12019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12020# Files that config.status was made for. 12021config_files="$ac_config_files" 12022config_headers="$ac_config_headers" 12023config_commands="$ac_config_commands" 12024 12025_ACEOF 12026 12027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12028ac_cs_usage="\ 12029\`$as_me' instantiates files and other configuration actions 12030from templates according to the current configuration. Unless the files 12031and actions are specified as TAGs, all are instantiated by default. 12032 12033Usage: $0 [OPTION]... [TAG]... 12034 12035 -h, --help print this help, then exit 12036 -V, --version print version number and configuration settings, then exit 12037 --config print configuration, then exit 12038 -q, --quiet, --silent 12039 do not print progress messages 12040 -d, --debug don't remove temporary files 12041 --recheck update $as_me by reconfiguring in the same conditions 12042 --file=FILE[:TEMPLATE] 12043 instantiate the configuration file FILE 12044 --header=FILE[:TEMPLATE] 12045 instantiate the configuration header FILE 12046 12047Configuration files: 12048$config_files 12049 12050Configuration headers: 12051$config_headers 12052 12053Configuration commands: 12054$config_commands 12055 12056Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/issues>." 12057 12058_ACEOF 12059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12060ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12061ac_cs_version="\\ 12062sessreg config.status 1.1.2 12063configured by $0, generated by GNU Autoconf 2.69, 12064 with options \\"\$ac_cs_config\\" 12065 12066Copyright (C) 2012 Free Software Foundation, Inc. 12067This config.status script is free software; the Free Software Foundation 12068gives unlimited permission to copy, distribute and modify it." 12069 12070ac_pwd='$ac_pwd' 12071srcdir='$srcdir' 12072INSTALL='$INSTALL' 12073MKDIR_P='$MKDIR_P' 12074AWK='$AWK' 12075test -n "\$AWK" || AWK=awk 12076_ACEOF 12077 12078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12079# The default lists apply if the user does not specify any file. 12080ac_need_defaults=: 12081while test $# != 0 12082do 12083 case $1 in 12084 --*=?*) 12085 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12087 ac_shift=: 12088 ;; 12089 --*=) 12090 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12091 ac_optarg= 12092 ac_shift=: 12093 ;; 12094 *) 12095 ac_option=$1 12096 ac_optarg=$2 12097 ac_shift=shift 12098 ;; 12099 esac 12100 12101 case $ac_option in 12102 # Handling of the options. 12103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12104 ac_cs_recheck=: ;; 12105 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12106 $as_echo "$ac_cs_version"; exit ;; 12107 --config | --confi | --conf | --con | --co | --c ) 12108 $as_echo "$ac_cs_config"; exit ;; 12109 --debug | --debu | --deb | --de | --d | -d ) 12110 debug=: ;; 12111 --file | --fil | --fi | --f ) 12112 $ac_shift 12113 case $ac_optarg in 12114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12115 '') as_fn_error $? "missing file argument" ;; 12116 esac 12117 as_fn_append CONFIG_FILES " '$ac_optarg'" 12118 ac_need_defaults=false;; 12119 --header | --heade | --head | --hea ) 12120 $ac_shift 12121 case $ac_optarg in 12122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12123 esac 12124 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12125 ac_need_defaults=false;; 12126 --he | --h) 12127 # Conflict between --help and --header 12128 as_fn_error $? "ambiguous option: \`$1' 12129Try \`$0 --help' for more information.";; 12130 --help | --hel | -h ) 12131 $as_echo "$ac_cs_usage"; exit ;; 12132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12133 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12134 ac_cs_silent=: ;; 12135 12136 # This is an error. 12137 -*) as_fn_error $? "unrecognized option: \`$1' 12138Try \`$0 --help' for more information." ;; 12139 12140 *) as_fn_append ac_config_targets " $1" 12141 ac_need_defaults=false ;; 12142 12143 esac 12144 shift 12145done 12146 12147ac_configure_extra_args= 12148 12149if $ac_cs_silent; then 12150 exec 6>/dev/null 12151 ac_configure_extra_args="$ac_configure_extra_args --silent" 12152fi 12153 12154_ACEOF 12155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12156if \$ac_cs_recheck; then 12157 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12158 shift 12159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12160 CONFIG_SHELL='$SHELL' 12161 export CONFIG_SHELL 12162 exec "\$@" 12163fi 12164 12165_ACEOF 12166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12167exec 5>>config.log 12168{ 12169 echo 12170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12171## Running $as_me. ## 12172_ASBOX 12173 $as_echo "$ac_log" 12174} >&5 12175 12176_ACEOF 12177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12178# 12179# INIT-COMMANDS 12180# 12181AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12182 12183_ACEOF 12184 12185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12186 12187# Handling of arguments. 12188for ac_config_target in $ac_config_targets 12189do 12190 case $ac_config_target in 12191 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12192 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12193 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12194 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12195 12196 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12197 esac 12198done 12199 12200 12201# If the user did not use the arguments to specify the items to instantiate, 12202# then the envvar interface is used. Set only those that are not. 12203# We use the long form for the default assignment because of an extremely 12204# bizarre bug on SunOS 4.1.3. 12205if $ac_need_defaults; then 12206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12207 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12209fi 12210 12211# Have a temporary directory for convenience. Make it in the build tree 12212# simply because there is no reason against having it here, and in addition, 12213# creating and moving files from /tmp can sometimes cause problems. 12214# Hook for its removal unless debugging. 12215# Note that there is a small window in which the directory will not be cleaned: 12216# after its creation but before its name has been assigned to `$tmp'. 12217$debug || 12218{ 12219 tmp= ac_tmp= 12220 trap 'exit_status=$? 12221 : "${ac_tmp:=$tmp}" 12222 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12223' 0 12224 trap 'as_fn_exit 1' 1 2 13 15 12225} 12226# Create a (secure) tmp directory for tmp files. 12227 12228{ 12229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12230 test -d "$tmp" 12231} || 12232{ 12233 tmp=./conf$$-$RANDOM 12234 (umask 077 && mkdir "$tmp") 12235} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12236ac_tmp=$tmp 12237 12238# Set up the scripts for CONFIG_FILES section. 12239# No need to generate them if there are no CONFIG_FILES. 12240# This happens for instance with `./config.status config.h'. 12241if test -n "$CONFIG_FILES"; then 12242 12243 12244ac_cr=`echo X | tr X '\015'` 12245# On cygwin, bash can eat \r inside `` if the user requested igncr. 12246# But we know of no other shell where ac_cr would be empty at this 12247# point, so we can use a bashism as a fallback. 12248if test "x$ac_cr" = x; then 12249 eval ac_cr=\$\'\\r\' 12250fi 12251ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12252if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12253 ac_cs_awk_cr='\\r' 12254else 12255 ac_cs_awk_cr=$ac_cr 12256fi 12257 12258echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12259_ACEOF 12260 12261 12262{ 12263 echo "cat >conf$$subs.awk <<_ACEOF" && 12264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12265 echo "_ACEOF" 12266} >conf$$subs.sh || 12267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12268ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12269ac_delim='%!_!# ' 12270for ac_last_try in false false false false false :; do 12271 . ./conf$$subs.sh || 12272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12273 12274 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12275 if test $ac_delim_n = $ac_delim_num; then 12276 break 12277 elif $ac_last_try; then 12278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12279 else 12280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12281 fi 12282done 12283rm -f conf$$subs.sh 12284 12285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12286cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12287_ACEOF 12288sed -n ' 12289h 12290s/^/S["/; s/!.*/"]=/ 12291p 12292g 12293s/^[^!]*!// 12294:repl 12295t repl 12296s/'"$ac_delim"'$// 12297t delim 12298:nl 12299h 12300s/\(.\{148\}\)..*/\1/ 12301t more1 12302s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12303p 12304n 12305b repl 12306:more1 12307s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12308p 12309g 12310s/.\{148\}// 12311t nl 12312:delim 12313h 12314s/\(.\{148\}\)..*/\1/ 12315t more2 12316s/["\\]/\\&/g; s/^/"/; s/$/"/ 12317p 12318b 12319:more2 12320s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12321p 12322g 12323s/.\{148\}// 12324t delim 12325' <conf$$subs.awk | sed ' 12326/^[^""]/{ 12327 N 12328 s/\n// 12329} 12330' >>$CONFIG_STATUS || ac_write_fail=1 12331rm -f conf$$subs.awk 12332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12333_ACAWK 12334cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12335 for (key in S) S_is_set[key] = 1 12336 FS = "" 12337 12338} 12339{ 12340 line = $ 0 12341 nfields = split(line, field, "@") 12342 substed = 0 12343 len = length(field[1]) 12344 for (i = 2; i < nfields; i++) { 12345 key = field[i] 12346 keylen = length(key) 12347 if (S_is_set[key]) { 12348 value = S[key] 12349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12350 len += length(value) + length(field[++i]) 12351 substed = 1 12352 } else 12353 len += 1 + keylen 12354 } 12355 12356 print line 12357} 12358 12359_ACAWK 12360_ACEOF 12361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12362if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12364else 12365 cat 12366fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12367 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12368_ACEOF 12369 12370# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12371# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12372# trailing colons and then remove the whole line if VPATH becomes empty 12373# (actually we leave an empty line to preserve line numbers). 12374if test "x$srcdir" = x.; then 12375 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12376h 12377s/// 12378s/^/:/ 12379s/[ ]*$/:/ 12380s/:\$(srcdir):/:/g 12381s/:\${srcdir}:/:/g 12382s/:@srcdir@:/:/g 12383s/^:*// 12384s/:*$// 12385x 12386s/\(=[ ]*\).*/\1/ 12387G 12388s/\n// 12389s/^[^=]*=[ ]*$// 12390}' 12391fi 12392 12393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12394fi # test -n "$CONFIG_FILES" 12395 12396# Set up the scripts for CONFIG_HEADERS section. 12397# No need to generate them if there are no CONFIG_HEADERS. 12398# This happens for instance with `./config.status Makefile'. 12399if test -n "$CONFIG_HEADERS"; then 12400cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12401BEGIN { 12402_ACEOF 12403 12404# Transform confdefs.h into an awk script `defines.awk', embedded as 12405# here-document in config.status, that substitutes the proper values into 12406# config.h.in to produce config.h. 12407 12408# Create a delimiter string that does not exist in confdefs.h, to ease 12409# handling of long lines. 12410ac_delim='%!_!# ' 12411for ac_last_try in false false :; do 12412 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12413 if test -z "$ac_tt"; then 12414 break 12415 elif $ac_last_try; then 12416 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12417 else 12418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12419 fi 12420done 12421 12422# For the awk script, D is an array of macro values keyed by name, 12423# likewise P contains macro parameters if any. Preserve backslash 12424# newline sequences. 12425 12426ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12427sed -n ' 12428s/.\{148\}/&'"$ac_delim"'/g 12429t rset 12430:rset 12431s/^[ ]*#[ ]*define[ ][ ]*/ / 12432t def 12433d 12434:def 12435s/\\$// 12436t bsnl 12437s/["\\]/\\&/g 12438s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12439D["\1"]=" \3"/p 12440s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12441d 12442:bsnl 12443s/["\\]/\\&/g 12444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12445D["\1"]=" \3\\\\\\n"\\/p 12446t cont 12447s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12448t cont 12449d 12450:cont 12451n 12452s/.\{148\}/&'"$ac_delim"'/g 12453t clear 12454:clear 12455s/\\$// 12456t bsnlc 12457s/["\\]/\\&/g; s/^/"/; s/$/"/p 12458d 12459:bsnlc 12460s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12461b cont 12462' <confdefs.h | sed ' 12463s/'"$ac_delim"'/"\\\ 12464"/g' >>$CONFIG_STATUS || ac_write_fail=1 12465 12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12467 for (key in D) D_is_set[key] = 1 12468 FS = "" 12469} 12470/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12471 line = \$ 0 12472 split(line, arg, " ") 12473 if (arg[1] == "#") { 12474 defundef = arg[2] 12475 mac1 = arg[3] 12476 } else { 12477 defundef = substr(arg[1], 2) 12478 mac1 = arg[2] 12479 } 12480 split(mac1, mac2, "(") #) 12481 macro = mac2[1] 12482 prefix = substr(line, 1, index(line, defundef) - 1) 12483 if (D_is_set[macro]) { 12484 # Preserve the white space surrounding the "#". 12485 print prefix "define", macro P[macro] D[macro] 12486 next 12487 } else { 12488 # Replace #undef with comments. This is necessary, for example, 12489 # in the case of _POSIX_SOURCE, which is predefined and required 12490 # on some systems where configure will not decide to define it. 12491 if (defundef == "undef") { 12492 print "/*", prefix defundef, macro, "*/" 12493 next 12494 } 12495 } 12496} 12497{ print } 12498_ACAWK 12499_ACEOF 12500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12501 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12502fi # test -n "$CONFIG_HEADERS" 12503 12504 12505eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12506shift 12507for ac_tag 12508do 12509 case $ac_tag in 12510 :[FHLC]) ac_mode=$ac_tag; continue;; 12511 esac 12512 case $ac_mode$ac_tag in 12513 :[FHL]*:*);; 12514 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12515 :[FH]-) ac_tag=-:-;; 12516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12517 esac 12518 ac_save_IFS=$IFS 12519 IFS=: 12520 set x $ac_tag 12521 IFS=$ac_save_IFS 12522 shift 12523 ac_file=$1 12524 shift 12525 12526 case $ac_mode in 12527 :L) ac_source=$1;; 12528 :[FH]) 12529 ac_file_inputs= 12530 for ac_f 12531 do 12532 case $ac_f in 12533 -) ac_f="$ac_tmp/stdin";; 12534 *) # Look for the file first in the build tree, then in the source tree 12535 # (if the path is not absolute). The absolute path cannot be DOS-style, 12536 # because $ac_f cannot contain `:'. 12537 test -f "$ac_f" || 12538 case $ac_f in 12539 [\\/$]*) false;; 12540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12541 esac || 12542 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12543 esac 12544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12545 as_fn_append ac_file_inputs " '$ac_f'" 12546 done 12547 12548 # Let's still pretend it is `configure' which instantiates (i.e., don't 12549 # use $as_me), people would be surprised to read: 12550 # /* config.h. Generated by config.status. */ 12551 configure_input='Generated from '` 12552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12553 `' by configure.' 12554 if test x"$ac_file" != x-; then 12555 configure_input="$ac_file. $configure_input" 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12557$as_echo "$as_me: creating $ac_file" >&6;} 12558 fi 12559 # Neutralize special characters interpreted by sed in replacement strings. 12560 case $configure_input in #( 12561 *\&* | *\|* | *\\* ) 12562 ac_sed_conf_input=`$as_echo "$configure_input" | 12563 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12564 *) ac_sed_conf_input=$configure_input;; 12565 esac 12566 12567 case $ac_tag in 12568 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12570 esac 12571 ;; 12572 esac 12573 12574 ac_dir=`$as_dirname -- "$ac_file" || 12575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12576 X"$ac_file" : 'X\(//\)[^/]' \| \ 12577 X"$ac_file" : 'X\(//\)$' \| \ 12578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12579$as_echo X"$ac_file" | 12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12581 s//\1/ 12582 q 12583 } 12584 /^X\(\/\/\)[^/].*/{ 12585 s//\1/ 12586 q 12587 } 12588 /^X\(\/\/\)$/{ 12589 s//\1/ 12590 q 12591 } 12592 /^X\(\/\).*/{ 12593 s//\1/ 12594 q 12595 } 12596 s/.*/./; q'` 12597 as_dir="$ac_dir"; as_fn_mkdir_p 12598 ac_builddir=. 12599 12600case "$ac_dir" in 12601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12602*) 12603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12604 # A ".." for each directory in $ac_dir_suffix. 12605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12606 case $ac_top_builddir_sub in 12607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12609 esac ;; 12610esac 12611ac_abs_top_builddir=$ac_pwd 12612ac_abs_builddir=$ac_pwd$ac_dir_suffix 12613# for backward compatibility: 12614ac_top_builddir=$ac_top_build_prefix 12615 12616case $srcdir in 12617 .) # We are building in place. 12618 ac_srcdir=. 12619 ac_top_srcdir=$ac_top_builddir_sub 12620 ac_abs_top_srcdir=$ac_pwd ;; 12621 [\\/]* | ?:[\\/]* ) # Absolute name. 12622 ac_srcdir=$srcdir$ac_dir_suffix; 12623 ac_top_srcdir=$srcdir 12624 ac_abs_top_srcdir=$srcdir ;; 12625 *) # Relative name. 12626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12627 ac_top_srcdir=$ac_top_build_prefix$srcdir 12628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12629esac 12630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12631 12632 12633 case $ac_mode in 12634 :F) 12635 # 12636 # CONFIG_FILE 12637 # 12638 12639 case $INSTALL in 12640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12642 esac 12643 ac_MKDIR_P=$MKDIR_P 12644 case $MKDIR_P in 12645 [\\/$]* | ?:[\\/]* ) ;; 12646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12647 esac 12648_ACEOF 12649 12650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12651# If the template does not know about datarootdir, expand it. 12652# FIXME: This hack should be removed a few years after 2.60. 12653ac_datarootdir_hack=; ac_datarootdir_seen= 12654ac_sed_dataroot=' 12655/datarootdir/ { 12656 p 12657 q 12658} 12659/@datadir@/p 12660/@docdir@/p 12661/@infodir@/p 12662/@localedir@/p 12663/@mandir@/p' 12664case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12665*datarootdir*) ac_datarootdir_seen=yes;; 12666*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12668$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12669_ACEOF 12670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12671 ac_datarootdir_hack=' 12672 s&@datadir@&$datadir&g 12673 s&@docdir@&$docdir&g 12674 s&@infodir@&$infodir&g 12675 s&@localedir@&$localedir&g 12676 s&@mandir@&$mandir&g 12677 s&\\\${datarootdir}&$datarootdir&g' ;; 12678esac 12679_ACEOF 12680 12681# Neutralize VPATH when `$srcdir' = `.'. 12682# Shell code in configure.ac might set extrasub. 12683# FIXME: do we really want to maintain this feature? 12684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12685ac_sed_extra="$ac_vpsub 12686$extrasub 12687_ACEOF 12688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12689:t 12690/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12691s|@configure_input@|$ac_sed_conf_input|;t t 12692s&@top_builddir@&$ac_top_builddir_sub&;t t 12693s&@top_build_prefix@&$ac_top_build_prefix&;t t 12694s&@srcdir@&$ac_srcdir&;t t 12695s&@abs_srcdir@&$ac_abs_srcdir&;t t 12696s&@top_srcdir@&$ac_top_srcdir&;t t 12697s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12698s&@builddir@&$ac_builddir&;t t 12699s&@abs_builddir@&$ac_abs_builddir&;t t 12700s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12701s&@INSTALL@&$ac_INSTALL&;t t 12702s&@MKDIR_P@&$ac_MKDIR_P&;t t 12703$ac_datarootdir_hack 12704" 12705eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12707 12708test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12711 "$ac_tmp/out"`; test -z "$ac_out"; } && 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12713which seems to be undefined. Please make sure it is defined" >&5 12714$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12715which seems to be undefined. Please make sure it is defined" >&2;} 12716 12717 rm -f "$ac_tmp/stdin" 12718 case $ac_file in 12719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12721 esac \ 12722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12723 ;; 12724 :H) 12725 # 12726 # CONFIG_HEADER 12727 # 12728 if test x"$ac_file" != x-; then 12729 { 12730 $as_echo "/* $configure_input */" \ 12731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12732 } >"$ac_tmp/config.h" \ 12733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12734 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12736$as_echo "$as_me: $ac_file is unchanged" >&6;} 12737 else 12738 rm -f "$ac_file" 12739 mv "$ac_tmp/config.h" "$ac_file" \ 12740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12741 fi 12742 else 12743 $as_echo "/* $configure_input */" \ 12744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12745 || as_fn_error $? "could not create -" "$LINENO" 5 12746 fi 12747# Compute "$ac_file"'s index in $config_headers. 12748_am_arg="$ac_file" 12749_am_stamp_count=1 12750for _am_header in $config_headers :; do 12751 case $_am_header in 12752 $_am_arg | $_am_arg:* ) 12753 break ;; 12754 * ) 12755 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12756 esac 12757done 12758echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12759$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12760 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12761 X"$_am_arg" : 'X\(//\)$' \| \ 12762 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12763$as_echo X"$_am_arg" | 12764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12765 s//\1/ 12766 q 12767 } 12768 /^X\(\/\/\)[^/].*/{ 12769 s//\1/ 12770 q 12771 } 12772 /^X\(\/\/\)$/{ 12773 s//\1/ 12774 q 12775 } 12776 /^X\(\/\).*/{ 12777 s//\1/ 12778 q 12779 } 12780 s/.*/./; q'`/stamp-h$_am_stamp_count 12781 ;; 12782 12783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12784$as_echo "$as_me: executing $ac_file commands" >&6;} 12785 ;; 12786 esac 12787 12788 12789 case $ac_file$ac_mode in 12790 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12791 # Older Autoconf quotes --file arguments for eval, but not when files 12792 # are listed without --file. Let's play safe and only enable the eval 12793 # if we detect the quoting. 12794 case $CONFIG_FILES in 12795 *\'*) eval set x "$CONFIG_FILES" ;; 12796 *) set x $CONFIG_FILES ;; 12797 esac 12798 shift 12799 for mf 12800 do 12801 # Strip MF so we end up with the name of the file. 12802 mf=`echo "$mf" | sed -e 's/:.*$//'` 12803 # Check whether this is an Automake generated Makefile or not. 12804 # We used to match only the files named 'Makefile.in', but 12805 # some people rename them; so instead we look at the file content. 12806 # Grep'ing the first line is not enough: some people post-process 12807 # each Makefile.in and add a new line on top of each file to say so. 12808 # Grep'ing the whole file is not good either: AIX grep has a line 12809 # limit of 2048, but all sed's we know have understand at least 4000. 12810 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12811 dirpart=`$as_dirname -- "$mf" || 12812$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12813 X"$mf" : 'X\(//\)[^/]' \| \ 12814 X"$mf" : 'X\(//\)$' \| \ 12815 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12816$as_echo X"$mf" | 12817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12818 s//\1/ 12819 q 12820 } 12821 /^X\(\/\/\)[^/].*/{ 12822 s//\1/ 12823 q 12824 } 12825 /^X\(\/\/\)$/{ 12826 s//\1/ 12827 q 12828 } 12829 /^X\(\/\).*/{ 12830 s//\1/ 12831 q 12832 } 12833 s/.*/./; q'` 12834 else 12835 continue 12836 fi 12837 # Extract the definition of DEPDIR, am__include, and am__quote 12838 # from the Makefile without running 'make'. 12839 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12840 test -z "$DEPDIR" && continue 12841 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12842 test -z "$am__include" && continue 12843 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12844 # Find all dependency output files, they are included files with 12845 # $(DEPDIR) in their names. We invoke sed twice because it is the 12846 # simplest approach to changing $(DEPDIR) to its actual value in the 12847 # expansion. 12848 for file in `sed -n " 12849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12851 # Make sure the directory exists. 12852 test -f "$dirpart/$file" && continue 12853 fdir=`$as_dirname -- "$file" || 12854$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12855 X"$file" : 'X\(//\)[^/]' \| \ 12856 X"$file" : 'X\(//\)$' \| \ 12857 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12858$as_echo X"$file" | 12859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12860 s//\1/ 12861 q 12862 } 12863 /^X\(\/\/\)[^/].*/{ 12864 s//\1/ 12865 q 12866 } 12867 /^X\(\/\/\)$/{ 12868 s//\1/ 12869 q 12870 } 12871 /^X\(\/\).*/{ 12872 s//\1/ 12873 q 12874 } 12875 s/.*/./; q'` 12876 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12877 # echo "creating $dirpart/$file" 12878 echo '# dummy' > "$dirpart/$file" 12879 done 12880 done 12881} 12882 ;; 12883 12884 esac 12885done # for ac_tag 12886 12887 12888as_fn_exit 0 12889_ACEOF 12890ac_clean_files=$ac_clean_files_save 12891 12892test $ac_write_fail = 0 || 12893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12894 12895 12896# configure is writing to config.log, and then calls config.status. 12897# config.status does its own redirection, appending to config.log. 12898# Unfortunately, on DOS this fails, as config.log is still kept open 12899# by configure, so config.status won't be able to write to it; its 12900# output is simply discarded. So we exec the FD to /dev/null, 12901# effectively closing config.log, so it can be properly (re)opened and 12902# appended to by config.status. When coming back to configure, we 12903# need to make the FD available again. 12904if test "$no_create" != yes; then 12905 ac_cs_success=: 12906 ac_config_status_args= 12907 test "$silent" = yes && 12908 ac_config_status_args="$ac_config_status_args --quiet" 12909 exec 5>/dev/null 12910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12911 exec 5>>config.log 12912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12913 # would make configure fail if this is the last instruction. 12914 $ac_cs_success || as_fn_exit 1 12915fi 12916if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12918$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12919fi 12920 12921