configure revision 24047306
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for smproxy 1.0.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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://bugs.freedesktop.org/enter_bug.cgi?product=xorg 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='smproxy' 583PACKAGE_TARNAME='smproxy' 584PACKAGE_VERSION='1.0.6' 585PACKAGE_STRING='smproxy 1.0.6' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 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 630SMPROXY_LIBS 631SMPROXY_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG 657CHANGELOG_CMD 658STRICT_CFLAGS 659CWARNFLAGS 660BASE_CFLAGS 661EGREP 662GREP 663CPP 664am__fastdepCC_FALSE 665am__fastdepCC_TRUE 666CCDEPMODE 667am__nodep 668AMDEPBACKSLASH 669AMDEP_FALSE 670AMDEP_TRUE 671am__quote 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681AM_BACKSLASH 682AM_DEFAULT_VERBOSITY 683AM_DEFAULT_V 684AM_V 685am__untar 686am__tar 687AMTAR 688am__leading_dot 689SET_MAKE 690AWK 691mkdir_p 692MKDIR_P 693INSTALL_STRIP_PROGRAM 694STRIP 695install_sh 696MAKEINFO 697AUTOHEADER 698AUTOMAKE 699AUTOCONF 700ACLOCAL 701VERSION 702PACKAGE 703CYGPATH_W 704am__isrc 705INSTALL_DATA 706INSTALL_SCRIPT 707INSTALL_PROGRAM 708target_alias 709host_alias 710build_alias 711LIBS 712ECHO_T 713ECHO_N 714ECHO_C 715DEFS 716mandir 717localedir 718libdir 719psdir 720pdfdir 721dvidir 722htmldir 723infodir 724docdir 725oldincludedir 726includedir 727localstatedir 728sharedstatedir 729sysconfdir 730datadir 731datarootdir 732libexecdir 733sbindir 734bindir 735program_transform_name 736prefix 737exec_prefix 738PACKAGE_URL 739PACKAGE_BUGREPORT 740PACKAGE_STRING 741PACKAGE_VERSION 742PACKAGE_TARNAME 743PACKAGE_NAME 744PATH_SEPARATOR 745SHELL' 746ac_subst_files='' 747ac_user_opts=' 748enable_option_checking 749enable_silent_rules 750enable_dependency_tracking 751enable_selective_werror 752enable_strict_compilation 753' 754 ac_precious_vars='build_alias 755host_alias 756target_alias 757CC 758CFLAGS 759LDFLAGS 760LIBS 761CPPFLAGS 762CPP 763PKG_CONFIG 764SMPROXY_CFLAGS 765SMPROXY_LIBS' 766 767 768# Initialize some variables set by options. 769ac_init_help= 770ac_init_version=false 771ac_unrecognized_opts= 772ac_unrecognized_sep= 773# The variables have the same names as the options, with 774# dashes changed to underlines. 775cache_file=/dev/null 776exec_prefix=NONE 777no_create= 778no_recursion= 779prefix=NONE 780program_prefix=NONE 781program_suffix=NONE 782program_transform_name=s,x,x, 783silent= 784site= 785srcdir= 786verbose= 787x_includes=NONE 788x_libraries=NONE 789 790# Installation directory options. 791# These are left unexpanded so users can "make install exec_prefix=/foo" 792# and all the variables that are supposed to be based on exec_prefix 793# by default will actually change. 794# Use braces instead of parens because sh, perl, etc. also accept them. 795# (The list follows the same order as the GNU Coding Standards.) 796bindir='${exec_prefix}/bin' 797sbindir='${exec_prefix}/sbin' 798libexecdir='${exec_prefix}/libexec' 799datarootdir='${prefix}/share' 800datadir='${datarootdir}' 801sysconfdir='${prefix}/etc' 802sharedstatedir='${prefix}/com' 803localstatedir='${prefix}/var' 804includedir='${prefix}/include' 805oldincludedir='/usr/include' 806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 807infodir='${datarootdir}/info' 808htmldir='${docdir}' 809dvidir='${docdir}' 810pdfdir='${docdir}' 811psdir='${docdir}' 812libdir='${exec_prefix}/lib' 813localedir='${datarootdir}/locale' 814mandir='${datarootdir}/man' 815 816ac_prev= 817ac_dashdash= 818for ac_option 819do 820 # If the previous option needs an argument, assign it. 821 if test -n "$ac_prev"; then 822 eval $ac_prev=\$ac_option 823 ac_prev= 824 continue 825 fi 826 827 case $ac_option in 828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 829 *=) ac_optarg= ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=no ;; 886 887 -docdir | --docdir | --docdi | --doc | --do) 888 ac_prev=docdir ;; 889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890 docdir=$ac_optarg ;; 891 892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893 ac_prev=dvidir ;; 894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895 dvidir=$ac_optarg ;; 896 897 -enable-* | --enable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=\$ac_optarg ;; 912 913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915 | --exec | --exe | --ex) 916 ac_prev=exec_prefix ;; 917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919 | --exec=* | --exe=* | --ex=*) 920 exec_prefix=$ac_optarg ;; 921 922 -gas | --gas | --ga | --g) 923 # Obsolete; use --with-gas. 924 with_gas=yes ;; 925 926 -help | --help | --hel | --he | -h) 927 ac_init_help=long ;; 928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929 ac_init_help=recursive ;; 930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931 ac_init_help=short ;; 932 933 -host | --host | --hos | --ho) 934 ac_prev=host_alias ;; 935 -host=* | --host=* | --hos=* | --ho=*) 936 host_alias=$ac_optarg ;; 937 938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939 ac_prev=htmldir ;; 940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941 | --ht=*) 942 htmldir=$ac_optarg ;; 943 944 -includedir | --includedir | --includedi | --included | --include \ 945 | --includ | --inclu | --incl | --inc) 946 ac_prev=includedir ;; 947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948 | --includ=* | --inclu=* | --incl=* | --inc=*) 949 includedir=$ac_optarg ;; 950 951 -infodir | --infodir | --infodi | --infod | --info | --inf) 952 ac_prev=infodir ;; 953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954 infodir=$ac_optarg ;; 955 956 -libdir | --libdir | --libdi | --libd) 957 ac_prev=libdir ;; 958 -libdir=* | --libdir=* | --libdi=* | --libd=*) 959 libdir=$ac_optarg ;; 960 961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962 | --libexe | --libex | --libe) 963 ac_prev=libexecdir ;; 964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965 | --libexe=* | --libex=* | --libe=*) 966 libexecdir=$ac_optarg ;; 967 968 -localedir | --localedir | --localedi | --localed | --locale) 969 ac_prev=localedir ;; 970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971 localedir=$ac_optarg ;; 972 973 -localstatedir | --localstatedir | --localstatedi | --localstated \ 974 | --localstate | --localstat | --localsta | --localst | --locals) 975 ac_prev=localstatedir ;; 976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978 localstatedir=$ac_optarg ;; 979 980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981 ac_prev=mandir ;; 982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983 mandir=$ac_optarg ;; 984 985 -nfp | --nfp | --nf) 986 # Obsolete; use --without-fp. 987 with_fp=no ;; 988 989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990 | --no-cr | --no-c | -n) 991 no_create=yes ;; 992 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 no_recursion=yes ;; 996 997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999 | --oldin | --oldi | --old | --ol | --o) 1000 ac_prev=oldincludedir ;; 1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004 oldincludedir=$ac_optarg ;; 1005 1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007 ac_prev=prefix ;; 1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009 prefix=$ac_optarg ;; 1010 1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012 | --program-pre | --program-pr | --program-p) 1013 ac_prev=program_prefix ;; 1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016 program_prefix=$ac_optarg ;; 1017 1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019 | --program-suf | --program-su | --program-s) 1020 ac_prev=program_suffix ;; 1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023 program_suffix=$ac_optarg ;; 1024 1025 -program-transform-name | --program-transform-name \ 1026 | --program-transform-nam | --program-transform-na \ 1027 | --program-transform-n | --program-transform- \ 1028 | --program-transform | --program-transfor \ 1029 | --program-transfo | --program-transf \ 1030 | --program-trans | --program-tran \ 1031 | --progr-tra | --program-tr | --program-t) 1032 ac_prev=program_transform_name ;; 1033 -program-transform-name=* | --program-transform-name=* \ 1034 | --program-transform-nam=* | --program-transform-na=* \ 1035 | --program-transform-n=* | --program-transform-=* \ 1036 | --program-transform=* | --program-transfor=* \ 1037 | --program-transfo=* | --program-transf=* \ 1038 | --program-trans=* | --program-tran=* \ 1039 | --progr-tra=* | --program-tr=* | --program-t=*) 1040 program_transform_name=$ac_optarg ;; 1041 1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043 ac_prev=pdfdir ;; 1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045 pdfdir=$ac_optarg ;; 1046 1047 -psdir | --psdir | --psdi | --psd | --ps) 1048 ac_prev=psdir ;; 1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050 psdir=$ac_optarg ;; 1051 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 silent=yes ;; 1055 1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057 ac_prev=sbindir ;; 1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059 | --sbi=* | --sb=*) 1060 sbindir=$ac_optarg ;; 1061 1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064 | --sharedst | --shareds | --shared | --share | --shar \ 1065 | --sha | --sh) 1066 ac_prev=sharedstatedir ;; 1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070 | --sha=* | --sh=*) 1071 sharedstatedir=$ac_optarg ;; 1072 1073 -site | --site | --sit) 1074 ac_prev=site ;; 1075 -site=* | --site=* | --sit=*) 1076 site=$ac_optarg ;; 1077 1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079 ac_prev=srcdir ;; 1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081 srcdir=$ac_optarg ;; 1082 1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084 | --syscon | --sysco | --sysc | --sys | --sy) 1085 ac_prev=sysconfdir ;; 1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088 sysconfdir=$ac_optarg ;; 1089 1090 -target | --target | --targe | --targ | --tar | --ta | --t) 1091 ac_prev=target_alias ;; 1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093 target_alias=$ac_optarg ;; 1094 1095 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096 verbose=yes ;; 1097 1098 -version | --version | --versio | --versi | --vers | -V) 1099 ac_init_version=: ;; 1100 1101 -with-* | --with-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=no ;; 1132 1133 --x) 1134 # Obsolete; use --with-x. 1135 with_x=yes ;; 1136 1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138 | --x-incl | --x-inc | --x-in | --x-i) 1139 ac_prev=x_includes ;; 1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142 x_includes=$ac_optarg ;; 1143 1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146 ac_prev=x_libraries ;; 1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149 x_libraries=$ac_optarg ;; 1150 1151 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152Try \`$0 --help' for more information" 1153 ;; 1154 1155 *=*) 1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157 # Reject names that are not valid shell variable names. 1158 case $ac_envvar in #( 1159 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161 esac 1162 eval $ac_envvar=\$ac_optarg 1163 export $ac_envvar ;; 1164 1165 *) 1166 # FIXME: should be removed in autoconf 3.0. 1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171 ;; 1172 1173 esac 1174done 1175 1176if test -n "$ac_prev"; then 1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178 as_fn_error $? "missing argument to $ac_option" 1179fi 1180 1181if test -n "$ac_unrecognized_opts"; then 1182 case $enable_option_checking in 1183 no) ;; 1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186 esac 1187fi 1188 1189# Check all directory arguments for consistency. 1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191 datadir sysconfdir sharedstatedir localstatedir includedir \ 1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193 libdir localedir mandir 1194do 1195 eval ac_val=\$$ac_var 1196 # Remove trailing slashes. 1197 case $ac_val in 1198 */ ) 1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200 eval $ac_var=\$ac_val;; 1201 esac 1202 # Be sure to have absolute directory names. 1203 case $ac_val in 1204 [\\/$]* | ?:[\\/]* ) continue;; 1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206 esac 1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208done 1209 1210# There might be people who depend on the old broken behavior: `$host' 1211# used to hold the argument of --host etc. 1212# FIXME: To remove some day. 1213build=$build_alias 1214host=$host_alias 1215target=$target_alias 1216 1217# FIXME: To remove some day. 1218if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 elif test "x$build_alias" != "x$host_alias"; then 1222 cross_compiling=yes 1223 fi 1224fi 1225 1226ac_tool_prefix= 1227test -n "$host_alias" && ac_tool_prefix=$host_alias- 1228 1229test "$silent" = yes && exec 6>/dev/null 1230 1231 1232ac_pwd=`pwd` && test -n "$ac_pwd" && 1233ac_ls_di=`ls -di .` && 1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235 as_fn_error $? "working directory cannot be determined" 1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237 as_fn_error $? "pwd does not report name of working directory" 1238 1239 1240# Find the source files, if location was not specified. 1241if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249$as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271else 1272 ac_srcdir_defaulted=no 1273fi 1274if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277fi 1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279ac_abs_confdir=`( 1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281 pwd)` 1282# When building in place, set srcdir=. 1283if test "$ac_abs_confdir" = "$ac_pwd"; then 1284 srcdir=. 1285fi 1286# Remove unnecessary trailing slashes from srcdir. 1287# Double slashes in file names in object file debugging info 1288# mess up M-x gdb in Emacs. 1289case $srcdir in 1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291esac 1292for ac_var in $ac_precious_vars; do 1293 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_env_${ac_var}_value=\$${ac_var} 1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297done 1298 1299# 1300# Report the --help message. 1301# 1302if test "$ac_init_help" = "long"; then 1303 # Omit some internal or obsolete options to make the list less imposing. 1304 # This message is too long to be a string in the A/UX 3.1 sh. 1305 cat <<_ACEOF 1306\`configure' configures smproxy 1.0.6 to adapt to many kinds of systems. 1307 1308Usage: $0 [OPTION]... [VAR=VALUE]... 1309 1310To assign environment variables (e.g., CC, CFLAGS...), specify them as 1311VAR=VALUE. See below for descriptions of some of the useful variables. 1312 1313Defaults for the options are specified in brackets. 1314 1315Configuration: 1316 -h, --help display this help and exit 1317 --help=short display options specific to this package 1318 --help=recursive display the short help of all the included packages 1319 -V, --version display version information and exit 1320 -q, --quiet, --silent do not print \`checking ...' messages 1321 --cache-file=FILE cache test results in FILE [disabled] 1322 -C, --config-cache alias for \`--cache-file=config.cache' 1323 -n, --no-create do not create output files 1324 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325 1326Installation directories: 1327 --prefix=PREFIX install architecture-independent files in PREFIX 1328 [$ac_default_prefix] 1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330 [PREFIX] 1331 1332By default, \`make install' will install all the files in 1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335for instance \`--prefix=\$HOME'. 1336 1337For better control, use the options below. 1338 1339Fine tuning of the installation directories: 1340 --bindir=DIR user executables [EPREFIX/bin] 1341 --sbindir=DIR system admin executables [EPREFIX/sbin] 1342 --libexecdir=DIR program executables [EPREFIX/libexec] 1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346 --libdir=DIR object code libraries [EPREFIX/lib] 1347 --includedir=DIR C header files [PREFIX/include] 1348 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351 --infodir=DIR info documentation [DATAROOTDIR/info] 1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353 --mandir=DIR man documentation [DATAROOTDIR/man] 1354 --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy] 1355 --htmldir=DIR html documentation [DOCDIR] 1356 --dvidir=DIR dvi documentation [DOCDIR] 1357 --pdfdir=DIR pdf documentation [DOCDIR] 1358 --psdir=DIR ps documentation [DOCDIR] 1359_ACEOF 1360 1361 cat <<\_ACEOF 1362 1363Program names: 1364 --program-prefix=PREFIX prepend PREFIX to installed program names 1365 --program-suffix=SUFFIX append SUFFIX to installed program names 1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367 1368System types: 1369 --build=BUILD configure for building on BUILD [guessed] 1370 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371_ACEOF 1372fi 1373 1374if test -n "$ac_init_help"; then 1375 case $ac_init_help in 1376 short | recursive ) echo "Configuration of smproxy 1.0.6:";; 1377 esac 1378 cat <<\_ACEOF 1379 1380Optional Features: 1381 --disable-option-checking ignore unrecognized --enable/--with options 1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1384 --enable-silent-rules less verbose build output (undo: "make V=1") 1385 --disable-silent-rules verbose build output (undo: "make V=0") 1386 --enable-dependency-tracking 1387 do not reject slow dependency extractors 1388 --disable-dependency-tracking 1389 speeds up one-time build 1390 --disable-selective-werror 1391 Turn off selective compiler errors. (default: 1392 enabled) 1393 --enable-strict-compilation 1394 Enable all warnings from compiler and make them 1395 errors (default: disabled) 1396 1397Some influential environment variables: 1398 CC C compiler command 1399 CFLAGS C compiler flags 1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401 nonstandard directory <lib dir> 1402 LIBS libraries to pass to the linker, e.g. -l<library> 1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404 you have headers in a nonstandard directory <include dir> 1405 CPP C preprocessor 1406 PKG_CONFIG path to pkg-config utility 1407 SMPROXY_CFLAGS 1408 C compiler flags for SMPROXY, overriding pkg-config 1409 SMPROXY_LIBS 1410 linker flags for SMPROXY, overriding pkg-config 1411 1412Use these variables to override the choices made by `configure' or to help 1413it to find libraries and programs with nonstandard names/locations. 1414 1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1416_ACEOF 1417ac_status=$? 1418fi 1419 1420if test "$ac_init_help" = "recursive"; then 1421 # If there are subdirs, report their specific --help. 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1423 test -d "$ac_dir" || 1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1425 continue 1426 ac_builddir=. 1427 1428case "$ac_dir" in 1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1430*) 1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1432 # A ".." for each directory in $ac_dir_suffix. 1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1434 case $ac_top_builddir_sub in 1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1437 esac ;; 1438esac 1439ac_abs_top_builddir=$ac_pwd 1440ac_abs_builddir=$ac_pwd$ac_dir_suffix 1441# for backward compatibility: 1442ac_top_builddir=$ac_top_build_prefix 1443 1444case $srcdir in 1445 .) # We are building in place. 1446 ac_srcdir=. 1447 ac_top_srcdir=$ac_top_builddir_sub 1448 ac_abs_top_srcdir=$ac_pwd ;; 1449 [\\/]* | ?:[\\/]* ) # Absolute name. 1450 ac_srcdir=$srcdir$ac_dir_suffix; 1451 ac_top_srcdir=$srcdir 1452 ac_abs_top_srcdir=$srcdir ;; 1453 *) # Relative name. 1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1455 ac_top_srcdir=$ac_top_build_prefix$srcdir 1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1457esac 1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1459 1460 cd "$ac_dir" || { ac_status=$?; continue; } 1461 # Check for guested configure. 1462 if test -f "$ac_srcdir/configure.gnu"; then 1463 echo && 1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1465 elif test -f "$ac_srcdir/configure"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure" --help=recursive 1468 else 1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1470 fi || ac_status=$? 1471 cd "$ac_pwd" || { ac_status=$?; break; } 1472 done 1473fi 1474 1475test -n "$ac_init_help" && exit $ac_status 1476if $ac_init_version; then 1477 cat <<\_ACEOF 1478smproxy configure 1.0.6 1479generated by GNU Autoconf 2.69 1480 1481Copyright (C) 2012 Free Software Foundation, Inc. 1482This configure script is free software; the Free Software Foundation 1483gives unlimited permission to copy, distribute and modify it. 1484_ACEOF 1485 exit 1486fi 1487 1488## ------------------------ ## 1489## Autoconf initialization. ## 1490## ------------------------ ## 1491 1492# ac_fn_c_try_compile LINENO 1493# -------------------------- 1494# Try to compile conftest.$ac_ext, and return whether this succeeded. 1495ac_fn_c_try_compile () 1496{ 1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1498 rm -f conftest.$ac_objext 1499 if { { ac_try="$ac_compile" 1500case "(($ac_try" in 1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1502 *) ac_try_echo=$ac_try;; 1503esac 1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1505$as_echo "$ac_try_echo"; } >&5 1506 (eval "$ac_compile") 2>conftest.err 1507 ac_status=$? 1508 if test -s conftest.err; then 1509 grep -v '^ *+' conftest.err >conftest.er1 1510 cat conftest.er1 >&5 1511 mv -f conftest.er1 conftest.err 1512 fi 1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1514 test $ac_status = 0; } && { 1515 test -z "$ac_c_werror_flag" || 1516 test ! -s conftest.err 1517 } && test -s conftest.$ac_objext; then : 1518 ac_retval=0 1519else 1520 $as_echo "$as_me: failed program was:" >&5 1521sed 's/^/| /' conftest.$ac_ext >&5 1522 1523 ac_retval=1 1524fi 1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1526 as_fn_set_status $ac_retval 1527 1528} # ac_fn_c_try_compile 1529 1530# ac_fn_c_try_cpp LINENO 1531# ---------------------- 1532# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1533ac_fn_c_try_cpp () 1534{ 1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1536 if { { ac_try="$ac_cpp conftest.$ac_ext" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542$as_echo "$ac_try_echo"; } >&5 1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } > conftest.i && { 1552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1553 test ! -s conftest.err 1554 }; then : 1555 ac_retval=0 1556else 1557 $as_echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_c_try_cpp 1566 1567# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1568# ------------------------------------------------------- 1569# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1570# the include files in INCLUDES and setting the cache variable VAR 1571# accordingly. 1572ac_fn_c_check_header_mongrel () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 if eval \${$3+:} false; then : 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1577$as_echo_n "checking for $2... " >&6; } 1578if eval \${$3+:} false; then : 1579 $as_echo_n "(cached) " >&6 1580fi 1581eval ac_res=\$$3 1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1583$as_echo "$ac_res" >&6; } 1584else 1585 # Is the header compilable? 1586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1587$as_echo_n "checking $2 usability... " >&6; } 1588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589/* end confdefs.h. */ 1590$4 1591#include <$2> 1592_ACEOF 1593if ac_fn_c_try_compile "$LINENO"; then : 1594 ac_header_compiler=yes 1595else 1596 ac_header_compiler=no 1597fi 1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1600$as_echo "$ac_header_compiler" >&6; } 1601 1602# Is the header present? 1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1604$as_echo_n "checking $2 presence... " >&6; } 1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606/* end confdefs.h. */ 1607#include <$2> 1608_ACEOF 1609if ac_fn_c_try_cpp "$LINENO"; then : 1610 ac_header_preproc=yes 1611else 1612 ac_header_preproc=no 1613fi 1614rm -f conftest.err conftest.i conftest.$ac_ext 1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1616$as_echo "$ac_header_preproc" >&6; } 1617 1618# So? What about this header? 1619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1620 yes:no: ) 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1622$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1625 ;; 1626 no:yes:* ) 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1628$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1630$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1632$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1634$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1637( $as_echo "## ---------------------------------------------------------------------- ## 1638## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1639## ---------------------------------------------------------------------- ##" 1640 ) | sed "s/^/$as_me: WARNING: /" >&2 1641 ;; 1642esac 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644$as_echo_n "checking for $2... " >&6; } 1645if eval \${$3+:} false; then : 1646 $as_echo_n "(cached) " >&6 1647else 1648 eval "$3=\$ac_header_compiler" 1649fi 1650eval ac_res=\$$3 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652$as_echo "$ac_res" >&6; } 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 1656} # ac_fn_c_check_header_mongrel 1657 1658# ac_fn_c_try_run LINENO 1659# ---------------------- 1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1661# that executables *can* be run. 1662ac_fn_c_try_run () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if { { ac_try="$ac_link" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_link") 2>&5 1673 ac_status=$? 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1676 { { case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_try") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; }; }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: program exited with status $ac_status" >&5 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=$ac_status 1693fi 1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_run 1699 1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1701# ------------------------------------------------------- 1702# Tests whether HEADER exists and can be compiled using the include files in 1703# INCLUDES, setting the cache variable VAR accordingly. 1704ac_fn_c_check_header_compile () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1708$as_echo_n "checking for $2... " >&6; } 1709if eval \${$3+:} false; then : 1710 $as_echo_n "(cached) " >&6 1711else 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713/* end confdefs.h. */ 1714$4 1715#include <$2> 1716_ACEOF 1717if ac_fn_c_try_compile "$LINENO"; then : 1718 eval "$3=yes" 1719else 1720 eval "$3=no" 1721fi 1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1723fi 1724eval ac_res=\$$3 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1726$as_echo "$ac_res" >&6; } 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 1729} # ac_fn_c_check_header_compile 1730 1731# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1732# --------------------------------------------- 1733# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1734# accordingly. 1735ac_fn_c_check_decl () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 as_decl_name=`echo $2|sed 's/ *(.*//'` 1739 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1741$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1742if eval \${$3+:} false; then : 1743 $as_echo_n "(cached) " >&6 1744else 1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747$4 1748int 1749main () 1750{ 1751#ifndef $as_decl_name 1752#ifdef __cplusplus 1753 (void) $as_decl_use; 1754#else 1755 (void) $as_decl_name; 1756#endif 1757#endif 1758 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763if ac_fn_c_try_compile "$LINENO"; then : 1764 eval "$3=yes" 1765else 1766 eval "$3=no" 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772$as_echo "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_decl 1776 1777# ac_fn_c_try_link LINENO 1778# ----------------------- 1779# Try to link conftest.$ac_ext, and return whether this succeeded. 1780ac_fn_c_try_link () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 rm -f conftest.$ac_objext conftest$ac_exeext 1784 if { { ac_try="$ac_link" 1785case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_link") 2>conftest.err 1792 ac_status=$? 1793 if test -s conftest.err; then 1794 grep -v '^ *+' conftest.err >conftest.er1 1795 cat conftest.er1 >&5 1796 mv -f conftest.er1 conftest.err 1797 fi 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { 1800 test -z "$ac_c_werror_flag" || 1801 test ! -s conftest.err 1802 } && test -s conftest$ac_exeext && { 1803 test "$cross_compiling" = yes || 1804 test -x conftest$ac_exeext 1805 }; then : 1806 ac_retval=0 1807else 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=1 1812fi 1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1815 # interfere with the next link command; also delete a directory that is 1816 # left behind by Apple's compiler. We do this before executing the actions. 1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 as_fn_set_status $ac_retval 1820 1821} # ac_fn_c_try_link 1822 1823# ac_fn_c_check_func LINENO FUNC VAR 1824# ---------------------------------- 1825# Tests whether FUNC exists, setting the cache variable VAR accordingly 1826ac_fn_c_check_func () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1838#define $2 innocuous_$2 1839 1840/* System header to define __stub macros and hopefully few prototypes, 1841 which can conflict with char $2 (); below. 1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1843 <limits.h> exists even on freestanding compilers. */ 1844 1845#ifdef __STDC__ 1846# include <limits.h> 1847#else 1848# include <assert.h> 1849#endif 1850 1851#undef $2 1852 1853/* Override any GCC internal prototype to avoid an error. 1854 Use char because int might match the return type of a GCC 1855 builtin and then its argument prototype would still apply. */ 1856#ifdef __cplusplus 1857extern "C" 1858#endif 1859char $2 (); 1860/* The GNU C library defines this for functions which it implements 1861 to always fail with ENOSYS. Some functions are actually named 1862 something starting with __ and the normal name is an alias. */ 1863#if defined __stub_$2 || defined __stub___$2 1864choke me 1865#endif 1866 1867int 1868main () 1869{ 1870return $2 (); 1871 ; 1872 return 0; 1873} 1874_ACEOF 1875if ac_fn_c_try_link "$LINENO"; then : 1876 eval "$3=yes" 1877else 1878 eval "$3=no" 1879fi 1880rm -f core conftest.err conftest.$ac_objext \ 1881 conftest$ac_exeext conftest.$ac_ext 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 1888} # ac_fn_c_check_func 1889cat >config.log <<_ACEOF 1890This file contains any messages produced by compilers while 1891running configure, to aid debugging if configure makes a mistake. 1892 1893It was created by smproxy $as_me 1.0.6, which was 1894generated by GNU Autoconf 2.69. Invocation command line was 1895 1896 $ $0 $@ 1897 1898_ACEOF 1899exec 5>>config.log 1900{ 1901cat <<_ASUNAME 1902## --------- ## 1903## Platform. ## 1904## --------- ## 1905 1906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1907uname -m = `(uname -m) 2>/dev/null || echo unknown` 1908uname -r = `(uname -r) 2>/dev/null || echo unknown` 1909uname -s = `(uname -s) 2>/dev/null || echo unknown` 1910uname -v = `(uname -v) 2>/dev/null || echo unknown` 1911 1912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1913/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1914 1915/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1916/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1918/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1919/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1920/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1921/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1922 1923_ASUNAME 1924 1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1926for as_dir in $PATH 1927do 1928 IFS=$as_save_IFS 1929 test -z "$as_dir" && as_dir=. 1930 $as_echo "PATH: $as_dir" 1931 done 1932IFS=$as_save_IFS 1933 1934} >&5 1935 1936cat >&5 <<_ACEOF 1937 1938 1939## ----------- ## 1940## Core tests. ## 1941## ----------- ## 1942 1943_ACEOF 1944 1945 1946# Keep a trace of the command line. 1947# Strip out --no-create and --no-recursion so they do not pile up. 1948# Strip out --silent because we don't want to record it for future runs. 1949# Also quote any args containing shell meta-characters. 1950# Make two passes to allow for proper duplicate-argument suppression. 1951ac_configure_args= 1952ac_configure_args0= 1953ac_configure_args1= 1954ac_must_keep_next=false 1955for ac_pass in 1 2 1956do 1957 for ac_arg 1958 do 1959 case $ac_arg in 1960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1962 | -silent | --silent | --silen | --sile | --sil) 1963 continue ;; 1964 *\'*) 1965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1966 esac 1967 case $ac_pass in 1968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1969 2) 1970 as_fn_append ac_configure_args1 " '$ac_arg'" 1971 if test $ac_must_keep_next = true; then 1972 ac_must_keep_next=false # Got value, back to normal. 1973 else 1974 case $ac_arg in 1975 *=* | --config-cache | -C | -disable-* | --disable-* \ 1976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1978 | -with-* | --with-* | -without-* | --without-* | --x) 1979 case "$ac_configure_args0 " in 1980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1981 esac 1982 ;; 1983 -* ) ac_must_keep_next=true ;; 1984 esac 1985 fi 1986 as_fn_append ac_configure_args " '$ac_arg'" 1987 ;; 1988 esac 1989 done 1990done 1991{ ac_configure_args0=; unset ac_configure_args0;} 1992{ ac_configure_args1=; unset ac_configure_args1;} 1993 1994# When interrupted or exit'd, cleanup temporary files, and complete 1995# config.log. We remove comments because anyway the quotes in there 1996# would cause problems or look ugly. 1997# WARNING: Use '\'' to represent an apostrophe within the trap. 1998# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1999trap 'exit_status=$? 2000 # Save into config.log some information that might help in debugging. 2001 { 2002 echo 2003 2004 $as_echo "## ---------------- ## 2005## Cache variables. ## 2006## ---------------- ##" 2007 echo 2008 # The following way of writing the cache mishandles newlines in values, 2009( 2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2011 eval ac_val=\$$ac_var 2012 case $ac_val in #( 2013 *${as_nl}*) 2014 case $ac_var in #( 2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2017 esac 2018 case $ac_var in #( 2019 _ | IFS | as_nl) ;; #( 2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2021 *) { eval $ac_var=; unset $ac_var;} ;; 2022 esac ;; 2023 esac 2024 done 2025 (set) 2>&1 | 2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2027 *${as_nl}ac_space=\ *) 2028 sed -n \ 2029 "s/'\''/'\''\\\\'\'''\''/g; 2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2031 ;; #( 2032 *) 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2034 ;; 2035 esac | 2036 sort 2037) 2038 echo 2039 2040 $as_echo "## ----------------- ## 2041## Output variables. ## 2042## ----------------- ##" 2043 echo 2044 for ac_var in $ac_subst_vars 2045 do 2046 eval ac_val=\$$ac_var 2047 case $ac_val in 2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2049 esac 2050 $as_echo "$ac_var='\''$ac_val'\''" 2051 done | sort 2052 echo 2053 2054 if test -n "$ac_subst_files"; then 2055 $as_echo "## ------------------- ## 2056## File substitutions. ## 2057## ------------------- ##" 2058 echo 2059 for ac_var in $ac_subst_files 2060 do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in 2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2064 esac 2065 $as_echo "$ac_var='\''$ac_val'\''" 2066 done | sort 2067 echo 2068 fi 2069 2070 if test -s confdefs.h; then 2071 $as_echo "## ----------- ## 2072## confdefs.h. ## 2073## ----------- ##" 2074 echo 2075 cat confdefs.h 2076 echo 2077 fi 2078 test "$ac_signal" != 0 && 2079 $as_echo "$as_me: caught signal $ac_signal" 2080 $as_echo "$as_me: exit $exit_status" 2081 } >&5 2082 rm -f core *.core core.conftest.* && 2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2084 exit $exit_status 2085' 0 2086for ac_signal in 1 2 13 15; do 2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2088done 2089ac_signal=0 2090 2091# confdefs.h avoids OS command line length limits that DEFS can exceed. 2092rm -f -r conftest* confdefs.h 2093 2094$as_echo "/* confdefs.h */" > confdefs.h 2095 2096# Predefined preprocessor variables. 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_NAME "$PACKAGE_NAME" 2100_ACEOF 2101 2102cat >>confdefs.h <<_ACEOF 2103#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2104_ACEOF 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_VERSION "$PACKAGE_VERSION" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_STRING "$PACKAGE_STRING" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_URL "$PACKAGE_URL" 2120_ACEOF 2121 2122 2123# Let the site file select an alternate cache file if it wants to. 2124# Prefer an explicitly selected file to automatically selected ones. 2125ac_site_file1=NONE 2126ac_site_file2=NONE 2127if test -n "$CONFIG_SITE"; then 2128 # We do not want a PATH search for config.site. 2129 case $CONFIG_SITE in #(( 2130 -*) ac_site_file1=./$CONFIG_SITE;; 2131 */*) ac_site_file1=$CONFIG_SITE;; 2132 *) ac_site_file1=./$CONFIG_SITE;; 2133 esac 2134elif test "x$prefix" != xNONE; then 2135 ac_site_file1=$prefix/share/config.site 2136 ac_site_file2=$prefix/etc/config.site 2137else 2138 ac_site_file1=$ac_default_prefix/share/config.site 2139 ac_site_file2=$ac_default_prefix/etc/config.site 2140fi 2141for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2142do 2143 test "x$ac_site_file" = xNONE && continue 2144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2146$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2147 sed 's/^/| /' "$ac_site_file" >&5 2148 . "$ac_site_file" \ 2149 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2151as_fn_error $? "failed to load site script $ac_site_file 2152See \`config.log' for more details" "$LINENO" 5; } 2153 fi 2154done 2155 2156if test -r "$cache_file"; then 2157 # Some versions of bash will fail to source /dev/null (special files 2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2161$as_echo "$as_me: loading cache $cache_file" >&6;} 2162 case $cache_file in 2163 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2164 *) . "./$cache_file";; 2165 esac 2166 fi 2167else 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2169$as_echo "$as_me: creating cache $cache_file" >&6;} 2170 >$cache_file 2171fi 2172 2173# Check that the precious variables saved in the cache have kept the same 2174# value. 2175ac_cache_corrupted=false 2176for ac_var in $ac_precious_vars; do 2177 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2178 eval ac_new_set=\$ac_env_${ac_var}_set 2179 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2180 eval ac_new_val=\$ac_env_${ac_var}_value 2181 case $ac_old_set,$ac_new_set in 2182 set,) 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2184$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2185 ac_cache_corrupted=: ;; 2186 ,set) 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2188$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2189 ac_cache_corrupted=: ;; 2190 ,);; 2191 *) 2192 if test "x$ac_old_val" != "x$ac_new_val"; then 2193 # differences in whitespace do not lead to failure. 2194 ac_old_val_w=`echo x $ac_old_val` 2195 ac_new_val_w=`echo x $ac_new_val` 2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2198$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2199 ac_cache_corrupted=: 2200 else 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2202$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2203 eval $ac_var=\$ac_old_val 2204 fi 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2206$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2208$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2209 fi;; 2210 esac 2211 # Pass precious variables to config.status. 2212 if test "$ac_new_set" = set; then 2213 case $ac_new_val in 2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2215 *) ac_arg=$ac_var=$ac_new_val ;; 2216 esac 2217 case " $ac_configure_args " in 2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2220 esac 2221 fi 2222done 2223if $ac_cache_corrupted; then 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2227$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2229fi 2230## -------------------- ## 2231## Main body of script. ## 2232## -------------------- ## 2233 2234ac_ext=c 2235ac_cpp='$CPP $CPPFLAGS' 2236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2238ac_compiler_gnu=$ac_cv_c_compiler_gnu 2239 2240 2241 2242ac_config_headers="$ac_config_headers config.h" 2243 2244 2245# Initialize Automake 2246am__api_version='1.15' 2247 2248ac_aux_dir= 2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2250 if test -f "$ac_dir/install-sh"; then 2251 ac_aux_dir=$ac_dir 2252 ac_install_sh="$ac_aux_dir/install-sh -c" 2253 break 2254 elif test -f "$ac_dir/install.sh"; then 2255 ac_aux_dir=$ac_dir 2256 ac_install_sh="$ac_aux_dir/install.sh -c" 2257 break 2258 elif test -f "$ac_dir/shtool"; then 2259 ac_aux_dir=$ac_dir 2260 ac_install_sh="$ac_aux_dir/shtool install -c" 2261 break 2262 fi 2263done 2264if test -z "$ac_aux_dir"; then 2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2266fi 2267 2268# These three variables are undocumented and unsupported, 2269# and are intended to be withdrawn in a future Autoconf release. 2270# They can cause serious problems if a builder's source tree is in a directory 2271# whose full name contains unusual characters. 2272ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2273ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2274ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2275 2276 2277# Find a good install program. We prefer a C program (faster), 2278# so one script is as good as another. But avoid the broken or 2279# incompatible versions: 2280# SysV /etc/install, /usr/sbin/install 2281# SunOS /usr/etc/install 2282# IRIX /sbin/install 2283# AIX /bin/install 2284# AmigaOS /C/install, which installs bootblocks on floppy discs 2285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2286# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2288# OS/2's system install, which has a completely different semantic 2289# ./install, which can be erroneously created by make from ./install.sh. 2290# Reject install programs that cannot install multiple files. 2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2292$as_echo_n "checking for a BSD-compatible install... " >&6; } 2293if test -z "$INSTALL"; then 2294if ${ac_cv_path_install+:} false; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298for as_dir in $PATH 2299do 2300 IFS=$as_save_IFS 2301 test -z "$as_dir" && as_dir=. 2302 # Account for people who put trailing slashes in PATH elements. 2303case $as_dir/ in #(( 2304 ./ | .// | /[cC]/* | \ 2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2307 /usr/ucb/* ) ;; 2308 *) 2309 # OSF1 and SCO ODT 3.0 have their own names for install. 2310 # Don't use installbsd from OSF since it installs stuff as root 2311 # by default. 2312 for ac_prog in ginstall scoinst install; do 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2315 if test $ac_prog = install && 2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2317 # AIX install. It has an incompatible calling convention. 2318 : 2319 elif test $ac_prog = install && 2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2321 # program-specific install script used by HP pwplus--don't use. 2322 : 2323 else 2324 rm -rf conftest.one conftest.two conftest.dir 2325 echo one > conftest.one 2326 echo two > conftest.two 2327 mkdir conftest.dir 2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2329 test -s conftest.one && test -s conftest.two && 2330 test -s conftest.dir/conftest.one && 2331 test -s conftest.dir/conftest.two 2332 then 2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2334 break 3 2335 fi 2336 fi 2337 fi 2338 done 2339 done 2340 ;; 2341esac 2342 2343 done 2344IFS=$as_save_IFS 2345 2346rm -rf conftest.one conftest.two conftest.dir 2347 2348fi 2349 if test "${ac_cv_path_install+set}" = set; then 2350 INSTALL=$ac_cv_path_install 2351 else 2352 # As a last resort, use the slow shell script. Don't cache a 2353 # value for INSTALL within a source directory, because that will 2354 # break other packages using the cache if that directory is 2355 # removed, or if the value is a relative name. 2356 INSTALL=$ac_install_sh 2357 fi 2358fi 2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2360$as_echo "$INSTALL" >&6; } 2361 2362# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2363# It thinks the first close brace ends the variable substitution. 2364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2365 2366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2367 2368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2369 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2371$as_echo_n "checking whether build environment is sane... " >&6; } 2372# Reject unsafe characters in $srcdir or the absolute working directory 2373# name. Accept space and tab only in the latter. 2374am_lf=' 2375' 2376case `pwd` in 2377 *[\\\"\#\$\&\'\`$am_lf]*) 2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2379esac 2380case $srcdir in 2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2383esac 2384 2385# Do 'set' in a subshell so we don't clobber the current shell's 2386# arguments. Must try -L first in case configure is actually a 2387# symlink; some systems play weird games with the mod time of symlinks 2388# (eg FreeBSD returns the mod time of the symlink's containing 2389# directory). 2390if ( 2391 am_has_slept=no 2392 for am_try in 1 2; do 2393 echo "timestamp, slept: $am_has_slept" > conftest.file 2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2395 if test "$*" = "X"; then 2396 # -L didn't work. 2397 set X `ls -t "$srcdir/configure" conftest.file` 2398 fi 2399 if test "$*" != "X $srcdir/configure conftest.file" \ 2400 && test "$*" != "X conftest.file $srcdir/configure"; then 2401 2402 # If neither matched, then we have a broken ls. This can happen 2403 # if, for instance, CONFIG_SHELL is bash and it inherits a 2404 # broken ls alias from the environment. This has actually 2405 # happened. Such a system could not be considered "sane". 2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2407 alias in your environment" "$LINENO" 5 2408 fi 2409 if test "$2" = conftest.file || test $am_try -eq 2; then 2410 break 2411 fi 2412 # Just in case. 2413 sleep 1 2414 am_has_slept=yes 2415 done 2416 test "$2" = conftest.file 2417 ) 2418then 2419 # Ok. 2420 : 2421else 2422 as_fn_error $? "newly created file is older than distributed files! 2423Check your system clock" "$LINENO" 5 2424fi 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2426$as_echo "yes" >&6; } 2427# If we didn't sleep, we still need to ensure time stamps of config.status and 2428# generated files are strictly newer. 2429am_sleep_pid= 2430if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2431 ( sleep 1 ) & 2432 am_sleep_pid=$! 2433fi 2434 2435rm -f conftest.file 2436 2437test "$program_prefix" != NONE && 2438 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2439# Use a double $ so make ignores it. 2440test "$program_suffix" != NONE && 2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2442# Double any \ or $. 2443# By default was `s,x,x', remove it if useless. 2444ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2445program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2446 2447# Expand $ac_aux_dir to an absolute path. 2448am_aux_dir=`cd "$ac_aux_dir" && pwd` 2449 2450if test x"${MISSING+set}" != xset; then 2451 case $am_aux_dir in 2452 *\ * | *\ *) 2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2454 *) 2455 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2456 esac 2457fi 2458# Use eval to expand $SHELL 2459if eval "$MISSING --is-lightweight"; then 2460 am_missing_run="$MISSING " 2461else 2462 am_missing_run= 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2464$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2465fi 2466 2467if test x"${install_sh+set}" != xset; then 2468 case $am_aux_dir in 2469 *\ * | *\ *) 2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2471 *) 2472 install_sh="\${SHELL} $am_aux_dir/install-sh" 2473 esac 2474fi 2475 2476# Installed binaries are usually stripped using 'strip' when the user 2477# run "make install-strip". However 'strip' might not be the right 2478# tool to use in cross-compilation environments, therefore Automake 2479# will honor the 'STRIP' environment variable to overrule this program. 2480if test "$cross_compiling" != no; then 2481 if test -n "$ac_tool_prefix"; then 2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2483set dummy ${ac_tool_prefix}strip; ac_word=$2 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2485$as_echo_n "checking for $ac_word... " >&6; } 2486if ${ac_cv_prog_STRIP+:} false; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 if test -n "$STRIP"; then 2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2491else 2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2501 break 2 2502 fi 2503done 2504 done 2505IFS=$as_save_IFS 2506 2507fi 2508fi 2509STRIP=$ac_cv_prog_STRIP 2510if test -n "$STRIP"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2512$as_echo "$STRIP" >&6; } 2513else 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2515$as_echo "no" >&6; } 2516fi 2517 2518 2519fi 2520if test -z "$ac_cv_prog_STRIP"; then 2521 ac_ct_STRIP=$STRIP 2522 # Extract the first word of "strip", so it can be a program name with args. 2523set dummy strip; ac_word=$2 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2525$as_echo_n "checking for $ac_word... " >&6; } 2526if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2527 $as_echo_n "(cached) " >&6 2528else 2529 if test -n "$ac_ct_STRIP"; then 2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2531else 2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2533for as_dir in $PATH 2534do 2535 IFS=$as_save_IFS 2536 test -z "$as_dir" && as_dir=. 2537 for ac_exec_ext in '' $ac_executable_extensions; do 2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2539 ac_cv_prog_ac_ct_STRIP="strip" 2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2541 break 2 2542 fi 2543done 2544 done 2545IFS=$as_save_IFS 2546 2547fi 2548fi 2549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2550if test -n "$ac_ct_STRIP"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2552$as_echo "$ac_ct_STRIP" >&6; } 2553else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2555$as_echo "no" >&6; } 2556fi 2557 2558 if test "x$ac_ct_STRIP" = x; then 2559 STRIP=":" 2560 else 2561 case $cross_compiling:$ac_tool_warned in 2562yes:) 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2565ac_tool_warned=yes ;; 2566esac 2567 STRIP=$ac_ct_STRIP 2568 fi 2569else 2570 STRIP="$ac_cv_prog_STRIP" 2571fi 2572 2573fi 2574INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2575 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2577$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2578if test -z "$MKDIR_P"; then 2579 if ${ac_cv_path_mkdir+:} false; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_prog in mkdir gmkdir; do 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2591 'mkdir (GNU coreutils) '* | \ 2592 'mkdir (coreutils) '* | \ 2593 'mkdir (fileutils) '4.1*) 2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2595 break 3;; 2596 esac 2597 done 2598 done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603 2604 test -d ./--version && rmdir ./--version 2605 if test "${ac_cv_path_mkdir+set}" = set; then 2606 MKDIR_P="$ac_cv_path_mkdir -p" 2607 else 2608 # As a last resort, use the slow shell script. Don't cache a 2609 # value for MKDIR_P within a source directory, because that will 2610 # break other packages using the cache if that directory is 2611 # removed, or if the value is a relative name. 2612 MKDIR_P="$ac_install_sh -d" 2613 fi 2614fi 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2616$as_echo "$MKDIR_P" >&6; } 2617 2618for ac_prog in gawk mawk nawk awk 2619do 2620 # Extract the first word of "$ac_prog", so it can be a program name with args. 2621set dummy $ac_prog; ac_word=$2 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2623$as_echo_n "checking for $ac_word... " >&6; } 2624if ${ac_cv_prog_AWK+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 if test -n "$AWK"; then 2628 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2629else 2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2637 ac_cv_prog_AWK="$ac_prog" 2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642 done 2643IFS=$as_save_IFS 2644 2645fi 2646fi 2647AWK=$ac_cv_prog_AWK 2648if test -n "$AWK"; then 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2650$as_echo "$AWK" >&6; } 2651else 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2653$as_echo "no" >&6; } 2654fi 2655 2656 2657 test -n "$AWK" && break 2658done 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2661$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2662set x ${MAKE-make} 2663ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2664if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 cat >conftest.make <<\_ACEOF 2668SHELL = /bin/sh 2669all: 2670 @echo '@@@%%%=$(MAKE)=@@@%%%' 2671_ACEOF 2672# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2673case `${MAKE-make} -f conftest.make 2>/dev/null` in 2674 *@@@%%%=?*=@@@%%%*) 2675 eval ac_cv_prog_make_${ac_make}_set=yes;; 2676 *) 2677 eval ac_cv_prog_make_${ac_make}_set=no;; 2678esac 2679rm -f conftest.make 2680fi 2681if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2683$as_echo "yes" >&6; } 2684 SET_MAKE= 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688 SET_MAKE="MAKE=${MAKE-make}" 2689fi 2690 2691rm -rf .tst 2>/dev/null 2692mkdir .tst 2>/dev/null 2693if test -d .tst; then 2694 am__leading_dot=. 2695else 2696 am__leading_dot=_ 2697fi 2698rmdir .tst 2>/dev/null 2699 2700# Check whether --enable-silent-rules was given. 2701if test "${enable_silent_rules+set}" = set; then : 2702 enableval=$enable_silent_rules; 2703fi 2704 2705case $enable_silent_rules in # ((( 2706 yes) AM_DEFAULT_VERBOSITY=0;; 2707 no) AM_DEFAULT_VERBOSITY=1;; 2708 *) AM_DEFAULT_VERBOSITY=1;; 2709esac 2710am_make=${MAKE-make} 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2712$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2713if ${am_cv_make_support_nested_variables+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if $as_echo 'TRUE=$(BAR$(V)) 2717BAR0=false 2718BAR1=true 2719V=1 2720am__doit: 2721 @$(TRUE) 2722.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2723 am_cv_make_support_nested_variables=yes 2724else 2725 am_cv_make_support_nested_variables=no 2726fi 2727fi 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2729$as_echo "$am_cv_make_support_nested_variables" >&6; } 2730if test $am_cv_make_support_nested_variables = yes; then 2731 AM_V='$(V)' 2732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2733else 2734 AM_V=$AM_DEFAULT_VERBOSITY 2735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2736fi 2737AM_BACKSLASH='\' 2738 2739if test "`cd $srcdir && pwd`" != "`pwd`"; then 2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2741 # is not polluted with repeated "-I." 2742 am__isrc=' -I$(srcdir)' 2743 # test to see if srcdir already configured 2744 if test -f $srcdir/config.status; then 2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2746 fi 2747fi 2748 2749# test whether we have cygpath 2750if test -z "$CYGPATH_W"; then 2751 if (cygpath --version) >/dev/null 2>/dev/null; then 2752 CYGPATH_W='cygpath -w' 2753 else 2754 CYGPATH_W=echo 2755 fi 2756fi 2757 2758 2759# Define the identity of the package. 2760 PACKAGE='smproxy' 2761 VERSION='1.0.6' 2762 2763 2764cat >>confdefs.h <<_ACEOF 2765#define PACKAGE "$PACKAGE" 2766_ACEOF 2767 2768 2769cat >>confdefs.h <<_ACEOF 2770#define VERSION "$VERSION" 2771_ACEOF 2772 2773# Some tools Automake needs. 2774 2775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2776 2777 2778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2779 2780 2781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2782 2783 2784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2785 2786 2787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2788 2789# For better backward compatibility. To be removed once Automake 1.9.x 2790# dies out for good. For more background, see: 2791# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2793mkdir_p='$(MKDIR_P)' 2794 2795# We need awk for the "check" target (and possibly the TAP driver). The 2796# system "awk" is bad on some platforms. 2797# Always define AMTAR for backward compatibility. Yes, it's still used 2798# in the wild :-( We should find a proper way to deprecate it ... 2799AMTAR='$${TAR-tar}' 2800 2801 2802# We'll loop over all known methods to create a tar archive until one works. 2803_am_tools='gnutar pax cpio none' 2804 2805am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2806 2807 2808 2809 2810 2811 2812# POSIX will say in a future version that running "rm -f" with no argument 2813# is OK; and we want to be able to make that assumption in our Makefile 2814# recipes. So use an aggressive probe to check that the usage we want is 2815# actually supported "in the wild" to an acceptable degree. 2816# See automake bug#10828. 2817# To make any issue more visible, cause the running configure to be aborted 2818# by default if the 'rm' program in use doesn't match our expectations; the 2819# user can still override this though. 2820if rm -f && rm -fr && rm -rf; then : OK; else 2821 cat >&2 <<'END' 2822Oops! 2823 2824Your 'rm' program seems unable to run without file operands specified 2825on the command line, even when the '-f' option is present. This is contrary 2826to the behaviour of most rm programs out there, and not conforming with 2827the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2828 2829Please tell bug-automake@gnu.org about your system, including the value 2830of your $PATH and any error possibly output before this message. This 2831can help us improve future automake versions. 2832 2833END 2834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2835 echo 'Configuration will proceed anyway, since you have set the' >&2 2836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2837 echo >&2 2838 else 2839 cat >&2 <<'END' 2840Aborting the configuration process, to ensure you take notice of the issue. 2841 2842You can download and install GNU coreutils to get an 'rm' implementation 2843that behaves properly: <http://www.gnu.org/software/coreutils/>. 2844 2845If you want to complete the configuration process using your problematic 2846'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2847to "yes", and re-run configure. 2848 2849END 2850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2851 fi 2852fi 2853 2854 2855# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2856# Must be called before any macros that run the compiler (like 2857# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 2858DEPDIR="${am__leading_dot}deps" 2859 2860ac_config_commands="$ac_config_commands depfiles" 2861 2862 2863am_make=${MAKE-make} 2864cat > confinc << 'END' 2865am__doit: 2866 @echo this is the am__doit target 2867.PHONY: am__doit 2868END 2869# If we don't find an include directive, just comment out the code. 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2871$as_echo_n "checking for style of include used by $am_make... " >&6; } 2872am__include="#" 2873am__quote= 2874_am_result=none 2875# First try GNU make style include. 2876echo "include confinc" > confmf 2877# Ignore all kinds of additional output from 'make'. 2878case `$am_make -s -f confmf 2> /dev/null` in #( 2879*the\ am__doit\ target*) 2880 am__include=include 2881 am__quote= 2882 _am_result=GNU 2883 ;; 2884esac 2885# Now try BSD make style include. 2886if test "$am__include" = "#"; then 2887 echo '.include "confinc"' > confmf 2888 case `$am_make -s -f confmf 2> /dev/null` in #( 2889 *the\ am__doit\ target*) 2890 am__include=.include 2891 am__quote="\"" 2892 _am_result=BSD 2893 ;; 2894 esac 2895fi 2896 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2899$as_echo "$_am_result" >&6; } 2900rm -f confinc confmf 2901 2902# Check whether --enable-dependency-tracking was given. 2903if test "${enable_dependency_tracking+set}" = set; then : 2904 enableval=$enable_dependency_tracking; 2905fi 2906 2907if test "x$enable_dependency_tracking" != xno; then 2908 am_depcomp="$ac_aux_dir/depcomp" 2909 AMDEPBACKSLASH='\' 2910 am__nodep='_no' 2911fi 2912 if test "x$enable_dependency_tracking" != xno; then 2913 AMDEP_TRUE= 2914 AMDEP_FALSE='#' 2915else 2916 AMDEP_TRUE='#' 2917 AMDEP_FALSE= 2918fi 2919 2920 2921ac_ext=c 2922ac_cpp='$CPP $CPPFLAGS' 2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925ac_compiler_gnu=$ac_cv_c_compiler_gnu 2926if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}gcc; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if ${ac_cv_prog_CC+:} false; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957$as_echo "$CC" >&6; } 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "gcc", so it can be a program name with args. 2968set dummy gcc; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if ${ac_cv_prog_ac_ct_CC+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$ac_ct_CC"; then 2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_ac_ct_CC="gcc" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_CC=$ac_cv_prog_ac_ct_CC 2995if test -n "$ac_ct_CC"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2997$as_echo "$ac_ct_CC" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_CC" = x; then 3004 CC="" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 CC=$ac_ct_CC 3013 fi 3014else 3015 CC="$ac_cv_prog_CC" 3016fi 3017 3018if test -z "$CC"; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}cc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_CC="${ac_tool_prefix}cc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 fi 3058fi 3059if test -z "$CC"; then 3060 # Extract the first word of "cc", so it can be a program name with args. 3061set dummy cc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070 ac_prog_rejected=no 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3079 ac_prog_rejected=yes 3080 continue 3081 fi 3082 ac_cv_prog_CC="cc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090if test $ac_prog_rejected = yes; then 3091 # We found a bogon in the path, so make sure we never use it. 3092 set dummy $ac_cv_prog_CC 3093 shift 3094 if test $# != 0; then 3095 # We chose a different compiler from the bogus one. 3096 # However, it has the same basename, so the bogon will be chosen 3097 # first if we set CC to just the basename; use the full file name. 3098 shift 3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3100 fi 3101fi 3102fi 3103fi 3104CC=$ac_cv_prog_CC 3105if test -n "$CC"; then 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3107$as_echo "$CC" >&6; } 3108else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110$as_echo "no" >&6; } 3111fi 3112 3113 3114fi 3115if test -z "$CC"; then 3116 if test -n "$ac_tool_prefix"; then 3117 for ac_prog in cl.exe 3118 do 3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$CC"; then 3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$CC" && break 3157 done 3158fi 3159if test -z "$CC"; then 3160 ac_ct_CC=$CC 3161 for ac_prog in cl.exe 3162do 3163 # Extract the first word of "$ac_prog", so it can be a program name with args. 3164set dummy $ac_prog; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_ac_ct_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$ac_ct_CC"; then 3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_ac_ct_CC="$ac_prog" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190ac_ct_CC=$ac_cv_prog_ac_ct_CC 3191if test -n "$ac_ct_CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3193$as_echo "$ac_ct_CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 test -n "$ac_ct_CC" && break 3201done 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214fi 3215 3216fi 3217 3218 3219test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "no acceptable C compiler found in \$PATH 3222See \`config.log' for more details" "$LINENO" 5; } 3223 3224# Provide some information about the compiler. 3225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3226set X $ac_compile 3227ac_compiler=$2 3228for ac_option in --version -v -V -qversion; do 3229 { { ac_try="$ac_compiler $ac_option >&5" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3237 ac_status=$? 3238 if test -s conftest.err; then 3239 sed '10a\ 3240... rest of stderr output deleted ... 3241 10q' conftest.err >conftest.er1 3242 cat conftest.er1 >&5 3243 fi 3244 rm -f conftest.er1 conftest.err 3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3246 test $ac_status = 0; } 3247done 3248 3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main () 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260ac_clean_files_save=$ac_clean_files 3261ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3262# Try to create an executable without -o first, disregard a.out. 3263# It will help us diagnose broken compilers, and finding out an intuition 3264# of exeext. 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3266$as_echo_n "checking whether the C compiler works... " >&6; } 3267ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3268 3269# The possible output files: 3270ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3271 3272ac_rmfiles= 3273for ac_file in $ac_files 3274do 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3278 esac 3279done 3280rm -f $ac_rmfiles 3281 3282if { { ac_try="$ac_link_default" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_link_default") 2>&5 3290 ac_status=$? 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292 test $ac_status = 0; }; then : 3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3294# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3295# in a Makefile. We should not override ac_cv_exeext if it was cached, 3296# so that the user can short-circuit this test for compilers unknown to 3297# Autoconf. 3298for ac_file in $ac_files '' 3299do 3300 test -f "$ac_file" || continue 3301 case $ac_file in 3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3303 ;; 3304 [ab].out ) 3305 # We found the default executable, but exeext='' is most 3306 # certainly right. 3307 break;; 3308 *.* ) 3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3310 then :; else 3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 fi 3313 # We set ac_cv_exeext here because the later test for it is not 3314 # safe: cross compilers may not add the suffix if given an `-o' 3315 # argument, so we may need to know it at that point already. 3316 # Even if this section looks crufty: it has the advantage of 3317 # actually working. 3318 break;; 3319 * ) 3320 break;; 3321 esac 3322done 3323test "$ac_cv_exeext" = no && ac_cv_exeext= 3324 3325else 3326 ac_file='' 3327fi 3328if test -z "$ac_file"; then : 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331$as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336as_fn_error 77 "C compiler cannot create executables 3337See \`config.log' for more details" "$LINENO" 5; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3340$as_echo "yes" >&6; } 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3343$as_echo_n "checking for C compiler default output file name... " >&6; } 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3345$as_echo "$ac_file" >&6; } 3346ac_exeext=$ac_cv_exeext 3347 3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349ac_clean_files=$ac_clean_files_save 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3351$as_echo_n "checking for suffix of executables... " >&6; } 3352if { { ac_try="$ac_link" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358$as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_link") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; }; then : 3363 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3364# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3365# work properly (i.e., refer to `conftest.exe'), while it won't with 3366# `rm'. 3367for ac_file in conftest.exe conftest conftest.*; do 3368 test -f "$ac_file" || continue 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3372 break;; 3373 * ) break;; 3374 esac 3375done 3376else 3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3380See \`config.log' for more details" "$LINENO" 5; } 3381fi 3382rm -f conftest conftest$ac_cv_exeext 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3384$as_echo "$ac_cv_exeext" >&6; } 3385 3386rm -f conftest.$ac_ext 3387EXEEXT=$ac_cv_exeext 3388ac_exeext=$EXEEXT 3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <stdio.h> 3392int 3393main () 3394{ 3395FILE *f = fopen ("conftest.out", "w"); 3396 return ferror (f) || fclose (f) != 0; 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402ac_clean_files="$ac_clean_files conftest.out" 3403# Check that the compiler produces executables we can run. If not, either 3404# the compiler is broken, or we cross compile. 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3406$as_echo_n "checking whether we are cross compiling... " >&6; } 3407if test "$cross_compiling" != yes; then 3408 { { ac_try="$ac_link" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_link") 2>&5 3416 ac_status=$? 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; } 3419 if { ac_try='./conftest$ac_cv_exeext' 3420 { { case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3425$as_echo "$ac_try_echo"; } >&5 3426 (eval "$ac_try") 2>&5 3427 ac_status=$? 3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3429 test $ac_status = 0; }; }; then 3430 cross_compiling=no 3431 else 3432 if test "$cross_compiling" = maybe; then 3433 cross_compiling=yes 3434 else 3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error $? "cannot run C compiled programs. 3438If you meant to cross compile, use \`--host'. 3439See \`config.log' for more details" "$LINENO" 5; } 3440 fi 3441 fi 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3444$as_echo "$cross_compiling" >&6; } 3445 3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3447ac_clean_files=$ac_clean_files_save 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3449$as_echo_n "checking for suffix of object files... " >&6; } 3450if ${ac_cv_objext+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464rm -f conftest.o conftest.obj 3465if { { ac_try="$ac_compile" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_compile") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 for ac_file in conftest.o conftest.obj conftest.*; do 3477 test -f "$ac_file" || continue; 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3481 break;; 3482 esac 3483done 3484else 3485 $as_echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "cannot compute suffix of object files: cannot compile 3491See \`config.log' for more details" "$LINENO" 5; } 3492fi 3493rm -f conftest.$ac_cv_objext conftest.$ac_ext 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3496$as_echo "$ac_cv_objext" >&6; } 3497OBJEXT=$ac_cv_objext 3498ac_objext=$OBJEXT 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3501if ${ac_cv_c_compiler_gnu+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510#ifndef __GNUC__ 3511 choke me 3512#endif 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_compiler_gnu=yes 3520else 3521 ac_compiler_gnu=no 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524ac_cv_c_compiler_gnu=$ac_compiler_gnu 3525 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3528$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3529if test $ac_compiler_gnu = yes; then 3530 GCC=yes 3531else 3532 GCC= 3533fi 3534ac_test_CFLAGS=${CFLAGS+set} 3535ac_save_CFLAGS=$CFLAGS 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3537$as_echo_n "checking whether $CC accepts -g... " >&6; } 3538if ${ac_cv_prog_cc_g+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 ac_save_c_werror_flag=$ac_c_werror_flag 3542 ac_c_werror_flag=yes 3543 ac_cv_prog_cc_g=no 3544 CFLAGS="-g" 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_g=yes 3558else 3559 CFLAGS="" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main () 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO"; then : 3572 3573else 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575 CFLAGS="-g" 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587if ac_fn_c_try_compile "$LINENO"; then : 3588 ac_cv_prog_cc_g=yes 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591fi 3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3598$as_echo "$ac_cv_prog_cc_g" >&6; } 3599if test "$ac_test_CFLAGS" = set; then 3600 CFLAGS=$ac_save_CFLAGS 3601elif test $ac_cv_prog_cc_g = yes; then 3602 if test "$GCC" = yes; then 3603 CFLAGS="-g -O2" 3604 else 3605 CFLAGS="-g" 3606 fi 3607else 3608 if test "$GCC" = yes; then 3609 CFLAGS="-O2" 3610 else 3611 CFLAGS= 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3616if ${ac_cv_prog_cc_c89+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_cv_prog_cc_c89=no 3620ac_save_CC=$CC 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623#include <stdarg.h> 3624#include <stdio.h> 3625struct stat; 3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627struct buf { int x; }; 3628FILE * (*rcsopen) (struct buf *, struct stat *, int); 3629static char *e (p, i) 3630 char **p; 3631 int i; 3632{ 3633 return p[i]; 3634} 3635static char *f (char * (*g) (char **, int), char **p, ...) 3636{ 3637 char *s; 3638 va_list v; 3639 va_start (v,p); 3640 s = g (p, va_arg (v,int)); 3641 va_end (v); 3642 return s; 3643} 3644 3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646 function prototypes and stuff, but not '\xHH' hex character constants. 3647 These don't provoke an error unfortunately, instead are silently treated 3648 as 'x'. The following induces an error, until -std is added to get 3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650 array size at least. It's necessary to write '\x00'==0 to get something 3651 that's true only with -std. */ 3652int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653 3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655 inside strings and character constants. */ 3656#define FOO(x) 'x' 3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658 3659int test (int i, double x); 3660struct s1 {int (*f) (int a);}; 3661struct s2 {int (*f) (double a);}; 3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663int argc; 3664char **argv; 3665int 3666main () 3667{ 3668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675do 3676 CC="$ac_save_CC $ac_arg" 3677 if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_c89=$ac_arg 3679fi 3680rm -f core conftest.err conftest.$ac_objext 3681 test "x$ac_cv_prog_cc_c89" != "xno" && break 3682done 3683rm -f conftest.$ac_ext 3684CC=$ac_save_CC 3685 3686fi 3687# AC_CACHE_VAL 3688case "x$ac_cv_prog_cc_c89" in 3689 x) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3691$as_echo "none needed" >&6; } ;; 3692 xno) 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3694$as_echo "unsupported" >&6; } ;; 3695 *) 3696 CC="$CC $ac_cv_prog_cc_c89" 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3698$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3699esac 3700if test "x$ac_cv_prog_cc_c89" != xno; then : 3701 3702fi 3703 3704ac_ext=c 3705ac_cpp='$CPP $CPPFLAGS' 3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708ac_compiler_gnu=$ac_cv_c_compiler_gnu 3709 3710ac_ext=c 3711ac_cpp='$CPP $CPPFLAGS' 3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3714ac_compiler_gnu=$ac_cv_c_compiler_gnu 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3716$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3717if ${am_cv_prog_cc_c_o+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722 3723int 3724main () 3725{ 3726 3727 ; 3728 return 0; 3729} 3730_ACEOF 3731 # Make sure it works both with $CC and with simple cc. 3732 # Following AC_PROG_CC_C_O, we do the test twice because some 3733 # compilers refuse to overwrite an existing .o file with -o, 3734 # though they will create one. 3735 am_cv_prog_cc_c_o=yes 3736 for am_i in 1 2; do 3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3739 ac_status=$? 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); } \ 3742 && test -f conftest2.$ac_objext; then 3743 : OK 3744 else 3745 am_cv_prog_cc_c_o=no 3746 break 3747 fi 3748 done 3749 rm -f core conftest* 3750 unset am_i 3751fi 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3753$as_echo "$am_cv_prog_cc_c_o" >&6; } 3754if test "$am_cv_prog_cc_c_o" != yes; then 3755 # Losing compiler, so override with the script. 3756 # FIXME: It is wrong to rewrite CC. 3757 # But if we don't then we get into trouble of one sort or another. 3758 # A longer-term fix would be to have automake use am__CC in this case, 3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3760 CC="$am_aux_dir/compile $CC" 3761fi 3762ac_ext=c 3763ac_cpp='$CPP $CPPFLAGS' 3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3766ac_compiler_gnu=$ac_cv_c_compiler_gnu 3767 3768 3769depcc="$CC" am_compiler_list= 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3772$as_echo_n "checking dependency style of $depcc... " >&6; } 3773if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3777 # We make a subdir and do the tests there. Otherwise we can end up 3778 # making bogus files that we don't know about and never remove. For 3779 # instance it was reported that on HP-UX the gcc test will end up 3780 # making a dummy file named 'D' -- because '-MD' means "put the output 3781 # in D". 3782 rm -rf conftest.dir 3783 mkdir conftest.dir 3784 # Copy depcomp to subdir because otherwise we won't find it if we're 3785 # using a relative directory. 3786 cp "$am_depcomp" conftest.dir 3787 cd conftest.dir 3788 # We will build objects and dependencies in a subdirectory because 3789 # it helps to detect inapplicable dependency modes. For instance 3790 # both Tru64's cc and ICC support -MD to output dependencies as a 3791 # side effect of compilation, but ICC will put the dependencies in 3792 # the current directory while Tru64 will put them in the object 3793 # directory. 3794 mkdir sub 3795 3796 am_cv_CC_dependencies_compiler_type=none 3797 if test "$am_compiler_list" = ""; then 3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3799 fi 3800 am__universal=false 3801 case " $depcc " in #( 3802 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3803 esac 3804 3805 for depmode in $am_compiler_list; do 3806 # Setup a source with many dependencies, because some compilers 3807 # like to wrap large dependency lists on column 80 (with \), and 3808 # we should not choose a depcomp mode which is confused by this. 3809 # 3810 # We need to recreate these files for each test, as the compiler may 3811 # overwrite some of them when testing with obscure command lines. 3812 # This happens at least with the AIX C compiler. 3813 : > sub/conftest.c 3814 for i in 1 2 3 4 5 6; do 3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3817 # Solaris 10 /bin/sh. 3818 echo '/* dummy */' > sub/conftst$i.h 3819 done 3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3821 3822 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3823 # mode. It turns out that the SunPro C++ compiler does not properly 3824 # handle '-M -o', and we need to detect this. Also, some Intel 3825 # versions had trouble with output in subdirs. 3826 am__obj=sub/conftest.${OBJEXT-o} 3827 am__minus_obj="-o $am__obj" 3828 case $depmode in 3829 gcc) 3830 # This depmode causes a compiler race in universal mode. 3831 test "$am__universal" = false || continue 3832 ;; 3833 nosideeffect) 3834 # After this tag, mechanisms are not by side-effect, so they'll 3835 # only be used when explicitly requested. 3836 if test "x$enable_dependency_tracking" = xyes; then 3837 continue 3838 else 3839 break 3840 fi 3841 ;; 3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3843 # This compiler won't grok '-c -o', but also, the minuso test has 3844 # not run yet. These depmodes are late enough in the game, and 3845 # so weak that their functioning should not be impacted. 3846 am__obj=conftest.${OBJEXT-o} 3847 am__minus_obj= 3848 ;; 3849 none) break ;; 3850 esac 3851 if depmode=$depmode \ 3852 source=sub/conftest.c object=$am__obj \ 3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3855 >/dev/null 2>conftest.err && 3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3860 # icc doesn't choke on unknown options, it will just issue warnings 3861 # or remarks (even with -Werror). So we grep stderr for any message 3862 # that says an option was ignored or not supported. 3863 # When given -MP, icc 7.0 and 7.1 complain thusly: 3864 # icc: Command line warning: ignoring option '-M'; no argument required 3865 # The diagnosis changed in icc 8.0: 3866 # icc: Command line remark: option '-MP' not supported 3867 if (grep 'ignoring option' conftest.err || 3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3869 am_cv_CC_dependencies_compiler_type=$depmode 3870 break 3871 fi 3872 fi 3873 done 3874 3875 cd .. 3876 rm -rf conftest.dir 3877else 3878 am_cv_CC_dependencies_compiler_type=none 3879fi 3880 3881fi 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3885 3886 if 3887 test "x$enable_dependency_tracking" != xno \ 3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3889 am__fastdepCC_TRUE= 3890 am__fastdepCC_FALSE='#' 3891else 3892 am__fastdepCC_TRUE='#' 3893 am__fastdepCC_FALSE= 3894fi 3895 3896 3897 3898ac_ext=c 3899ac_cpp='$CPP $CPPFLAGS' 3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3902ac_compiler_gnu=$ac_cv_c_compiler_gnu 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3904$as_echo_n "checking how to run the C preprocessor... " >&6; } 3905# On Suns, sometimes $CPP names a directory. 3906if test -n "$CPP" && test -d "$CPP"; then 3907 CPP= 3908fi 3909if test -z "$CPP"; then 3910 if ${ac_cv_prog_CPP+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 # Double quotes because CPP needs to be expanded 3914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3915 do 3916 ac_preproc_ok=false 3917for ac_c_preproc_warn_flag in '' yes 3918do 3919 # Use a header file that comes with gcc, so configuring glibc 3920 # with a fresh cross-compiler works. 3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3922 # <limits.h> exists even on freestanding compilers. 3923 # On the NeXT, cc -E runs the code through the compiler's parser, 3924 # not just through cpp. "Syntax error" is here to catch this case. 3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927#ifdef __STDC__ 3928# include <limits.h> 3929#else 3930# include <assert.h> 3931#endif 3932 Syntax error 3933_ACEOF 3934if ac_fn_c_try_cpp "$LINENO"; then : 3935 3936else 3937 # Broken: fails on valid input. 3938continue 3939fi 3940rm -f conftest.err conftest.i conftest.$ac_ext 3941 3942 # OK, works on sane cases. Now check whether nonexistent headers 3943 # can be detected and how. 3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946#include <ac_nonexistent.h> 3947_ACEOF 3948if ac_fn_c_try_cpp "$LINENO"; then : 3949 # Broken: success on invalid input. 3950continue 3951else 3952 # Passes both tests. 3953ac_preproc_ok=: 3954break 3955fi 3956rm -f conftest.err conftest.i conftest.$ac_ext 3957 3958done 3959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3960rm -f conftest.i conftest.err conftest.$ac_ext 3961if $ac_preproc_ok; then : 3962 break 3963fi 3964 3965 done 3966 ac_cv_prog_CPP=$CPP 3967 3968fi 3969 CPP=$ac_cv_prog_CPP 3970else 3971 ac_cv_prog_CPP=$CPP 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3974$as_echo "$CPP" >&6; } 3975ac_preproc_ok=false 3976for ac_c_preproc_warn_flag in '' yes 3977do 3978 # Use a header file that comes with gcc, so configuring glibc 3979 # with a fresh cross-compiler works. 3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3981 # <limits.h> exists even on freestanding compilers. 3982 # On the NeXT, cc -E runs the code through the compiler's parser, 3983 # not just through cpp. "Syntax error" is here to catch this case. 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986#ifdef __STDC__ 3987# include <limits.h> 3988#else 3989# include <assert.h> 3990#endif 3991 Syntax error 3992_ACEOF 3993if ac_fn_c_try_cpp "$LINENO"; then : 3994 3995else 3996 # Broken: fails on valid input. 3997continue 3998fi 3999rm -f conftest.err conftest.i conftest.$ac_ext 4000 4001 # OK, works on sane cases. Now check whether nonexistent headers 4002 # can be detected and how. 4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004/* end confdefs.h. */ 4005#include <ac_nonexistent.h> 4006_ACEOF 4007if ac_fn_c_try_cpp "$LINENO"; then : 4008 # Broken: success on invalid input. 4009continue 4010else 4011 # Passes both tests. 4012ac_preproc_ok=: 4013break 4014fi 4015rm -f conftest.err conftest.i conftest.$ac_ext 4016 4017done 4018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4019rm -f conftest.i conftest.err conftest.$ac_ext 4020if $ac_preproc_ok; then : 4021 4022else 4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4025as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4026See \`config.log' for more details" "$LINENO" 5; } 4027fi 4028 4029ac_ext=c 4030ac_cpp='$CPP $CPPFLAGS' 4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4033ac_compiler_gnu=$ac_cv_c_compiler_gnu 4034 4035 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4037$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4038if ${ac_cv_path_GREP+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -z "$GREP"; then 4042 ac_path_GREP_found=false 4043 # Loop through the user's path and test for each of PROGNAME-LIST 4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_prog in grep ggrep; do 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4052 as_fn_executable_p "$ac_path_GREP" || continue 4053# Check for GNU ac_path_GREP and select it if it is found. 4054 # Check for GNU $ac_path_GREP 4055case `"$ac_path_GREP" --version 2>&1` in 4056*GNU*) 4057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4058*) 4059 ac_count=0 4060 $as_echo_n 0123456789 >"conftest.in" 4061 while : 4062 do 4063 cat "conftest.in" "conftest.in" >"conftest.tmp" 4064 mv "conftest.tmp" "conftest.in" 4065 cp "conftest.in" "conftest.nl" 4066 $as_echo 'GREP' >> "conftest.nl" 4067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4069 as_fn_arith $ac_count + 1 && ac_count=$as_val 4070 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4071 # Best one so far, save it but keep looking for a better one 4072 ac_cv_path_GREP="$ac_path_GREP" 4073 ac_path_GREP_max=$ac_count 4074 fi 4075 # 10*(2^10) chars as input seems more than enough 4076 test $ac_count -gt 10 && break 4077 done 4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4079esac 4080 4081 $ac_path_GREP_found && break 3 4082 done 4083 done 4084 done 4085IFS=$as_save_IFS 4086 if test -z "$ac_cv_path_GREP"; then 4087 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4088 fi 4089else 4090 ac_cv_path_GREP=$GREP 4091fi 4092 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4095$as_echo "$ac_cv_path_GREP" >&6; } 4096 GREP="$ac_cv_path_GREP" 4097 4098 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4100$as_echo_n "checking for egrep... " >&6; } 4101if ${ac_cv_path_EGREP+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4105 then ac_cv_path_EGREP="$GREP -E" 4106 else 4107 if test -z "$EGREP"; then 4108 ac_path_EGREP_found=false 4109 # Loop through the user's path and test for each of PROGNAME-LIST 4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4112do 4113 IFS=$as_save_IFS 4114 test -z "$as_dir" && as_dir=. 4115 for ac_prog in egrep; do 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4118 as_fn_executable_p "$ac_path_EGREP" || continue 4119# Check for GNU ac_path_EGREP and select it if it is found. 4120 # Check for GNU $ac_path_EGREP 4121case `"$ac_path_EGREP" --version 2>&1` in 4122*GNU*) 4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4124*) 4125 ac_count=0 4126 $as_echo_n 0123456789 >"conftest.in" 4127 while : 4128 do 4129 cat "conftest.in" "conftest.in" >"conftest.tmp" 4130 mv "conftest.tmp" "conftest.in" 4131 cp "conftest.in" "conftest.nl" 4132 $as_echo 'EGREP' >> "conftest.nl" 4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4135 as_fn_arith $ac_count + 1 && ac_count=$as_val 4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4137 # Best one so far, save it but keep looking for a better one 4138 ac_cv_path_EGREP="$ac_path_EGREP" 4139 ac_path_EGREP_max=$ac_count 4140 fi 4141 # 10*(2^10) chars as input seems more than enough 4142 test $ac_count -gt 10 && break 4143 done 4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4145esac 4146 4147 $ac_path_EGREP_found && break 3 4148 done 4149 done 4150 done 4151IFS=$as_save_IFS 4152 if test -z "$ac_cv_path_EGREP"; then 4153 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4154 fi 4155else 4156 ac_cv_path_EGREP=$EGREP 4157fi 4158 4159 fi 4160fi 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4162$as_echo "$ac_cv_path_EGREP" >&6; } 4163 EGREP="$ac_cv_path_EGREP" 4164 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4167$as_echo_n "checking for ANSI C header files... " >&6; } 4168if ${ac_cv_header_stdc+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173#include <stdlib.h> 4174#include <stdarg.h> 4175#include <string.h> 4176#include <float.h> 4177 4178int 4179main () 4180{ 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186if ac_fn_c_try_compile "$LINENO"; then : 4187 ac_cv_header_stdc=yes 4188else 4189 ac_cv_header_stdc=no 4190fi 4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4192 4193if test $ac_cv_header_stdc = yes; then 4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197#include <string.h> 4198 4199_ACEOF 4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4201 $EGREP "memchr" >/dev/null 2>&1; then : 4202 4203else 4204 ac_cv_header_stdc=no 4205fi 4206rm -f conftest* 4207 4208fi 4209 4210if test $ac_cv_header_stdc = yes; then 4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214#include <stdlib.h> 4215 4216_ACEOF 4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4218 $EGREP "free" >/dev/null 2>&1; then : 4219 4220else 4221 ac_cv_header_stdc=no 4222fi 4223rm -f conftest* 4224 4225fi 4226 4227if test $ac_cv_header_stdc = yes; then 4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4229 if test "$cross_compiling" = yes; then : 4230 : 4231else 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234#include <ctype.h> 4235#include <stdlib.h> 4236#if ((' ' & 0x0FF) == 0x020) 4237# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4238# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4239#else 4240# define ISLOWER(c) \ 4241 (('a' <= (c) && (c) <= 'i') \ 4242 || ('j' <= (c) && (c) <= 'r') \ 4243 || ('s' <= (c) && (c) <= 'z')) 4244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4245#endif 4246 4247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4248int 4249main () 4250{ 4251 int i; 4252 for (i = 0; i < 256; i++) 4253 if (XOR (islower (i), ISLOWER (i)) 4254 || toupper (i) != TOUPPER (i)) 4255 return 2; 4256 return 0; 4257} 4258_ACEOF 4259if ac_fn_c_try_run "$LINENO"; then : 4260 4261else 4262 ac_cv_header_stdc=no 4263fi 4264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4265 conftest.$ac_objext conftest.beam conftest.$ac_ext 4266fi 4267 4268fi 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4271$as_echo "$ac_cv_header_stdc" >&6; } 4272if test $ac_cv_header_stdc = yes; then 4273 4274$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4275 4276fi 4277 4278# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4280 inttypes.h stdint.h unistd.h 4281do : 4282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4284" 4285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4286 cat >>confdefs.h <<_ACEOF 4287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4288_ACEOF 4289 4290fi 4291 4292done 4293 4294 4295 4296 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4297if test "x$ac_cv_header_minix_config_h" = xyes; then : 4298 MINIX=yes 4299else 4300 MINIX= 4301fi 4302 4303 4304 if test "$MINIX" = yes; then 4305 4306$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4307 4308 4309$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4310 4311 4312$as_echo "#define _MINIX 1" >>confdefs.h 4313 4314 fi 4315 4316 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4318$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4319if ${ac_cv_safe_to_define___extensions__+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324 4325# define __EXTENSIONS__ 1 4326 $ac_includes_default 4327int 4328main () 4329{ 4330 4331 ; 4332 return 0; 4333} 4334_ACEOF 4335if ac_fn_c_try_compile "$LINENO"; then : 4336 ac_cv_safe_to_define___extensions__=yes 4337else 4338 ac_cv_safe_to_define___extensions__=no 4339fi 4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4343$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4344 test $ac_cv_safe_to_define___extensions__ = yes && 4345 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4346 4347 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4348 4349 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4350 4351 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4352 4353 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4354 4355 4356 4357# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4370$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4371if ${ac_cv_prog_cc_c99+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 ac_cv_prog_cc_c99=no 4375ac_save_CC=$CC 4376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378#include <stdarg.h> 4379#include <stdbool.h> 4380#include <stdlib.h> 4381#include <wchar.h> 4382#include <stdio.h> 4383 4384// Check varargs macros. These examples are taken from C99 6.10.3.5. 4385#define debug(...) fprintf (stderr, __VA_ARGS__) 4386#define showlist(...) puts (#__VA_ARGS__) 4387#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4388static void 4389test_varargs_macros (void) 4390{ 4391 int x = 1234; 4392 int y = 5678; 4393 debug ("Flag"); 4394 debug ("X = %d\n", x); 4395 showlist (The first, second, and third items.); 4396 report (x>y, "x is %d but y is %d", x, y); 4397} 4398 4399// Check long long types. 4400#define BIG64 18446744073709551615ull 4401#define BIG32 4294967295ul 4402#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4403#if !BIG_OK 4404 your preprocessor is broken; 4405#endif 4406#if BIG_OK 4407#else 4408 your preprocessor is broken; 4409#endif 4410static long long int bignum = -9223372036854775807LL; 4411static unsigned long long int ubignum = BIG64; 4412 4413struct incomplete_array 4414{ 4415 int datasize; 4416 double data[]; 4417}; 4418 4419struct named_init { 4420 int number; 4421 const wchar_t *name; 4422 double average; 4423}; 4424 4425typedef const char *ccp; 4426 4427static inline int 4428test_restrict (ccp restrict text) 4429{ 4430 // See if C++-style comments work. 4431 // Iterate through items via the restricted pointer. 4432 // Also check for declarations in for loops. 4433 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4434 continue; 4435 return 0; 4436} 4437 4438// Check varargs and va_copy. 4439static void 4440test_varargs (const char *format, ...) 4441{ 4442 va_list args; 4443 va_start (args, format); 4444 va_list args_copy; 4445 va_copy (args_copy, args); 4446 4447 const char *str; 4448 int number; 4449 float fnumber; 4450 4451 while (*format) 4452 { 4453 switch (*format++) 4454 { 4455 case 's': // string 4456 str = va_arg (args_copy, const char *); 4457 break; 4458 case 'd': // int 4459 number = va_arg (args_copy, int); 4460 break; 4461 case 'f': // float 4462 fnumber = va_arg (args_copy, double); 4463 break; 4464 default: 4465 break; 4466 } 4467 } 4468 va_end (args_copy); 4469 va_end (args); 4470} 4471 4472int 4473main () 4474{ 4475 4476 // Check bool. 4477 _Bool success = false; 4478 4479 // Check restrict. 4480 if (test_restrict ("String literal") == 0) 4481 success = true; 4482 char *restrict newvar = "Another string"; 4483 4484 // Check varargs. 4485 test_varargs ("s, d' f .", "string", 65, 34.234); 4486 test_varargs_macros (); 4487 4488 // Check flexible array members. 4489 struct incomplete_array *ia = 4490 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4491 ia->datasize = 10; 4492 for (int i = 0; i < ia->datasize; ++i) 4493 ia->data[i] = i * 1.234; 4494 4495 // Check named initializers. 4496 struct named_init ni = { 4497 .number = 34, 4498 .name = L"Test wide string", 4499 .average = 543.34343, 4500 }; 4501 4502 ni.number = 58; 4503 4504 int dynamic_array[ni.number]; 4505 dynamic_array[ni.number - 1] = 543; 4506 4507 // work around unused variable warnings 4508 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4509 || dynamic_array[ni.number - 1] != 543); 4510 4511 ; 4512 return 0; 4513} 4514_ACEOF 4515for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4516do 4517 CC="$ac_save_CC $ac_arg" 4518 if ac_fn_c_try_compile "$LINENO"; then : 4519 ac_cv_prog_cc_c99=$ac_arg 4520fi 4521rm -f core conftest.err conftest.$ac_objext 4522 test "x$ac_cv_prog_cc_c99" != "xno" && break 4523done 4524rm -f conftest.$ac_ext 4525CC=$ac_save_CC 4526 4527fi 4528# AC_CACHE_VAL 4529case "x$ac_cv_prog_cc_c99" in 4530 x) 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4532$as_echo "none needed" >&6; } ;; 4533 xno) 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4535$as_echo "unsupported" >&6; } ;; 4536 *) 4537 CC="$CC $ac_cv_prog_cc_c99" 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4539$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4540esac 4541if test "x$ac_cv_prog_cc_c99" != xno; then : 4542 4543fi 4544 4545 4546 4547 4548 4549 4550ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4551if test "x$ac_cv_have_decl___clang__" = xyes; then : 4552 CLANGCC="yes" 4553else 4554 CLANGCC="no" 4555fi 4556 4557ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4558if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4559 INTELCC="yes" 4560else 4561 INTELCC="no" 4562fi 4563 4564ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4565if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4566 SUNCC="yes" 4567else 4568 SUNCC="no" 4569fi 4570 4571 4572 4573 4574if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4575 if test -n "$ac_tool_prefix"; then 4576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4577set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579$as_echo_n "checking for $ac_word... " >&6; } 4580if ${ac_cv_path_PKG_CONFIG+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 case $PKG_CONFIG in 4584 [\\/]* | ?:[\\/]*) 4585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4586 ;; 4587 *) 4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589for as_dir in $PATH 4590do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599done 4600 done 4601IFS=$as_save_IFS 4602 4603 ;; 4604esac 4605fi 4606PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4607if test -n "$PKG_CONFIG"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4609$as_echo "$PKG_CONFIG" >&6; } 4610else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612$as_echo "no" >&6; } 4613fi 4614 4615 4616fi 4617if test -z "$ac_cv_path_PKG_CONFIG"; then 4618 ac_pt_PKG_CONFIG=$PKG_CONFIG 4619 # Extract the first word of "pkg-config", so it can be a program name with args. 4620set dummy pkg-config; ac_word=$2 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4622$as_echo_n "checking for $ac_word... " >&6; } 4623if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 case $ac_pt_PKG_CONFIG in 4627 [\\/]* | ?:[\\/]*) 4628 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4629 ;; 4630 *) 4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4632for as_dir in $PATH 4633do 4634 IFS=$as_save_IFS 4635 test -z "$as_dir" && as_dir=. 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4638 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4640 break 2 4641 fi 4642done 4643 done 4644IFS=$as_save_IFS 4645 4646 ;; 4647esac 4648fi 4649ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4650if test -n "$ac_pt_PKG_CONFIG"; then 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4652$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4653else 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655$as_echo "no" >&6; } 4656fi 4657 4658 if test "x$ac_pt_PKG_CONFIG" = x; then 4659 PKG_CONFIG="" 4660 else 4661 case $cross_compiling:$ac_tool_warned in 4662yes:) 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4665ac_tool_warned=yes ;; 4666esac 4667 PKG_CONFIG=$ac_pt_PKG_CONFIG 4668 fi 4669else 4670 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4671fi 4672 4673fi 4674if test -n "$PKG_CONFIG"; then 4675 _pkg_min_version=0.9.0 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4677$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4678 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4680$as_echo "yes" >&6; } 4681 else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683$as_echo "no" >&6; } 4684 PKG_CONFIG="" 4685 fi 4686 4687fi 4688# Make sure we can run config.sub. 4689$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4690 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4691 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4693$as_echo_n "checking build system type... " >&6; } 4694if ${ac_cv_build+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 ac_build_alias=$build_alias 4698test "x$ac_build_alias" = x && 4699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4700test "x$ac_build_alias" = x && 4701 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4702ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4704 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4707$as_echo "$ac_cv_build" >&6; } 4708case $ac_cv_build in 4709*-*-*) ;; 4710*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4711esac 4712build=$ac_cv_build 4713ac_save_IFS=$IFS; IFS='-' 4714set x $ac_cv_build 4715shift 4716build_cpu=$1 4717build_vendor=$2 4718shift; shift 4719# Remember, the first character of IFS is used to create $*, 4720# except with old shells: 4721build_os=$* 4722IFS=$ac_save_IFS 4723case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4724 4725 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4727$as_echo_n "checking host system type... " >&6; } 4728if ${ac_cv_host+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 if test "x$host_alias" = x; then 4732 ac_cv_host=$ac_cv_build 4733else 4734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4736fi 4737 4738fi 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4740$as_echo "$ac_cv_host" >&6; } 4741case $ac_cv_host in 4742*-*-*) ;; 4743*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4744esac 4745host=$ac_cv_host 4746ac_save_IFS=$IFS; IFS='-' 4747set x $ac_cv_host 4748shift 4749host_cpu=$1 4750host_vendor=$2 4751shift; shift 4752# Remember, the first character of IFS is used to create $*, 4753# except with old shells: 4754host_os=$* 4755IFS=$ac_save_IFS 4756case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4757 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4760$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4761if ${ac_cv_path_SED+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4765 for ac_i in 1 2 3 4 5 6 7; do 4766 ac_script="$ac_script$as_nl$ac_script" 4767 done 4768 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4769 { ac_script=; unset ac_script;} 4770 if test -z "$SED"; then 4771 ac_path_SED_found=false 4772 # Loop through the user's path and test for each of PROGNAME-LIST 4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_prog in sed gsed; do 4779 for ac_exec_ext in '' $ac_executable_extensions; do 4780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4781 as_fn_executable_p "$ac_path_SED" || continue 4782# Check for GNU ac_path_SED and select it if it is found. 4783 # Check for GNU $ac_path_SED 4784case `"$ac_path_SED" --version 2>&1` in 4785*GNU*) 4786 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4787*) 4788 ac_count=0 4789 $as_echo_n 0123456789 >"conftest.in" 4790 while : 4791 do 4792 cat "conftest.in" "conftest.in" >"conftest.tmp" 4793 mv "conftest.tmp" "conftest.in" 4794 cp "conftest.in" "conftest.nl" 4795 $as_echo '' >> "conftest.nl" 4796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4798 as_fn_arith $ac_count + 1 && ac_count=$as_val 4799 if test $ac_count -gt ${ac_path_SED_max-0}; then 4800 # Best one so far, save it but keep looking for a better one 4801 ac_cv_path_SED="$ac_path_SED" 4802 ac_path_SED_max=$ac_count 4803 fi 4804 # 10*(2^10) chars as input seems more than enough 4805 test $ac_count -gt 10 && break 4806 done 4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4808esac 4809 4810 $ac_path_SED_found && break 3 4811 done 4812 done 4813 done 4814IFS=$as_save_IFS 4815 if test -z "$ac_cv_path_SED"; then 4816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4817 fi 4818else 4819 ac_cv_path_SED=$SED 4820fi 4821 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4824$as_echo "$ac_cv_path_SED" >&6; } 4825 SED="$ac_cv_path_SED" 4826 rm -f conftest.sed 4827 4828 4829 4830 4831 4832 4833# Check whether --enable-selective-werror was given. 4834if test "${enable_selective_werror+set}" = set; then : 4835 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4836else 4837 SELECTIVE_WERROR=yes 4838fi 4839 4840 4841 4842 4843 4844# -v is too short to test reliably with XORG_TESTSET_CFLAG 4845if test "x$SUNCC" = "xyes"; then 4846 BASE_CFLAGS="-v" 4847else 4848 BASE_CFLAGS="" 4849fi 4850 4851# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865xorg_testset_save_CFLAGS="$CFLAGS" 4866 4867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876int i; 4877_ACEOF 4878if ac_fn_c_try_compile "$LINENO"; then : 4879 xorg_cv_cc_flag_unknown_warning_option=yes 4880else 4881 xorg_cv_cc_flag_unknown_warning_option=no 4882fi 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4884fi 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4888 CFLAGS="$xorg_testset_save_CFLAGS" 4889fi 4890 4891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4894 fi 4895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903int i; 4904_ACEOF 4905if ac_fn_c_try_compile "$LINENO"; then : 4906 xorg_cv_cc_flag_unused_command_line_argument=yes 4907else 4908 xorg_cv_cc_flag_unused_command_line_argument=no 4909fi 4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4915 CFLAGS="$xorg_testset_save_CFLAGS" 4916fi 4917 4918found="no" 4919 4920 if test $found = "no" ; then 4921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 fi 4924 4925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 fi 4928 4929 CFLAGS="$CFLAGS -Wall" 4930 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4932$as_echo_n "checking if $CC supports -Wall... " >&6; } 4933 cacheid=xorg_cv_cc_flag__Wall 4934 if eval \${$cacheid+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939int i; 4940int 4941main () 4942{ 4943 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948if ac_fn_c_try_link "$LINENO"; then : 4949 eval $cacheid=yes 4950else 4951 eval $cacheid=no 4952fi 4953rm -f core conftest.err conftest.$ac_objext \ 4954 conftest$ac_exeext conftest.$ac_ext 4955fi 4956 4957 4958 CFLAGS="$xorg_testset_save_CFLAGS" 4959 4960 eval supported=\$$cacheid 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4962$as_echo "$supported" >&6; } 4963 if test "$supported" = "yes" ; then 4964 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4965 found="yes" 4966 fi 4967 fi 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983xorg_testset_save_CFLAGS="$CFLAGS" 4984 4985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994int i; 4995_ACEOF 4996if ac_fn_c_try_compile "$LINENO"; then : 4997 xorg_cv_cc_flag_unknown_warning_option=yes 4998else 4999 xorg_cv_cc_flag_unknown_warning_option=no 5000fi 5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5002fi 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007fi 5008 5009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5012 fi 5013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021int i; 5022_ACEOF 5023if ac_fn_c_try_compile "$LINENO"; then : 5024 xorg_cv_cc_flag_unused_command_line_argument=yes 5025else 5026 xorg_cv_cc_flag_unused_command_line_argument=no 5027fi 5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5033 CFLAGS="$xorg_testset_save_CFLAGS" 5034fi 5035 5036found="no" 5037 5038 if test $found = "no" ; then 5039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5041 fi 5042 5043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5045 fi 5046 5047 CFLAGS="$CFLAGS -Wpointer-arith" 5048 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5050$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5051 cacheid=xorg_cv_cc_flag__Wpointer_arith 5052 if eval \${$cacheid+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057int i; 5058int 5059main () 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066if ac_fn_c_try_link "$LINENO"; then : 5067 eval $cacheid=yes 5068else 5069 eval $cacheid=no 5070fi 5071rm -f core conftest.err conftest.$ac_objext \ 5072 conftest$ac_exeext conftest.$ac_ext 5073fi 5074 5075 5076 CFLAGS="$xorg_testset_save_CFLAGS" 5077 5078 eval supported=\$$cacheid 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5080$as_echo "$supported" >&6; } 5081 if test "$supported" = "yes" ; then 5082 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5083 found="yes" 5084 fi 5085 fi 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101xorg_testset_save_CFLAGS="$CFLAGS" 5102 5103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112int i; 5113_ACEOF 5114if ac_fn_c_try_compile "$LINENO"; then : 5115 xorg_cv_cc_flag_unknown_warning_option=yes 5116else 5117 xorg_cv_cc_flag_unknown_warning_option=no 5118fi 5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5120fi 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125fi 5126 5127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5130 fi 5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139int i; 5140_ACEOF 5141if ac_fn_c_try_compile "$LINENO"; then : 5142 xorg_cv_cc_flag_unused_command_line_argument=yes 5143else 5144 xorg_cv_cc_flag_unused_command_line_argument=no 5145fi 5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5147fi 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5151 CFLAGS="$xorg_testset_save_CFLAGS" 5152fi 5153 5154found="no" 5155 5156 if test $found = "no" ; then 5157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5159 fi 5160 5161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5163 fi 5164 5165 CFLAGS="$CFLAGS -Wmissing-declarations" 5166 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5168$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5169 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5170 if eval \${$cacheid+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175int i; 5176int 5177main () 5178{ 5179 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184if ac_fn_c_try_link "$LINENO"; then : 5185 eval $cacheid=yes 5186else 5187 eval $cacheid=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext \ 5190 conftest$ac_exeext conftest.$ac_ext 5191fi 5192 5193 5194 CFLAGS="$xorg_testset_save_CFLAGS" 5195 5196 eval supported=\$$cacheid 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5198$as_echo "$supported" >&6; } 5199 if test "$supported" = "yes" ; then 5200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5201 found="yes" 5202 fi 5203 fi 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219xorg_testset_save_CFLAGS="$CFLAGS" 5220 5221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230int i; 5231_ACEOF 5232if ac_fn_c_try_compile "$LINENO"; then : 5233 xorg_cv_cc_flag_unknown_warning_option=yes 5234else 5235 xorg_cv_cc_flag_unknown_warning_option=no 5236fi 5237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5238fi 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5242 CFLAGS="$xorg_testset_save_CFLAGS" 5243fi 5244 5245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5248 fi 5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257int i; 5258_ACEOF 5259if ac_fn_c_try_compile "$LINENO"; then : 5260 xorg_cv_cc_flag_unused_command_line_argument=yes 5261else 5262 xorg_cv_cc_flag_unused_command_line_argument=no 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5269 CFLAGS="$xorg_testset_save_CFLAGS" 5270fi 5271 5272found="no" 5273 5274 if test $found = "no" ; then 5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 fi 5278 5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 fi 5282 5283 CFLAGS="$CFLAGS -Wformat=2" 5284 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5286$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5287 cacheid=xorg_cv_cc_flag__Wformat_2 5288 if eval \${$cacheid+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294int 5295main () 5296{ 5297 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302if ac_fn_c_try_link "$LINENO"; then : 5303 eval $cacheid=yes 5304else 5305 eval $cacheid=no 5306fi 5307rm -f core conftest.err conftest.$ac_objext \ 5308 conftest$ac_exeext conftest.$ac_ext 5309fi 5310 5311 5312 CFLAGS="$xorg_testset_save_CFLAGS" 5313 5314 eval supported=\$$cacheid 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5316$as_echo "$supported" >&6; } 5317 if test "$supported" = "yes" ; then 5318 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5319 found="yes" 5320 fi 5321 fi 5322 5323 if test $found = "no" ; then 5324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5326 fi 5327 5328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5330 fi 5331 5332 CFLAGS="$CFLAGS -Wformat" 5333 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5335$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5336 cacheid=xorg_cv_cc_flag__Wformat 5337 if eval \${$cacheid+:} false; then : 5338 $as_echo_n "(cached) " >&6 5339else 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342int i; 5343int 5344main () 5345{ 5346 5347 ; 5348 return 0; 5349} 5350_ACEOF 5351if ac_fn_c_try_link "$LINENO"; then : 5352 eval $cacheid=yes 5353else 5354 eval $cacheid=no 5355fi 5356rm -f core conftest.err conftest.$ac_objext \ 5357 conftest$ac_exeext conftest.$ac_ext 5358fi 5359 5360 5361 CFLAGS="$xorg_testset_save_CFLAGS" 5362 5363 eval supported=\$$cacheid 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5365$as_echo "$supported" >&6; } 5366 if test "$supported" = "yes" ; then 5367 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5368 found="yes" 5369 fi 5370 fi 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388xorg_testset_save_CFLAGS="$CFLAGS" 5389 5390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399int i; 5400_ACEOF 5401if ac_fn_c_try_compile "$LINENO"; then : 5402 xorg_cv_cc_flag_unknown_warning_option=yes 5403else 5404 xorg_cv_cc_flag_unknown_warning_option=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5407fi 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412fi 5413 5414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5417 fi 5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO"; then : 5429 xorg_cv_cc_flag_unused_command_line_argument=yes 5430else 5431 xorg_cv_cc_flag_unused_command_line_argument=no 5432fi 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434fi 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5438 CFLAGS="$xorg_testset_save_CFLAGS" 5439fi 5440 5441found="no" 5442 5443 if test $found = "no" ; then 5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 fi 5447 5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450 fi 5451 5452 CFLAGS="$CFLAGS -Wstrict-prototypes" 5453 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5455$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5456 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5457 if eval \${$cacheid+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462int i; 5463int 5464main () 5465{ 5466 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471if ac_fn_c_try_link "$LINENO"; then : 5472 eval $cacheid=yes 5473else 5474 eval $cacheid=no 5475fi 5476rm -f core conftest.err conftest.$ac_objext \ 5477 conftest$ac_exeext conftest.$ac_ext 5478fi 5479 5480 5481 CFLAGS="$xorg_testset_save_CFLAGS" 5482 5483 eval supported=\$$cacheid 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5485$as_echo "$supported" >&6; } 5486 if test "$supported" = "yes" ; then 5487 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5488 found="yes" 5489 fi 5490 fi 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506xorg_testset_save_CFLAGS="$CFLAGS" 5507 5508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5516/* end confdefs.h. */ 5517int i; 5518_ACEOF 5519if ac_fn_c_try_compile "$LINENO"; then : 5520 xorg_cv_cc_flag_unknown_warning_option=yes 5521else 5522 xorg_cv_cc_flag_unknown_warning_option=no 5523fi 5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5525fi 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530fi 5531 5532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5535 fi 5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545_ACEOF 5546if ac_fn_c_try_compile "$LINENO"; then : 5547 xorg_cv_cc_flag_unused_command_line_argument=yes 5548else 5549 xorg_cv_cc_flag_unused_command_line_argument=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552fi 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5556 CFLAGS="$xorg_testset_save_CFLAGS" 5557fi 5558 5559found="no" 5560 5561 if test $found = "no" ; then 5562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 fi 5565 5566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 fi 5569 5570 CFLAGS="$CFLAGS -Wmissing-prototypes" 5571 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5573$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5574 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5575 if eval \${$cacheid+:} false; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580int i; 5581int 5582main () 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO"; then : 5590 eval $cacheid=yes 5591else 5592 eval $cacheid=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext \ 5595 conftest$ac_exeext conftest.$ac_ext 5596fi 5597 5598 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600 5601 eval supported=\$$cacheid 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5603$as_echo "$supported" >&6; } 5604 if test "$supported" = "yes" ; then 5605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5606 found="yes" 5607 fi 5608 fi 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624xorg_testset_save_CFLAGS="$CFLAGS" 5625 5626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635int i; 5636_ACEOF 5637if ac_fn_c_try_compile "$LINENO"; then : 5638 xorg_cv_cc_flag_unknown_warning_option=yes 5639else 5640 xorg_cv_cc_flag_unknown_warning_option=no 5641fi 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648fi 5649 5650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5653 fi 5654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663_ACEOF 5664if ac_fn_c_try_compile "$LINENO"; then : 5665 xorg_cv_cc_flag_unused_command_line_argument=yes 5666else 5667 xorg_cv_cc_flag_unused_command_line_argument=no 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670fi 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5674 CFLAGS="$xorg_testset_save_CFLAGS" 5675fi 5676 5677found="no" 5678 5679 if test $found = "no" ; then 5680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 fi 5683 5684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5686 fi 5687 5688 CFLAGS="$CFLAGS -Wnested-externs" 5689 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5691$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5692 cacheid=xorg_cv_cc_flag__Wnested_externs 5693 if eval \${$cacheid+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697/* end confdefs.h. */ 5698int i; 5699int 5700main () 5701{ 5702 5703 ; 5704 return 0; 5705} 5706_ACEOF 5707if ac_fn_c_try_link "$LINENO"; then : 5708 eval $cacheid=yes 5709else 5710 eval $cacheid=no 5711fi 5712rm -f core conftest.err conftest.$ac_objext \ 5713 conftest$ac_exeext conftest.$ac_ext 5714fi 5715 5716 5717 CFLAGS="$xorg_testset_save_CFLAGS" 5718 5719 eval supported=\$$cacheid 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5721$as_echo "$supported" >&6; } 5722 if test "$supported" = "yes" ; then 5723 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5724 found="yes" 5725 fi 5726 fi 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742xorg_testset_save_CFLAGS="$CFLAGS" 5743 5744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753int i; 5754_ACEOF 5755if ac_fn_c_try_compile "$LINENO"; then : 5756 xorg_cv_cc_flag_unknown_warning_option=yes 5757else 5758 xorg_cv_cc_flag_unknown_warning_option=no 5759fi 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5761fi 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5765 CFLAGS="$xorg_testset_save_CFLAGS" 5766fi 5767 5768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 fi 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780int i; 5781_ACEOF 5782if ac_fn_c_try_compile "$LINENO"; then : 5783 xorg_cv_cc_flag_unused_command_line_argument=yes 5784else 5785 xorg_cv_cc_flag_unused_command_line_argument=no 5786fi 5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5788fi 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5792 CFLAGS="$xorg_testset_save_CFLAGS" 5793fi 5794 5795found="no" 5796 5797 if test $found = "no" ; then 5798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5800 fi 5801 5802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5804 fi 5805 5806 CFLAGS="$CFLAGS -Wbad-function-cast" 5807 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5809$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5810 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5811 if eval \${$cacheid+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5815/* end confdefs.h. */ 5816int i; 5817int 5818main () 5819{ 5820 5821 ; 5822 return 0; 5823} 5824_ACEOF 5825if ac_fn_c_try_link "$LINENO"; then : 5826 eval $cacheid=yes 5827else 5828 eval $cacheid=no 5829fi 5830rm -f core conftest.err conftest.$ac_objext \ 5831 conftest$ac_exeext conftest.$ac_ext 5832fi 5833 5834 5835 CFLAGS="$xorg_testset_save_CFLAGS" 5836 5837 eval supported=\$$cacheid 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5839$as_echo "$supported" >&6; } 5840 if test "$supported" = "yes" ; then 5841 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5842 found="yes" 5843 fi 5844 fi 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860xorg_testset_save_CFLAGS="$CFLAGS" 5861 5862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871int i; 5872_ACEOF 5873if ac_fn_c_try_compile "$LINENO"; then : 5874 xorg_cv_cc_flag_unknown_warning_option=yes 5875else 5876 xorg_cv_cc_flag_unknown_warning_option=no 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5879fi 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884fi 5885 5886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 fi 5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898int i; 5899_ACEOF 5900if ac_fn_c_try_compile "$LINENO"; then : 5901 xorg_cv_cc_flag_unused_command_line_argument=yes 5902else 5903 xorg_cv_cc_flag_unused_command_line_argument=no 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906fi 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5910 CFLAGS="$xorg_testset_save_CFLAGS" 5911fi 5912 5913found="no" 5914 5915 if test $found = "no" ; then 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 fi 5919 5920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5922 fi 5923 5924 CFLAGS="$CFLAGS -Wold-style-definition" 5925 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5927$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5928 cacheid=xorg_cv_cc_flag__Wold_style_definition 5929 if eval \${$cacheid+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934int i; 5935int 5936main () 5937{ 5938 5939 ; 5940 return 0; 5941} 5942_ACEOF 5943if ac_fn_c_try_link "$LINENO"; then : 5944 eval $cacheid=yes 5945else 5946 eval $cacheid=no 5947fi 5948rm -f core conftest.err conftest.$ac_objext \ 5949 conftest$ac_exeext conftest.$ac_ext 5950fi 5951 5952 5953 CFLAGS="$xorg_testset_save_CFLAGS" 5954 5955 eval supported=\$$cacheid 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5957$as_echo "$supported" >&6; } 5958 if test "$supported" = "yes" ; then 5959 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5960 found="yes" 5961 fi 5962 fi 5963 5964 if test $found = "no" ; then 5965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5967 fi 5968 5969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 fi 5972 5973 CFLAGS="$CFLAGS -fd" 5974 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5976$as_echo_n "checking if $CC supports -fd... " >&6; } 5977 cacheid=xorg_cv_cc_flag__fd 5978 if eval \${$cacheid+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5982/* end confdefs.h. */ 5983int i; 5984int 5985main () 5986{ 5987 5988 ; 5989 return 0; 5990} 5991_ACEOF 5992if ac_fn_c_try_link "$LINENO"; then : 5993 eval $cacheid=yes 5994else 5995 eval $cacheid=no 5996fi 5997rm -f core conftest.err conftest.$ac_objext \ 5998 conftest$ac_exeext conftest.$ac_ext 5999fi 6000 6001 6002 CFLAGS="$xorg_testset_save_CFLAGS" 6003 6004 eval supported=\$$cacheid 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6006$as_echo "$supported" >&6; } 6007 if test "$supported" = "yes" ; then 6008 BASE_CFLAGS="$BASE_CFLAGS -fd" 6009 found="yes" 6010 fi 6011 fi 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027xorg_testset_save_CFLAGS="$CFLAGS" 6028 6029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039_ACEOF 6040if ac_fn_c_try_compile "$LINENO"; then : 6041 xorg_cv_cc_flag_unknown_warning_option=yes 6042else 6043 xorg_cv_cc_flag_unknown_warning_option=no 6044fi 6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051fi 6052 6053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6056 fi 6057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6064/* end confdefs.h. */ 6065int i; 6066_ACEOF 6067if ac_fn_c_try_compile "$LINENO"; then : 6068 xorg_cv_cc_flag_unused_command_line_argument=yes 6069else 6070 xorg_cv_cc_flag_unused_command_line_argument=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6077 CFLAGS="$xorg_testset_save_CFLAGS" 6078fi 6079 6080found="no" 6081 6082 if test $found = "no" ; then 6083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 fi 6086 6087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6089 fi 6090 6091 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6092 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6094$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6095 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6096 if eval \${$cacheid+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6100/* end confdefs.h. */ 6101int i; 6102int 6103main () 6104{ 6105 6106 ; 6107 return 0; 6108} 6109_ACEOF 6110if ac_fn_c_try_link "$LINENO"; then : 6111 eval $cacheid=yes 6112else 6113 eval $cacheid=no 6114fi 6115rm -f core conftest.err conftest.$ac_objext \ 6116 conftest$ac_exeext conftest.$ac_ext 6117fi 6118 6119 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121 6122 eval supported=\$$cacheid 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6124$as_echo "$supported" >&6; } 6125 if test "$supported" = "yes" ; then 6126 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6127 found="yes" 6128 fi 6129 fi 6130 6131 6132 6133 6134 6135# This chunk adds additional warnings that could catch undesired effects. 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149xorg_testset_save_CFLAGS="$CFLAGS" 6150 6151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160int i; 6161_ACEOF 6162if ac_fn_c_try_compile "$LINENO"; then : 6163 xorg_cv_cc_flag_unknown_warning_option=yes 6164else 6165 xorg_cv_cc_flag_unknown_warning_option=no 6166fi 6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6168fi 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6172 CFLAGS="$xorg_testset_save_CFLAGS" 6173fi 6174 6175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6178 fi 6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187int i; 6188_ACEOF 6189if ac_fn_c_try_compile "$LINENO"; then : 6190 xorg_cv_cc_flag_unused_command_line_argument=yes 6191else 6192 xorg_cv_cc_flag_unused_command_line_argument=no 6193fi 6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6195fi 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6199 CFLAGS="$xorg_testset_save_CFLAGS" 6200fi 6201 6202found="no" 6203 6204 if test $found = "no" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 fi 6212 6213 CFLAGS="$CFLAGS -Wunused" 6214 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6216$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6217 cacheid=xorg_cv_cc_flag__Wunused 6218 if eval \${$cacheid+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6222/* end confdefs.h. */ 6223int i; 6224int 6225main () 6226{ 6227 6228 ; 6229 return 0; 6230} 6231_ACEOF 6232if ac_fn_c_try_link "$LINENO"; then : 6233 eval $cacheid=yes 6234else 6235 eval $cacheid=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext \ 6238 conftest$ac_exeext conftest.$ac_ext 6239fi 6240 6241 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243 6244 eval supported=\$$cacheid 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6246$as_echo "$supported" >&6; } 6247 if test "$supported" = "yes" ; then 6248 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6249 found="yes" 6250 fi 6251 fi 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267xorg_testset_save_CFLAGS="$CFLAGS" 6268 6269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278int i; 6279_ACEOF 6280if ac_fn_c_try_compile "$LINENO"; then : 6281 xorg_cv_cc_flag_unknown_warning_option=yes 6282else 6283 xorg_cv_cc_flag_unknown_warning_option=no 6284fi 6285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6286fi 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6290 CFLAGS="$xorg_testset_save_CFLAGS" 6291fi 6292 6293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6296 fi 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302else 6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6304/* end confdefs.h. */ 6305int i; 6306_ACEOF 6307if ac_fn_c_try_compile "$LINENO"; then : 6308 xorg_cv_cc_flag_unused_command_line_argument=yes 6309else 6310 xorg_cv_cc_flag_unused_command_line_argument=no 6311fi 6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6313fi 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6317 CFLAGS="$xorg_testset_save_CFLAGS" 6318fi 6319 6320found="no" 6321 6322 if test $found = "no" ; then 6323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6325 fi 6326 6327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6329 fi 6330 6331 CFLAGS="$CFLAGS -Wuninitialized" 6332 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6334$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6335 cacheid=xorg_cv_cc_flag__Wuninitialized 6336 if eval \${$cacheid+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342int 6343main () 6344{ 6345 6346 ; 6347 return 0; 6348} 6349_ACEOF 6350if ac_fn_c_try_link "$LINENO"; then : 6351 eval $cacheid=yes 6352else 6353 eval $cacheid=no 6354fi 6355rm -f core conftest.err conftest.$ac_objext \ 6356 conftest$ac_exeext conftest.$ac_ext 6357fi 6358 6359 6360 CFLAGS="$xorg_testset_save_CFLAGS" 6361 6362 eval supported=\$$cacheid 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6364$as_echo "$supported" >&6; } 6365 if test "$supported" = "yes" ; then 6366 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6367 found="yes" 6368 fi 6369 fi 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385xorg_testset_save_CFLAGS="$CFLAGS" 6386 6387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396int i; 6397_ACEOF 6398if ac_fn_c_try_compile "$LINENO"; then : 6399 xorg_cv_cc_flag_unknown_warning_option=yes 6400else 6401 xorg_cv_cc_flag_unknown_warning_option=no 6402fi 6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6404fi 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6408 CFLAGS="$xorg_testset_save_CFLAGS" 6409fi 6410 6411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6414 fi 6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6419 $as_echo_n "(cached) " >&6 6420else 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424_ACEOF 6425if ac_fn_c_try_compile "$LINENO"; then : 6426 xorg_cv_cc_flag_unused_command_line_argument=yes 6427else 6428 xorg_cv_cc_flag_unused_command_line_argument=no 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431fi 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6435 CFLAGS="$xorg_testset_save_CFLAGS" 6436fi 6437 6438found="no" 6439 6440 if test $found = "no" ; then 6441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 fi 6444 6445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6447 fi 6448 6449 CFLAGS="$CFLAGS -Wshadow" 6450 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6452$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6453 cacheid=xorg_cv_cc_flag__Wshadow 6454 if eval \${$cacheid+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6458/* end confdefs.h. */ 6459int i; 6460int 6461main () 6462{ 6463 6464 ; 6465 return 0; 6466} 6467_ACEOF 6468if ac_fn_c_try_link "$LINENO"; then : 6469 eval $cacheid=yes 6470else 6471 eval $cacheid=no 6472fi 6473rm -f core conftest.err conftest.$ac_objext \ 6474 conftest$ac_exeext conftest.$ac_ext 6475fi 6476 6477 6478 CFLAGS="$xorg_testset_save_CFLAGS" 6479 6480 eval supported=\$$cacheid 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6482$as_echo "$supported" >&6; } 6483 if test "$supported" = "yes" ; then 6484 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6485 found="yes" 6486 fi 6487 fi 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503xorg_testset_save_CFLAGS="$CFLAGS" 6504 6505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514int i; 6515_ACEOF 6516if ac_fn_c_try_compile "$LINENO"; then : 6517 xorg_cv_cc_flag_unknown_warning_option=yes 6518else 6519 xorg_cv_cc_flag_unknown_warning_option=no 6520fi 6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6522fi 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527fi 6528 6529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6532 fi 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540/* end confdefs.h. */ 6541int i; 6542_ACEOF 6543if ac_fn_c_try_compile "$LINENO"; then : 6544 xorg_cv_cc_flag_unused_command_line_argument=yes 6545else 6546 xorg_cv_cc_flag_unused_command_line_argument=no 6547fi 6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6549fi 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6553 CFLAGS="$xorg_testset_save_CFLAGS" 6554fi 6555 6556found="no" 6557 6558 if test $found = "no" ; then 6559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 fi 6562 6563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6565 fi 6566 6567 CFLAGS="$CFLAGS -Wmissing-noreturn" 6568 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6570$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6571 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6572 if eval \${$cacheid+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6576/* end confdefs.h. */ 6577int i; 6578int 6579main () 6580{ 6581 6582 ; 6583 return 0; 6584} 6585_ACEOF 6586if ac_fn_c_try_link "$LINENO"; then : 6587 eval $cacheid=yes 6588else 6589 eval $cacheid=no 6590fi 6591rm -f core conftest.err conftest.$ac_objext \ 6592 conftest$ac_exeext conftest.$ac_ext 6593fi 6594 6595 6596 CFLAGS="$xorg_testset_save_CFLAGS" 6597 6598 eval supported=\$$cacheid 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6600$as_echo "$supported" >&6; } 6601 if test "$supported" = "yes" ; then 6602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6603 found="yes" 6604 fi 6605 fi 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621xorg_testset_save_CFLAGS="$CFLAGS" 6622 6623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632int i; 6633_ACEOF 6634if ac_fn_c_try_compile "$LINENO"; then : 6635 xorg_cv_cc_flag_unknown_warning_option=yes 6636else 6637 xorg_cv_cc_flag_unknown_warning_option=no 6638fi 6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6640fi 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6644 CFLAGS="$xorg_testset_save_CFLAGS" 6645fi 6646 6647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6650 fi 6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658/* end confdefs.h. */ 6659int i; 6660_ACEOF 6661if ac_fn_c_try_compile "$LINENO"; then : 6662 xorg_cv_cc_flag_unused_command_line_argument=yes 6663else 6664 xorg_cv_cc_flag_unused_command_line_argument=no 6665fi 6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6667fi 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6671 CFLAGS="$xorg_testset_save_CFLAGS" 6672fi 6673 6674found="no" 6675 6676 if test $found = "no" ; then 6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 fi 6680 6681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 fi 6684 6685 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6686 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6688$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6689 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6690 if eval \${$cacheid+:} false; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695int i; 6696int 6697main () 6698{ 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704if ac_fn_c_try_link "$LINENO"; then : 6705 eval $cacheid=yes 6706else 6707 eval $cacheid=no 6708fi 6709rm -f core conftest.err conftest.$ac_objext \ 6710 conftest$ac_exeext conftest.$ac_ext 6711fi 6712 6713 6714 CFLAGS="$xorg_testset_save_CFLAGS" 6715 6716 eval supported=\$$cacheid 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6718$as_echo "$supported" >&6; } 6719 if test "$supported" = "yes" ; then 6720 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6721 found="yes" 6722 fi 6723 fi 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739xorg_testset_save_CFLAGS="$CFLAGS" 6740 6741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749/* end confdefs.h. */ 6750int i; 6751_ACEOF 6752if ac_fn_c_try_compile "$LINENO"; then : 6753 xorg_cv_cc_flag_unknown_warning_option=yes 6754else 6755 xorg_cv_cc_flag_unknown_warning_option=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763fi 6764 6765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776/* end confdefs.h. */ 6777int i; 6778_ACEOF 6779if ac_fn_c_try_compile "$LINENO"; then : 6780 xorg_cv_cc_flag_unused_command_line_argument=yes 6781else 6782 xorg_cv_cc_flag_unused_command_line_argument=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790fi 6791 6792found="no" 6793 6794 if test $found = "no" ; then 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 6799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 fi 6802 6803 CFLAGS="$CFLAGS -Wredundant-decls" 6804 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6806$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6807 cacheid=xorg_cv_cc_flag__Wredundant_decls 6808 if eval \${$cacheid+:} false; then : 6809 $as_echo_n "(cached) " >&6 6810else 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813int i; 6814int 6815main () 6816{ 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_link "$LINENO"; then : 6823 eval $cacheid=yes 6824else 6825 eval $cacheid=no 6826fi 6827rm -f core conftest.err conftest.$ac_objext \ 6828 conftest$ac_exeext conftest.$ac_ext 6829fi 6830 6831 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833 6834 eval supported=\$$cacheid 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6836$as_echo "$supported" >&6; } 6837 if test "$supported" = "yes" ; then 6838 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6839 found="yes" 6840 fi 6841 fi 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857xorg_testset_save_CFLAGS="$CFLAGS" 6858 6859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6867/* end confdefs.h. */ 6868int i; 6869_ACEOF 6870if ac_fn_c_try_compile "$LINENO"; then : 6871 xorg_cv_cc_flag_unknown_warning_option=yes 6872else 6873 xorg_cv_cc_flag_unknown_warning_option=no 6874fi 6875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6876fi 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6880 CFLAGS="$xorg_testset_save_CFLAGS" 6881fi 6882 6883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6886 fi 6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO"; then : 6898 xorg_cv_cc_flag_unused_command_line_argument=yes 6899else 6900 xorg_cv_cc_flag_unused_command_line_argument=no 6901fi 6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6903fi 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6907 CFLAGS="$xorg_testset_save_CFLAGS" 6908fi 6909 6910found="no" 6911 6912 if test $found = "no" ; then 6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 fi 6916 6917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 fi 6920 6921 CFLAGS="$CFLAGS -Wlogical-op" 6922 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6924$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6925 cacheid=xorg_cv_cc_flag__Wlogical_op 6926 if eval \${$cacheid+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932int 6933main () 6934{ 6935 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940if ac_fn_c_try_link "$LINENO"; then : 6941 eval $cacheid=yes 6942else 6943 eval $cacheid=no 6944fi 6945rm -f core conftest.err conftest.$ac_objext \ 6946 conftest$ac_exeext conftest.$ac_ext 6947fi 6948 6949 6950 CFLAGS="$xorg_testset_save_CFLAGS" 6951 6952 eval supported=\$$cacheid 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6954$as_echo "$supported" >&6; } 6955 if test "$supported" = "yes" ; then 6956 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6957 found="yes" 6958 fi 6959 fi 6960 6961 6962 6963# These are currently disabled because they are noisy. They will be enabled 6964# in the future once the codebase is sufficiently modernized to silence 6965# them. For now, I don't want them to drown out the other warnings. 6966# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6967# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6968# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6969 6970# Turn some warnings into errors, so we don't accidently get successful builds 6971# when there are problems that should be fixed. 6972 6973if test "x$SELECTIVE_WERROR" = "xyes" ; then 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987xorg_testset_save_CFLAGS="$CFLAGS" 6988 6989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997/* end confdefs.h. */ 6998int i; 6999_ACEOF 7000if ac_fn_c_try_compile "$LINENO"; then : 7001 xorg_cv_cc_flag_unknown_warning_option=yes 7002else 7003 xorg_cv_cc_flag_unknown_warning_option=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006fi 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 fi 7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026_ACEOF 7027if ac_fn_c_try_compile "$LINENO"; then : 7028 xorg_cv_cc_flag_unused_command_line_argument=yes 7029else 7030 xorg_cv_cc_flag_unused_command_line_argument=no 7031fi 7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7033fi 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7037 CFLAGS="$xorg_testset_save_CFLAGS" 7038fi 7039 7040found="no" 7041 7042 if test $found = "no" ; then 7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7045 fi 7046 7047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 fi 7050 7051 CFLAGS="$CFLAGS -Werror=implicit" 7052 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7054$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7055 cacheid=xorg_cv_cc_flag__Werror_implicit 7056 if eval \${$cacheid+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061int i; 7062int 7063main () 7064{ 7065 7066 ; 7067 return 0; 7068} 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO"; then : 7071 eval $cacheid=yes 7072else 7073 eval $cacheid=no 7074fi 7075rm -f core conftest.err conftest.$ac_objext \ 7076 conftest$ac_exeext conftest.$ac_ext 7077fi 7078 7079 7080 CFLAGS="$xorg_testset_save_CFLAGS" 7081 7082 eval supported=\$$cacheid 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7084$as_echo "$supported" >&6; } 7085 if test "$supported" = "yes" ; then 7086 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7087 found="yes" 7088 fi 7089 fi 7090 7091 if test $found = "no" ; then 7092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7094 fi 7095 7096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7098 fi 7099 7100 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7101 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7103$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7104 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7105 if eval \${$cacheid+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109/* end confdefs.h. */ 7110int i; 7111int 7112main () 7113{ 7114 7115 ; 7116 return 0; 7117} 7118_ACEOF 7119if ac_fn_c_try_link "$LINENO"; then : 7120 eval $cacheid=yes 7121else 7122 eval $cacheid=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext \ 7125 conftest$ac_exeext conftest.$ac_ext 7126fi 7127 7128 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130 7131 eval supported=\$$cacheid 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7133$as_echo "$supported" >&6; } 7134 if test "$supported" = "yes" ; then 7135 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7136 found="yes" 7137 fi 7138 fi 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154xorg_testset_save_CFLAGS="$CFLAGS" 7155 7156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162else 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7164/* end confdefs.h. */ 7165int i; 7166_ACEOF 7167if ac_fn_c_try_compile "$LINENO"; then : 7168 xorg_cv_cc_flag_unknown_warning_option=yes 7169else 7170 xorg_cv_cc_flag_unknown_warning_option=no 7171fi 7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7173fi 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7177 CFLAGS="$xorg_testset_save_CFLAGS" 7178fi 7179 7180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7183 fi 7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192int i; 7193_ACEOF 7194if ac_fn_c_try_compile "$LINENO"; then : 7195 xorg_cv_cc_flag_unused_command_line_argument=yes 7196else 7197 xorg_cv_cc_flag_unused_command_line_argument=no 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200fi 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7204 CFLAGS="$xorg_testset_save_CFLAGS" 7205fi 7206 7207found="no" 7208 7209 if test $found = "no" ; then 7210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7212 fi 7213 7214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7216 fi 7217 7218 CFLAGS="$CFLAGS -Werror=nonnull" 7219 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7221$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7222 cacheid=xorg_cv_cc_flag__Werror_nonnull 7223 if eval \${$cacheid+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228int i; 7229int 7230main () 7231{ 7232 7233 ; 7234 return 0; 7235} 7236_ACEOF 7237if ac_fn_c_try_link "$LINENO"; then : 7238 eval $cacheid=yes 7239else 7240 eval $cacheid=no 7241fi 7242rm -f core conftest.err conftest.$ac_objext \ 7243 conftest$ac_exeext conftest.$ac_ext 7244fi 7245 7246 7247 CFLAGS="$xorg_testset_save_CFLAGS" 7248 7249 eval supported=\$$cacheid 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7251$as_echo "$supported" >&6; } 7252 if test "$supported" = "yes" ; then 7253 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7254 found="yes" 7255 fi 7256 fi 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272xorg_testset_save_CFLAGS="$CFLAGS" 7273 7274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283int i; 7284_ACEOF 7285if ac_fn_c_try_compile "$LINENO"; then : 7286 xorg_cv_cc_flag_unknown_warning_option=yes 7287else 7288 xorg_cv_cc_flag_unknown_warning_option=no 7289fi 7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296fi 7297 7298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7301 fi 7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311_ACEOF 7312if ac_fn_c_try_compile "$LINENO"; then : 7313 xorg_cv_cc_flag_unused_command_line_argument=yes 7314else 7315 xorg_cv_cc_flag_unused_command_line_argument=no 7316fi 7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7322 CFLAGS="$xorg_testset_save_CFLAGS" 7323fi 7324 7325found="no" 7326 7327 if test $found = "no" ; then 7328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7330 fi 7331 7332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7334 fi 7335 7336 CFLAGS="$CFLAGS -Werror=init-self" 7337 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7339$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7340 cacheid=xorg_cv_cc_flag__Werror_init_self 7341 if eval \${$cacheid+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347int 7348main () 7349{ 7350 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_link "$LINENO"; then : 7356 eval $cacheid=yes 7357else 7358 eval $cacheid=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext \ 7361 conftest$ac_exeext conftest.$ac_ext 7362fi 7363 7364 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366 7367 eval supported=\$$cacheid 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7369$as_echo "$supported" >&6; } 7370 if test "$supported" = "yes" ; then 7371 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7372 found="yes" 7373 fi 7374 fi 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390xorg_testset_save_CFLAGS="$CFLAGS" 7391 7392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401int i; 7402_ACEOF 7403if ac_fn_c_try_compile "$LINENO"; then : 7404 xorg_cv_cc_flag_unknown_warning_option=yes 7405else 7406 xorg_cv_cc_flag_unknown_warning_option=no 7407fi 7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7409fi 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7413 CFLAGS="$xorg_testset_save_CFLAGS" 7414fi 7415 7416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7419 fi 7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428int i; 7429_ACEOF 7430if ac_fn_c_try_compile "$LINENO"; then : 7431 xorg_cv_cc_flag_unused_command_line_argument=yes 7432else 7433 xorg_cv_cc_flag_unused_command_line_argument=no 7434fi 7435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7436fi 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7440 CFLAGS="$xorg_testset_save_CFLAGS" 7441fi 7442 7443found="no" 7444 7445 if test $found = "no" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 fi 7453 7454 CFLAGS="$CFLAGS -Werror=main" 7455 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7457$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7458 cacheid=xorg_cv_cc_flag__Werror_main 7459 if eval \${$cacheid+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7463/* end confdefs.h. */ 7464int i; 7465int 7466main () 7467{ 7468 7469 ; 7470 return 0; 7471} 7472_ACEOF 7473if ac_fn_c_try_link "$LINENO"; then : 7474 eval $cacheid=yes 7475else 7476 eval $cacheid=no 7477fi 7478rm -f core conftest.err conftest.$ac_objext \ 7479 conftest$ac_exeext conftest.$ac_ext 7480fi 7481 7482 7483 CFLAGS="$xorg_testset_save_CFLAGS" 7484 7485 eval supported=\$$cacheid 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7487$as_echo "$supported" >&6; } 7488 if test "$supported" = "yes" ; then 7489 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7490 found="yes" 7491 fi 7492 fi 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508xorg_testset_save_CFLAGS="$CFLAGS" 7509 7510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519int i; 7520_ACEOF 7521if ac_fn_c_try_compile "$LINENO"; then : 7522 xorg_cv_cc_flag_unknown_warning_option=yes 7523else 7524 xorg_cv_cc_flag_unknown_warning_option=no 7525fi 7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7531 CFLAGS="$xorg_testset_save_CFLAGS" 7532fi 7533 7534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7537 fi 7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7545/* end confdefs.h. */ 7546int i; 7547_ACEOF 7548if ac_fn_c_try_compile "$LINENO"; then : 7549 xorg_cv_cc_flag_unused_command_line_argument=yes 7550else 7551 xorg_cv_cc_flag_unused_command_line_argument=no 7552fi 7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7554fi 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7558 CFLAGS="$xorg_testset_save_CFLAGS" 7559fi 7560 7561found="no" 7562 7563 if test $found = "no" ; then 7564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 fi 7567 7568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7570 fi 7571 7572 CFLAGS="$CFLAGS -Werror=missing-braces" 7573 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7575$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7576 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7577 if eval \${$cacheid+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582int i; 7583int 7584main () 7585{ 7586 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591if ac_fn_c_try_link "$LINENO"; then : 7592 eval $cacheid=yes 7593else 7594 eval $cacheid=no 7595fi 7596rm -f core conftest.err conftest.$ac_objext \ 7597 conftest$ac_exeext conftest.$ac_ext 7598fi 7599 7600 7601 CFLAGS="$xorg_testset_save_CFLAGS" 7602 7603 eval supported=\$$cacheid 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7605$as_echo "$supported" >&6; } 7606 if test "$supported" = "yes" ; then 7607 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7608 found="yes" 7609 fi 7610 fi 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626xorg_testset_save_CFLAGS="$CFLAGS" 7627 7628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637int i; 7638_ACEOF 7639if ac_fn_c_try_compile "$LINENO"; then : 7640 xorg_cv_cc_flag_unknown_warning_option=yes 7641else 7642 xorg_cv_cc_flag_unknown_warning_option=no 7643fi 7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7645fi 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7649 CFLAGS="$xorg_testset_save_CFLAGS" 7650fi 7651 7652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7655 fi 7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664int i; 7665_ACEOF 7666if ac_fn_c_try_compile "$LINENO"; then : 7667 xorg_cv_cc_flag_unused_command_line_argument=yes 7668else 7669 xorg_cv_cc_flag_unused_command_line_argument=no 7670fi 7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677fi 7678 7679found="no" 7680 7681 if test $found = "no" ; then 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 fi 7685 7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 fi 7689 7690 CFLAGS="$CFLAGS -Werror=sequence-point" 7691 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7693$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7694 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7695 if eval \${$cacheid+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700int i; 7701int 7702main () 7703{ 7704 7705 ; 7706 return 0; 7707} 7708_ACEOF 7709if ac_fn_c_try_link "$LINENO"; then : 7710 eval $cacheid=yes 7711else 7712 eval $cacheid=no 7713fi 7714rm -f core conftest.err conftest.$ac_objext \ 7715 conftest$ac_exeext conftest.$ac_ext 7716fi 7717 7718 7719 CFLAGS="$xorg_testset_save_CFLAGS" 7720 7721 eval supported=\$$cacheid 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7723$as_echo "$supported" >&6; } 7724 if test "$supported" = "yes" ; then 7725 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7726 found="yes" 7727 fi 7728 fi 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744xorg_testset_save_CFLAGS="$CFLAGS" 7745 7746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755int i; 7756_ACEOF 7757if ac_fn_c_try_compile "$LINENO"; then : 7758 xorg_cv_cc_flag_unknown_warning_option=yes 7759else 7760 xorg_cv_cc_flag_unknown_warning_option=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7763fi 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768fi 7769 7770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7773 fi 7774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO"; then : 7785 xorg_cv_cc_flag_unused_command_line_argument=yes 7786else 7787 xorg_cv_cc_flag_unused_command_line_argument=no 7788fi 7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7790fi 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795fi 7796 7797found="no" 7798 7799 if test $found = "no" ; then 7800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 fi 7803 7804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7806 fi 7807 7808 CFLAGS="$CFLAGS -Werror=return-type" 7809 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7811$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7812 cacheid=xorg_cv_cc_flag__Werror_return_type 7813 if eval \${$cacheid+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818int i; 7819int 7820main () 7821{ 7822 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827if ac_fn_c_try_link "$LINENO"; then : 7828 eval $cacheid=yes 7829else 7830 eval $cacheid=no 7831fi 7832rm -f core conftest.err conftest.$ac_objext \ 7833 conftest$ac_exeext conftest.$ac_ext 7834fi 7835 7836 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838 7839 eval supported=\$$cacheid 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7841$as_echo "$supported" >&6; } 7842 if test "$supported" = "yes" ; then 7843 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7844 found="yes" 7845 fi 7846 fi 7847 7848 if test $found = "no" ; then 7849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7851 fi 7852 7853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7855 fi 7856 7857 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7858 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7860$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7861 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7862 if eval \${$cacheid+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867int i; 7868int 7869main () 7870{ 7871 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876if ac_fn_c_try_link "$LINENO"; then : 7877 eval $cacheid=yes 7878else 7879 eval $cacheid=no 7880fi 7881rm -f core conftest.err conftest.$ac_objext \ 7882 conftest$ac_exeext conftest.$ac_ext 7883fi 7884 7885 7886 CFLAGS="$xorg_testset_save_CFLAGS" 7887 7888 eval supported=\$$cacheid 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7890$as_echo "$supported" >&6; } 7891 if test "$supported" = "yes" ; then 7892 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7893 found="yes" 7894 fi 7895 fi 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911xorg_testset_save_CFLAGS="$CFLAGS" 7912 7913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922int i; 7923_ACEOF 7924if ac_fn_c_try_compile "$LINENO"; then : 7925 xorg_cv_cc_flag_unknown_warning_option=yes 7926else 7927 xorg_cv_cc_flag_unknown_warning_option=no 7928fi 7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7930fi 7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7934 CFLAGS="$xorg_testset_save_CFLAGS" 7935fi 7936 7937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7940 fi 7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7945 $as_echo_n "(cached) " >&6 7946else 7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949int i; 7950_ACEOF 7951if ac_fn_c_try_compile "$LINENO"; then : 7952 xorg_cv_cc_flag_unused_command_line_argument=yes 7953else 7954 xorg_cv_cc_flag_unused_command_line_argument=no 7955fi 7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7957fi 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962fi 7963 7964found="no" 7965 7966 if test $found = "no" ; then 7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7969 fi 7970 7971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7973 fi 7974 7975 CFLAGS="$CFLAGS -Werror=trigraphs" 7976 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7978$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7979 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7980 if eval \${$cacheid+:} false; then : 7981 $as_echo_n "(cached) " >&6 7982else 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985int i; 7986int 7987main () 7988{ 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO"; then : 7995 eval $cacheid=yes 7996else 7997 eval $cacheid=no 7998fi 7999rm -f core conftest.err conftest.$ac_objext \ 8000 conftest$ac_exeext conftest.$ac_ext 8001fi 8002 8003 8004 CFLAGS="$xorg_testset_save_CFLAGS" 8005 8006 eval supported=\$$cacheid 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8008$as_echo "$supported" >&6; } 8009 if test "$supported" = "yes" ; then 8010 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8011 found="yes" 8012 fi 8013 fi 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029xorg_testset_save_CFLAGS="$CFLAGS" 8030 8031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040int i; 8041_ACEOF 8042if ac_fn_c_try_compile "$LINENO"; then : 8043 xorg_cv_cc_flag_unknown_warning_option=yes 8044else 8045 xorg_cv_cc_flag_unknown_warning_option=no 8046fi 8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8048fi 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8052 CFLAGS="$xorg_testset_save_CFLAGS" 8053fi 8054 8055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8058 fi 8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066/* end confdefs.h. */ 8067int i; 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO"; then : 8070 xorg_cv_cc_flag_unused_command_line_argument=yes 8071else 8072 xorg_cv_cc_flag_unused_command_line_argument=no 8073fi 8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8075fi 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8079 CFLAGS="$xorg_testset_save_CFLAGS" 8080fi 8081 8082found="no" 8083 8084 if test $found = "no" ; then 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 fi 8088 8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 fi 8092 8093 CFLAGS="$CFLAGS -Werror=array-bounds" 8094 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8096$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8097 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8098 if eval \${$cacheid+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8102/* end confdefs.h. */ 8103int i; 8104int 8105main () 8106{ 8107 8108 ; 8109 return 0; 8110} 8111_ACEOF 8112if ac_fn_c_try_link "$LINENO"; then : 8113 eval $cacheid=yes 8114else 8115 eval $cacheid=no 8116fi 8117rm -f core conftest.err conftest.$ac_objext \ 8118 conftest$ac_exeext conftest.$ac_ext 8119fi 8120 8121 8122 CFLAGS="$xorg_testset_save_CFLAGS" 8123 8124 eval supported=\$$cacheid 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8126$as_echo "$supported" >&6; } 8127 if test "$supported" = "yes" ; then 8128 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8129 found="yes" 8130 fi 8131 fi 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147xorg_testset_save_CFLAGS="$CFLAGS" 8148 8149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8157/* end confdefs.h. */ 8158int i; 8159_ACEOF 8160if ac_fn_c_try_compile "$LINENO"; then : 8161 xorg_cv_cc_flag_unknown_warning_option=yes 8162else 8163 xorg_cv_cc_flag_unknown_warning_option=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171fi 8172 8173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 fi 8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185int i; 8186_ACEOF 8187if ac_fn_c_try_compile "$LINENO"; then : 8188 xorg_cv_cc_flag_unused_command_line_argument=yes 8189else 8190 xorg_cv_cc_flag_unused_command_line_argument=no 8191fi 8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8193fi 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8197 CFLAGS="$xorg_testset_save_CFLAGS" 8198fi 8199 8200found="no" 8201 8202 if test $found = "no" ; then 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 fi 8206 8207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8209 fi 8210 8211 CFLAGS="$CFLAGS -Werror=write-strings" 8212 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8214$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8215 cacheid=xorg_cv_cc_flag__Werror_write_strings 8216 if eval \${$cacheid+:} false; then : 8217 $as_echo_n "(cached) " >&6 8218else 8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220/* end confdefs.h. */ 8221int i; 8222int 8223main () 8224{ 8225 8226 ; 8227 return 0; 8228} 8229_ACEOF 8230if ac_fn_c_try_link "$LINENO"; then : 8231 eval $cacheid=yes 8232else 8233 eval $cacheid=no 8234fi 8235rm -f core conftest.err conftest.$ac_objext \ 8236 conftest$ac_exeext conftest.$ac_ext 8237fi 8238 8239 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241 8242 eval supported=\$$cacheid 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8244$as_echo "$supported" >&6; } 8245 if test "$supported" = "yes" ; then 8246 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8247 found="yes" 8248 fi 8249 fi 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265xorg_testset_save_CFLAGS="$CFLAGS" 8266 8267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276int i; 8277_ACEOF 8278if ac_fn_c_try_compile "$LINENO"; then : 8279 xorg_cv_cc_flag_unknown_warning_option=yes 8280else 8281 xorg_cv_cc_flag_unknown_warning_option=no 8282fi 8283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8288 CFLAGS="$xorg_testset_save_CFLAGS" 8289fi 8290 8291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 fi 8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8299 $as_echo_n "(cached) " >&6 8300else 8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8302/* end confdefs.h. */ 8303int i; 8304_ACEOF 8305if ac_fn_c_try_compile "$LINENO"; then : 8306 xorg_cv_cc_flag_unused_command_line_argument=yes 8307else 8308 xorg_cv_cc_flag_unused_command_line_argument=no 8309fi 8310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8311fi 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8315 CFLAGS="$xorg_testset_save_CFLAGS" 8316fi 8317 8318found="no" 8319 8320 if test $found = "no" ; then 8321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 fi 8324 8325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8327 fi 8328 8329 CFLAGS="$CFLAGS -Werror=address" 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8332$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8333 cacheid=xorg_cv_cc_flag__Werror_address 8334 if eval \${$cacheid+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338/* end confdefs.h. */ 8339int i; 8340int 8341main () 8342{ 8343 8344 ; 8345 return 0; 8346} 8347_ACEOF 8348if ac_fn_c_try_link "$LINENO"; then : 8349 eval $cacheid=yes 8350else 8351 eval $cacheid=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext \ 8354 conftest$ac_exeext conftest.$ac_ext 8355fi 8356 8357 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359 8360 eval supported=\$$cacheid 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8362$as_echo "$supported" >&6; } 8363 if test "$supported" = "yes" ; then 8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8365 found="yes" 8366 fi 8367 fi 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383xorg_testset_save_CFLAGS="$CFLAGS" 8384 8385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8393/* end confdefs.h. */ 8394int i; 8395_ACEOF 8396if ac_fn_c_try_compile "$LINENO"; then : 8397 xorg_cv_cc_flag_unknown_warning_option=yes 8398else 8399 xorg_cv_cc_flag_unknown_warning_option=no 8400fi 8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8402fi 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407fi 8408 8409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8412 fi 8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422_ACEOF 8423if ac_fn_c_try_compile "$LINENO"; then : 8424 xorg_cv_cc_flag_unused_command_line_argument=yes 8425else 8426 xorg_cv_cc_flag_unused_command_line_argument=no 8427fi 8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8429fi 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8433 CFLAGS="$xorg_testset_save_CFLAGS" 8434fi 8435 8436found="no" 8437 8438 if test $found = "no" ; then 8439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8441 fi 8442 8443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8445 fi 8446 8447 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8448 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8450$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8451 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8452 if eval \${$cacheid+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8456/* end confdefs.h. */ 8457int i; 8458int 8459main () 8460{ 8461 8462 ; 8463 return 0; 8464} 8465_ACEOF 8466if ac_fn_c_try_link "$LINENO"; then : 8467 eval $cacheid=yes 8468else 8469 eval $cacheid=no 8470fi 8471rm -f core conftest.err conftest.$ac_objext \ 8472 conftest$ac_exeext conftest.$ac_ext 8473fi 8474 8475 8476 CFLAGS="$xorg_testset_save_CFLAGS" 8477 8478 eval supported=\$$cacheid 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8480$as_echo "$supported" >&6; } 8481 if test "$supported" = "yes" ; then 8482 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8483 found="yes" 8484 fi 8485 fi 8486 8487 if test $found = "no" ; then 8488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8490 fi 8491 8492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8494 fi 8495 8496 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8497 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8499$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8500 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8501 if eval \${$cacheid+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505/* end confdefs.h. */ 8506int i; 8507int 8508main () 8509{ 8510 8511 ; 8512 return 0; 8513} 8514_ACEOF 8515if ac_fn_c_try_link "$LINENO"; then : 8516 eval $cacheid=yes 8517else 8518 eval $cacheid=no 8519fi 8520rm -f core conftest.err conftest.$ac_objext \ 8521 conftest$ac_exeext conftest.$ac_ext 8522fi 8523 8524 8525 CFLAGS="$xorg_testset_save_CFLAGS" 8526 8527 eval supported=\$$cacheid 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8529$as_echo "$supported" >&6; } 8530 if test "$supported" = "yes" ; then 8531 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8532 found="yes" 8533 fi 8534 fi 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550xorg_testset_save_CFLAGS="$CFLAGS" 8551 8552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8557 $as_echo_n "(cached) " >&6 8558else 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560/* end confdefs.h. */ 8561int i; 8562_ACEOF 8563if ac_fn_c_try_compile "$LINENO"; then : 8564 xorg_cv_cc_flag_unknown_warning_option=yes 8565else 8566 xorg_cv_cc_flag_unknown_warning_option=no 8567fi 8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8569fi 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8573 CFLAGS="$xorg_testset_save_CFLAGS" 8574fi 8575 8576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8579 fi 8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8584 $as_echo_n "(cached) " >&6 8585else 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588int i; 8589_ACEOF 8590if ac_fn_c_try_compile "$LINENO"; then : 8591 xorg_cv_cc_flag_unused_command_line_argument=yes 8592else 8593 xorg_cv_cc_flag_unused_command_line_argument=no 8594fi 8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8596fi 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8600 CFLAGS="$xorg_testset_save_CFLAGS" 8601fi 8602 8603found="no" 8604 8605 if test $found = "no" ; then 8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 fi 8609 8610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8612 fi 8613 8614 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8615 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8617$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8618 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8619 if eval \${$cacheid+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625int 8626main () 8627{ 8628 8629 ; 8630 return 0; 8631} 8632_ACEOF 8633if ac_fn_c_try_link "$LINENO"; then : 8634 eval $cacheid=yes 8635else 8636 eval $cacheid=no 8637fi 8638rm -f core conftest.err conftest.$ac_objext \ 8639 conftest$ac_exeext conftest.$ac_ext 8640fi 8641 8642 8643 CFLAGS="$xorg_testset_save_CFLAGS" 8644 8645 eval supported=\$$cacheid 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8647$as_echo "$supported" >&6; } 8648 if test "$supported" = "yes" ; then 8649 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8650 found="yes" 8651 fi 8652 fi 8653 8654 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8655else 8656{ $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 8657$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;} 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671xorg_testset_save_CFLAGS="$CFLAGS" 8672 8673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681/* end confdefs.h. */ 8682int i; 8683_ACEOF 8684if ac_fn_c_try_compile "$LINENO"; then : 8685 xorg_cv_cc_flag_unknown_warning_option=yes 8686else 8687 xorg_cv_cc_flag_unknown_warning_option=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8690fi 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695fi 8696 8697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8700 fi 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int i; 8710_ACEOF 8711if ac_fn_c_try_compile "$LINENO"; then : 8712 xorg_cv_cc_flag_unused_command_line_argument=yes 8713else 8714 xorg_cv_cc_flag_unused_command_line_argument=no 8715fi 8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8717fi 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8721 CFLAGS="$xorg_testset_save_CFLAGS" 8722fi 8723 8724found="no" 8725 8726 if test $found = "no" ; then 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 fi 8730 8731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 fi 8734 8735 CFLAGS="$CFLAGS -Wimplicit" 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8738$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8739 cacheid=xorg_cv_cc_flag__Wimplicit 8740 if eval \${$cacheid+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746int 8747main () 8748{ 8749 8750 ; 8751 return 0; 8752} 8753_ACEOF 8754if ac_fn_c_try_link "$LINENO"; then : 8755 eval $cacheid=yes 8756else 8757 eval $cacheid=no 8758fi 8759rm -f core conftest.err conftest.$ac_objext \ 8760 conftest$ac_exeext conftest.$ac_ext 8761fi 8762 8763 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765 8766 eval supported=\$$cacheid 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8768$as_echo "$supported" >&6; } 8769 if test "$supported" = "yes" ; then 8770 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8771 found="yes" 8772 fi 8773 fi 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789xorg_testset_save_CFLAGS="$CFLAGS" 8790 8791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8796 $as_echo_n "(cached) " >&6 8797else 8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8799/* end confdefs.h. */ 8800int i; 8801_ACEOF 8802if ac_fn_c_try_compile "$LINENO"; then : 8803 xorg_cv_cc_flag_unknown_warning_option=yes 8804else 8805 xorg_cv_cc_flag_unknown_warning_option=no 8806fi 8807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8808fi 8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813fi 8814 8815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8818 fi 8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8826/* end confdefs.h. */ 8827int i; 8828_ACEOF 8829if ac_fn_c_try_compile "$LINENO"; then : 8830 xorg_cv_cc_flag_unused_command_line_argument=yes 8831else 8832 xorg_cv_cc_flag_unused_command_line_argument=no 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8839 CFLAGS="$xorg_testset_save_CFLAGS" 8840fi 8841 8842found="no" 8843 8844 if test $found = "no" ; then 8845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8847 fi 8848 8849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8851 fi 8852 8853 CFLAGS="$CFLAGS -Wnonnull" 8854 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8856$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8857 cacheid=xorg_cv_cc_flag__Wnonnull 8858 if eval \${$cacheid+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8862/* end confdefs.h. */ 8863int i; 8864int 8865main () 8866{ 8867 8868 ; 8869 return 0; 8870} 8871_ACEOF 8872if ac_fn_c_try_link "$LINENO"; then : 8873 eval $cacheid=yes 8874else 8875 eval $cacheid=no 8876fi 8877rm -f core conftest.err conftest.$ac_objext \ 8878 conftest$ac_exeext conftest.$ac_ext 8879fi 8880 8881 8882 CFLAGS="$xorg_testset_save_CFLAGS" 8883 8884 eval supported=\$$cacheid 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8886$as_echo "$supported" >&6; } 8887 if test "$supported" = "yes" ; then 8888 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8889 found="yes" 8890 fi 8891 fi 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907xorg_testset_save_CFLAGS="$CFLAGS" 8908 8909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8914 $as_echo_n "(cached) " >&6 8915else 8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917/* end confdefs.h. */ 8918int i; 8919_ACEOF 8920if ac_fn_c_try_compile "$LINENO"; then : 8921 xorg_cv_cc_flag_unknown_warning_option=yes 8922else 8923 xorg_cv_cc_flag_unknown_warning_option=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931fi 8932 8933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8936 fi 8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8941 $as_echo_n "(cached) " >&6 8942else 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945int i; 8946_ACEOF 8947if ac_fn_c_try_compile "$LINENO"; then : 8948 xorg_cv_cc_flag_unused_command_line_argument=yes 8949else 8950 xorg_cv_cc_flag_unused_command_line_argument=no 8951fi 8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8957 CFLAGS="$xorg_testset_save_CFLAGS" 8958fi 8959 8960found="no" 8961 8962 if test $found = "no" ; then 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 fi 8966 8967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 fi 8970 8971 CFLAGS="$CFLAGS -Winit-self" 8972 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8974$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8975 cacheid=xorg_cv_cc_flag__Winit_self 8976 if eval \${$cacheid+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981int i; 8982int 8983main () 8984{ 8985 8986 ; 8987 return 0; 8988} 8989_ACEOF 8990if ac_fn_c_try_link "$LINENO"; then : 8991 eval $cacheid=yes 8992else 8993 eval $cacheid=no 8994fi 8995rm -f core conftest.err conftest.$ac_objext \ 8996 conftest$ac_exeext conftest.$ac_ext 8997fi 8998 8999 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001 9002 eval supported=\$$cacheid 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9004$as_echo "$supported" >&6; } 9005 if test "$supported" = "yes" ; then 9006 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9007 found="yes" 9008 fi 9009 fi 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025xorg_testset_save_CFLAGS="$CFLAGS" 9026 9027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9035/* end confdefs.h. */ 9036int i; 9037_ACEOF 9038if ac_fn_c_try_compile "$LINENO"; then : 9039 xorg_cv_cc_flag_unknown_warning_option=yes 9040else 9041 xorg_cv_cc_flag_unknown_warning_option=no 9042fi 9043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9044fi 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9048 CFLAGS="$xorg_testset_save_CFLAGS" 9049fi 9050 9051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9054 fi 9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9059 $as_echo_n "(cached) " >&6 9060else 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063int i; 9064_ACEOF 9065if ac_fn_c_try_compile "$LINENO"; then : 9066 xorg_cv_cc_flag_unused_command_line_argument=yes 9067else 9068 xorg_cv_cc_flag_unused_command_line_argument=no 9069fi 9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9071fi 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9075 CFLAGS="$xorg_testset_save_CFLAGS" 9076fi 9077 9078found="no" 9079 9080 if test $found = "no" ; then 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 fi 9084 9085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9087 fi 9088 9089 CFLAGS="$CFLAGS -Wmain" 9090 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9092$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9093 cacheid=xorg_cv_cc_flag__Wmain 9094 if eval \${$cacheid+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099int i; 9100int 9101main () 9102{ 9103 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108if ac_fn_c_try_link "$LINENO"; then : 9109 eval $cacheid=yes 9110else 9111 eval $cacheid=no 9112fi 9113rm -f core conftest.err conftest.$ac_objext \ 9114 conftest$ac_exeext conftest.$ac_ext 9115fi 9116 9117 9118 CFLAGS="$xorg_testset_save_CFLAGS" 9119 9120 eval supported=\$$cacheid 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9122$as_echo "$supported" >&6; } 9123 if test "$supported" = "yes" ; then 9124 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9125 found="yes" 9126 fi 9127 fi 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143xorg_testset_save_CFLAGS="$CFLAGS" 9144 9145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9150 $as_echo_n "(cached) " >&6 9151else 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9153/* end confdefs.h. */ 9154int i; 9155_ACEOF 9156if ac_fn_c_try_compile "$LINENO"; then : 9157 xorg_cv_cc_flag_unknown_warning_option=yes 9158else 9159 xorg_cv_cc_flag_unknown_warning_option=no 9160fi 9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9162fi 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9166 CFLAGS="$xorg_testset_save_CFLAGS" 9167fi 9168 9169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9172 fi 9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9177 $as_echo_n "(cached) " >&6 9178else 9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180/* end confdefs.h. */ 9181int i; 9182_ACEOF 9183if ac_fn_c_try_compile "$LINENO"; then : 9184 xorg_cv_cc_flag_unused_command_line_argument=yes 9185else 9186 xorg_cv_cc_flag_unused_command_line_argument=no 9187fi 9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9189fi 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9193 CFLAGS="$xorg_testset_save_CFLAGS" 9194fi 9195 9196found="no" 9197 9198 if test $found = "no" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 fi 9206 9207 CFLAGS="$CFLAGS -Wmissing-braces" 9208 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9210$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9211 cacheid=xorg_cv_cc_flag__Wmissing_braces 9212 if eval \${$cacheid+:} false; then : 9213 $as_echo_n "(cached) " >&6 9214else 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218int 9219main () 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO"; then : 9227 eval $cacheid=yes 9228else 9229 eval $cacheid=no 9230fi 9231rm -f core conftest.err conftest.$ac_objext \ 9232 conftest$ac_exeext conftest.$ac_ext 9233fi 9234 9235 9236 CFLAGS="$xorg_testset_save_CFLAGS" 9237 9238 eval supported=\$$cacheid 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9240$as_echo "$supported" >&6; } 9241 if test "$supported" = "yes" ; then 9242 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9243 found="yes" 9244 fi 9245 fi 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261xorg_testset_save_CFLAGS="$CFLAGS" 9262 9263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9268 $as_echo_n "(cached) " >&6 9269else 9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9271/* end confdefs.h. */ 9272int i; 9273_ACEOF 9274if ac_fn_c_try_compile "$LINENO"; then : 9275 xorg_cv_cc_flag_unknown_warning_option=yes 9276else 9277 xorg_cv_cc_flag_unknown_warning_option=no 9278fi 9279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9280fi 9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9284 CFLAGS="$xorg_testset_save_CFLAGS" 9285fi 9286 9287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9290 fi 9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9295 $as_echo_n "(cached) " >&6 9296else 9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299int i; 9300_ACEOF 9301if ac_fn_c_try_compile "$LINENO"; then : 9302 xorg_cv_cc_flag_unused_command_line_argument=yes 9303else 9304 xorg_cv_cc_flag_unused_command_line_argument=no 9305fi 9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9307fi 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9311 CFLAGS="$xorg_testset_save_CFLAGS" 9312fi 9313 9314found="no" 9315 9316 if test $found = "no" ; then 9317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9319 fi 9320 9321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9323 fi 9324 9325 CFLAGS="$CFLAGS -Wsequence-point" 9326 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9328$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9329 cacheid=xorg_cv_cc_flag__Wsequence_point 9330 if eval \${$cacheid+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335int i; 9336int 9337main () 9338{ 9339 9340 ; 9341 return 0; 9342} 9343_ACEOF 9344if ac_fn_c_try_link "$LINENO"; then : 9345 eval $cacheid=yes 9346else 9347 eval $cacheid=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext \ 9350 conftest$ac_exeext conftest.$ac_ext 9351fi 9352 9353 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355 9356 eval supported=\$$cacheid 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9358$as_echo "$supported" >&6; } 9359 if test "$supported" = "yes" ; then 9360 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9361 found="yes" 9362 fi 9363 fi 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379xorg_testset_save_CFLAGS="$CFLAGS" 9380 9381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387else 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389/* end confdefs.h. */ 9390int i; 9391_ACEOF 9392if ac_fn_c_try_compile "$LINENO"; then : 9393 xorg_cv_cc_flag_unknown_warning_option=yes 9394else 9395 xorg_cv_cc_flag_unknown_warning_option=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9398fi 9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9402 CFLAGS="$xorg_testset_save_CFLAGS" 9403fi 9404 9405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408 fi 9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417int i; 9418_ACEOF 9419if ac_fn_c_try_compile "$LINENO"; then : 9420 xorg_cv_cc_flag_unused_command_line_argument=yes 9421else 9422 xorg_cv_cc_flag_unused_command_line_argument=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432found="no" 9433 9434 if test $found = "no" ; then 9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 fi 9438 9439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 fi 9442 9443 CFLAGS="$CFLAGS -Wreturn-type" 9444 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9446$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9447 cacheid=xorg_cv_cc_flag__Wreturn_type 9448 if eval \${$cacheid+:} false; then : 9449 $as_echo_n "(cached) " >&6 9450else 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453int i; 9454int 9455main () 9456{ 9457 9458 ; 9459 return 0; 9460} 9461_ACEOF 9462if ac_fn_c_try_link "$LINENO"; then : 9463 eval $cacheid=yes 9464else 9465 eval $cacheid=no 9466fi 9467rm -f core conftest.err conftest.$ac_objext \ 9468 conftest$ac_exeext conftest.$ac_ext 9469fi 9470 9471 9472 CFLAGS="$xorg_testset_save_CFLAGS" 9473 9474 eval supported=\$$cacheid 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9476$as_echo "$supported" >&6; } 9477 if test "$supported" = "yes" ; then 9478 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9479 found="yes" 9480 fi 9481 fi 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497xorg_testset_save_CFLAGS="$CFLAGS" 9498 9499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9504 $as_echo_n "(cached) " >&6 9505else 9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508int i; 9509_ACEOF 9510if ac_fn_c_try_compile "$LINENO"; then : 9511 xorg_cv_cc_flag_unknown_warning_option=yes 9512else 9513 xorg_cv_cc_flag_unknown_warning_option=no 9514fi 9515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9516fi 9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9520 CFLAGS="$xorg_testset_save_CFLAGS" 9521fi 9522 9523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9526 fi 9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9531 $as_echo_n "(cached) " >&6 9532else 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9534/* end confdefs.h. */ 9535int i; 9536_ACEOF 9537if ac_fn_c_try_compile "$LINENO"; then : 9538 xorg_cv_cc_flag_unused_command_line_argument=yes 9539else 9540 xorg_cv_cc_flag_unused_command_line_argument=no 9541fi 9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9543fi 9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9547 CFLAGS="$xorg_testset_save_CFLAGS" 9548fi 9549 9550found="no" 9551 9552 if test $found = "no" ; then 9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 fi 9556 9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 fi 9560 9561 CFLAGS="$CFLAGS -Wtrigraphs" 9562 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9564$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9565 cacheid=xorg_cv_cc_flag__Wtrigraphs 9566 if eval \${$cacheid+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570/* end confdefs.h. */ 9571int i; 9572int 9573main () 9574{ 9575 9576 ; 9577 return 0; 9578} 9579_ACEOF 9580if ac_fn_c_try_link "$LINENO"; then : 9581 eval $cacheid=yes 9582else 9583 eval $cacheid=no 9584fi 9585rm -f core conftest.err conftest.$ac_objext \ 9586 conftest$ac_exeext conftest.$ac_ext 9587fi 9588 9589 9590 CFLAGS="$xorg_testset_save_CFLAGS" 9591 9592 eval supported=\$$cacheid 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9594$as_echo "$supported" >&6; } 9595 if test "$supported" = "yes" ; then 9596 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9597 found="yes" 9598 fi 9599 fi 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615xorg_testset_save_CFLAGS="$CFLAGS" 9616 9617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9622 $as_echo_n "(cached) " >&6 9623else 9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9625/* end confdefs.h. */ 9626int i; 9627_ACEOF 9628if ac_fn_c_try_compile "$LINENO"; then : 9629 xorg_cv_cc_flag_unknown_warning_option=yes 9630else 9631 xorg_cv_cc_flag_unknown_warning_option=no 9632fi 9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9634fi 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9638 CFLAGS="$xorg_testset_save_CFLAGS" 9639fi 9640 9641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9644 fi 9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653int i; 9654_ACEOF 9655if ac_fn_c_try_compile "$LINENO"; then : 9656 xorg_cv_cc_flag_unused_command_line_argument=yes 9657else 9658 xorg_cv_cc_flag_unused_command_line_argument=no 9659fi 9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9661fi 9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9665 CFLAGS="$xorg_testset_save_CFLAGS" 9666fi 9667 9668found="no" 9669 9670 if test $found = "no" ; then 9671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 fi 9674 9675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9677 fi 9678 9679 CFLAGS="$CFLAGS -Warray-bounds" 9680 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9682$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9683 cacheid=xorg_cv_cc_flag__Warray_bounds 9684 if eval \${$cacheid+:} false; then : 9685 $as_echo_n "(cached) " >&6 9686else 9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690int 9691main () 9692{ 9693 9694 ; 9695 return 0; 9696} 9697_ACEOF 9698if ac_fn_c_try_link "$LINENO"; then : 9699 eval $cacheid=yes 9700else 9701 eval $cacheid=no 9702fi 9703rm -f core conftest.err conftest.$ac_objext \ 9704 conftest$ac_exeext conftest.$ac_ext 9705fi 9706 9707 9708 CFLAGS="$xorg_testset_save_CFLAGS" 9709 9710 eval supported=\$$cacheid 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9712$as_echo "$supported" >&6; } 9713 if test "$supported" = "yes" ; then 9714 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9715 found="yes" 9716 fi 9717 fi 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733xorg_testset_save_CFLAGS="$CFLAGS" 9734 9735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744int i; 9745_ACEOF 9746if ac_fn_c_try_compile "$LINENO"; then : 9747 xorg_cv_cc_flag_unknown_warning_option=yes 9748else 9749 xorg_cv_cc_flag_unknown_warning_option=no 9750fi 9751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9752fi 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9756 CFLAGS="$xorg_testset_save_CFLAGS" 9757fi 9758 9759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9762 fi 9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9767 $as_echo_n "(cached) " >&6 9768else 9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772_ACEOF 9773if ac_fn_c_try_compile "$LINENO"; then : 9774 xorg_cv_cc_flag_unused_command_line_argument=yes 9775else 9776 xorg_cv_cc_flag_unused_command_line_argument=no 9777fi 9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9783 CFLAGS="$xorg_testset_save_CFLAGS" 9784fi 9785 9786found="no" 9787 9788 if test $found = "no" ; then 9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 fi 9792 9793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9795 fi 9796 9797 CFLAGS="$CFLAGS -Wwrite-strings" 9798 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9800$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9801 cacheid=xorg_cv_cc_flag__Wwrite_strings 9802 if eval \${$cacheid+:} false; then : 9803 $as_echo_n "(cached) " >&6 9804else 9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9806/* end confdefs.h. */ 9807int i; 9808int 9809main () 9810{ 9811 9812 ; 9813 return 0; 9814} 9815_ACEOF 9816if ac_fn_c_try_link "$LINENO"; then : 9817 eval $cacheid=yes 9818else 9819 eval $cacheid=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext \ 9822 conftest$ac_exeext conftest.$ac_ext 9823fi 9824 9825 9826 CFLAGS="$xorg_testset_save_CFLAGS" 9827 9828 eval supported=\$$cacheid 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9830$as_echo "$supported" >&6; } 9831 if test "$supported" = "yes" ; then 9832 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9833 found="yes" 9834 fi 9835 fi 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851xorg_testset_save_CFLAGS="$CFLAGS" 9852 9853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861/* end confdefs.h. */ 9862int i; 9863_ACEOF 9864if ac_fn_c_try_compile "$LINENO"; then : 9865 xorg_cv_cc_flag_unknown_warning_option=yes 9866else 9867 xorg_cv_cc_flag_unknown_warning_option=no 9868fi 9869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9870fi 9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9874 CFLAGS="$xorg_testset_save_CFLAGS" 9875fi 9876 9877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9880 fi 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888/* end confdefs.h. */ 9889int i; 9890_ACEOF 9891if ac_fn_c_try_compile "$LINENO"; then : 9892 xorg_cv_cc_flag_unused_command_line_argument=yes 9893else 9894 xorg_cv_cc_flag_unused_command_line_argument=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902fi 9903 9904found="no" 9905 9906 if test $found = "no" ; then 9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 fi 9910 9911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9913 fi 9914 9915 CFLAGS="$CFLAGS -Waddress" 9916 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9918$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9919 cacheid=xorg_cv_cc_flag__Waddress 9920 if eval \${$cacheid+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922else 9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9924/* end confdefs.h. */ 9925int i; 9926int 9927main () 9928{ 9929 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_link "$LINENO"; then : 9935 eval $cacheid=yes 9936else 9937 eval $cacheid=no 9938fi 9939rm -f core conftest.err conftest.$ac_objext \ 9940 conftest$ac_exeext conftest.$ac_ext 9941fi 9942 9943 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945 9946 eval supported=\$$cacheid 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9948$as_echo "$supported" >&6; } 9949 if test "$supported" = "yes" ; then 9950 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9951 found="yes" 9952 fi 9953 fi 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969xorg_testset_save_CFLAGS="$CFLAGS" 9970 9971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9976 $as_echo_n "(cached) " >&6 9977else 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980int i; 9981_ACEOF 9982if ac_fn_c_try_compile "$LINENO"; then : 9983 xorg_cv_cc_flag_unknown_warning_option=yes 9984else 9985 xorg_cv_cc_flag_unknown_warning_option=no 9986fi 9987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9988fi 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9992 CFLAGS="$xorg_testset_save_CFLAGS" 9993fi 9994 9995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9998 fi 9999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10003 $as_echo_n "(cached) " >&6 10004else 10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10006/* end confdefs.h. */ 10007int i; 10008_ACEOF 10009if ac_fn_c_try_compile "$LINENO"; then : 10010 xorg_cv_cc_flag_unused_command_line_argument=yes 10011else 10012 xorg_cv_cc_flag_unused_command_line_argument=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10015fi 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10019 CFLAGS="$xorg_testset_save_CFLAGS" 10020fi 10021 10022found="no" 10023 10024 if test $found = "no" ; then 10025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10027 fi 10028 10029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 fi 10032 10033 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10034 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10036$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10037 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10038 if eval \${$cacheid+:} false; then : 10039 $as_echo_n "(cached) " >&6 10040else 10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10042/* end confdefs.h. */ 10043int i; 10044int 10045main () 10046{ 10047 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052if ac_fn_c_try_link "$LINENO"; then : 10053 eval $cacheid=yes 10054else 10055 eval $cacheid=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext \ 10058 conftest$ac_exeext conftest.$ac_ext 10059fi 10060 10061 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063 10064 eval supported=\$$cacheid 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10066$as_echo "$supported" >&6; } 10067 if test "$supported" = "yes" ; then 10068 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10069 found="yes" 10070 fi 10071 fi 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087xorg_testset_save_CFLAGS="$CFLAGS" 10088 10089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10094 $as_echo_n "(cached) " >&6 10095else 10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098int i; 10099_ACEOF 10100if ac_fn_c_try_compile "$LINENO"; then : 10101 xorg_cv_cc_flag_unknown_warning_option=yes 10102else 10103 xorg_cv_cc_flag_unknown_warning_option=no 10104fi 10105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10106fi 10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10110 CFLAGS="$xorg_testset_save_CFLAGS" 10111fi 10112 10113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10116 fi 10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10121 $as_echo_n "(cached) " >&6 10122else 10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124/* end confdefs.h. */ 10125int i; 10126_ACEOF 10127if ac_fn_c_try_compile "$LINENO"; then : 10128 xorg_cv_cc_flag_unused_command_line_argument=yes 10129else 10130 xorg_cv_cc_flag_unused_command_line_argument=no 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10133fi 10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138fi 10139 10140found="no" 10141 10142 if test $found = "no" ; then 10143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 fi 10146 10147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10149 fi 10150 10151 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10152 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10154$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10155 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10156 if eval \${$cacheid+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161int i; 10162int 10163main () 10164{ 10165 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170if ac_fn_c_try_link "$LINENO"; then : 10171 eval $cacheid=yes 10172else 10173 eval $cacheid=no 10174fi 10175rm -f core conftest.err conftest.$ac_objext \ 10176 conftest$ac_exeext conftest.$ac_ext 10177fi 10178 10179 10180 CFLAGS="$xorg_testset_save_CFLAGS" 10181 10182 eval supported=\$$cacheid 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10184$as_echo "$supported" >&6; } 10185 if test "$supported" = "yes" ; then 10186 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10187 found="yes" 10188 fi 10189 fi 10190 10191 10192fi 10193 10194 10195 10196 10197 10198 10199 10200 CWARNFLAGS="$BASE_CFLAGS" 10201 if test "x$GCC" = xyes ; then 10202 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10203 fi 10204 10205 10206 10207 10208 10209 10210 10211 10212# Check whether --enable-strict-compilation was given. 10213if test "${enable_strict_compilation+set}" = set; then : 10214 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10215else 10216 STRICT_COMPILE=no 10217fi 10218 10219 10220 10221 10222 10223 10224STRICT_CFLAGS="" 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238xorg_testset_save_CFLAGS="$CFLAGS" 10239 10240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10245 $as_echo_n "(cached) " >&6 10246else 10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248/* end confdefs.h. */ 10249int i; 10250_ACEOF 10251if ac_fn_c_try_compile "$LINENO"; then : 10252 xorg_cv_cc_flag_unknown_warning_option=yes 10253else 10254 xorg_cv_cc_flag_unknown_warning_option=no 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257fi 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262fi 10263 10264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10267 fi 10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273else 10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10275/* end confdefs.h. */ 10276int i; 10277_ACEOF 10278if ac_fn_c_try_compile "$LINENO"; then : 10279 xorg_cv_cc_flag_unused_command_line_argument=yes 10280else 10281 xorg_cv_cc_flag_unused_command_line_argument=no 10282fi 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10284fi 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10288 CFLAGS="$xorg_testset_save_CFLAGS" 10289fi 10290 10291found="no" 10292 10293 if test $found = "no" ; then 10294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10296 fi 10297 10298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10300 fi 10301 10302 CFLAGS="$CFLAGS -pedantic" 10303 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10305$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10306 cacheid=xorg_cv_cc_flag__pedantic 10307 if eval \${$cacheid+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312int i; 10313int 10314main () 10315{ 10316 10317 ; 10318 return 0; 10319} 10320_ACEOF 10321if ac_fn_c_try_link "$LINENO"; then : 10322 eval $cacheid=yes 10323else 10324 eval $cacheid=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext \ 10327 conftest$ac_exeext conftest.$ac_ext 10328fi 10329 10330 10331 CFLAGS="$xorg_testset_save_CFLAGS" 10332 10333 eval supported=\$$cacheid 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10335$as_echo "$supported" >&6; } 10336 if test "$supported" = "yes" ; then 10337 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10338 found="yes" 10339 fi 10340 fi 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356xorg_testset_save_CFLAGS="$CFLAGS" 10357 10358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10363 $as_echo_n "(cached) " >&6 10364else 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366/* end confdefs.h. */ 10367int i; 10368_ACEOF 10369if ac_fn_c_try_compile "$LINENO"; then : 10370 xorg_cv_cc_flag_unknown_warning_option=yes 10371else 10372 xorg_cv_cc_flag_unknown_warning_option=no 10373fi 10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10375fi 10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10379 CFLAGS="$xorg_testset_save_CFLAGS" 10380fi 10381 10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10385 fi 10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391else 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394int i; 10395_ACEOF 10396if ac_fn_c_try_compile "$LINENO"; then : 10397 xorg_cv_cc_flag_unused_command_line_argument=yes 10398else 10399 xorg_cv_cc_flag_unused_command_line_argument=no 10400fi 10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10402fi 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10406 CFLAGS="$xorg_testset_save_CFLAGS" 10407fi 10408 10409found="no" 10410 10411 if test $found = "no" ; then 10412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10414 fi 10415 10416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10418 fi 10419 10420 CFLAGS="$CFLAGS -Werror" 10421 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10423$as_echo_n "checking if $CC supports -Werror... " >&6; } 10424 cacheid=xorg_cv_cc_flag__Werror 10425 if eval \${$cacheid+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430int i; 10431int 10432main () 10433{ 10434 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439if ac_fn_c_try_link "$LINENO"; then : 10440 eval $cacheid=yes 10441else 10442 eval $cacheid=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext \ 10445 conftest$ac_exeext conftest.$ac_ext 10446fi 10447 10448 10449 CFLAGS="$xorg_testset_save_CFLAGS" 10450 10451 eval supported=\$$cacheid 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10453$as_echo "$supported" >&6; } 10454 if test "$supported" = "yes" ; then 10455 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10456 found="yes" 10457 fi 10458 fi 10459 10460 if test $found = "no" ; then 10461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10463 fi 10464 10465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10467 fi 10468 10469 CFLAGS="$CFLAGS -errwarn" 10470 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10472$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10473 cacheid=xorg_cv_cc_flag__errwarn 10474 if eval \${$cacheid+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479int i; 10480int 10481main () 10482{ 10483 10484 ; 10485 return 0; 10486} 10487_ACEOF 10488if ac_fn_c_try_link "$LINENO"; then : 10489 eval $cacheid=yes 10490else 10491 eval $cacheid=no 10492fi 10493rm -f core conftest.err conftest.$ac_objext \ 10494 conftest$ac_exeext conftest.$ac_ext 10495fi 10496 10497 10498 CFLAGS="$xorg_testset_save_CFLAGS" 10499 10500 eval supported=\$$cacheid 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10502$as_echo "$supported" >&6; } 10503 if test "$supported" = "yes" ; then 10504 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10505 found="yes" 10506 fi 10507 fi 10508 10509 10510 10511# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10512# activate it with -Werror, so we add it here explicitly. 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526xorg_testset_save_CFLAGS="$CFLAGS" 10527 10528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534else 10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536/* end confdefs.h. */ 10537int i; 10538_ACEOF 10539if ac_fn_c_try_compile "$LINENO"; then : 10540 xorg_cv_cc_flag_unknown_warning_option=yes 10541else 10542 xorg_cv_cc_flag_unknown_warning_option=no 10543fi 10544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10545fi 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10549 CFLAGS="$xorg_testset_save_CFLAGS" 10550fi 10551 10552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10555 fi 10556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10560 $as_echo_n "(cached) " >&6 10561else 10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564int i; 10565_ACEOF 10566if ac_fn_c_try_compile "$LINENO"; then : 10567 xorg_cv_cc_flag_unused_command_line_argument=yes 10568else 10569 xorg_cv_cc_flag_unused_command_line_argument=no 10570fi 10571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10572fi 10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10576 CFLAGS="$xorg_testset_save_CFLAGS" 10577fi 10578 10579found="no" 10580 10581 if test $found = "no" ; then 10582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10584 fi 10585 10586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 fi 10589 10590 CFLAGS="$CFLAGS -Werror=attributes" 10591 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10593$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10594 cacheid=xorg_cv_cc_flag__Werror_attributes 10595 if eval \${$cacheid+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int i; 10601int 10602main () 10603{ 10604 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO"; then : 10610 eval $cacheid=yes 10611else 10612 eval $cacheid=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext \ 10615 conftest$ac_exeext conftest.$ac_ext 10616fi 10617 10618 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620 10621 eval supported=\$$cacheid 10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10623$as_echo "$supported" >&6; } 10624 if test "$supported" = "yes" ; then 10625 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10626 found="yes" 10627 fi 10628 fi 10629 10630 10631 10632if test "x$STRICT_COMPILE" = "xyes"; then 10633 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10634 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10635fi 10636 10637 10638 10639 10640 10641 10642cat >>confdefs.h <<_ACEOF 10643#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10644_ACEOF 10645 10646 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10647 if test "x$PVM" = "x"; then 10648 PVM="0" 10649 fi 10650 10651cat >>confdefs.h <<_ACEOF 10652#define PACKAGE_VERSION_MINOR $PVM 10653_ACEOF 10654 10655 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10656 if test "x$PVP" = "x"; then 10657 PVP="0" 10658 fi 10659 10660cat >>confdefs.h <<_ACEOF 10661#define PACKAGE_VERSION_PATCHLEVEL $PVP 10662_ACEOF 10663 10664 10665 10666CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10667mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10668|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10669echo 'git directory not found: installing possibly empty changelog.' >&2)" 10670 10671 10672 10673 10674macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10675INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10676mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10677|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10678echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10679 10680 10681 10682 10683 10684 10685if test x$APP_MAN_SUFFIX = x ; then 10686 APP_MAN_SUFFIX=1 10687fi 10688if test x$APP_MAN_DIR = x ; then 10689 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10690fi 10691 10692if test x$LIB_MAN_SUFFIX = x ; then 10693 LIB_MAN_SUFFIX=3 10694fi 10695if test x$LIB_MAN_DIR = x ; then 10696 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10697fi 10698 10699if test x$FILE_MAN_SUFFIX = x ; then 10700 case $host_os in 10701 solaris*) FILE_MAN_SUFFIX=4 ;; 10702 *) FILE_MAN_SUFFIX=5 ;; 10703 esac 10704fi 10705if test x$FILE_MAN_DIR = x ; then 10706 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10707fi 10708 10709if test x$MISC_MAN_SUFFIX = x ; then 10710 case $host_os in 10711 solaris*) MISC_MAN_SUFFIX=5 ;; 10712 *) MISC_MAN_SUFFIX=7 ;; 10713 esac 10714fi 10715if test x$MISC_MAN_DIR = x ; then 10716 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10717fi 10718 10719if test x$DRIVER_MAN_SUFFIX = x ; then 10720 case $host_os in 10721 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10722 *) DRIVER_MAN_SUFFIX=4 ;; 10723 esac 10724fi 10725if test x$DRIVER_MAN_DIR = x ; then 10726 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10727fi 10728 10729if test x$ADMIN_MAN_SUFFIX = x ; then 10730 case $host_os in 10731 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10732 *) ADMIN_MAN_SUFFIX=8 ;; 10733 esac 10734fi 10735if test x$ADMIN_MAN_DIR = x ; then 10736 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10737fi 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753XORG_MAN_PAGE="X Version 11" 10754 10755MAN_SUBSTS="\ 10756 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10757 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10758 -e 's|__xservername__|Xorg|g' \ 10759 -e 's|__xconfigfile__|xorg.conf|g' \ 10760 -e 's|__projectroot__|\$(prefix)|g' \ 10761 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10762 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10763 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10764 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10765 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10766 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10767 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10768 10769 10770 10771# Check whether --enable-silent-rules was given. 10772if test "${enable_silent_rules+set}" = set; then : 10773 enableval=$enable_silent_rules; 10774fi 10775 10776case $enable_silent_rules in # ((( 10777 yes) AM_DEFAULT_VERBOSITY=0;; 10778 no) AM_DEFAULT_VERBOSITY=1;; 10779 *) AM_DEFAULT_VERBOSITY=0;; 10780esac 10781am_make=${MAKE-make} 10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10783$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10784if ${am_cv_make_support_nested_variables+:} false; then : 10785 $as_echo_n "(cached) " >&6 10786else 10787 if $as_echo 'TRUE=$(BAR$(V)) 10788BAR0=false 10789BAR1=true 10790V=1 10791am__doit: 10792 @$(TRUE) 10793.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10794 am_cv_make_support_nested_variables=yes 10795else 10796 am_cv_make_support_nested_variables=no 10797fi 10798fi 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10800$as_echo "$am_cv_make_support_nested_variables" >&6; } 10801if test $am_cv_make_support_nested_variables = yes; then 10802 AM_V='$(V)' 10803 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10804else 10805 AM_V=$AM_DEFAULT_VERBOSITY 10806 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10807fi 10808AM_BACKSLASH='\' 10809 10810 10811 10812for ac_func in asprintf mkstemp mktemp 10813do : 10814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10815ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10816if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10817 cat >>confdefs.h <<_ACEOF 10818#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10819_ACEOF 10820 10821fi 10822done 10823 10824 10825# Checks for pkg-config packages 10826 10827pkg_failed=no 10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5 10829$as_echo_n "checking for SMPROXY... " >&6; } 10830 10831if test -n "$SMPROXY_CFLAGS"; then 10832 pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS" 10833 elif test -n "$PKG_CONFIG"; then 10834 if test -n "$PKG_CONFIG" && \ 10835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 10836 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 10837 ac_status=$? 10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10839 test $ac_status = 0; }; then 10840 pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null` 10841else 10842 pkg_failed=yes 10843fi 10844 else 10845 pkg_failed=untried 10846fi 10847if test -n "$SMPROXY_LIBS"; then 10848 pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS" 10849 elif test -n "$PKG_CONFIG"; then 10850 if test -n "$PKG_CONFIG" && \ 10851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 10852 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 10853 ac_status=$? 10854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10855 test $ac_status = 0; }; then 10856 pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null` 10857else 10858 pkg_failed=yes 10859fi 10860 else 10861 pkg_failed=untried 10862fi 10863 10864 10865 10866if test $pkg_failed = yes; then 10867 10868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10869 _pkg_short_errors_supported=yes 10870else 10871 _pkg_short_errors_supported=no 10872fi 10873 if test $_pkg_short_errors_supported = yes; then 10874 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice xt xmuu" 2>&1` 10875 else 10876 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice xt xmuu" 2>&1` 10877 fi 10878 # Put the nasty error message in config.log where it belongs 10879 echo "$SMPROXY_PKG_ERRORS" >&5 10880 10881 as_fn_error $? "Package requirements (sm ice xt xmuu) were not met: 10882 10883$SMPROXY_PKG_ERRORS 10884 10885Consider adjusting the PKG_CONFIG_PATH environment variable if you 10886installed software in a non-standard prefix. 10887 10888Alternatively, you may set the environment variables SMPROXY_CFLAGS 10889and SMPROXY_LIBS to avoid the need to call pkg-config. 10890See the pkg-config man page for more details. 10891" "$LINENO" 5 10892elif test $pkg_failed = untried; then 10893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10895as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10896is in your PATH or set the PKG_CONFIG environment variable to the full 10897path to pkg-config. 10898 10899Alternatively, you may set the environment variables SMPROXY_CFLAGS 10900and SMPROXY_LIBS to avoid the need to call pkg-config. 10901See the pkg-config man page for more details. 10902 10903To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10904See \`config.log' for more details" "$LINENO" 5; } 10905else 10906 SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS 10907 SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10909$as_echo "yes" >&6; } 10910 : 10911fi 10912 10913ac_config_files="$ac_config_files Makefile man/Makefile" 10914 10915cat >confcache <<\_ACEOF 10916# This file is a shell script that caches the results of configure 10917# tests run on this system so they can be shared between configure 10918# scripts and configure runs, see configure's option --config-cache. 10919# It is not useful on other systems. If it contains results you don't 10920# want to keep, you may remove or edit it. 10921# 10922# config.status only pays attention to the cache file if you give it 10923# the --recheck option to rerun configure. 10924# 10925# `ac_cv_env_foo' variables (set or unset) will be overridden when 10926# loading this file, other *unset* `ac_cv_foo' will be assigned the 10927# following values. 10928 10929_ACEOF 10930 10931# The following way of writing the cache mishandles newlines in values, 10932# but we know of no workaround that is simple, portable, and efficient. 10933# So, we kill variables containing newlines. 10934# Ultrix sh set writes to stderr and can't be redirected directly, 10935# and sets the high bit in the cache file unless we assign to the vars. 10936( 10937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10938 eval ac_val=\$$ac_var 10939 case $ac_val in #( 10940 *${as_nl}*) 10941 case $ac_var in #( 10942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10944 esac 10945 case $ac_var in #( 10946 _ | IFS | as_nl) ;; #( 10947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10948 *) { eval $ac_var=; unset $ac_var;} ;; 10949 esac ;; 10950 esac 10951 done 10952 10953 (set) 2>&1 | 10954 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10955 *${as_nl}ac_space=\ *) 10956 # `set' does not quote correctly, so add quotes: double-quote 10957 # substitution turns \\\\ into \\, and sed turns \\ into \. 10958 sed -n \ 10959 "s/'/'\\\\''/g; 10960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10961 ;; #( 10962 *) 10963 # `set' quotes correctly as required by POSIX, so do not add quotes. 10964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10965 ;; 10966 esac | 10967 sort 10968) | 10969 sed ' 10970 /^ac_cv_env_/b end 10971 t clear 10972 :clear 10973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10974 t end 10975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10976 :end' >>confcache 10977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10978 if test -w "$cache_file"; then 10979 if test "x$cache_file" != "x/dev/null"; then 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10981$as_echo "$as_me: updating cache $cache_file" >&6;} 10982 if test ! -f "$cache_file" || test -h "$cache_file"; then 10983 cat confcache >"$cache_file" 10984 else 10985 case $cache_file in #( 10986 */* | ?:*) 10987 mv -f confcache "$cache_file"$$ && 10988 mv -f "$cache_file"$$ "$cache_file" ;; #( 10989 *) 10990 mv -f confcache "$cache_file" ;; 10991 esac 10992 fi 10993 fi 10994 else 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10997 fi 10998fi 10999rm -f confcache 11000 11001test "x$prefix" = xNONE && prefix=$ac_default_prefix 11002# Let make expand exec_prefix. 11003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11004 11005DEFS=-DHAVE_CONFIG_H 11006 11007ac_libobjs= 11008ac_ltlibobjs= 11009U= 11010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11011 # 1. Remove the extension, and $U if already installed. 11012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11015 # will be set to the directory where LIBOBJS objects are built. 11016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11018done 11019LIBOBJS=$ac_libobjs 11020 11021LTLIBOBJS=$ac_ltlibobjs 11022 11023 11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11025$as_echo_n "checking that generated files are newer than configure... " >&6; } 11026 if test -n "$am_sleep_pid"; then 11027 # Hide warnings about reused PIDs. 11028 wait $am_sleep_pid 2>/dev/null 11029 fi 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11031$as_echo "done" >&6; } 11032 if test -n "$EXEEXT"; then 11033 am__EXEEXT_TRUE= 11034 am__EXEEXT_FALSE='#' 11035else 11036 am__EXEEXT_TRUE='#' 11037 am__EXEEXT_FALSE= 11038fi 11039 11040if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11041 as_fn_error $? "conditional \"AMDEP\" was never defined. 11042Usually this means the macro was only invoked conditionally." "$LINENO" 5 11043fi 11044if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11046Usually this means the macro was only invoked conditionally." "$LINENO" 5 11047fi 11048 11049: "${CONFIG_STATUS=./config.status}" 11050ac_write_fail=0 11051ac_clean_files_save=$ac_clean_files 11052ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11053{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11054$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11055as_write_fail=0 11056cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11057#! $SHELL 11058# Generated by $as_me. 11059# Run this file to recreate the current configuration. 11060# Compiler output produced by configure, useful for debugging 11061# configure, is in config.log if it exists. 11062 11063debug=false 11064ac_cs_recheck=false 11065ac_cs_silent=false 11066 11067SHELL=\${CONFIG_SHELL-$SHELL} 11068export SHELL 11069_ASEOF 11070cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11071## -------------------- ## 11072## M4sh Initialization. ## 11073## -------------------- ## 11074 11075# Be more Bourne compatible 11076DUALCASE=1; export DUALCASE # for MKS sh 11077if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11078 emulate sh 11079 NULLCMD=: 11080 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11081 # is contrary to our usage. Disable this feature. 11082 alias -g '${1+"$@"}'='"$@"' 11083 setopt NO_GLOB_SUBST 11084else 11085 case `(set -o) 2>/dev/null` in #( 11086 *posix*) : 11087 set -o posix ;; #( 11088 *) : 11089 ;; 11090esac 11091fi 11092 11093 11094as_nl=' 11095' 11096export as_nl 11097# Printing a long string crashes Solaris 7 /usr/bin/printf. 11098as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11099as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11101# Prefer a ksh shell builtin over an external printf program on Solaris, 11102# but without wasting forks for bash or zsh. 11103if test -z "$BASH_VERSION$ZSH_VERSION" \ 11104 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11105 as_echo='print -r --' 11106 as_echo_n='print -rn --' 11107elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11108 as_echo='printf %s\n' 11109 as_echo_n='printf %s' 11110else 11111 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11112 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11113 as_echo_n='/usr/ucb/echo -n' 11114 else 11115 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11116 as_echo_n_body='eval 11117 arg=$1; 11118 case $arg in #( 11119 *"$as_nl"*) 11120 expr "X$arg" : "X\\(.*\\)$as_nl"; 11121 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11122 esac; 11123 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11124 ' 11125 export as_echo_n_body 11126 as_echo_n='sh -c $as_echo_n_body as_echo' 11127 fi 11128 export as_echo_body 11129 as_echo='sh -c $as_echo_body as_echo' 11130fi 11131 11132# The user is always right. 11133if test "${PATH_SEPARATOR+set}" != set; then 11134 PATH_SEPARATOR=: 11135 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11136 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11137 PATH_SEPARATOR=';' 11138 } 11139fi 11140 11141 11142# IFS 11143# We need space, tab and new line, in precisely that order. Quoting is 11144# there to prevent editors from complaining about space-tab. 11145# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11146# splitting by setting IFS to empty value.) 11147IFS=" "" $as_nl" 11148 11149# Find who we are. Look in the path if we contain no directory separator. 11150as_myself= 11151case $0 in #(( 11152 *[\\/]* ) as_myself=$0 ;; 11153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11154for as_dir in $PATH 11155do 11156 IFS=$as_save_IFS 11157 test -z "$as_dir" && as_dir=. 11158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11159 done 11160IFS=$as_save_IFS 11161 11162 ;; 11163esac 11164# We did not find ourselves, most probably we were run as `sh COMMAND' 11165# in which case we are not to be found in the path. 11166if test "x$as_myself" = x; then 11167 as_myself=$0 11168fi 11169if test ! -f "$as_myself"; then 11170 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11171 exit 1 11172fi 11173 11174# Unset variables that we do not need and which cause bugs (e.g. in 11175# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11176# suppresses any "Segmentation fault" message there. '((' could 11177# trigger a bug in pdksh 5.2.14. 11178for as_var in BASH_ENV ENV MAIL MAILPATH 11179do eval test x\${$as_var+set} = xset \ 11180 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11181done 11182PS1='$ ' 11183PS2='> ' 11184PS4='+ ' 11185 11186# NLS nuisances. 11187LC_ALL=C 11188export LC_ALL 11189LANGUAGE=C 11190export LANGUAGE 11191 11192# CDPATH. 11193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11194 11195 11196# as_fn_error STATUS ERROR [LINENO LOG_FD] 11197# ---------------------------------------- 11198# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11199# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11200# script with STATUS, using 1 if that was 0. 11201as_fn_error () 11202{ 11203 as_status=$1; test $as_status -eq 0 && as_status=1 11204 if test "$4"; then 11205 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11206 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11207 fi 11208 $as_echo "$as_me: error: $2" >&2 11209 as_fn_exit $as_status 11210} # as_fn_error 11211 11212 11213# as_fn_set_status STATUS 11214# ----------------------- 11215# Set $? to STATUS, without forking. 11216as_fn_set_status () 11217{ 11218 return $1 11219} # as_fn_set_status 11220 11221# as_fn_exit STATUS 11222# ----------------- 11223# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11224as_fn_exit () 11225{ 11226 set +e 11227 as_fn_set_status $1 11228 exit $1 11229} # as_fn_exit 11230 11231# as_fn_unset VAR 11232# --------------- 11233# Portably unset VAR. 11234as_fn_unset () 11235{ 11236 { eval $1=; unset $1;} 11237} 11238as_unset=as_fn_unset 11239# as_fn_append VAR VALUE 11240# ---------------------- 11241# Append the text in VALUE to the end of the definition contained in VAR. Take 11242# advantage of any shell optimizations that allow amortized linear growth over 11243# repeated appends, instead of the typical quadratic growth present in naive 11244# implementations. 11245if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11246 eval 'as_fn_append () 11247 { 11248 eval $1+=\$2 11249 }' 11250else 11251 as_fn_append () 11252 { 11253 eval $1=\$$1\$2 11254 } 11255fi # as_fn_append 11256 11257# as_fn_arith ARG... 11258# ------------------ 11259# Perform arithmetic evaluation on the ARGs, and store the result in the 11260# global $as_val. Take advantage of shells that can avoid forks. The arguments 11261# must be portable across $(()) and expr. 11262if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11263 eval 'as_fn_arith () 11264 { 11265 as_val=$(( $* )) 11266 }' 11267else 11268 as_fn_arith () 11269 { 11270 as_val=`expr "$@" || test $? -eq 1` 11271 } 11272fi # as_fn_arith 11273 11274 11275if expr a : '\(a\)' >/dev/null 2>&1 && 11276 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11277 as_expr=expr 11278else 11279 as_expr=false 11280fi 11281 11282if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11283 as_basename=basename 11284else 11285 as_basename=false 11286fi 11287 11288if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11289 as_dirname=dirname 11290else 11291 as_dirname=false 11292fi 11293 11294as_me=`$as_basename -- "$0" || 11295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11296 X"$0" : 'X\(//\)$' \| \ 11297 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11298$as_echo X/"$0" | 11299 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11300 s//\1/ 11301 q 11302 } 11303 /^X\/\(\/\/\)$/{ 11304 s//\1/ 11305 q 11306 } 11307 /^X\/\(\/\).*/{ 11308 s//\1/ 11309 q 11310 } 11311 s/.*/./; q'` 11312 11313# Avoid depending upon Character Ranges. 11314as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11315as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11316as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11317as_cr_digits='0123456789' 11318as_cr_alnum=$as_cr_Letters$as_cr_digits 11319 11320ECHO_C= ECHO_N= ECHO_T= 11321case `echo -n x` in #((((( 11322-n*) 11323 case `echo 'xy\c'` in 11324 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11325 xy) ECHO_C='\c';; 11326 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11327 ECHO_T=' ';; 11328 esac;; 11329*) 11330 ECHO_N='-n';; 11331esac 11332 11333rm -f conf$$ conf$$.exe conf$$.file 11334if test -d conf$$.dir; then 11335 rm -f conf$$.dir/conf$$.file 11336else 11337 rm -f conf$$.dir 11338 mkdir conf$$.dir 2>/dev/null 11339fi 11340if (echo >conf$$.file) 2>/dev/null; then 11341 if ln -s conf$$.file conf$$ 2>/dev/null; then 11342 as_ln_s='ln -s' 11343 # ... but there are two gotchas: 11344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11346 # In both cases, we have to default to `cp -pR'. 11347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11348 as_ln_s='cp -pR' 11349 elif ln conf$$.file conf$$ 2>/dev/null; then 11350 as_ln_s=ln 11351 else 11352 as_ln_s='cp -pR' 11353 fi 11354else 11355 as_ln_s='cp -pR' 11356fi 11357rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11358rmdir conf$$.dir 2>/dev/null 11359 11360 11361# as_fn_mkdir_p 11362# ------------- 11363# Create "$as_dir" as a directory, including parents if necessary. 11364as_fn_mkdir_p () 11365{ 11366 11367 case $as_dir in #( 11368 -*) as_dir=./$as_dir;; 11369 esac 11370 test -d "$as_dir" || eval $as_mkdir_p || { 11371 as_dirs= 11372 while :; do 11373 case $as_dir in #( 11374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11375 *) as_qdir=$as_dir;; 11376 esac 11377 as_dirs="'$as_qdir' $as_dirs" 11378 as_dir=`$as_dirname -- "$as_dir" || 11379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11380 X"$as_dir" : 'X\(//\)[^/]' \| \ 11381 X"$as_dir" : 'X\(//\)$' \| \ 11382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11383$as_echo X"$as_dir" | 11384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11385 s//\1/ 11386 q 11387 } 11388 /^X\(\/\/\)[^/].*/{ 11389 s//\1/ 11390 q 11391 } 11392 /^X\(\/\/\)$/{ 11393 s//\1/ 11394 q 11395 } 11396 /^X\(\/\).*/{ 11397 s//\1/ 11398 q 11399 } 11400 s/.*/./; q'` 11401 test -d "$as_dir" && break 11402 done 11403 test -z "$as_dirs" || eval "mkdir $as_dirs" 11404 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11405 11406 11407} # as_fn_mkdir_p 11408if mkdir -p . 2>/dev/null; then 11409 as_mkdir_p='mkdir -p "$as_dir"' 11410else 11411 test -d ./-p && rmdir ./-p 11412 as_mkdir_p=false 11413fi 11414 11415 11416# as_fn_executable_p FILE 11417# ----------------------- 11418# Test if FILE is an executable regular file. 11419as_fn_executable_p () 11420{ 11421 test -f "$1" && test -x "$1" 11422} # as_fn_executable_p 11423as_test_x='test -x' 11424as_executable_p=as_fn_executable_p 11425 11426# Sed expression to map a string onto a valid CPP name. 11427as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11428 11429# Sed expression to map a string onto a valid variable name. 11430as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11431 11432 11433exec 6>&1 11434## ----------------------------------- ## 11435## Main body of $CONFIG_STATUS script. ## 11436## ----------------------------------- ## 11437_ASEOF 11438test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11439 11440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11441# Save the log message, to keep $0 and so on meaningful, and to 11442# report actual input values of CONFIG_FILES etc. instead of their 11443# values after options handling. 11444ac_log=" 11445This file was extended by smproxy $as_me 1.0.6, which was 11446generated by GNU Autoconf 2.69. Invocation command line was 11447 11448 CONFIG_FILES = $CONFIG_FILES 11449 CONFIG_HEADERS = $CONFIG_HEADERS 11450 CONFIG_LINKS = $CONFIG_LINKS 11451 CONFIG_COMMANDS = $CONFIG_COMMANDS 11452 $ $0 $@ 11453 11454on `(hostname || uname -n) 2>/dev/null | sed 1q` 11455" 11456 11457_ACEOF 11458 11459case $ac_config_files in *" 11460"*) set x $ac_config_files; shift; ac_config_files=$*;; 11461esac 11462 11463case $ac_config_headers in *" 11464"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11465esac 11466 11467 11468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11469# Files that config.status was made for. 11470config_files="$ac_config_files" 11471config_headers="$ac_config_headers" 11472config_commands="$ac_config_commands" 11473 11474_ACEOF 11475 11476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11477ac_cs_usage="\ 11478\`$as_me' instantiates files and other configuration actions 11479from templates according to the current configuration. Unless the files 11480and actions are specified as TAGs, all are instantiated by default. 11481 11482Usage: $0 [OPTION]... [TAG]... 11483 11484 -h, --help print this help, then exit 11485 -V, --version print version number and configuration settings, then exit 11486 --config print configuration, then exit 11487 -q, --quiet, --silent 11488 do not print progress messages 11489 -d, --debug don't remove temporary files 11490 --recheck update $as_me by reconfiguring in the same conditions 11491 --file=FILE[:TEMPLATE] 11492 instantiate the configuration file FILE 11493 --header=FILE[:TEMPLATE] 11494 instantiate the configuration header FILE 11495 11496Configuration files: 11497$config_files 11498 11499Configuration headers: 11500$config_headers 11501 11502Configuration commands: 11503$config_commands 11504 11505Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11506 11507_ACEOF 11508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11509ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11510ac_cs_version="\\ 11511smproxy config.status 1.0.6 11512configured by $0, generated by GNU Autoconf 2.69, 11513 with options \\"\$ac_cs_config\\" 11514 11515Copyright (C) 2012 Free Software Foundation, Inc. 11516This config.status script is free software; the Free Software Foundation 11517gives unlimited permission to copy, distribute and modify it." 11518 11519ac_pwd='$ac_pwd' 11520srcdir='$srcdir' 11521INSTALL='$INSTALL' 11522MKDIR_P='$MKDIR_P' 11523AWK='$AWK' 11524test -n "\$AWK" || AWK=awk 11525_ACEOF 11526 11527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11528# The default lists apply if the user does not specify any file. 11529ac_need_defaults=: 11530while test $# != 0 11531do 11532 case $1 in 11533 --*=?*) 11534 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11536 ac_shift=: 11537 ;; 11538 --*=) 11539 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11540 ac_optarg= 11541 ac_shift=: 11542 ;; 11543 *) 11544 ac_option=$1 11545 ac_optarg=$2 11546 ac_shift=shift 11547 ;; 11548 esac 11549 11550 case $ac_option in 11551 # Handling of the options. 11552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11553 ac_cs_recheck=: ;; 11554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11555 $as_echo "$ac_cs_version"; exit ;; 11556 --config | --confi | --conf | --con | --co | --c ) 11557 $as_echo "$ac_cs_config"; exit ;; 11558 --debug | --debu | --deb | --de | --d | -d ) 11559 debug=: ;; 11560 --file | --fil | --fi | --f ) 11561 $ac_shift 11562 case $ac_optarg in 11563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11564 '') as_fn_error $? "missing file argument" ;; 11565 esac 11566 as_fn_append CONFIG_FILES " '$ac_optarg'" 11567 ac_need_defaults=false;; 11568 --header | --heade | --head | --hea ) 11569 $ac_shift 11570 case $ac_optarg in 11571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11572 esac 11573 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11574 ac_need_defaults=false;; 11575 --he | --h) 11576 # Conflict between --help and --header 11577 as_fn_error $? "ambiguous option: \`$1' 11578Try \`$0 --help' for more information.";; 11579 --help | --hel | -h ) 11580 $as_echo "$ac_cs_usage"; exit ;; 11581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11582 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11583 ac_cs_silent=: ;; 11584 11585 # This is an error. 11586 -*) as_fn_error $? "unrecognized option: \`$1' 11587Try \`$0 --help' for more information." ;; 11588 11589 *) as_fn_append ac_config_targets " $1" 11590 ac_need_defaults=false ;; 11591 11592 esac 11593 shift 11594done 11595 11596ac_configure_extra_args= 11597 11598if $ac_cs_silent; then 11599 exec 6>/dev/null 11600 ac_configure_extra_args="$ac_configure_extra_args --silent" 11601fi 11602 11603_ACEOF 11604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11605if \$ac_cs_recheck; then 11606 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11607 shift 11608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11609 CONFIG_SHELL='$SHELL' 11610 export CONFIG_SHELL 11611 exec "\$@" 11612fi 11613 11614_ACEOF 11615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11616exec 5>>config.log 11617{ 11618 echo 11619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11620## Running $as_me. ## 11621_ASBOX 11622 $as_echo "$ac_log" 11623} >&5 11624 11625_ACEOF 11626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11627# 11628# INIT-COMMANDS 11629# 11630AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11631 11632_ACEOF 11633 11634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11635 11636# Handling of arguments. 11637for ac_config_target in $ac_config_targets 11638do 11639 case $ac_config_target in 11640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11641 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11643 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11644 11645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11646 esac 11647done 11648 11649 11650# If the user did not use the arguments to specify the items to instantiate, 11651# then the envvar interface is used. Set only those that are not. 11652# We use the long form for the default assignment because of an extremely 11653# bizarre bug on SunOS 4.1.3. 11654if $ac_need_defaults; then 11655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11658fi 11659 11660# Have a temporary directory for convenience. Make it in the build tree 11661# simply because there is no reason against having it here, and in addition, 11662# creating and moving files from /tmp can sometimes cause problems. 11663# Hook for its removal unless debugging. 11664# Note that there is a small window in which the directory will not be cleaned: 11665# after its creation but before its name has been assigned to `$tmp'. 11666$debug || 11667{ 11668 tmp= ac_tmp= 11669 trap 'exit_status=$? 11670 : "${ac_tmp:=$tmp}" 11671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11672' 0 11673 trap 'as_fn_exit 1' 1 2 13 15 11674} 11675# Create a (secure) tmp directory for tmp files. 11676 11677{ 11678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11679 test -d "$tmp" 11680} || 11681{ 11682 tmp=./conf$$-$RANDOM 11683 (umask 077 && mkdir "$tmp") 11684} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11685ac_tmp=$tmp 11686 11687# Set up the scripts for CONFIG_FILES section. 11688# No need to generate them if there are no CONFIG_FILES. 11689# This happens for instance with `./config.status config.h'. 11690if test -n "$CONFIG_FILES"; then 11691 11692 11693ac_cr=`echo X | tr X '\015'` 11694# On cygwin, bash can eat \r inside `` if the user requested igncr. 11695# But we know of no other shell where ac_cr would be empty at this 11696# point, so we can use a bashism as a fallback. 11697if test "x$ac_cr" = x; then 11698 eval ac_cr=\$\'\\r\' 11699fi 11700ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11701if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11702 ac_cs_awk_cr='\\r' 11703else 11704 ac_cs_awk_cr=$ac_cr 11705fi 11706 11707echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11708_ACEOF 11709 11710 11711{ 11712 echo "cat >conf$$subs.awk <<_ACEOF" && 11713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11714 echo "_ACEOF" 11715} >conf$$subs.sh || 11716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11717ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11718ac_delim='%!_!# ' 11719for ac_last_try in false false false false false :; do 11720 . ./conf$$subs.sh || 11721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11722 11723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11724 if test $ac_delim_n = $ac_delim_num; then 11725 break 11726 elif $ac_last_try; then 11727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11728 else 11729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11730 fi 11731done 11732rm -f conf$$subs.sh 11733 11734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11735cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11736_ACEOF 11737sed -n ' 11738h 11739s/^/S["/; s/!.*/"]=/ 11740p 11741g 11742s/^[^!]*!// 11743:repl 11744t repl 11745s/'"$ac_delim"'$// 11746t delim 11747:nl 11748h 11749s/\(.\{148\}\)..*/\1/ 11750t more1 11751s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11752p 11753n 11754b repl 11755:more1 11756s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11757p 11758g 11759s/.\{148\}// 11760t nl 11761:delim 11762h 11763s/\(.\{148\}\)..*/\1/ 11764t more2 11765s/["\\]/\\&/g; s/^/"/; s/$/"/ 11766p 11767b 11768:more2 11769s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11770p 11771g 11772s/.\{148\}// 11773t delim 11774' <conf$$subs.awk | sed ' 11775/^[^""]/{ 11776 N 11777 s/\n// 11778} 11779' >>$CONFIG_STATUS || ac_write_fail=1 11780rm -f conf$$subs.awk 11781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11782_ACAWK 11783cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11784 for (key in S) S_is_set[key] = 1 11785 FS = "" 11786 11787} 11788{ 11789 line = $ 0 11790 nfields = split(line, field, "@") 11791 substed = 0 11792 len = length(field[1]) 11793 for (i = 2; i < nfields; i++) { 11794 key = field[i] 11795 keylen = length(key) 11796 if (S_is_set[key]) { 11797 value = S[key] 11798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11799 len += length(value) + length(field[++i]) 11800 substed = 1 11801 } else 11802 len += 1 + keylen 11803 } 11804 11805 print line 11806} 11807 11808_ACAWK 11809_ACEOF 11810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11811if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11813else 11814 cat 11815fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11817_ACEOF 11818 11819# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11820# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11821# trailing colons and then remove the whole line if VPATH becomes empty 11822# (actually we leave an empty line to preserve line numbers). 11823if test "x$srcdir" = x.; then 11824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11825h 11826s/// 11827s/^/:/ 11828s/[ ]*$/:/ 11829s/:\$(srcdir):/:/g 11830s/:\${srcdir}:/:/g 11831s/:@srcdir@:/:/g 11832s/^:*// 11833s/:*$// 11834x 11835s/\(=[ ]*\).*/\1/ 11836G 11837s/\n// 11838s/^[^=]*=[ ]*$// 11839}' 11840fi 11841 11842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11843fi # test -n "$CONFIG_FILES" 11844 11845# Set up the scripts for CONFIG_HEADERS section. 11846# No need to generate them if there are no CONFIG_HEADERS. 11847# This happens for instance with `./config.status Makefile'. 11848if test -n "$CONFIG_HEADERS"; then 11849cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11850BEGIN { 11851_ACEOF 11852 11853# Transform confdefs.h into an awk script `defines.awk', embedded as 11854# here-document in config.status, that substitutes the proper values into 11855# config.h.in to produce config.h. 11856 11857# Create a delimiter string that does not exist in confdefs.h, to ease 11858# handling of long lines. 11859ac_delim='%!_!# ' 11860for ac_last_try in false false :; do 11861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11862 if test -z "$ac_tt"; then 11863 break 11864 elif $ac_last_try; then 11865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11866 else 11867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11868 fi 11869done 11870 11871# For the awk script, D is an array of macro values keyed by name, 11872# likewise P contains macro parameters if any. Preserve backslash 11873# newline sequences. 11874 11875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11876sed -n ' 11877s/.\{148\}/&'"$ac_delim"'/g 11878t rset 11879:rset 11880s/^[ ]*#[ ]*define[ ][ ]*/ / 11881t def 11882d 11883:def 11884s/\\$// 11885t bsnl 11886s/["\\]/\\&/g 11887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11888D["\1"]=" \3"/p 11889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11890d 11891:bsnl 11892s/["\\]/\\&/g 11893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11894D["\1"]=" \3\\\\\\n"\\/p 11895t cont 11896s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11897t cont 11898d 11899:cont 11900n 11901s/.\{148\}/&'"$ac_delim"'/g 11902t clear 11903:clear 11904s/\\$// 11905t bsnlc 11906s/["\\]/\\&/g; s/^/"/; s/$/"/p 11907d 11908:bsnlc 11909s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11910b cont 11911' <confdefs.h | sed ' 11912s/'"$ac_delim"'/"\\\ 11913"/g' >>$CONFIG_STATUS || ac_write_fail=1 11914 11915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11916 for (key in D) D_is_set[key] = 1 11917 FS = "" 11918} 11919/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11920 line = \$ 0 11921 split(line, arg, " ") 11922 if (arg[1] == "#") { 11923 defundef = arg[2] 11924 mac1 = arg[3] 11925 } else { 11926 defundef = substr(arg[1], 2) 11927 mac1 = arg[2] 11928 } 11929 split(mac1, mac2, "(") #) 11930 macro = mac2[1] 11931 prefix = substr(line, 1, index(line, defundef) - 1) 11932 if (D_is_set[macro]) { 11933 # Preserve the white space surrounding the "#". 11934 print prefix "define", macro P[macro] D[macro] 11935 next 11936 } else { 11937 # Replace #undef with comments. This is necessary, for example, 11938 # in the case of _POSIX_SOURCE, which is predefined and required 11939 # on some systems where configure will not decide to define it. 11940 if (defundef == "undef") { 11941 print "/*", prefix defundef, macro, "*/" 11942 next 11943 } 11944 } 11945} 11946{ print } 11947_ACAWK 11948_ACEOF 11949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11951fi # test -n "$CONFIG_HEADERS" 11952 11953 11954eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11955shift 11956for ac_tag 11957do 11958 case $ac_tag in 11959 :[FHLC]) ac_mode=$ac_tag; continue;; 11960 esac 11961 case $ac_mode$ac_tag in 11962 :[FHL]*:*);; 11963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11964 :[FH]-) ac_tag=-:-;; 11965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11966 esac 11967 ac_save_IFS=$IFS 11968 IFS=: 11969 set x $ac_tag 11970 IFS=$ac_save_IFS 11971 shift 11972 ac_file=$1 11973 shift 11974 11975 case $ac_mode in 11976 :L) ac_source=$1;; 11977 :[FH]) 11978 ac_file_inputs= 11979 for ac_f 11980 do 11981 case $ac_f in 11982 -) ac_f="$ac_tmp/stdin";; 11983 *) # Look for the file first in the build tree, then in the source tree 11984 # (if the path is not absolute). The absolute path cannot be DOS-style, 11985 # because $ac_f cannot contain `:'. 11986 test -f "$ac_f" || 11987 case $ac_f in 11988 [\\/$]*) false;; 11989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11990 esac || 11991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11992 esac 11993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11994 as_fn_append ac_file_inputs " '$ac_f'" 11995 done 11996 11997 # Let's still pretend it is `configure' which instantiates (i.e., don't 11998 # use $as_me), people would be surprised to read: 11999 # /* config.h. Generated by config.status. */ 12000 configure_input='Generated from '` 12001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12002 `' by configure.' 12003 if test x"$ac_file" != x-; then 12004 configure_input="$ac_file. $configure_input" 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12006$as_echo "$as_me: creating $ac_file" >&6;} 12007 fi 12008 # Neutralize special characters interpreted by sed in replacement strings. 12009 case $configure_input in #( 12010 *\&* | *\|* | *\\* ) 12011 ac_sed_conf_input=`$as_echo "$configure_input" | 12012 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12013 *) ac_sed_conf_input=$configure_input;; 12014 esac 12015 12016 case $ac_tag in 12017 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12019 esac 12020 ;; 12021 esac 12022 12023 ac_dir=`$as_dirname -- "$ac_file" || 12024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12025 X"$ac_file" : 'X\(//\)[^/]' \| \ 12026 X"$ac_file" : 'X\(//\)$' \| \ 12027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12028$as_echo X"$ac_file" | 12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12030 s//\1/ 12031 q 12032 } 12033 /^X\(\/\/\)[^/].*/{ 12034 s//\1/ 12035 q 12036 } 12037 /^X\(\/\/\)$/{ 12038 s//\1/ 12039 q 12040 } 12041 /^X\(\/\).*/{ 12042 s//\1/ 12043 q 12044 } 12045 s/.*/./; q'` 12046 as_dir="$ac_dir"; as_fn_mkdir_p 12047 ac_builddir=. 12048 12049case "$ac_dir" in 12050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12051*) 12052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12053 # A ".." for each directory in $ac_dir_suffix. 12054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12055 case $ac_top_builddir_sub in 12056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12058 esac ;; 12059esac 12060ac_abs_top_builddir=$ac_pwd 12061ac_abs_builddir=$ac_pwd$ac_dir_suffix 12062# for backward compatibility: 12063ac_top_builddir=$ac_top_build_prefix 12064 12065case $srcdir in 12066 .) # We are building in place. 12067 ac_srcdir=. 12068 ac_top_srcdir=$ac_top_builddir_sub 12069 ac_abs_top_srcdir=$ac_pwd ;; 12070 [\\/]* | ?:[\\/]* ) # Absolute name. 12071 ac_srcdir=$srcdir$ac_dir_suffix; 12072 ac_top_srcdir=$srcdir 12073 ac_abs_top_srcdir=$srcdir ;; 12074 *) # Relative name. 12075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12076 ac_top_srcdir=$ac_top_build_prefix$srcdir 12077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12078esac 12079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12080 12081 12082 case $ac_mode in 12083 :F) 12084 # 12085 # CONFIG_FILE 12086 # 12087 12088 case $INSTALL in 12089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12091 esac 12092 ac_MKDIR_P=$MKDIR_P 12093 case $MKDIR_P in 12094 [\\/$]* | ?:[\\/]* ) ;; 12095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12096 esac 12097_ACEOF 12098 12099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12100# If the template does not know about datarootdir, expand it. 12101# FIXME: This hack should be removed a few years after 2.60. 12102ac_datarootdir_hack=; ac_datarootdir_seen= 12103ac_sed_dataroot=' 12104/datarootdir/ { 12105 p 12106 q 12107} 12108/@datadir@/p 12109/@docdir@/p 12110/@infodir@/p 12111/@localedir@/p 12112/@mandir@/p' 12113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12114*datarootdir*) ac_datarootdir_seen=yes;; 12115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12118_ACEOF 12119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12120 ac_datarootdir_hack=' 12121 s&@datadir@&$datadir&g 12122 s&@docdir@&$docdir&g 12123 s&@infodir@&$infodir&g 12124 s&@localedir@&$localedir&g 12125 s&@mandir@&$mandir&g 12126 s&\\\${datarootdir}&$datarootdir&g' ;; 12127esac 12128_ACEOF 12129 12130# Neutralize VPATH when `$srcdir' = `.'. 12131# Shell code in configure.ac might set extrasub. 12132# FIXME: do we really want to maintain this feature? 12133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12134ac_sed_extra="$ac_vpsub 12135$extrasub 12136_ACEOF 12137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12138:t 12139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12140s|@configure_input@|$ac_sed_conf_input|;t t 12141s&@top_builddir@&$ac_top_builddir_sub&;t t 12142s&@top_build_prefix@&$ac_top_build_prefix&;t t 12143s&@srcdir@&$ac_srcdir&;t t 12144s&@abs_srcdir@&$ac_abs_srcdir&;t t 12145s&@top_srcdir@&$ac_top_srcdir&;t t 12146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12147s&@builddir@&$ac_builddir&;t t 12148s&@abs_builddir@&$ac_abs_builddir&;t t 12149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12150s&@INSTALL@&$ac_INSTALL&;t t 12151s&@MKDIR_P@&$ac_MKDIR_P&;t t 12152$ac_datarootdir_hack 12153" 12154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12156 12157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12160 "$ac_tmp/out"`; test -z "$ac_out"; } && 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12162which seems to be undefined. Please make sure it is defined" >&5 12163$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12164which seems to be undefined. Please make sure it is defined" >&2;} 12165 12166 rm -f "$ac_tmp/stdin" 12167 case $ac_file in 12168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12170 esac \ 12171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12172 ;; 12173 :H) 12174 # 12175 # CONFIG_HEADER 12176 # 12177 if test x"$ac_file" != x-; then 12178 { 12179 $as_echo "/* $configure_input */" \ 12180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12181 } >"$ac_tmp/config.h" \ 12182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12185$as_echo "$as_me: $ac_file is unchanged" >&6;} 12186 else 12187 rm -f "$ac_file" 12188 mv "$ac_tmp/config.h" "$ac_file" \ 12189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12190 fi 12191 else 12192 $as_echo "/* $configure_input */" \ 12193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12194 || as_fn_error $? "could not create -" "$LINENO" 5 12195 fi 12196# Compute "$ac_file"'s index in $config_headers. 12197_am_arg="$ac_file" 12198_am_stamp_count=1 12199for _am_header in $config_headers :; do 12200 case $_am_header in 12201 $_am_arg | $_am_arg:* ) 12202 break ;; 12203 * ) 12204 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12205 esac 12206done 12207echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12208$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12209 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12210 X"$_am_arg" : 'X\(//\)$' \| \ 12211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12212$as_echo X"$_am_arg" | 12213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12214 s//\1/ 12215 q 12216 } 12217 /^X\(\/\/\)[^/].*/{ 12218 s//\1/ 12219 q 12220 } 12221 /^X\(\/\/\)$/{ 12222 s//\1/ 12223 q 12224 } 12225 /^X\(\/\).*/{ 12226 s//\1/ 12227 q 12228 } 12229 s/.*/./; q'`/stamp-h$_am_stamp_count 12230 ;; 12231 12232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12233$as_echo "$as_me: executing $ac_file commands" >&6;} 12234 ;; 12235 esac 12236 12237 12238 case $ac_file$ac_mode in 12239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12240 # Older Autoconf quotes --file arguments for eval, but not when files 12241 # are listed without --file. Let's play safe and only enable the eval 12242 # if we detect the quoting. 12243 case $CONFIG_FILES in 12244 *\'*) eval set x "$CONFIG_FILES" ;; 12245 *) set x $CONFIG_FILES ;; 12246 esac 12247 shift 12248 for mf 12249 do 12250 # Strip MF so we end up with the name of the file. 12251 mf=`echo "$mf" | sed -e 's/:.*$//'` 12252 # Check whether this is an Automake generated Makefile or not. 12253 # We used to match only the files named 'Makefile.in', but 12254 # some people rename them; so instead we look at the file content. 12255 # Grep'ing the first line is not enough: some people post-process 12256 # each Makefile.in and add a new line on top of each file to say so. 12257 # Grep'ing the whole file is not good either: AIX grep has a line 12258 # limit of 2048, but all sed's we know have understand at least 4000. 12259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12260 dirpart=`$as_dirname -- "$mf" || 12261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12262 X"$mf" : 'X\(//\)[^/]' \| \ 12263 X"$mf" : 'X\(//\)$' \| \ 12264 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12265$as_echo X"$mf" | 12266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12267 s//\1/ 12268 q 12269 } 12270 /^X\(\/\/\)[^/].*/{ 12271 s//\1/ 12272 q 12273 } 12274 /^X\(\/\/\)$/{ 12275 s//\1/ 12276 q 12277 } 12278 /^X\(\/\).*/{ 12279 s//\1/ 12280 q 12281 } 12282 s/.*/./; q'` 12283 else 12284 continue 12285 fi 12286 # Extract the definition of DEPDIR, am__include, and am__quote 12287 # from the Makefile without running 'make'. 12288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12289 test -z "$DEPDIR" && continue 12290 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12291 test -z "$am__include" && continue 12292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12293 # Find all dependency output files, they are included files with 12294 # $(DEPDIR) in their names. We invoke sed twice because it is the 12295 # simplest approach to changing $(DEPDIR) to its actual value in the 12296 # expansion. 12297 for file in `sed -n " 12298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12300 # Make sure the directory exists. 12301 test -f "$dirpart/$file" && continue 12302 fdir=`$as_dirname -- "$file" || 12303$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12304 X"$file" : 'X\(//\)[^/]' \| \ 12305 X"$file" : 'X\(//\)$' \| \ 12306 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12307$as_echo X"$file" | 12308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12309 s//\1/ 12310 q 12311 } 12312 /^X\(\/\/\)[^/].*/{ 12313 s//\1/ 12314 q 12315 } 12316 /^X\(\/\/\)$/{ 12317 s//\1/ 12318 q 12319 } 12320 /^X\(\/\).*/{ 12321 s//\1/ 12322 q 12323 } 12324 s/.*/./; q'` 12325 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12326 # echo "creating $dirpart/$file" 12327 echo '# dummy' > "$dirpart/$file" 12328 done 12329 done 12330} 12331 ;; 12332 12333 esac 12334done # for ac_tag 12335 12336 12337as_fn_exit 0 12338_ACEOF 12339ac_clean_files=$ac_clean_files_save 12340 12341test $ac_write_fail = 0 || 12342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12343 12344 12345# configure is writing to config.log, and then calls config.status. 12346# config.status does its own redirection, appending to config.log. 12347# Unfortunately, on DOS this fails, as config.log is still kept open 12348# by configure, so config.status won't be able to write to it; its 12349# output is simply discarded. So we exec the FD to /dev/null, 12350# effectively closing config.log, so it can be properly (re)opened and 12351# appended to by config.status. When coming back to configure, we 12352# need to make the FD available again. 12353if test "$no_create" != yes; then 12354 ac_cs_success=: 12355 ac_config_status_args= 12356 test "$silent" = yes && 12357 ac_config_status_args="$ac_config_status_args --quiet" 12358 exec 5>/dev/null 12359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12360 exec 5>>config.log 12361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12362 # would make configure fail if this is the last instruction. 12363 $ac_cs_success || as_fn_exit 1 12364fi 12365if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12367$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12368fi 12369 12370