1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for proxymngr 1.0.4. 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='proxymngr' 583PACKAGE_TARNAME='proxymngr' 584PACKAGE_VERSION='1.0.4' 585PACKAGE_STRING='proxymngr 1.0.4' 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 630PROXYMNGR_LIBS 631PROXYMNGR_CFLAGS 632LBXPROXY 633MAN_SUBSTS 634XORG_MAN_PAGE 635ADMIN_MAN_DIR 636DRIVER_MAN_DIR 637MISC_MAN_DIR 638FILE_MAN_DIR 639LIB_MAN_DIR 640APP_MAN_DIR 641ADMIN_MAN_SUFFIX 642DRIVER_MAN_SUFFIX 643MISC_MAN_SUFFIX 644FILE_MAN_SUFFIX 645LIB_MAN_SUFFIX 646APP_MAN_SUFFIX 647SED 648host_os 649host_vendor 650host_cpu 651host 652build_os 653build_vendor 654build_cpu 655build 656INSTALL_CMD 657PKG_CONFIG 658CHANGELOG_CMD 659STRICT_CFLAGS 660CWARNFLAGS 661BASE_CFLAGS 662EGREP 663GREP 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709target_alias 710host_alias 711build_alias 712LIBS 713ECHO_T 714ECHO_N 715ECHO_C 716DEFS 717mandir 718localedir 719libdir 720psdir 721pdfdir 722dvidir 723htmldir 724infodir 725docdir 726oldincludedir 727includedir 728localstatedir 729sharedstatedir 730sysconfdir 731datadir 732datarootdir 733libexecdir 734sbindir 735bindir 736program_transform_name 737prefix 738exec_prefix 739PACKAGE_URL 740PACKAGE_BUGREPORT 741PACKAGE_STRING 742PACKAGE_VERSION 743PACKAGE_TARNAME 744PACKAGE_NAME 745PATH_SEPARATOR 746SHELL' 747ac_subst_files='' 748ac_user_opts=' 749enable_option_checking 750enable_silent_rules 751enable_dependency_tracking 752enable_selective_werror 753enable_strict_compilation 754enable_ipv6 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766PROXYMNGR_CFLAGS 767PROXYMNGR_LIBS' 768 769 770# Initialize some variables set by options. 771ac_init_help= 772ac_init_version=false 773ac_unrecognized_opts= 774ac_unrecognized_sep= 775# The variables have the same names as the options, with 776# dashes changed to underlines. 777cache_file=/dev/null 778exec_prefix=NONE 779no_create= 780no_recursion= 781prefix=NONE 782program_prefix=NONE 783program_suffix=NONE 784program_transform_name=s,x,x, 785silent= 786site= 787srcdir= 788verbose= 789x_includes=NONE 790x_libraries=NONE 791 792# Installation directory options. 793# These are left unexpanded so users can "make install exec_prefix=/foo" 794# and all the variables that are supposed to be based on exec_prefix 795# by default will actually change. 796# Use braces instead of parens because sh, perl, etc. also accept them. 797# (The list follows the same order as the GNU Coding Standards.) 798bindir='${exec_prefix}/bin' 799sbindir='${exec_prefix}/sbin' 800libexecdir='${exec_prefix}/libexec' 801datarootdir='${prefix}/share' 802datadir='${datarootdir}' 803sysconfdir='${prefix}/etc' 804sharedstatedir='${prefix}/com' 805localstatedir='${prefix}/var' 806includedir='${prefix}/include' 807oldincludedir='/usr/include' 808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 809infodir='${datarootdir}/info' 810htmldir='${docdir}' 811dvidir='${docdir}' 812pdfdir='${docdir}' 813psdir='${docdir}' 814libdir='${exec_prefix}/lib' 815localedir='${datarootdir}/locale' 816mandir='${datarootdir}/man' 817 818ac_prev= 819ac_dashdash= 820for ac_option 821do 822 # If the previous option needs an argument, assign it. 823 if test -n "$ac_prev"; then 824 eval $ac_prev=\$ac_option 825 ac_prev= 826 continue 827 fi 828 829 case $ac_option in 830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 831 *=) ac_optarg= ;; 832 *) ac_optarg=yes ;; 833 esac 834 835 # Accept the important Cygnus configure options, so we can diagnose typos. 836 837 case $ac_dashdash$ac_option in 838 --) 839 ac_dashdash=yes ;; 840 841 -bindir | --bindir | --bindi | --bind | --bin | --bi) 842 ac_prev=bindir ;; 843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 844 bindir=$ac_optarg ;; 845 846 -build | --build | --buil | --bui | --bu) 847 ac_prev=build_alias ;; 848 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 849 build_alias=$ac_optarg ;; 850 851 -cache-file | --cache-file | --cache-fil | --cache-fi \ 852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 853 ac_prev=cache_file ;; 854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 856 cache_file=$ac_optarg ;; 857 858 --config-cache | -C) 859 cache_file=config.cache ;; 860 861 -datadir | --datadir | --datadi | --datad) 862 ac_prev=datadir ;; 863 -datadir=* | --datadir=* | --datadi=* | --datad=*) 864 datadir=$ac_optarg ;; 865 866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 867 | --dataroo | --dataro | --datar) 868 ac_prev=datarootdir ;; 869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 871 datarootdir=$ac_optarg ;; 872 873 -disable-* | --disable-*) 874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 875 # Reject names that are not valid shell variable names. 876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 877 as_fn_error $? "invalid feature name: $ac_useropt" 878 ac_useropt_orig=$ac_useropt 879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 880 case $ac_user_opts in 881 *" 882"enable_$ac_useropt" 883"*) ;; 884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 885 ac_unrecognized_sep=', ';; 886 esac 887 eval enable_$ac_useropt=no ;; 888 889 -docdir | --docdir | --docdi | --doc | --do) 890 ac_prev=docdir ;; 891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 892 docdir=$ac_optarg ;; 893 894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 895 ac_prev=dvidir ;; 896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 897 dvidir=$ac_optarg ;; 898 899 -enable-* | --enable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=\$ac_optarg ;; 914 915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 917 | --exec | --exe | --ex) 918 ac_prev=exec_prefix ;; 919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 921 | --exec=* | --exe=* | --ex=*) 922 exec_prefix=$ac_optarg ;; 923 924 -gas | --gas | --ga | --g) 925 # Obsolete; use --with-gas. 926 with_gas=yes ;; 927 928 -help | --help | --hel | --he | -h) 929 ac_init_help=long ;; 930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 931 ac_init_help=recursive ;; 932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 933 ac_init_help=short ;; 934 935 -host | --host | --hos | --ho) 936 ac_prev=host_alias ;; 937 -host=* | --host=* | --hos=* | --ho=*) 938 host_alias=$ac_optarg ;; 939 940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 941 ac_prev=htmldir ;; 942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 943 | --ht=*) 944 htmldir=$ac_optarg ;; 945 946 -includedir | --includedir | --includedi | --included | --include \ 947 | --includ | --inclu | --incl | --inc) 948 ac_prev=includedir ;; 949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 950 | --includ=* | --inclu=* | --incl=* | --inc=*) 951 includedir=$ac_optarg ;; 952 953 -infodir | --infodir | --infodi | --infod | --info | --inf) 954 ac_prev=infodir ;; 955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 956 infodir=$ac_optarg ;; 957 958 -libdir | --libdir | --libdi | --libd) 959 ac_prev=libdir ;; 960 -libdir=* | --libdir=* | --libdi=* | --libd=*) 961 libdir=$ac_optarg ;; 962 963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 964 | --libexe | --libex | --libe) 965 ac_prev=libexecdir ;; 966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 967 | --libexe=* | --libex=* | --libe=*) 968 libexecdir=$ac_optarg ;; 969 970 -localedir | --localedir | --localedi | --localed | --locale) 971 ac_prev=localedir ;; 972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 973 localedir=$ac_optarg ;; 974 975 -localstatedir | --localstatedir | --localstatedi | --localstated \ 976 | --localstate | --localstat | --localsta | --localst | --locals) 977 ac_prev=localstatedir ;; 978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 980 localstatedir=$ac_optarg ;; 981 982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 983 ac_prev=mandir ;; 984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 985 mandir=$ac_optarg ;; 986 987 -nfp | --nfp | --nf) 988 # Obsolete; use --without-fp. 989 with_fp=no ;; 990 991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 992 | --no-cr | --no-c | -n) 993 no_create=yes ;; 994 995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 997 no_recursion=yes ;; 998 999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1001 | --oldin | --oldi | --old | --ol | --o) 1002 ac_prev=oldincludedir ;; 1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1006 oldincludedir=$ac_optarg ;; 1007 1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1009 ac_prev=prefix ;; 1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1011 prefix=$ac_optarg ;; 1012 1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1014 | --program-pre | --program-pr | --program-p) 1015 ac_prev=program_prefix ;; 1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1018 program_prefix=$ac_optarg ;; 1019 1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1021 | --program-suf | --program-su | --program-s) 1022 ac_prev=program_suffix ;; 1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1025 program_suffix=$ac_optarg ;; 1026 1027 -program-transform-name | --program-transform-name \ 1028 | --program-transform-nam | --program-transform-na \ 1029 | --program-transform-n | --program-transform- \ 1030 | --program-transform | --program-transfor \ 1031 | --program-transfo | --program-transf \ 1032 | --program-trans | --program-tran \ 1033 | --progr-tra | --program-tr | --program-t) 1034 ac_prev=program_transform_name ;; 1035 -program-transform-name=* | --program-transform-name=* \ 1036 | --program-transform-nam=* | --program-transform-na=* \ 1037 | --program-transform-n=* | --program-transform-=* \ 1038 | --program-transform=* | --program-transfor=* \ 1039 | --program-transfo=* | --program-transf=* \ 1040 | --program-trans=* | --program-tran=* \ 1041 | --progr-tra=* | --program-tr=* | --program-t=*) 1042 program_transform_name=$ac_optarg ;; 1043 1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1045 ac_prev=pdfdir ;; 1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1047 pdfdir=$ac_optarg ;; 1048 1049 -psdir | --psdir | --psdi | --psd | --ps) 1050 ac_prev=psdir ;; 1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1052 psdir=$ac_optarg ;; 1053 1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1055 | -silent | --silent | --silen | --sile | --sil) 1056 silent=yes ;; 1057 1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1059 ac_prev=sbindir ;; 1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1061 | --sbi=* | --sb=*) 1062 sbindir=$ac_optarg ;; 1063 1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1066 | --sharedst | --shareds | --shared | --share | --shar \ 1067 | --sha | --sh) 1068 ac_prev=sharedstatedir ;; 1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1072 | --sha=* | --sh=*) 1073 sharedstatedir=$ac_optarg ;; 1074 1075 -site | --site | --sit) 1076 ac_prev=site ;; 1077 -site=* | --site=* | --sit=*) 1078 site=$ac_optarg ;; 1079 1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1081 ac_prev=srcdir ;; 1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1083 srcdir=$ac_optarg ;; 1084 1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1086 | --syscon | --sysco | --sysc | --sys | --sy) 1087 ac_prev=sysconfdir ;; 1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1090 sysconfdir=$ac_optarg ;; 1091 1092 -target | --target | --targe | --targ | --tar | --ta | --t) 1093 ac_prev=target_alias ;; 1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1095 target_alias=$ac_optarg ;; 1096 1097 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1098 verbose=yes ;; 1099 1100 -version | --version | --versio | --versi | --vers | -V) 1101 ac_init_version=: ;; 1102 1103 -with-* | --with-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=\$ac_optarg ;; 1118 1119 -without-* | --without-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=no ;; 1134 1135 --x) 1136 # Obsolete; use --with-x. 1137 with_x=yes ;; 1138 1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1140 | --x-incl | --x-inc | --x-in | --x-i) 1141 ac_prev=x_includes ;; 1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1144 x_includes=$ac_optarg ;; 1145 1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1148 ac_prev=x_libraries ;; 1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1151 x_libraries=$ac_optarg ;; 1152 1153 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1154Try \`$0 --help' for more information" 1155 ;; 1156 1157 *=*) 1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1159 # Reject names that are not valid shell variable names. 1160 case $ac_envvar in #( 1161 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1163 esac 1164 eval $ac_envvar=\$ac_optarg 1165 export $ac_envvar ;; 1166 1167 *) 1168 # FIXME: should be removed in autoconf 3.0. 1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1173 ;; 1174 1175 esac 1176done 1177 1178if test -n "$ac_prev"; then 1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1180 as_fn_error $? "missing argument to $ac_option" 1181fi 1182 1183if test -n "$ac_unrecognized_opts"; then 1184 case $enable_option_checking in 1185 no) ;; 1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1188 esac 1189fi 1190 1191# Check all directory arguments for consistency. 1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1193 datadir sysconfdir sharedstatedir localstatedir includedir \ 1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1195 libdir localedir mandir 1196do 1197 eval ac_val=\$$ac_var 1198 # Remove trailing slashes. 1199 case $ac_val in 1200 */ ) 1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1202 eval $ac_var=\$ac_val;; 1203 esac 1204 # Be sure to have absolute directory names. 1205 case $ac_val in 1206 [\\/$]* | ?:[\\/]* ) continue;; 1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1208 esac 1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 as_fn_error $? "working directory cannot be determined" 1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1239 as_fn_error $? "pwd does not report name of working directory" 1240 1241 1242# Find the source files, if location was not specified. 1243if test -z "$srcdir"; then 1244 ac_srcdir_defaulted=yes 1245 # Try the directory containing this script, then the parent directory. 1246 ac_confdir=`$as_dirname -- "$as_myself" || 1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1248 X"$as_myself" : 'X\(//\)[^/]' \| \ 1249 X"$as_myself" : 'X\(//\)$' \| \ 1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1251$as_echo X"$as_myself" | 1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)[^/].*/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\).*/{ 1265 s//\1/ 1266 q 1267 } 1268 s/.*/./; q'` 1269 srcdir=$ac_confdir 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 srcdir=.. 1272 fi 1273else 1274 ac_srcdir_defaulted=no 1275fi 1276if test ! -r "$srcdir/$ac_unique_file"; then 1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1279fi 1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1281ac_abs_confdir=`( 1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures proxymngr 1.0.4 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking ...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --libdir=DIR object code libraries [EPREFIX/lib] 1349 --includedir=DIR C header files [PREFIX/include] 1350 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1353 --infodir=DIR info documentation [DATAROOTDIR/info] 1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1355 --mandir=DIR man documentation [DATAROOTDIR/man] 1356 --docdir=DIR documentation root [DATAROOTDIR/doc/proxymngr] 1357 --htmldir=DIR html documentation [DOCDIR] 1358 --dvidir=DIR dvi documentation [DOCDIR] 1359 --pdfdir=DIR pdf documentation [DOCDIR] 1360 --psdir=DIR ps documentation [DOCDIR] 1361_ACEOF 1362 1363 cat <<\_ACEOF 1364 1365Program names: 1366 --program-prefix=PREFIX prepend PREFIX to installed program names 1367 --program-suffix=SUFFIX append SUFFIX to installed program names 1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373_ACEOF 1374fi 1375 1376if test -n "$ac_init_help"; then 1377 case $ac_init_help in 1378 short | recursive ) echo "Configuration of proxymngr 1.0.4:";; 1379 esac 1380 cat <<\_ACEOF 1381 1382Optional Features: 1383 --disable-option-checking ignore unrecognized --enable/--with options 1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1386 --enable-silent-rules less verbose build output (undo: "make V=1") 1387 --disable-silent-rules verbose build output (undo: "make V=0") 1388 --enable-dependency-tracking 1389 do not reject slow dependency extractors 1390 --disable-dependency-tracking 1391 speeds up one-time build 1392 --disable-selective-werror 1393 Turn off selective compiler errors. (default: 1394 enabled) 1395 --enable-strict-compilation 1396 Enable all warnings from compiler and make them 1397 errors (default: disabled) 1398 --enable-ipv6 Enable IPv6 support 1399 1400Some influential environment variables: 1401 CC C compiler command 1402 CFLAGS C compiler flags 1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1404 nonstandard directory <lib dir> 1405 LIBS libraries to pass to the linker, e.g. -l<library> 1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1407 you have headers in a nonstandard directory <include dir> 1408 CPP C preprocessor 1409 PKG_CONFIG path to pkg-config utility 1410 PROXYMNGR_CFLAGS 1411 C compiler flags for PROXYMNGR, overriding pkg-config 1412 PROXYMNGR_LIBS 1413 linker flags for PROXYMNGR, overriding pkg-config 1414 1415Use these variables to override the choices made by `configure' or to help 1416it to find libraries and programs with nonstandard names/locations. 1417 1418Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1419_ACEOF 1420ac_status=$? 1421fi 1422 1423if test "$ac_init_help" = "recursive"; then 1424 # If there are subdirs, report their specific --help. 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1426 test -d "$ac_dir" || 1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1428 continue 1429 ac_builddir=. 1430 1431case "$ac_dir" in 1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1433*) 1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1435 # A ".." for each directory in $ac_dir_suffix. 1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1437 case $ac_top_builddir_sub in 1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1440 esac ;; 1441esac 1442ac_abs_top_builddir=$ac_pwd 1443ac_abs_builddir=$ac_pwd$ac_dir_suffix 1444# for backward compatibility: 1445ac_top_builddir=$ac_top_build_prefix 1446 1447case $srcdir in 1448 .) # We are building in place. 1449 ac_srcdir=. 1450 ac_top_srcdir=$ac_top_builddir_sub 1451 ac_abs_top_srcdir=$ac_pwd ;; 1452 [\\/]* | ?:[\\/]* ) # Absolute name. 1453 ac_srcdir=$srcdir$ac_dir_suffix; 1454 ac_top_srcdir=$srcdir 1455 ac_abs_top_srcdir=$srcdir ;; 1456 *) # Relative name. 1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1458 ac_top_srcdir=$ac_top_build_prefix$srcdir 1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1460esac 1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1462 1463 cd "$ac_dir" || { ac_status=$?; continue; } 1464 # Check for guested configure. 1465 if test -f "$ac_srcdir/configure.gnu"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1468 elif test -f "$ac_srcdir/configure"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure" --help=recursive 1471 else 1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1473 fi || ac_status=$? 1474 cd "$ac_pwd" || { ac_status=$?; break; } 1475 done 1476fi 1477 1478test -n "$ac_init_help" && exit $ac_status 1479if $ac_init_version; then 1480 cat <<\_ACEOF 1481proxymngr configure 1.0.4 1482generated by GNU Autoconf 2.69 1483 1484Copyright (C) 2012 Free Software Foundation, Inc. 1485This configure script is free software; the Free Software Foundation 1486gives unlimited permission to copy, distribute and modify it. 1487_ACEOF 1488 exit 1489fi 1490 1491## ------------------------ ## 1492## Autoconf initialization. ## 1493## ------------------------ ## 1494 1495# ac_fn_c_try_compile LINENO 1496# -------------------------- 1497# Try to compile conftest.$ac_ext, and return whether this succeeded. 1498ac_fn_c_try_compile () 1499{ 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501 rm -f conftest.$ac_objext 1502 if { { ac_try="$ac_compile" 1503case "(($ac_try" in 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505 *) ac_try_echo=$ac_try;; 1506esac 1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1508$as_echo "$ac_try_echo"; } >&5 1509 (eval "$ac_compile") 2>conftest.err 1510 ac_status=$? 1511 if test -s conftest.err; then 1512 grep -v '^ *+' conftest.err >conftest.er1 1513 cat conftest.er1 >&5 1514 mv -f conftest.er1 conftest.err 1515 fi 1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1517 test $ac_status = 0; } && { 1518 test -z "$ac_c_werror_flag" || 1519 test ! -s conftest.err 1520 } && test -s conftest.$ac_objext; then : 1521 ac_retval=0 1522else 1523 $as_echo "$as_me: failed program was:" >&5 1524sed 's/^/| /' conftest.$ac_ext >&5 1525 1526 ac_retval=1 1527fi 1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1529 as_fn_set_status $ac_retval 1530 1531} # ac_fn_c_try_compile 1532 1533# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1534# --------------------------------------------- 1535# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1536# accordingly. 1537ac_fn_c_check_decl () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 as_decl_name=`echo $2|sed 's/ *(.*//'` 1541 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1543$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1544if eval \${$3+:} false; then : 1545 $as_echo_n "(cached) " >&6 1546else 1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1548/* end confdefs.h. */ 1549$4 1550int 1551main () 1552{ 1553#ifndef $as_decl_name 1554#ifdef __cplusplus 1555 (void) $as_decl_use; 1556#else 1557 (void) $as_decl_name; 1558#endif 1559#endif 1560 1561 ; 1562 return 0; 1563} 1564_ACEOF 1565if ac_fn_c_try_compile "$LINENO"; then : 1566 eval "$3=yes" 1567else 1568 eval "$3=no" 1569fi 1570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571fi 1572eval ac_res=\$$3 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1574$as_echo "$ac_res" >&6; } 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 1577} # ac_fn_c_check_decl 1578 1579# ac_fn_c_try_cpp LINENO 1580# ---------------------- 1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_cpp () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_cpp conftest.$ac_ext" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } > conftest.i && { 1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 }; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_cpp 1615 1616# ac_fn_c_try_run LINENO 1617# ---------------------- 1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1619# that executables *can* be run. 1620ac_fn_c_try_run () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if { { ac_try="$ac_link" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_link") 2>&5 1631 ac_status=$? 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1634 { { case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_try") 2>&5 1641 ac_status=$? 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; }; }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: program exited with status $ac_status" >&5 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=$ac_status 1651fi 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_run 1657 1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659# ------------------------------------------------------- 1660# Tests whether HEADER exists and can be compiled using the include files in 1661# INCLUDES, setting the cache variable VAR accordingly. 1662ac_fn_c_check_header_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669else 1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671/* end confdefs.h. */ 1672$4 1673#include <$2> 1674_ACEOF 1675if ac_fn_c_try_compile "$LINENO"; then : 1676 eval "$3=yes" 1677else 1678 eval "$3=no" 1679fi 1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681fi 1682eval ac_res=\$$3 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684$as_echo "$ac_res" >&6; } 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687} # ac_fn_c_check_header_compile 1688 1689# ac_fn_c_try_link LINENO 1690# ----------------------- 1691# Try to link conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_link () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 rm -f conftest.$ac_objext conftest$ac_exeext 1696 if { { ac_try="$ac_link" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_link") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { 1712 test -z "$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 } && test -s conftest$ac_exeext && { 1715 test "$cross_compiling" = yes || 1716 test -x conftest$ac_exeext 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1727 # interfere with the next link command; also delete a directory that is 1728 # left behind by Apple's compiler. We do this before executing the actions. 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_link 1734 1735# ac_fn_c_check_func LINENO FUNC VAR 1736# ---------------------------------- 1737# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. 1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1755 <limits.h> exists even on freestanding compilers. */ 1756 1757#ifdef __STDC__ 1758# include <limits.h> 1759#else 1760# include <assert.h> 1761#endif 1762 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main () 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_func 1801 1802# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1803# ---------------------------------------------------- 1804# Tries to find if the field MEMBER exists in type AGGR, after including 1805# INCLUDES, setting cache variable VAR accordingly. 1806ac_fn_c_check_member () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1810$as_echo_n "checking for $2.$3... " >&6; } 1811if eval \${$4+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$5 1817int 1818main () 1819{ 1820static $2 ac_aggr; 1821if (ac_aggr.$3) 1822return 0; 1823 ; 1824 return 0; 1825} 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 eval "$4=yes" 1829else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832$5 1833int 1834main () 1835{ 1836static $2 ac_aggr; 1837if (sizeof ac_aggr.$3) 1838return 0; 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 eval "$4=yes" 1845else 1846 eval "$4=no" 1847fi 1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1849fi 1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1851fi 1852eval ac_res=\$$4 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_member 1858 1859# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1860# ------------------------------------------- 1861# Tests whether TYPE exists after having included INCLUDES, setting cache 1862# variable VAR accordingly. 1863ac_fn_c_check_type () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1867$as_echo_n "checking for $2... " >&6; } 1868if eval \${$3+:} false; then : 1869 $as_echo_n "(cached) " >&6 1870else 1871 eval "$3=no" 1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874$4 1875int 1876main () 1877{ 1878if (sizeof ($2)) 1879 return 0; 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887$4 1888int 1889main () 1890{ 1891if (sizeof (($2))) 1892 return 0; 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 1899else 1900 eval "$3=yes" 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911} # ac_fn_c_check_type 1912cat >config.log <<_ACEOF 1913This file contains any messages produced by compilers while 1914running configure, to aid debugging if configure makes a mistake. 1915 1916It was created by proxymngr $as_me 1.0.4, which was 1917generated by GNU Autoconf 2.69. Invocation command line was 1918 1919 $ $0 $@ 1920 1921_ACEOF 1922exec 5>>config.log 1923{ 1924cat <<_ASUNAME 1925## --------- ## 1926## Platform. ## 1927## --------- ## 1928 1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1930uname -m = `(uname -m) 2>/dev/null || echo unknown` 1931uname -r = `(uname -r) 2>/dev/null || echo unknown` 1932uname -s = `(uname -s) 2>/dev/null || echo unknown` 1933uname -v = `(uname -v) 2>/dev/null || echo unknown` 1934 1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1937 1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1945 1946_ASUNAME 1947 1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1949for as_dir in $PATH 1950do 1951 IFS=$as_save_IFS 1952 test -z "$as_dir" && as_dir=. 1953 $as_echo "PATH: $as_dir" 1954 done 1955IFS=$as_save_IFS 1956 1957} >&5 1958 1959cat >&5 <<_ACEOF 1960 1961 1962## ----------- ## 1963## Core tests. ## 1964## ----------- ## 1965 1966_ACEOF 1967 1968 1969# Keep a trace of the command line. 1970# Strip out --no-create and --no-recursion so they do not pile up. 1971# Strip out --silent because we don't want to record it for future runs. 1972# Also quote any args containing shell meta-characters. 1973# Make two passes to allow for proper duplicate-argument suppression. 1974ac_configure_args= 1975ac_configure_args0= 1976ac_configure_args1= 1977ac_must_keep_next=false 1978for ac_pass in 1 2 1979do 1980 for ac_arg 1981 do 1982 case $ac_arg in 1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1985 | -silent | --silent | --silen | --sile | --sil) 1986 continue ;; 1987 *\'*) 1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1989 esac 1990 case $ac_pass in 1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1992 2) 1993 as_fn_append ac_configure_args1 " '$ac_arg'" 1994 if test $ac_must_keep_next = true; then 1995 ac_must_keep_next=false # Got value, back to normal. 1996 else 1997 case $ac_arg in 1998 *=* | --config-cache | -C | -disable-* | --disable-* \ 1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2001 | -with-* | --with-* | -without-* | --without-* | --x) 2002 case "$ac_configure_args0 " in 2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2004 esac 2005 ;; 2006 -* ) ac_must_keep_next=true ;; 2007 esac 2008 fi 2009 as_fn_append ac_configure_args " '$ac_arg'" 2010 ;; 2011 esac 2012 done 2013done 2014{ ac_configure_args0=; unset ac_configure_args0;} 2015{ ac_configure_args1=; unset ac_configure_args1;} 2016 2017# When interrupted or exit'd, cleanup temporary files, and complete 2018# config.log. We remove comments because anyway the quotes in there 2019# would cause problems or look ugly. 2020# WARNING: Use '\'' to represent an apostrophe within the trap. 2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2022trap 'exit_status=$? 2023 # Save into config.log some information that might help in debugging. 2024 { 2025 echo 2026 2027 $as_echo "## ---------------- ## 2028## Cache variables. ## 2029## ---------------- ##" 2030 echo 2031 # The following way of writing the cache mishandles newlines in values, 2032( 2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2034 eval ac_val=\$$ac_var 2035 case $ac_val in #( 2036 *${as_nl}*) 2037 case $ac_var in #( 2038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2040 esac 2041 case $ac_var in #( 2042 _ | IFS | as_nl) ;; #( 2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2044 *) { eval $ac_var=; unset $ac_var;} ;; 2045 esac ;; 2046 esac 2047 done 2048 (set) 2>&1 | 2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2050 *${as_nl}ac_space=\ *) 2051 sed -n \ 2052 "s/'\''/'\''\\\\'\'''\''/g; 2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2054 ;; #( 2055 *) 2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2057 ;; 2058 esac | 2059 sort 2060) 2061 echo 2062 2063 $as_echo "## ----------------- ## 2064## Output variables. ## 2065## ----------------- ##" 2066 echo 2067 for ac_var in $ac_subst_vars 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 $as_echo "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 2077 if test -n "$ac_subst_files"; then 2078 $as_echo "## ------------------- ## 2079## File substitutions. ## 2080## ------------------- ##" 2081 echo 2082 for ac_var in $ac_subst_files 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 $as_echo "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 fi 2092 2093 if test -s confdefs.h; then 2094 $as_echo "## ----------- ## 2095## confdefs.h. ## 2096## ----------- ##" 2097 echo 2098 cat confdefs.h 2099 echo 2100 fi 2101 test "$ac_signal" != 0 && 2102 $as_echo "$as_me: caught signal $ac_signal" 2103 $as_echo "$as_me: exit $exit_status" 2104 } >&5 2105 rm -f core *.core core.conftest.* && 2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2107 exit $exit_status 2108' 0 2109for ac_signal in 1 2 13 15; do 2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2111done 2112ac_signal=0 2113 2114# confdefs.h avoids OS command line length limits that DEFS can exceed. 2115rm -f -r conftest* confdefs.h 2116 2117$as_echo "/* confdefs.h */" > confdefs.h 2118 2119# Predefined preprocessor variables. 2120 2121cat >>confdefs.h <<_ACEOF 2122#define PACKAGE_NAME "$PACKAGE_NAME" 2123_ACEOF 2124 2125cat >>confdefs.h <<_ACEOF 2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2127_ACEOF 2128 2129cat >>confdefs.h <<_ACEOF 2130#define PACKAGE_VERSION "$PACKAGE_VERSION" 2131_ACEOF 2132 2133cat >>confdefs.h <<_ACEOF 2134#define PACKAGE_STRING "$PACKAGE_STRING" 2135_ACEOF 2136 2137cat >>confdefs.h <<_ACEOF 2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2139_ACEOF 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_URL "$PACKAGE_URL" 2143_ACEOF 2144 2145 2146# Let the site file select an alternate cache file if it wants to. 2147# Prefer an explicitly selected file to automatically selected ones. 2148ac_site_file1=NONE 2149ac_site_file2=NONE 2150if test -n "$CONFIG_SITE"; then 2151 # We do not want a PATH search for config.site. 2152 case $CONFIG_SITE in #(( 2153 -*) ac_site_file1=./$CONFIG_SITE;; 2154 */*) ac_site_file1=$CONFIG_SITE;; 2155 *) ac_site_file1=./$CONFIG_SITE;; 2156 esac 2157elif test "x$prefix" != xNONE; then 2158 ac_site_file1=$prefix/share/config.site 2159 ac_site_file2=$prefix/etc/config.site 2160else 2161 ac_site_file1=$ac_default_prefix/share/config.site 2162 ac_site_file2=$ac_default_prefix/etc/config.site 2163fi 2164for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2165do 2166 test "x$ac_site_file" = xNONE && continue 2167 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2169$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2170 sed 's/^/| /' "$ac_site_file" >&5 2171 . "$ac_site_file" \ 2172 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2174as_fn_error $? "failed to load site script $ac_site_file 2175See \`config.log' for more details" "$LINENO" 5; } 2176 fi 2177done 2178 2179if test -r "$cache_file"; then 2180 # Some versions of bash will fail to source /dev/null (special files 2181 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2182 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2184$as_echo "$as_me: loading cache $cache_file" >&6;} 2185 case $cache_file in 2186 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2187 *) . "./$cache_file";; 2188 esac 2189 fi 2190else 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2192$as_echo "$as_me: creating cache $cache_file" >&6;} 2193 >$cache_file 2194fi 2195 2196# Check that the precious variables saved in the cache have kept the same 2197# value. 2198ac_cache_corrupted=false 2199for ac_var in $ac_precious_vars; do 2200 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2201 eval ac_new_set=\$ac_env_${ac_var}_set 2202 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2203 eval ac_new_val=\$ac_env_${ac_var}_value 2204 case $ac_old_set,$ac_new_set in 2205 set,) 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2208 ac_cache_corrupted=: ;; 2209 ,set) 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2212 ac_cache_corrupted=: ;; 2213 ,);; 2214 *) 2215 if test "x$ac_old_val" != "x$ac_new_val"; then 2216 # differences in whitespace do not lead to failure. 2217 ac_old_val_w=`echo x $ac_old_val` 2218 ac_new_val_w=`echo x $ac_new_val` 2219 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2222 ac_cache_corrupted=: 2223 else 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2226 eval $ac_var=\$ac_old_val 2227 fi 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2232 fi;; 2233 esac 2234 # Pass precious variables to config.status. 2235 if test "$ac_new_set" = set; then 2236 case $ac_new_val in 2237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2238 *) ac_arg=$ac_var=$ac_new_val ;; 2239 esac 2240 case " $ac_configure_args " in 2241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2242 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2243 esac 2244 fi 2245done 2246if $ac_cache_corrupted; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2252fi 2253## -------------------- ## 2254## Main body of script. ## 2255## -------------------- ## 2256 2257ac_ext=c 2258ac_cpp='$CPP $CPPFLAGS' 2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2261ac_compiler_gnu=$ac_cv_c_compiler_gnu 2262 2263 2264 2265# The program itself has a header called config.h so 2266# we have to choose a different name 2267ac_config_headers="$ac_config_headers xconfig.h" 2268 2269 2270# Initialize Automake 2271am__api_version='1.15' 2272 2273ac_aux_dir= 2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2275 if test -f "$ac_dir/install-sh"; then 2276 ac_aux_dir=$ac_dir 2277 ac_install_sh="$ac_aux_dir/install-sh -c" 2278 break 2279 elif test -f "$ac_dir/install.sh"; then 2280 ac_aux_dir=$ac_dir 2281 ac_install_sh="$ac_aux_dir/install.sh -c" 2282 break 2283 elif test -f "$ac_dir/shtool"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/shtool install -c" 2286 break 2287 fi 2288done 2289if test -z "$ac_aux_dir"; then 2290 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2291fi 2292 2293# These three variables are undocumented and unsupported, 2294# and are intended to be withdrawn in a future Autoconf release. 2295# They can cause serious problems if a builder's source tree is in a directory 2296# whose full name contains unusual characters. 2297ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2298ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2299ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2300 2301 2302# Find a good install program. We prefer a C program (faster), 2303# so one script is as good as another. But avoid the broken or 2304# incompatible versions: 2305# SysV /etc/install, /usr/sbin/install 2306# SunOS /usr/etc/install 2307# IRIX /sbin/install 2308# AIX /bin/install 2309# AmigaOS /C/install, which installs bootblocks on floppy discs 2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2313# OS/2's system install, which has a completely different semantic 2314# ./install, which can be erroneously created by make from ./install.sh. 2315# Reject install programs that cannot install multiple files. 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2317$as_echo_n "checking for a BSD-compatible install... " >&6; } 2318if test -z "$INSTALL"; then 2319if ${ac_cv_path_install+:} false; then : 2320 $as_echo_n "(cached) " >&6 2321else 2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 # Account for people who put trailing slashes in PATH elements. 2328case $as_dir/ in #(( 2329 ./ | .// | /[cC]/* | \ 2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2331 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2332 /usr/ucb/* ) ;; 2333 *) 2334 # OSF1 and SCO ODT 3.0 have their own names for install. 2335 # Don't use installbsd from OSF since it installs stuff as root 2336 # by default. 2337 for ac_prog in ginstall scoinst install; do 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2340 if test $ac_prog = install && 2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2342 # AIX install. It has an incompatible calling convention. 2343 : 2344 elif test $ac_prog = install && 2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2346 # program-specific install script used by HP pwplus--don't use. 2347 : 2348 else 2349 rm -rf conftest.one conftest.two conftest.dir 2350 echo one > conftest.one 2351 echo two > conftest.two 2352 mkdir conftest.dir 2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2354 test -s conftest.one && test -s conftest.two && 2355 test -s conftest.dir/conftest.one && 2356 test -s conftest.dir/conftest.two 2357 then 2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2359 break 3 2360 fi 2361 fi 2362 fi 2363 done 2364 done 2365 ;; 2366esac 2367 2368 done 2369IFS=$as_save_IFS 2370 2371rm -rf conftest.one conftest.two conftest.dir 2372 2373fi 2374 if test "${ac_cv_path_install+set}" = set; then 2375 INSTALL=$ac_cv_path_install 2376 else 2377 # As a last resort, use the slow shell script. Don't cache a 2378 # value for INSTALL within a source directory, because that will 2379 # break other packages using the cache if that directory is 2380 # removed, or if the value is a relative name. 2381 INSTALL=$ac_install_sh 2382 fi 2383fi 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2385$as_echo "$INSTALL" >&6; } 2386 2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2388# It thinks the first close brace ends the variable substitution. 2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2390 2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2392 2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2394 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2396$as_echo_n "checking whether build environment is sane... " >&6; } 2397# Reject unsafe characters in $srcdir or the absolute working directory 2398# name. Accept space and tab only in the latter. 2399am_lf=' 2400' 2401case `pwd` in 2402 *[\\\"\#\$\&\'\`$am_lf]*) 2403 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2404esac 2405case $srcdir in 2406 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2407 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2408esac 2409 2410# Do 'set' in a subshell so we don't clobber the current shell's 2411# arguments. Must try -L first in case configure is actually a 2412# symlink; some systems play weird games with the mod time of symlinks 2413# (eg FreeBSD returns the mod time of the symlink's containing 2414# directory). 2415if ( 2416 am_has_slept=no 2417 for am_try in 1 2; do 2418 echo "timestamp, slept: $am_has_slept" > conftest.file 2419 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2420 if test "$*" = "X"; then 2421 # -L didn't work. 2422 set X `ls -t "$srcdir/configure" conftest.file` 2423 fi 2424 if test "$*" != "X $srcdir/configure conftest.file" \ 2425 && test "$*" != "X conftest.file $srcdir/configure"; then 2426 2427 # If neither matched, then we have a broken ls. This can happen 2428 # if, for instance, CONFIG_SHELL is bash and it inherits a 2429 # broken ls alias from the environment. This has actually 2430 # happened. Such a system could not be considered "sane". 2431 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2432 alias in your environment" "$LINENO" 5 2433 fi 2434 if test "$2" = conftest.file || test $am_try -eq 2; then 2435 break 2436 fi 2437 # Just in case. 2438 sleep 1 2439 am_has_slept=yes 2440 done 2441 test "$2" = conftest.file 2442 ) 2443then 2444 # Ok. 2445 : 2446else 2447 as_fn_error $? "newly created file is older than distributed files! 2448Check your system clock" "$LINENO" 5 2449fi 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2451$as_echo "yes" >&6; } 2452# If we didn't sleep, we still need to ensure time stamps of config.status and 2453# generated files are strictly newer. 2454am_sleep_pid= 2455if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2456 ( sleep 1 ) & 2457 am_sleep_pid=$! 2458fi 2459 2460rm -f conftest.file 2461 2462test "$program_prefix" != NONE && 2463 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2464# Use a double $ so make ignores it. 2465test "$program_suffix" != NONE && 2466 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2467# Double any \ or $. 2468# By default was `s,x,x', remove it if useless. 2469ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2470program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2471 2472# Expand $ac_aux_dir to an absolute path. 2473am_aux_dir=`cd "$ac_aux_dir" && pwd` 2474 2475if test x"${MISSING+set}" != xset; then 2476 case $am_aux_dir in 2477 *\ * | *\ *) 2478 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2479 *) 2480 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2481 esac 2482fi 2483# Use eval to expand $SHELL 2484if eval "$MISSING --is-lightweight"; then 2485 am_missing_run="$MISSING " 2486else 2487 am_missing_run= 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2489$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2490fi 2491 2492if test x"${install_sh+set}" != xset; then 2493 case $am_aux_dir in 2494 *\ * | *\ *) 2495 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2496 *) 2497 install_sh="\${SHELL} $am_aux_dir/install-sh" 2498 esac 2499fi 2500 2501# Installed binaries are usually stripped using 'strip' when the user 2502# run "make install-strip". However 'strip' might not be the right 2503# tool to use in cross-compilation environments, therefore Automake 2504# will honor the 'STRIP' environment variable to overrule this program. 2505if test "$cross_compiling" != no; then 2506 if test -n "$ac_tool_prefix"; then 2507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2508set dummy ${ac_tool_prefix}strip; ac_word=$2 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2510$as_echo_n "checking for $ac_word... " >&6; } 2511if ${ac_cv_prog_STRIP+:} false; then : 2512 $as_echo_n "(cached) " >&6 2513else 2514 if test -n "$STRIP"; then 2515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2516else 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2518for as_dir in $PATH 2519do 2520 IFS=$as_save_IFS 2521 test -z "$as_dir" && as_dir=. 2522 for ac_exec_ext in '' $ac_executable_extensions; do 2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2524 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2526 break 2 2527 fi 2528done 2529 done 2530IFS=$as_save_IFS 2531 2532fi 2533fi 2534STRIP=$ac_cv_prog_STRIP 2535if test -n "$STRIP"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2537$as_echo "$STRIP" >&6; } 2538else 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2540$as_echo "no" >&6; } 2541fi 2542 2543 2544fi 2545if test -z "$ac_cv_prog_STRIP"; then 2546 ac_ct_STRIP=$STRIP 2547 # Extract the first word of "strip", so it can be a program name with args. 2548set dummy strip; ac_word=$2 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2550$as_echo_n "checking for $ac_word... " >&6; } 2551if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 if test -n "$ac_ct_STRIP"; then 2555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2556else 2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2558for as_dir in $PATH 2559do 2560 IFS=$as_save_IFS 2561 test -z "$as_dir" && as_dir=. 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2564 ac_cv_prog_ac_ct_STRIP="strip" 2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2566 break 2 2567 fi 2568done 2569 done 2570IFS=$as_save_IFS 2571 2572fi 2573fi 2574ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2575if test -n "$ac_ct_STRIP"; then 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2577$as_echo "$ac_ct_STRIP" >&6; } 2578else 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2580$as_echo "no" >&6; } 2581fi 2582 2583 if test "x$ac_ct_STRIP" = x; then 2584 STRIP=":" 2585 else 2586 case $cross_compiling:$ac_tool_warned in 2587yes:) 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2590ac_tool_warned=yes ;; 2591esac 2592 STRIP=$ac_ct_STRIP 2593 fi 2594else 2595 STRIP="$ac_cv_prog_STRIP" 2596fi 2597 2598fi 2599INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2600 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2602$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2603if test -z "$MKDIR_P"; then 2604 if ${ac_cv_path_mkdir+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2609do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_prog in mkdir gmkdir; do 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2615 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2616 'mkdir (GNU coreutils) '* | \ 2617 'mkdir (coreutils) '* | \ 2618 'mkdir (fileutils) '4.1*) 2619 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2620 break 3;; 2621 esac 2622 done 2623 done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628 2629 test -d ./--version && rmdir ./--version 2630 if test "${ac_cv_path_mkdir+set}" = set; then 2631 MKDIR_P="$ac_cv_path_mkdir -p" 2632 else 2633 # As a last resort, use the slow shell script. Don't cache a 2634 # value for MKDIR_P within a source directory, because that will 2635 # break other packages using the cache if that directory is 2636 # removed, or if the value is a relative name. 2637 MKDIR_P="$ac_install_sh -d" 2638 fi 2639fi 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2641$as_echo "$MKDIR_P" >&6; } 2642 2643for ac_prog in gawk mawk nawk awk 2644do 2645 # Extract the first word of "$ac_prog", so it can be a program name with args. 2646set dummy $ac_prog; ac_word=$2 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2648$as_echo_n "checking for $ac_word... " >&6; } 2649if ${ac_cv_prog_AWK+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651else 2652 if test -n "$AWK"; then 2653 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2654else 2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2662 ac_cv_prog_AWK="$ac_prog" 2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2664 break 2 2665 fi 2666done 2667 done 2668IFS=$as_save_IFS 2669 2670fi 2671fi 2672AWK=$ac_cv_prog_AWK 2673if test -n "$AWK"; then 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2675$as_echo "$AWK" >&6; } 2676else 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2678$as_echo "no" >&6; } 2679fi 2680 2681 2682 test -n "$AWK" && break 2683done 2684 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2686$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2687set x ${MAKE-make} 2688ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2689if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 cat >conftest.make <<\_ACEOF 2693SHELL = /bin/sh 2694all: 2695 @echo '@@@%%%=$(MAKE)=@@@%%%' 2696_ACEOF 2697# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2698case `${MAKE-make} -f conftest.make 2>/dev/null` in 2699 *@@@%%%=?*=@@@%%%*) 2700 eval ac_cv_prog_make_${ac_make}_set=yes;; 2701 *) 2702 eval ac_cv_prog_make_${ac_make}_set=no;; 2703esac 2704rm -f conftest.make 2705fi 2706if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2708$as_echo "yes" >&6; } 2709 SET_MAKE= 2710else 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712$as_echo "no" >&6; } 2713 SET_MAKE="MAKE=${MAKE-make}" 2714fi 2715 2716rm -rf .tst 2>/dev/null 2717mkdir .tst 2>/dev/null 2718if test -d .tst; then 2719 am__leading_dot=. 2720else 2721 am__leading_dot=_ 2722fi 2723rmdir .tst 2>/dev/null 2724 2725# Check whether --enable-silent-rules was given. 2726if test "${enable_silent_rules+set}" = set; then : 2727 enableval=$enable_silent_rules; 2728fi 2729 2730case $enable_silent_rules in # ((( 2731 yes) AM_DEFAULT_VERBOSITY=0;; 2732 no) AM_DEFAULT_VERBOSITY=1;; 2733 *) AM_DEFAULT_VERBOSITY=1;; 2734esac 2735am_make=${MAKE-make} 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2737$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2738if ${am_cv_make_support_nested_variables+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 if $as_echo 'TRUE=$(BAR$(V)) 2742BAR0=false 2743BAR1=true 2744V=1 2745am__doit: 2746 @$(TRUE) 2747.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2748 am_cv_make_support_nested_variables=yes 2749else 2750 am_cv_make_support_nested_variables=no 2751fi 2752fi 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2754$as_echo "$am_cv_make_support_nested_variables" >&6; } 2755if test $am_cv_make_support_nested_variables = yes; then 2756 AM_V='$(V)' 2757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2758else 2759 AM_V=$AM_DEFAULT_VERBOSITY 2760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2761fi 2762AM_BACKSLASH='\' 2763 2764if test "`cd $srcdir && pwd`" != "`pwd`"; then 2765 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2766 # is not polluted with repeated "-I." 2767 am__isrc=' -I$(srcdir)' 2768 # test to see if srcdir already configured 2769 if test -f $srcdir/config.status; then 2770 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2771 fi 2772fi 2773 2774# test whether we have cygpath 2775if test -z "$CYGPATH_W"; then 2776 if (cygpath --version) >/dev/null 2>/dev/null; then 2777 CYGPATH_W='cygpath -w' 2778 else 2779 CYGPATH_W=echo 2780 fi 2781fi 2782 2783 2784# Define the identity of the package. 2785 PACKAGE='proxymngr' 2786 VERSION='1.0.4' 2787 2788 2789cat >>confdefs.h <<_ACEOF 2790#define PACKAGE "$PACKAGE" 2791_ACEOF 2792 2793 2794cat >>confdefs.h <<_ACEOF 2795#define VERSION "$VERSION" 2796_ACEOF 2797 2798# Some tools Automake needs. 2799 2800ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2801 2802 2803AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2804 2805 2806AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2807 2808 2809AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2810 2811 2812MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2813 2814# For better backward compatibility. To be removed once Automake 1.9.x 2815# dies out for good. For more background, see: 2816# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2817# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2818mkdir_p='$(MKDIR_P)' 2819 2820# We need awk for the "check" target (and possibly the TAP driver). The 2821# system "awk" is bad on some platforms. 2822# Always define AMTAR for backward compatibility. Yes, it's still used 2823# in the wild :-( We should find a proper way to deprecate it ... 2824AMTAR='$${TAR-tar}' 2825 2826 2827# We'll loop over all known methods to create a tar archive until one works. 2828_am_tools='gnutar pax cpio none' 2829 2830am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2831 2832 2833 2834 2835 2836 2837# POSIX will say in a future version that running "rm -f" with no argument 2838# is OK; and we want to be able to make that assumption in our Makefile 2839# recipes. So use an aggressive probe to check that the usage we want is 2840# actually supported "in the wild" to an acceptable degree. 2841# See automake bug#10828. 2842# To make any issue more visible, cause the running configure to be aborted 2843# by default if the 'rm' program in use doesn't match our expectations; the 2844# user can still override this though. 2845if rm -f && rm -fr && rm -rf; then : OK; else 2846 cat >&2 <<'END' 2847Oops! 2848 2849Your 'rm' program seems unable to run without file operands specified 2850on the command line, even when the '-f' option is present. This is contrary 2851to the behaviour of most rm programs out there, and not conforming with 2852the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2853 2854Please tell bug-automake@gnu.org about your system, including the value 2855of your $PATH and any error possibly output before this message. This 2856can help us improve future automake versions. 2857 2858END 2859 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2860 echo 'Configuration will proceed anyway, since you have set the' >&2 2861 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2862 echo >&2 2863 else 2864 cat >&2 <<'END' 2865Aborting the configuration process, to ensure you take notice of the issue. 2866 2867You can download and install GNU coreutils to get an 'rm' implementation 2868that behaves properly: <http://www.gnu.org/software/coreutils/>. 2869 2870If you want to complete the configuration process using your problematic 2871'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2872to "yes", and re-run configure. 2873 2874END 2875 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2876 fi 2877fi 2878 2879 2880# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892DEPDIR="${am__leading_dot}deps" 2893 2894ac_config_commands="$ac_config_commands depfiles" 2895 2896 2897am_make=${MAKE-make} 2898cat > confinc << 'END' 2899am__doit: 2900 @echo this is the am__doit target 2901.PHONY: am__doit 2902END 2903# If we don't find an include directive, just comment out the code. 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2905$as_echo_n "checking for style of include used by $am_make... " >&6; } 2906am__include="#" 2907am__quote= 2908_am_result=none 2909# First try GNU make style include. 2910echo "include confinc" > confmf 2911# Ignore all kinds of additional output from 'make'. 2912case `$am_make -s -f confmf 2> /dev/null` in #( 2913*the\ am__doit\ target*) 2914 am__include=include 2915 am__quote= 2916 _am_result=GNU 2917 ;; 2918esac 2919# Now try BSD make style include. 2920if test "$am__include" = "#"; then 2921 echo '.include "confinc"' > confmf 2922 case `$am_make -s -f confmf 2> /dev/null` in #( 2923 *the\ am__doit\ target*) 2924 am__include=.include 2925 am__quote="\"" 2926 _am_result=BSD 2927 ;; 2928 esac 2929fi 2930 2931 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2933$as_echo "$_am_result" >&6; } 2934rm -f confinc confmf 2935 2936# Check whether --enable-dependency-tracking was given. 2937if test "${enable_dependency_tracking+set}" = set; then : 2938 enableval=$enable_dependency_tracking; 2939fi 2940 2941if test "x$enable_dependency_tracking" != xno; then 2942 am_depcomp="$ac_aux_dir/depcomp" 2943 AMDEPBACKSLASH='\' 2944 am__nodep='_no' 2945fi 2946 if test "x$enable_dependency_tracking" != xno; then 2947 AMDEP_TRUE= 2948 AMDEP_FALSE='#' 2949else 2950 AMDEP_TRUE='#' 2951 AMDEP_FALSE= 2952fi 2953 2954 2955ac_ext=c 2956ac_cpp='$CPP $CPPFLAGS' 2957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2959ac_compiler_gnu=$ac_cv_c_compiler_gnu 2960if test -n "$ac_tool_prefix"; then 2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2962set dummy ${ac_tool_prefix}gcc; ac_word=$2 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964$as_echo_n "checking for $ac_word... " >&6; } 2965if ${ac_cv_prog_CC+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967else 2968 if test -n "$CC"; then 2969 ac_cv_prog_CC="$CC" # Let the user override the test. 2970else 2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2978 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987fi 2988CC=$ac_cv_prog_CC 2989if test -n "$CC"; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2991$as_echo "$CC" >&6; } 2992else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994$as_echo "no" >&6; } 2995fi 2996 2997 2998fi 2999if test -z "$ac_cv_prog_CC"; then 3000 ac_ct_CC=$CC 3001 # Extract the first word of "gcc", so it can be a program name with args. 3002set dummy gcc; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_ac_ct_CC+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$ac_ct_CC"; then 3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_ac_ct_CC="gcc" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028ac_ct_CC=$ac_cv_prog_ac_ct_CC 3029if test -n "$ac_ct_CC"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3031$as_echo "$ac_ct_CC" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 if test "x$ac_ct_CC" = x; then 3038 CC="" 3039 else 3040 case $cross_compiling:$ac_tool_warned in 3041yes:) 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3044ac_tool_warned=yes ;; 3045esac 3046 CC=$ac_ct_CC 3047 fi 3048else 3049 CC="$ac_cv_prog_CC" 3050fi 3051 3052if test -z "$CC"; then 3053 if test -n "$ac_tool_prefix"; then 3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3055set dummy ${ac_tool_prefix}cc; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_prog_CC+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_CC="${ac_tool_prefix}cc" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081CC=$ac_cv_prog_CC 3082if test -n "$CC"; then 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3084$as_echo "$CC" >&6; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091 fi 3092fi 3093if test -z "$CC"; then 3094 # Extract the first word of "cc", so it can be a program name with args. 3095set dummy cc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103else 3104 ac_prog_rejected=no 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3113 ac_prog_rejected=yes 3114 continue 3115 fi 3116 ac_cv_prog_CC="cc" 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124if test $ac_prog_rejected = yes; then 3125 # We found a bogon in the path, so make sure we never use it. 3126 set dummy $ac_cv_prog_CC 3127 shift 3128 if test $# != 0; then 3129 # We chose a different compiler from the bogus one. 3130 # However, it has the same basename, so the bogon will be chosen 3131 # first if we set CC to just the basename; use the full file name. 3132 shift 3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3134 fi 3135fi 3136fi 3137fi 3138CC=$ac_cv_prog_CC 3139if test -n "$CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3141$as_echo "$CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148fi 3149if test -z "$CC"; then 3150 if test -n "$ac_tool_prefix"; then 3151 for ac_prog in cl.exe 3152 do 3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3154set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3156$as_echo_n "checking for $ac_word... " >&6; } 3157if ${ac_cv_prog_CC+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 if test -n "$CC"; then 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 3162else 3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3164for as_dir in $PATH 3165do 3166 IFS=$as_save_IFS 3167 test -z "$as_dir" && as_dir=. 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3172 break 2 3173 fi 3174done 3175 done 3176IFS=$as_save_IFS 3177 3178fi 3179fi 3180CC=$ac_cv_prog_CC 3181if test -n "$CC"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3183$as_echo "$CC" >&6; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187fi 3188 3189 3190 test -n "$CC" && break 3191 done 3192fi 3193if test -z "$CC"; then 3194 ac_ct_CC=$CC 3195 for ac_prog in cl.exe 3196do 3197 # Extract the first word of "$ac_prog", so it can be a program name with args. 3198set dummy $ac_prog; ac_word=$2 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3200$as_echo_n "checking for $ac_word... " >&6; } 3201if ${ac_cv_prog_ac_ct_CC+:} false; then : 3202 $as_echo_n "(cached) " >&6 3203else 3204 if test -n "$ac_ct_CC"; then 3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3206else 3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 test -z "$as_dir" && as_dir=. 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3214 ac_cv_prog_ac_ct_CC="$ac_prog" 3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219 done 3220IFS=$as_save_IFS 3221 3222fi 3223fi 3224ac_ct_CC=$ac_cv_prog_ac_ct_CC 3225if test -n "$ac_ct_CC"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3227$as_echo "$ac_ct_CC" >&6; } 3228else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231fi 3232 3233 3234 test -n "$ac_ct_CC" && break 3235done 3236 3237 if test "x$ac_ct_CC" = x; then 3238 CC="" 3239 else 3240 case $cross_compiling:$ac_tool_warned in 3241yes:) 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3244ac_tool_warned=yes ;; 3245esac 3246 CC=$ac_ct_CC 3247 fi 3248fi 3249 3250fi 3251 3252 3253test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3255as_fn_error $? "no acceptable C compiler found in \$PATH 3256See \`config.log' for more details" "$LINENO" 5; } 3257 3258# Provide some information about the compiler. 3259$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3260set X $ac_compile 3261ac_compiler=$2 3262for ac_option in --version -v -V -qversion; do 3263 { { ac_try="$ac_compiler $ac_option >&5" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3269$as_echo "$ac_try_echo"; } >&5 3270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3271 ac_status=$? 3272 if test -s conftest.err; then 3273 sed '10a\ 3274... rest of stderr output deleted ... 3275 10q' conftest.err >conftest.er1 3276 cat conftest.er1 >&5 3277 fi 3278 rm -f conftest.er1 conftest.err 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; } 3281done 3282 3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294ac_clean_files_save=$ac_clean_files 3295ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3296# Try to create an executable without -o first, disregard a.out. 3297# It will help us diagnose broken compilers, and finding out an intuition 3298# of exeext. 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3300$as_echo_n "checking whether the C compiler works... " >&6; } 3301ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3302 3303# The possible output files: 3304ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3305 3306ac_rmfiles= 3307for ac_file in $ac_files 3308do 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3312 esac 3313done 3314rm -f $ac_rmfiles 3315 3316if { { ac_try="$ac_link_default" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_link_default") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3328# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3329# in a Makefile. We should not override ac_cv_exeext if it was cached, 3330# so that the user can short-circuit this test for compilers unknown to 3331# Autoconf. 3332for ac_file in $ac_files '' 3333do 3334 test -f "$ac_file" || continue 3335 case $ac_file in 3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3337 ;; 3338 [ab].out ) 3339 # We found the default executable, but exeext='' is most 3340 # certainly right. 3341 break;; 3342 *.* ) 3343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3344 then :; else 3345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3346 fi 3347 # We set ac_cv_exeext here because the later test for it is not 3348 # safe: cross compilers may not add the suffix if given an `-o' 3349 # argument, so we may need to know it at that point already. 3350 # Even if this section looks crufty: it has the advantage of 3351 # actually working. 3352 break;; 3353 * ) 3354 break;; 3355 esac 3356done 3357test "$ac_cv_exeext" = no && ac_cv_exeext= 3358 3359else 3360 ac_file='' 3361fi 3362if test -z "$ac_file"; then : 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364$as_echo "no" >&6; } 3365$as_echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3370as_fn_error 77 "C compiler cannot create executables 3371See \`config.log' for more details" "$LINENO" 5; } 3372else 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3374$as_echo "yes" >&6; } 3375fi 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3377$as_echo_n "checking for C compiler default output file name... " >&6; } 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3379$as_echo "$ac_file" >&6; } 3380ac_exeext=$ac_cv_exeext 3381 3382rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3383ac_clean_files=$ac_clean_files_save 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3385$as_echo_n "checking for suffix of executables... " >&6; } 3386if { { ac_try="$ac_link" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392$as_echo "$ac_try_echo"; } >&5 3393 (eval "$ac_link") 2>&5 3394 ac_status=$? 3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; }; then : 3397 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3398# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3399# work properly (i.e., refer to `conftest.exe'), while it won't with 3400# `rm'. 3401for ac_file in conftest.exe conftest conftest.*; do 3402 test -f "$ac_file" || continue 3403 case $ac_file in 3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3405 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3406 break;; 3407 * ) break;; 3408 esac 3409done 3410else 3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3413as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3414See \`config.log' for more details" "$LINENO" 5; } 3415fi 3416rm -f conftest conftest$ac_cv_exeext 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3418$as_echo "$ac_cv_exeext" >&6; } 3419 3420rm -f conftest.$ac_ext 3421EXEEXT=$ac_cv_exeext 3422ac_exeext=$EXEEXT 3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425#include <stdio.h> 3426int 3427main () 3428{ 3429FILE *f = fopen ("conftest.out", "w"); 3430 return ferror (f) || fclose (f) != 0; 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436ac_clean_files="$ac_clean_files conftest.out" 3437# Check that the compiler produces executables we can run. If not, either 3438# the compiler is broken, or we cross compile. 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3440$as_echo_n "checking whether we are cross compiling... " >&6; } 3441if test "$cross_compiling" != yes; then 3442 { { ac_try="$ac_link" 3443case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3448$as_echo "$ac_try_echo"; } >&5 3449 (eval "$ac_link") 2>&5 3450 ac_status=$? 3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3452 test $ac_status = 0; } 3453 if { ac_try='./conftest$ac_cv_exeext' 3454 { { case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459$as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_try") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; }; }; then 3464 cross_compiling=no 3465 else 3466 if test "$cross_compiling" = maybe; then 3467 cross_compiling=yes 3468 else 3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471as_fn_error $? "cannot run C compiled programs. 3472If you meant to cross compile, use \`--host'. 3473See \`config.log' for more details" "$LINENO" 5; } 3474 fi 3475 fi 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3478$as_echo "$cross_compiling" >&6; } 3479 3480rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3481ac_clean_files=$ac_clean_files_save 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3483$as_echo_n "checking for suffix of object files... " >&6; } 3484if ${ac_cv_objext+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498rm -f conftest.o conftest.obj 3499if { { ac_try="$ac_compile" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_compile") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; }; then : 3510 for ac_file in conftest.o conftest.obj conftest.*; do 3511 test -f "$ac_file" || continue; 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3515 break;; 3516 esac 3517done 3518else 3519 $as_echo "$as_me: failed program was:" >&5 3520sed 's/^/| /' conftest.$ac_ext >&5 3521 3522{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3524as_fn_error $? "cannot compute suffix of object files: cannot compile 3525See \`config.log' for more details" "$LINENO" 5; } 3526fi 3527rm -f conftest.$ac_cv_objext conftest.$ac_ext 3528fi 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3530$as_echo "$ac_cv_objext" >&6; } 3531OBJEXT=$ac_cv_objext 3532ac_objext=$OBJEXT 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3534$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3535if ${ac_cv_c_compiler_gnu+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3539/* end confdefs.h. */ 3540 3541int 3542main () 3543{ 3544#ifndef __GNUC__ 3545 choke me 3546#endif 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552if ac_fn_c_try_compile "$LINENO"; then : 3553 ac_compiler_gnu=yes 3554else 3555 ac_compiler_gnu=no 3556fi 3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3558ac_cv_c_compiler_gnu=$ac_compiler_gnu 3559 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3562$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3563if test $ac_compiler_gnu = yes; then 3564 GCC=yes 3565else 3566 GCC= 3567fi 3568ac_test_CFLAGS=${CFLAGS+set} 3569ac_save_CFLAGS=$CFLAGS 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3571$as_echo_n "checking whether $CC accepts -g... " >&6; } 3572if ${ac_cv_prog_cc_g+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 ac_save_c_werror_flag=$ac_c_werror_flag 3576 ac_c_werror_flag=yes 3577 ac_cv_prog_cc_g=no 3578 CFLAGS="-g" 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581 3582int 3583main () 3584{ 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590if ac_fn_c_try_compile "$LINENO"; then : 3591 ac_cv_prog_cc_g=yes 3592else 3593 CFLAGS="" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 3607else 3608 ac_c_werror_flag=$ac_save_c_werror_flag 3609 CFLAGS="-g" 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621if ac_fn_c_try_compile "$LINENO"; then : 3622 ac_cv_prog_cc_g=yes 3623fi 3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3625fi 3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3627fi 3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3629 ac_c_werror_flag=$ac_save_c_werror_flag 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3632$as_echo "$ac_cv_prog_cc_g" >&6; } 3633if test "$ac_test_CFLAGS" = set; then 3634 CFLAGS=$ac_save_CFLAGS 3635elif test $ac_cv_prog_cc_g = yes; then 3636 if test "$GCC" = yes; then 3637 CFLAGS="-g -O2" 3638 else 3639 CFLAGS="-g" 3640 fi 3641else 3642 if test "$GCC" = yes; then 3643 CFLAGS="-O2" 3644 else 3645 CFLAGS= 3646 fi 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3649$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3650if ${ac_cv_prog_cc_c89+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 ac_cv_prog_cc_c89=no 3654ac_save_CC=$CC 3655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657#include <stdarg.h> 3658#include <stdio.h> 3659struct stat; 3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3661struct buf { int x; }; 3662FILE * (*rcsopen) (struct buf *, struct stat *, int); 3663static char *e (p, i) 3664 char **p; 3665 int i; 3666{ 3667 return p[i]; 3668} 3669static char *f (char * (*g) (char **, int), char **p, ...) 3670{ 3671 char *s; 3672 va_list v; 3673 va_start (v,p); 3674 s = g (p, va_arg (v,int)); 3675 va_end (v); 3676 return s; 3677} 3678 3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3680 function prototypes and stuff, but not '\xHH' hex character constants. 3681 These don't provoke an error unfortunately, instead are silently treated 3682 as 'x'. The following induces an error, until -std is added to get 3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3684 array size at least. It's necessary to write '\x00'==0 to get something 3685 that's true only with -std. */ 3686int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3687 3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3689 inside strings and character constants. */ 3690#define FOO(x) 'x' 3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3692 3693int test (int i, double x); 3694struct s1 {int (*f) (int a);}; 3695struct s2 {int (*f) (double a);}; 3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3697int argc; 3698char **argv; 3699int 3700main () 3701{ 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3709do 3710 CC="$ac_save_CC $ac_arg" 3711 if ac_fn_c_try_compile "$LINENO"; then : 3712 ac_cv_prog_cc_c89=$ac_arg 3713fi 3714rm -f core conftest.err conftest.$ac_objext 3715 test "x$ac_cv_prog_cc_c89" != "xno" && break 3716done 3717rm -f conftest.$ac_ext 3718CC=$ac_save_CC 3719 3720fi 3721# AC_CACHE_VAL 3722case "x$ac_cv_prog_cc_c89" in 3723 x) 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3725$as_echo "none needed" >&6; } ;; 3726 xno) 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3728$as_echo "unsupported" >&6; } ;; 3729 *) 3730 CC="$CC $ac_cv_prog_cc_c89" 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3733esac 3734if test "x$ac_cv_prog_cc_c89" != xno; then : 3735 3736fi 3737 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743 3744ac_ext=c 3745ac_cpp='$CPP $CPPFLAGS' 3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3748ac_compiler_gnu=$ac_cv_c_compiler_gnu 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3750$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3751if ${am_cv_prog_cc_c_o+:} false; then : 3752 $as_echo_n "(cached) " >&6 3753else 3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3755/* end confdefs.h. */ 3756 3757int 3758main () 3759{ 3760 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765 # Make sure it works both with $CC and with simple cc. 3766 # Following AC_PROG_CC_C_O, we do the test twice because some 3767 # compilers refuse to overwrite an existing .o file with -o, 3768 # though they will create one. 3769 am_cv_prog_cc_c_o=yes 3770 for am_i in 1 2; do 3771 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3772 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3773 ac_status=$? 3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3775 (exit $ac_status); } \ 3776 && test -f conftest2.$ac_objext; then 3777 : OK 3778 else 3779 am_cv_prog_cc_c_o=no 3780 break 3781 fi 3782 done 3783 rm -f core conftest* 3784 unset am_i 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3787$as_echo "$am_cv_prog_cc_c_o" >&6; } 3788if test "$am_cv_prog_cc_c_o" != yes; then 3789 # Losing compiler, so override with the script. 3790 # FIXME: It is wrong to rewrite CC. 3791 # But if we don't then we get into trouble of one sort or another. 3792 # A longer-term fix would be to have automake use am__CC in this case, 3793 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3794 CC="$am_aux_dir/compile $CC" 3795fi 3796ac_ext=c 3797ac_cpp='$CPP $CPPFLAGS' 3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3800ac_compiler_gnu=$ac_cv_c_compiler_gnu 3801 3802 3803depcc="$CC" am_compiler_list= 3804 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3806$as_echo_n "checking dependency style of $depcc... " >&6; } 3807if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3808 $as_echo_n "(cached) " >&6 3809else 3810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3811 # We make a subdir and do the tests there. Otherwise we can end up 3812 # making bogus files that we don't know about and never remove. For 3813 # instance it was reported that on HP-UX the gcc test will end up 3814 # making a dummy file named 'D' -- because '-MD' means "put the output 3815 # in D". 3816 rm -rf conftest.dir 3817 mkdir conftest.dir 3818 # Copy depcomp to subdir because otherwise we won't find it if we're 3819 # using a relative directory. 3820 cp "$am_depcomp" conftest.dir 3821 cd conftest.dir 3822 # We will build objects and dependencies in a subdirectory because 3823 # it helps to detect inapplicable dependency modes. For instance 3824 # both Tru64's cc and ICC support -MD to output dependencies as a 3825 # side effect of compilation, but ICC will put the dependencies in 3826 # the current directory while Tru64 will put them in the object 3827 # directory. 3828 mkdir sub 3829 3830 am_cv_CC_dependencies_compiler_type=none 3831 if test "$am_compiler_list" = ""; then 3832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3833 fi 3834 am__universal=false 3835 case " $depcc " in #( 3836 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3837 esac 3838 3839 for depmode in $am_compiler_list; do 3840 # Setup a source with many dependencies, because some compilers 3841 # like to wrap large dependency lists on column 80 (with \), and 3842 # we should not choose a depcomp mode which is confused by this. 3843 # 3844 # We need to recreate these files for each test, as the compiler may 3845 # overwrite some of them when testing with obscure command lines. 3846 # This happens at least with the AIX C compiler. 3847 : > sub/conftest.c 3848 for i in 1 2 3 4 5 6; do 3849 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3850 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3851 # Solaris 10 /bin/sh. 3852 echo '/* dummy */' > sub/conftst$i.h 3853 done 3854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3855 3856 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3857 # mode. It turns out that the SunPro C++ compiler does not properly 3858 # handle '-M -o', and we need to detect this. Also, some Intel 3859 # versions had trouble with output in subdirs. 3860 am__obj=sub/conftest.${OBJEXT-o} 3861 am__minus_obj="-o $am__obj" 3862 case $depmode in 3863 gcc) 3864 # This depmode causes a compiler race in universal mode. 3865 test "$am__universal" = false || continue 3866 ;; 3867 nosideeffect) 3868 # After this tag, mechanisms are not by side-effect, so they'll 3869 # only be used when explicitly requested. 3870 if test "x$enable_dependency_tracking" = xyes; then 3871 continue 3872 else 3873 break 3874 fi 3875 ;; 3876 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3877 # This compiler won't grok '-c -o', but also, the minuso test has 3878 # not run yet. These depmodes are late enough in the game, and 3879 # so weak that their functioning should not be impacted. 3880 am__obj=conftest.${OBJEXT-o} 3881 am__minus_obj= 3882 ;; 3883 none) break ;; 3884 esac 3885 if depmode=$depmode \ 3886 source=sub/conftest.c object=$am__obj \ 3887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3888 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3889 >/dev/null 2>conftest.err && 3890 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3892 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3894 # icc doesn't choke on unknown options, it will just issue warnings 3895 # or remarks (even with -Werror). So we grep stderr for any message 3896 # that says an option was ignored or not supported. 3897 # When given -MP, icc 7.0 and 7.1 complain thusly: 3898 # icc: Command line warning: ignoring option '-M'; no argument required 3899 # The diagnosis changed in icc 8.0: 3900 # icc: Command line remark: option '-MP' not supported 3901 if (grep 'ignoring option' conftest.err || 3902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3903 am_cv_CC_dependencies_compiler_type=$depmode 3904 break 3905 fi 3906 fi 3907 done 3908 3909 cd .. 3910 rm -rf conftest.dir 3911else 3912 am_cv_CC_dependencies_compiler_type=none 3913fi 3914 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3917$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3918CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3919 3920 if 3921 test "x$enable_dependency_tracking" != xno \ 3922 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3923 am__fastdepCC_TRUE= 3924 am__fastdepCC_FALSE='#' 3925else 3926 am__fastdepCC_TRUE='#' 3927 am__fastdepCC_FALSE= 3928fi 3929 3930 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3932$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3933if ${ac_cv_prog_cc_c99+:} false; then : 3934 $as_echo_n "(cached) " >&6 3935else 3936 ac_cv_prog_cc_c99=no 3937ac_save_CC=$CC 3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3939/* end confdefs.h. */ 3940#include <stdarg.h> 3941#include <stdbool.h> 3942#include <stdlib.h> 3943#include <wchar.h> 3944#include <stdio.h> 3945 3946// Check varargs macros. These examples are taken from C99 6.10.3.5. 3947#define debug(...) fprintf (stderr, __VA_ARGS__) 3948#define showlist(...) puts (#__VA_ARGS__) 3949#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3950static void 3951test_varargs_macros (void) 3952{ 3953 int x = 1234; 3954 int y = 5678; 3955 debug ("Flag"); 3956 debug ("X = %d\n", x); 3957 showlist (The first, second, and third items.); 3958 report (x>y, "x is %d but y is %d", x, y); 3959} 3960 3961// Check long long types. 3962#define BIG64 18446744073709551615ull 3963#define BIG32 4294967295ul 3964#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3965#if !BIG_OK 3966 your preprocessor is broken; 3967#endif 3968#if BIG_OK 3969#else 3970 your preprocessor is broken; 3971#endif 3972static long long int bignum = -9223372036854775807LL; 3973static unsigned long long int ubignum = BIG64; 3974 3975struct incomplete_array 3976{ 3977 int datasize; 3978 double data[]; 3979}; 3980 3981struct named_init { 3982 int number; 3983 const wchar_t *name; 3984 double average; 3985}; 3986 3987typedef const char *ccp; 3988 3989static inline int 3990test_restrict (ccp restrict text) 3991{ 3992 // See if C++-style comments work. 3993 // Iterate through items via the restricted pointer. 3994 // Also check for declarations in for loops. 3995 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3996 continue; 3997 return 0; 3998} 3999 4000// Check varargs and va_copy. 4001static void 4002test_varargs (const char *format, ...) 4003{ 4004 va_list args; 4005 va_start (args, format); 4006 va_list args_copy; 4007 va_copy (args_copy, args); 4008 4009 const char *str; 4010 int number; 4011 float fnumber; 4012 4013 while (*format) 4014 { 4015 switch (*format++) 4016 { 4017 case 's': // string 4018 str = va_arg (args_copy, const char *); 4019 break; 4020 case 'd': // int 4021 number = va_arg (args_copy, int); 4022 break; 4023 case 'f': // float 4024 fnumber = va_arg (args_copy, double); 4025 break; 4026 default: 4027 break; 4028 } 4029 } 4030 va_end (args_copy); 4031 va_end (args); 4032} 4033 4034int 4035main () 4036{ 4037 4038 // Check bool. 4039 _Bool success = false; 4040 4041 // Check restrict. 4042 if (test_restrict ("String literal") == 0) 4043 success = true; 4044 char *restrict newvar = "Another string"; 4045 4046 // Check varargs. 4047 test_varargs ("s, d' f .", "string", 65, 34.234); 4048 test_varargs_macros (); 4049 4050 // Check flexible array members. 4051 struct incomplete_array *ia = 4052 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4053 ia->datasize = 10; 4054 for (int i = 0; i < ia->datasize; ++i) 4055 ia->data[i] = i * 1.234; 4056 4057 // Check named initializers. 4058 struct named_init ni = { 4059 .number = 34, 4060 .name = L"Test wide string", 4061 .average = 543.34343, 4062 }; 4063 4064 ni.number = 58; 4065 4066 int dynamic_array[ni.number]; 4067 dynamic_array[ni.number - 1] = 543; 4068 4069 // work around unused variable warnings 4070 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4071 || dynamic_array[ni.number - 1] != 543); 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4078do 4079 CC="$ac_save_CC $ac_arg" 4080 if ac_fn_c_try_compile "$LINENO"; then : 4081 ac_cv_prog_cc_c99=$ac_arg 4082fi 4083rm -f core conftest.err conftest.$ac_objext 4084 test "x$ac_cv_prog_cc_c99" != "xno" && break 4085done 4086rm -f conftest.$ac_ext 4087CC=$ac_save_CC 4088 4089fi 4090# AC_CACHE_VAL 4091case "x$ac_cv_prog_cc_c99" in 4092 x) 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4094$as_echo "none needed" >&6; } ;; 4095 xno) 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4097$as_echo "unsupported" >&6; } ;; 4098 *) 4099 CC="$CC $ac_cv_prog_cc_c99" 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4101$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4102esac 4103if test "x$ac_cv_prog_cc_c99" != xno; then : 4104 4105fi 4106 4107 4108 4109ac_ext=c 4110ac_cpp='$CPP $CPPFLAGS' 4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4113ac_compiler_gnu=$ac_cv_c_compiler_gnu 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4115$as_echo_n "checking how to run the C preprocessor... " >&6; } 4116# On Suns, sometimes $CPP names a directory. 4117if test -n "$CPP" && test -d "$CPP"; then 4118 CPP= 4119fi 4120if test -z "$CPP"; then 4121 if ${ac_cv_prog_CPP+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 # Double quotes because CPP needs to be expanded 4125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4126 do 4127 ac_preproc_ok=false 4128for ac_c_preproc_warn_flag in '' yes 4129do 4130 # Use a header file that comes with gcc, so configuring glibc 4131 # with a fresh cross-compiler works. 4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4133 # <limits.h> exists even on freestanding compilers. 4134 # On the NeXT, cc -E runs the code through the compiler's parser, 4135 # not just through cpp. "Syntax error" is here to catch this case. 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138#ifdef __STDC__ 4139# include <limits.h> 4140#else 4141# include <assert.h> 4142#endif 4143 Syntax error 4144_ACEOF 4145if ac_fn_c_try_cpp "$LINENO"; then : 4146 4147else 4148 # Broken: fails on valid input. 4149continue 4150fi 4151rm -f conftest.err conftest.i conftest.$ac_ext 4152 4153 # OK, works on sane cases. Now check whether nonexistent headers 4154 # can be detected and how. 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157#include <ac_nonexistent.h> 4158_ACEOF 4159if ac_fn_c_try_cpp "$LINENO"; then : 4160 # Broken: success on invalid input. 4161continue 4162else 4163 # Passes both tests. 4164ac_preproc_ok=: 4165break 4166fi 4167rm -f conftest.err conftest.i conftest.$ac_ext 4168 4169done 4170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4171rm -f conftest.i conftest.err conftest.$ac_ext 4172if $ac_preproc_ok; then : 4173 break 4174fi 4175 4176 done 4177 ac_cv_prog_CPP=$CPP 4178 4179fi 4180 CPP=$ac_cv_prog_CPP 4181else 4182 ac_cv_prog_CPP=$CPP 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4185$as_echo "$CPP" >&6; } 4186ac_preproc_ok=false 4187for ac_c_preproc_warn_flag in '' yes 4188do 4189 # Use a header file that comes with gcc, so configuring glibc 4190 # with a fresh cross-compiler works. 4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4192 # <limits.h> exists even on freestanding compilers. 4193 # On the NeXT, cc -E runs the code through the compiler's parser, 4194 # not just through cpp. "Syntax error" is here to catch this case. 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197#ifdef __STDC__ 4198# include <limits.h> 4199#else 4200# include <assert.h> 4201#endif 4202 Syntax error 4203_ACEOF 4204if ac_fn_c_try_cpp "$LINENO"; then : 4205 4206else 4207 # Broken: fails on valid input. 4208continue 4209fi 4210rm -f conftest.err conftest.i conftest.$ac_ext 4211 4212 # OK, works on sane cases. Now check whether nonexistent headers 4213 # can be detected and how. 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216#include <ac_nonexistent.h> 4217_ACEOF 4218if ac_fn_c_try_cpp "$LINENO"; then : 4219 # Broken: success on invalid input. 4220continue 4221else 4222 # Passes both tests. 4223ac_preproc_ok=: 4224break 4225fi 4226rm -f conftest.err conftest.i conftest.$ac_ext 4227 4228done 4229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4230rm -f conftest.i conftest.err conftest.$ac_ext 4231if $ac_preproc_ok; then : 4232 4233else 4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4236as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4237See \`config.log' for more details" "$LINENO" 5; } 4238fi 4239 4240ac_ext=c 4241ac_cpp='$CPP $CPPFLAGS' 4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4244ac_compiler_gnu=$ac_cv_c_compiler_gnu 4245 4246 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4248$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4249if ${ac_cv_path_GREP+:} false; then : 4250 $as_echo_n "(cached) " >&6 4251else 4252 if test -z "$GREP"; then 4253 ac_path_GREP_found=false 4254 # Loop through the user's path and test for each of PROGNAME-LIST 4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4257do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_prog in grep ggrep; do 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4263 as_fn_executable_p "$ac_path_GREP" || continue 4264# Check for GNU ac_path_GREP and select it if it is found. 4265 # Check for GNU $ac_path_GREP 4266case `"$ac_path_GREP" --version 2>&1` in 4267*GNU*) 4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4269*) 4270 ac_count=0 4271 $as_echo_n 0123456789 >"conftest.in" 4272 while : 4273 do 4274 cat "conftest.in" "conftest.in" >"conftest.tmp" 4275 mv "conftest.tmp" "conftest.in" 4276 cp "conftest.in" "conftest.nl" 4277 $as_echo 'GREP' >> "conftest.nl" 4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4280 as_fn_arith $ac_count + 1 && ac_count=$as_val 4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4282 # Best one so far, save it but keep looking for a better one 4283 ac_cv_path_GREP="$ac_path_GREP" 4284 ac_path_GREP_max=$ac_count 4285 fi 4286 # 10*(2^10) chars as input seems more than enough 4287 test $ac_count -gt 10 && break 4288 done 4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4290esac 4291 4292 $ac_path_GREP_found && break 3 4293 done 4294 done 4295 done 4296IFS=$as_save_IFS 4297 if test -z "$ac_cv_path_GREP"; then 4298 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4299 fi 4300else 4301 ac_cv_path_GREP=$GREP 4302fi 4303 4304fi 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4306$as_echo "$ac_cv_path_GREP" >&6; } 4307 GREP="$ac_cv_path_GREP" 4308 4309 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4311$as_echo_n "checking for egrep... " >&6; } 4312if ${ac_cv_path_EGREP+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4316 then ac_cv_path_EGREP="$GREP -E" 4317 else 4318 if test -z "$EGREP"; then 4319 ac_path_EGREP_found=false 4320 # Loop through the user's path and test for each of PROGNAME-LIST 4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4323do 4324 IFS=$as_save_IFS 4325 test -z "$as_dir" && as_dir=. 4326 for ac_prog in egrep; do 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4329 as_fn_executable_p "$ac_path_EGREP" || continue 4330# Check for GNU ac_path_EGREP and select it if it is found. 4331 # Check for GNU $ac_path_EGREP 4332case `"$ac_path_EGREP" --version 2>&1` in 4333*GNU*) 4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4335*) 4336 ac_count=0 4337 $as_echo_n 0123456789 >"conftest.in" 4338 while : 4339 do 4340 cat "conftest.in" "conftest.in" >"conftest.tmp" 4341 mv "conftest.tmp" "conftest.in" 4342 cp "conftest.in" "conftest.nl" 4343 $as_echo 'EGREP' >> "conftest.nl" 4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4346 as_fn_arith $ac_count + 1 && ac_count=$as_val 4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4348 # Best one so far, save it but keep looking for a better one 4349 ac_cv_path_EGREP="$ac_path_EGREP" 4350 ac_path_EGREP_max=$ac_count 4351 fi 4352 # 10*(2^10) chars as input seems more than enough 4353 test $ac_count -gt 10 && break 4354 done 4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4356esac 4357 4358 $ac_path_EGREP_found && break 3 4359 done 4360 done 4361 done 4362IFS=$as_save_IFS 4363 if test -z "$ac_cv_path_EGREP"; then 4364 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4365 fi 4366else 4367 ac_cv_path_EGREP=$EGREP 4368fi 4369 4370 fi 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4373$as_echo "$ac_cv_path_EGREP" >&6; } 4374 EGREP="$ac_cv_path_EGREP" 4375 4376 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4378$as_echo_n "checking for ANSI C header files... " >&6; } 4379if ${ac_cv_header_stdc+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4383/* end confdefs.h. */ 4384#include <stdlib.h> 4385#include <stdarg.h> 4386#include <string.h> 4387#include <float.h> 4388 4389int 4390main () 4391{ 4392 4393 ; 4394 return 0; 4395} 4396_ACEOF 4397if ac_fn_c_try_compile "$LINENO"; then : 4398 ac_cv_header_stdc=yes 4399else 4400 ac_cv_header_stdc=no 4401fi 4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4403 4404if test $ac_cv_header_stdc = yes; then 4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4407/* end confdefs.h. */ 4408#include <string.h> 4409 4410_ACEOF 4411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4412 $EGREP "memchr" >/dev/null 2>&1; then : 4413 4414else 4415 ac_cv_header_stdc=no 4416fi 4417rm -f conftest* 4418 4419fi 4420 4421if test $ac_cv_header_stdc = yes; then 4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425#include <stdlib.h> 4426 4427_ACEOF 4428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4429 $EGREP "free" >/dev/null 2>&1; then : 4430 4431else 4432 ac_cv_header_stdc=no 4433fi 4434rm -f conftest* 4435 4436fi 4437 4438if test $ac_cv_header_stdc = yes; then 4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4440 if test "$cross_compiling" = yes; then : 4441 : 4442else 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445#include <ctype.h> 4446#include <stdlib.h> 4447#if ((' ' & 0x0FF) == 0x020) 4448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4450#else 4451# define ISLOWER(c) \ 4452 (('a' <= (c) && (c) <= 'i') \ 4453 || ('j' <= (c) && (c) <= 'r') \ 4454 || ('s' <= (c) && (c) <= 'z')) 4455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4456#endif 4457 4458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4459int 4460main () 4461{ 4462 int i; 4463 for (i = 0; i < 256; i++) 4464 if (XOR (islower (i), ISLOWER (i)) 4465 || toupper (i) != TOUPPER (i)) 4466 return 2; 4467 return 0; 4468} 4469_ACEOF 4470if ac_fn_c_try_run "$LINENO"; then : 4471 4472else 4473 ac_cv_header_stdc=no 4474fi 4475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4476 conftest.$ac_objext conftest.beam conftest.$ac_ext 4477fi 4478 4479fi 4480fi 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4482$as_echo "$ac_cv_header_stdc" >&6; } 4483if test $ac_cv_header_stdc = yes; then 4484 4485$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4486 4487fi 4488 4489# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4490for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4491 inttypes.h stdint.h unistd.h 4492do : 4493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4494ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4495" 4496if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4497 cat >>confdefs.h <<_ACEOF 4498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4499_ACEOF 4500 4501fi 4502 4503done 4504 4505 4506 4507 4508 4509 4510ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4511if test "x$ac_cv_have_decl___clang__" = xyes; then : 4512 CLANGCC="yes" 4513else 4514 CLANGCC="no" 4515fi 4516 4517ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4518if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4519 INTELCC="yes" 4520else 4521 INTELCC="no" 4522fi 4523 4524ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4525if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4526 SUNCC="yes" 4527else 4528 SUNCC="no" 4529fi 4530 4531 4532 4533 4534if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4535 if test -n "$ac_tool_prefix"; then 4536 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4537set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4539$as_echo_n "checking for $ac_word... " >&6; } 4540if ${ac_cv_path_PKG_CONFIG+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 case $PKG_CONFIG in 4544 [\\/]* | ?:[\\/]*) 4545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4546 ;; 4547 *) 4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4549for as_dir in $PATH 4550do 4551 IFS=$as_save_IFS 4552 test -z "$as_dir" && as_dir=. 4553 for ac_exec_ext in '' $ac_executable_extensions; do 4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4557 break 2 4558 fi 4559done 4560 done 4561IFS=$as_save_IFS 4562 4563 ;; 4564esac 4565fi 4566PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4567if test -n "$PKG_CONFIG"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4569$as_echo "$PKG_CONFIG" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576fi 4577if test -z "$ac_cv_path_PKG_CONFIG"; then 4578 ac_pt_PKG_CONFIG=$PKG_CONFIG 4579 # Extract the first word of "pkg-config", so it can be a program name with args. 4580set dummy pkg-config; ac_word=$2 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4582$as_echo_n "checking for $ac_word... " >&6; } 4583if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4584 $as_echo_n "(cached) " >&6 4585else 4586 case $ac_pt_PKG_CONFIG in 4587 [\\/]* | ?:[\\/]*) 4588 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4589 ;; 4590 *) 4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 test -z "$as_dir" && as_dir=. 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4598 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4600 break 2 4601 fi 4602done 4603 done 4604IFS=$as_save_IFS 4605 4606 ;; 4607esac 4608fi 4609ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4610if test -n "$ac_pt_PKG_CONFIG"; then 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4612$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4613else 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615$as_echo "no" >&6; } 4616fi 4617 4618 if test "x$ac_pt_PKG_CONFIG" = x; then 4619 PKG_CONFIG="" 4620 else 4621 case $cross_compiling:$ac_tool_warned in 4622yes:) 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4625ac_tool_warned=yes ;; 4626esac 4627 PKG_CONFIG=$ac_pt_PKG_CONFIG 4628 fi 4629else 4630 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4631fi 4632 4633fi 4634if test -n "$PKG_CONFIG"; then 4635 _pkg_min_version=0.9.0 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4637$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4638 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4640$as_echo "yes" >&6; } 4641 else 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643$as_echo "no" >&6; } 4644 PKG_CONFIG="" 4645 fi 4646 4647fi 4648# Make sure we can run config.sub. 4649$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4650 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4651 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4653$as_echo_n "checking build system type... " >&6; } 4654if ${ac_cv_build+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 ac_build_alias=$build_alias 4658test "x$ac_build_alias" = x && 4659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4660test "x$ac_build_alias" = x && 4661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4662ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4664 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4667$as_echo "$ac_cv_build" >&6; } 4668case $ac_cv_build in 4669*-*-*) ;; 4670*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4671esac 4672build=$ac_cv_build 4673ac_save_IFS=$IFS; IFS='-' 4674set x $ac_cv_build 4675shift 4676build_cpu=$1 4677build_vendor=$2 4678shift; shift 4679# Remember, the first character of IFS is used to create $*, 4680# except with old shells: 4681build_os=$* 4682IFS=$ac_save_IFS 4683case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4684 4685 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4687$as_echo_n "checking host system type... " >&6; } 4688if ${ac_cv_host+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 if test "x$host_alias" = x; then 4692 ac_cv_host=$ac_cv_build 4693else 4694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4696fi 4697 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4700$as_echo "$ac_cv_host" >&6; } 4701case $ac_cv_host in 4702*-*-*) ;; 4703*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4704esac 4705host=$ac_cv_host 4706ac_save_IFS=$IFS; IFS='-' 4707set x $ac_cv_host 4708shift 4709host_cpu=$1 4710host_vendor=$2 4711shift; shift 4712# Remember, the first character of IFS is used to create $*, 4713# except with old shells: 4714host_os=$* 4715IFS=$ac_save_IFS 4716case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4717 4718 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4720$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4721if ${ac_cv_path_SED+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4725 for ac_i in 1 2 3 4 5 6 7; do 4726 ac_script="$ac_script$as_nl$ac_script" 4727 done 4728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4729 { ac_script=; unset ac_script;} 4730 if test -z "$SED"; then 4731 ac_path_SED_found=false 4732 # Loop through the user's path and test for each of PROGNAME-LIST 4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_prog in sed gsed; do 4739 for ac_exec_ext in '' $ac_executable_extensions; do 4740 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4741 as_fn_executable_p "$ac_path_SED" || continue 4742# Check for GNU ac_path_SED and select it if it is found. 4743 # Check for GNU $ac_path_SED 4744case `"$ac_path_SED" --version 2>&1` in 4745*GNU*) 4746 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4747*) 4748 ac_count=0 4749 $as_echo_n 0123456789 >"conftest.in" 4750 while : 4751 do 4752 cat "conftest.in" "conftest.in" >"conftest.tmp" 4753 mv "conftest.tmp" "conftest.in" 4754 cp "conftest.in" "conftest.nl" 4755 $as_echo '' >> "conftest.nl" 4756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4758 as_fn_arith $ac_count + 1 && ac_count=$as_val 4759 if test $ac_count -gt ${ac_path_SED_max-0}; then 4760 # Best one so far, save it but keep looking for a better one 4761 ac_cv_path_SED="$ac_path_SED" 4762 ac_path_SED_max=$ac_count 4763 fi 4764 # 10*(2^10) chars as input seems more than enough 4765 test $ac_count -gt 10 && break 4766 done 4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4768esac 4769 4770 $ac_path_SED_found && break 3 4771 done 4772 done 4773 done 4774IFS=$as_save_IFS 4775 if test -z "$ac_cv_path_SED"; then 4776 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4777 fi 4778else 4779 ac_cv_path_SED=$SED 4780fi 4781 4782fi 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4784$as_echo "$ac_cv_path_SED" >&6; } 4785 SED="$ac_cv_path_SED" 4786 rm -f conftest.sed 4787 4788 4789 4790 4791 4792 4793# Check whether --enable-selective-werror was given. 4794if test "${enable_selective_werror+set}" = set; then : 4795 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4796else 4797 SELECTIVE_WERROR=yes 4798fi 4799 4800 4801 4802 4803 4804# -v is too short to test reliably with XORG_TESTSET_CFLAG 4805if test "x$SUNCC" = "xyes"; then 4806 BASE_CFLAGS="-v" 4807else 4808 BASE_CFLAGS="" 4809fi 4810 4811# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825xorg_testset_save_CFLAGS="$CFLAGS" 4826 4827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836int i; 4837_ACEOF 4838if ac_fn_c_try_compile "$LINENO"; then : 4839 xorg_cv_cc_flag_unknown_warning_option=yes 4840else 4841 xorg_cv_cc_flag_unknown_warning_option=no 4842fi 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844fi 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4848 CFLAGS="$xorg_testset_save_CFLAGS" 4849fi 4850 4851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4854 fi 4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862/* end confdefs.h. */ 4863int i; 4864_ACEOF 4865if ac_fn_c_try_compile "$LINENO"; then : 4866 xorg_cv_cc_flag_unused_command_line_argument=yes 4867else 4868 xorg_cv_cc_flag_unused_command_line_argument=no 4869fi 4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4875 CFLAGS="$xorg_testset_save_CFLAGS" 4876fi 4877 4878found="no" 4879 4880 if test $found = "no" ; then 4881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4883 fi 4884 4885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4887 fi 4888 4889 CFLAGS="$CFLAGS -Wall" 4890 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4892$as_echo_n "checking if $CC supports -Wall... " >&6; } 4893 cacheid=xorg_cv_cc_flag__Wall 4894 if eval \${$cacheid+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898/* end confdefs.h. */ 4899int i; 4900int 4901main () 4902{ 4903 4904 ; 4905 return 0; 4906} 4907_ACEOF 4908if ac_fn_c_try_link "$LINENO"; then : 4909 eval $cacheid=yes 4910else 4911 eval $cacheid=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext \ 4914 conftest$ac_exeext conftest.$ac_ext 4915fi 4916 4917 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919 4920 eval supported=\$$cacheid 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4922$as_echo "$supported" >&6; } 4923 if test "$supported" = "yes" ; then 4924 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4925 found="yes" 4926 fi 4927 fi 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943xorg_testset_save_CFLAGS="$CFLAGS" 4944 4945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4953/* end confdefs.h. */ 4954int i; 4955_ACEOF 4956if ac_fn_c_try_compile "$LINENO"; then : 4957 xorg_cv_cc_flag_unknown_warning_option=yes 4958else 4959 xorg_cv_cc_flag_unknown_warning_option=no 4960fi 4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4962fi 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4966 CFLAGS="$xorg_testset_save_CFLAGS" 4967fi 4968 4969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4972 fi 4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980/* end confdefs.h. */ 4981int i; 4982_ACEOF 4983if ac_fn_c_try_compile "$LINENO"; then : 4984 xorg_cv_cc_flag_unused_command_line_argument=yes 4985else 4986 xorg_cv_cc_flag_unused_command_line_argument=no 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989fi 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4993 CFLAGS="$xorg_testset_save_CFLAGS" 4994fi 4995 4996found="no" 4997 4998 if test $found = "no" ; then 4999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 fi 5002 5003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5005 fi 5006 5007 CFLAGS="$CFLAGS -Wpointer-arith" 5008 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5010$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5011 cacheid=xorg_cv_cc_flag__Wpointer_arith 5012 if eval \${$cacheid+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017int i; 5018int 5019main () 5020{ 5021 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026if ac_fn_c_try_link "$LINENO"; then : 5027 eval $cacheid=yes 5028else 5029 eval $cacheid=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext \ 5032 conftest$ac_exeext conftest.$ac_ext 5033fi 5034 5035 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037 5038 eval supported=\$$cacheid 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5040$as_echo "$supported" >&6; } 5041 if test "$supported" = "yes" ; then 5042 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5043 found="yes" 5044 fi 5045 fi 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061xorg_testset_save_CFLAGS="$CFLAGS" 5062 5063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072int i; 5073_ACEOF 5074if ac_fn_c_try_compile "$LINENO"; then : 5075 xorg_cv_cc_flag_unknown_warning_option=yes 5076else 5077 xorg_cv_cc_flag_unknown_warning_option=no 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080fi 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5084 CFLAGS="$xorg_testset_save_CFLAGS" 5085fi 5086 5087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5090 fi 5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100_ACEOF 5101if ac_fn_c_try_compile "$LINENO"; then : 5102 xorg_cv_cc_flag_unused_command_line_argument=yes 5103else 5104 xorg_cv_cc_flag_unused_command_line_argument=no 5105fi 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107fi 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112fi 5113 5114found="no" 5115 5116 if test $found = "no" ; then 5117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 fi 5120 5121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5123 fi 5124 5125 CFLAGS="$CFLAGS -Wmissing-declarations" 5126 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5128$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5129 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5130 if eval \${$cacheid+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5134/* end confdefs.h. */ 5135int i; 5136int 5137main () 5138{ 5139 5140 ; 5141 return 0; 5142} 5143_ACEOF 5144if ac_fn_c_try_link "$LINENO"; then : 5145 eval $cacheid=yes 5146else 5147 eval $cacheid=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext \ 5150 conftest$ac_exeext conftest.$ac_ext 5151fi 5152 5153 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155 5156 eval supported=\$$cacheid 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5158$as_echo "$supported" >&6; } 5159 if test "$supported" = "yes" ; then 5160 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5161 found="yes" 5162 fi 5163 fi 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179xorg_testset_save_CFLAGS="$CFLAGS" 5180 5181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190int i; 5191_ACEOF 5192if ac_fn_c_try_compile "$LINENO"; then : 5193 xorg_cv_cc_flag_unknown_warning_option=yes 5194else 5195 xorg_cv_cc_flag_unknown_warning_option=no 5196fi 5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5202 CFLAGS="$xorg_testset_save_CFLAGS" 5203fi 5204 5205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5208 fi 5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217int i; 5218_ACEOF 5219if ac_fn_c_try_compile "$LINENO"; then : 5220 xorg_cv_cc_flag_unused_command_line_argument=yes 5221else 5222 xorg_cv_cc_flag_unused_command_line_argument=no 5223fi 5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5225fi 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5229 CFLAGS="$xorg_testset_save_CFLAGS" 5230fi 5231 5232found="no" 5233 5234 if test $found = "no" ; then 5235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 fi 5238 5239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5241 fi 5242 5243 CFLAGS="$CFLAGS -Wformat=2" 5244 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5246$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5247 cacheid=xorg_cv_cc_flag__Wformat_2 5248 if eval \${$cacheid+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5252/* end confdefs.h. */ 5253int i; 5254int 5255main () 5256{ 5257 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262if ac_fn_c_try_link "$LINENO"; then : 5263 eval $cacheid=yes 5264else 5265 eval $cacheid=no 5266fi 5267rm -f core conftest.err conftest.$ac_objext \ 5268 conftest$ac_exeext conftest.$ac_ext 5269fi 5270 5271 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273 5274 eval supported=\$$cacheid 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5276$as_echo "$supported" >&6; } 5277 if test "$supported" = "yes" ; then 5278 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5279 found="yes" 5280 fi 5281 fi 5282 5283 if test $found = "no" ; then 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 fi 5287 5288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5290 fi 5291 5292 CFLAGS="$CFLAGS -Wformat" 5293 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5295$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5296 cacheid=xorg_cv_cc_flag__Wformat 5297 if eval \${$cacheid+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303int 5304main () 5305{ 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311if ac_fn_c_try_link "$LINENO"; then : 5312 eval $cacheid=yes 5313else 5314 eval $cacheid=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext \ 5317 conftest$ac_exeext conftest.$ac_ext 5318fi 5319 5320 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322 5323 eval supported=\$$cacheid 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5325$as_echo "$supported" >&6; } 5326 if test "$supported" = "yes" ; then 5327 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5328 found="yes" 5329 fi 5330 fi 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348xorg_testset_save_CFLAGS="$CFLAGS" 5349 5350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359int i; 5360_ACEOF 5361if ac_fn_c_try_compile "$LINENO"; then : 5362 xorg_cv_cc_flag_unknown_warning_option=yes 5363else 5364 xorg_cv_cc_flag_unknown_warning_option=no 5365fi 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367fi 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5371 CFLAGS="$xorg_testset_save_CFLAGS" 5372fi 5373 5374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5377 fi 5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386int i; 5387_ACEOF 5388if ac_fn_c_try_compile "$LINENO"; then : 5389 xorg_cv_cc_flag_unused_command_line_argument=yes 5390else 5391 xorg_cv_cc_flag_unused_command_line_argument=no 5392fi 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5394fi 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5398 CFLAGS="$xorg_testset_save_CFLAGS" 5399fi 5400 5401found="no" 5402 5403 if test $found = "no" ; then 5404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 fi 5407 5408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 fi 5411 5412 CFLAGS="$CFLAGS -Wstrict-prototypes" 5413 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5415$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5416 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5417 if eval \${$cacheid+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422int i; 5423int 5424main () 5425{ 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431if ac_fn_c_try_link "$LINENO"; then : 5432 eval $cacheid=yes 5433else 5434 eval $cacheid=no 5435fi 5436rm -f core conftest.err conftest.$ac_objext \ 5437 conftest$ac_exeext conftest.$ac_ext 5438fi 5439 5440 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442 5443 eval supported=\$$cacheid 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5445$as_echo "$supported" >&6; } 5446 if test "$supported" = "yes" ; then 5447 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5448 found="yes" 5449 fi 5450 fi 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466xorg_testset_save_CFLAGS="$CFLAGS" 5467 5468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477int i; 5478_ACEOF 5479if ac_fn_c_try_compile "$LINENO"; then : 5480 xorg_cv_cc_flag_unknown_warning_option=yes 5481else 5482 xorg_cv_cc_flag_unknown_warning_option=no 5483fi 5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5485fi 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5489 CFLAGS="$xorg_testset_save_CFLAGS" 5490fi 5491 5492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5495 fi 5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503/* end confdefs.h. */ 5504int i; 5505_ACEOF 5506if ac_fn_c_try_compile "$LINENO"; then : 5507 xorg_cv_cc_flag_unused_command_line_argument=yes 5508else 5509 xorg_cv_cc_flag_unused_command_line_argument=no 5510fi 5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5516 CFLAGS="$xorg_testset_save_CFLAGS" 5517fi 5518 5519found="no" 5520 5521 if test $found = "no" ; then 5522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 fi 5525 5526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5528 fi 5529 5530 CFLAGS="$CFLAGS -Wmissing-prototypes" 5531 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5533$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5534 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5535 if eval \${$cacheid+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540int i; 5541int 5542main () 5543{ 5544 5545 ; 5546 return 0; 5547} 5548_ACEOF 5549if ac_fn_c_try_link "$LINENO"; then : 5550 eval $cacheid=yes 5551else 5552 eval $cacheid=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext \ 5555 conftest$ac_exeext conftest.$ac_ext 5556fi 5557 5558 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560 5561 eval supported=\$$cacheid 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5563$as_echo "$supported" >&6; } 5564 if test "$supported" = "yes" ; then 5565 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5566 found="yes" 5567 fi 5568 fi 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584xorg_testset_save_CFLAGS="$CFLAGS" 5585 5586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO"; then : 5598 xorg_cv_cc_flag_unknown_warning_option=yes 5599else 5600 xorg_cv_cc_flag_unknown_warning_option=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5607 CFLAGS="$xorg_testset_save_CFLAGS" 5608fi 5609 5610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5613 fi 5614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621/* end confdefs.h. */ 5622int i; 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO"; then : 5625 xorg_cv_cc_flag_unused_command_line_argument=yes 5626else 5627 xorg_cv_cc_flag_unused_command_line_argument=no 5628fi 5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5630fi 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5634 CFLAGS="$xorg_testset_save_CFLAGS" 5635fi 5636 5637found="no" 5638 5639 if test $found = "no" ; then 5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 fi 5643 5644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 fi 5647 5648 CFLAGS="$CFLAGS -Wnested-externs" 5649 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5651$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5652 cacheid=xorg_cv_cc_flag__Wnested_externs 5653 if eval \${$cacheid+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659int 5660main () 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_c_try_link "$LINENO"; then : 5668 eval $cacheid=yes 5669else 5670 eval $cacheid=no 5671fi 5672rm -f core conftest.err conftest.$ac_objext \ 5673 conftest$ac_exeext conftest.$ac_ext 5674fi 5675 5676 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678 5679 eval supported=\$$cacheid 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5681$as_echo "$supported" >&6; } 5682 if test "$supported" = "yes" ; then 5683 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5684 found="yes" 5685 fi 5686 fi 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702xorg_testset_save_CFLAGS="$CFLAGS" 5703 5704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713int i; 5714_ACEOF 5715if ac_fn_c_try_compile "$LINENO"; then : 5716 xorg_cv_cc_flag_unknown_warning_option=yes 5717else 5718 xorg_cv_cc_flag_unknown_warning_option=no 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721fi 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5725 CFLAGS="$xorg_testset_save_CFLAGS" 5726fi 5727 5728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5731 fi 5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740int i; 5741_ACEOF 5742if ac_fn_c_try_compile "$LINENO"; then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744else 5745 xorg_cv_cc_flag_unused_command_line_argument=no 5746fi 5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5748fi 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5752 CFLAGS="$xorg_testset_save_CFLAGS" 5753fi 5754 5755found="no" 5756 5757 if test $found = "no" ; then 5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 fi 5761 5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5764 fi 5765 5766 CFLAGS="$CFLAGS -Wbad-function-cast" 5767 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5769$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5770 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5771 if eval \${$cacheid+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5775/* end confdefs.h. */ 5776int i; 5777int 5778main () 5779{ 5780 5781 ; 5782 return 0; 5783} 5784_ACEOF 5785if ac_fn_c_try_link "$LINENO"; then : 5786 eval $cacheid=yes 5787else 5788 eval $cacheid=no 5789fi 5790rm -f core conftest.err conftest.$ac_objext \ 5791 conftest$ac_exeext conftest.$ac_ext 5792fi 5793 5794 5795 CFLAGS="$xorg_testset_save_CFLAGS" 5796 5797 eval supported=\$$cacheid 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5799$as_echo "$supported" >&6; } 5800 if test "$supported" = "yes" ; then 5801 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5802 found="yes" 5803 fi 5804 fi 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820xorg_testset_save_CFLAGS="$CFLAGS" 5821 5822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831int i; 5832_ACEOF 5833if ac_fn_c_try_compile "$LINENO"; then : 5834 xorg_cv_cc_flag_unknown_warning_option=yes 5835else 5836 xorg_cv_cc_flag_unknown_warning_option=no 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5839fi 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844fi 5845 5846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5849 fi 5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858int i; 5859_ACEOF 5860if ac_fn_c_try_compile "$LINENO"; then : 5861 xorg_cv_cc_flag_unused_command_line_argument=yes 5862else 5863 xorg_cv_cc_flag_unused_command_line_argument=no 5864fi 5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866fi 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5870 CFLAGS="$xorg_testset_save_CFLAGS" 5871fi 5872 5873found="no" 5874 5875 if test $found = "no" ; then 5876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5878 fi 5879 5880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5882 fi 5883 5884 CFLAGS="$CFLAGS -Wold-style-definition" 5885 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5887$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5888 cacheid=xorg_cv_cc_flag__Wold_style_definition 5889 if eval \${$cacheid+:} false; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894int i; 5895int 5896main () 5897{ 5898 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903if ac_fn_c_try_link "$LINENO"; then : 5904 eval $cacheid=yes 5905else 5906 eval $cacheid=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext \ 5909 conftest$ac_exeext conftest.$ac_ext 5910fi 5911 5912 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914 5915 eval supported=\$$cacheid 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5917$as_echo "$supported" >&6; } 5918 if test "$supported" = "yes" ; then 5919 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5920 found="yes" 5921 fi 5922 fi 5923 5924 if test $found = "no" ; then 5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 fi 5928 5929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5931 fi 5932 5933 CFLAGS="$CFLAGS -fd" 5934 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5936$as_echo_n "checking if $CC supports -fd... " >&6; } 5937 cacheid=xorg_cv_cc_flag__fd 5938 if eval \${$cacheid+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5942/* end confdefs.h. */ 5943int i; 5944int 5945main () 5946{ 5947 5948 ; 5949 return 0; 5950} 5951_ACEOF 5952if ac_fn_c_try_link "$LINENO"; then : 5953 eval $cacheid=yes 5954else 5955 eval $cacheid=no 5956fi 5957rm -f core conftest.err conftest.$ac_objext \ 5958 conftest$ac_exeext conftest.$ac_ext 5959fi 5960 5961 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 5964 eval supported=\$$cacheid 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5966$as_echo "$supported" >&6; } 5967 if test "$supported" = "yes" ; then 5968 BASE_CFLAGS="$BASE_CFLAGS -fd" 5969 found="yes" 5970 fi 5971 fi 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987xorg_testset_save_CFLAGS="$CFLAGS" 5988 5989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO"; then : 6001 xorg_cv_cc_flag_unknown_warning_option=yes 6002else 6003 xorg_cv_cc_flag_unknown_warning_option=no 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006fi 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6010 CFLAGS="$xorg_testset_save_CFLAGS" 6011fi 6012 6013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 fi 6017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6024/* end confdefs.h. */ 6025int i; 6026_ACEOF 6027if ac_fn_c_try_compile "$LINENO"; then : 6028 xorg_cv_cc_flag_unused_command_line_argument=yes 6029else 6030 xorg_cv_cc_flag_unused_command_line_argument=no 6031fi 6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6033fi 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038fi 6039 6040found="no" 6041 6042 if test $found = "no" ; then 6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 fi 6046 6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6049 fi 6050 6051 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6052 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6054$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6055 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6056 if eval \${$cacheid+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062int 6063main () 6064{ 6065 6066 ; 6067 return 0; 6068} 6069_ACEOF 6070if ac_fn_c_try_link "$LINENO"; then : 6071 eval $cacheid=yes 6072else 6073 eval $cacheid=no 6074fi 6075rm -f core conftest.err conftest.$ac_objext \ 6076 conftest$ac_exeext conftest.$ac_ext 6077fi 6078 6079 6080 CFLAGS="$xorg_testset_save_CFLAGS" 6081 6082 eval supported=\$$cacheid 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6084$as_echo "$supported" >&6; } 6085 if test "$supported" = "yes" ; then 6086 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6087 found="yes" 6088 fi 6089 fi 6090 6091 6092 6093 6094 6095# This chunk adds additional warnings that could catch undesired effects. 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109xorg_testset_save_CFLAGS="$CFLAGS" 6110 6111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121_ACEOF 6122if ac_fn_c_try_compile "$LINENO"; then : 6123 xorg_cv_cc_flag_unknown_warning_option=yes 6124else 6125 xorg_cv_cc_flag_unknown_warning_option=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6128fi 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133fi 6134 6135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6138 fi 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147int i; 6148_ACEOF 6149if ac_fn_c_try_compile "$LINENO"; then : 6150 xorg_cv_cc_flag_unused_command_line_argument=yes 6151else 6152 xorg_cv_cc_flag_unused_command_line_argument=no 6153fi 6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6155fi 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6159 CFLAGS="$xorg_testset_save_CFLAGS" 6160fi 6161 6162found="no" 6163 6164 if test $found = "no" ; then 6165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167 fi 6168 6169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6171 fi 6172 6173 CFLAGS="$CFLAGS -Wunused" 6174 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6176$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6177 cacheid=xorg_cv_cc_flag__Wunused 6178 if eval \${$cacheid+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184int 6185main () 6186{ 6187 6188 ; 6189 return 0; 6190} 6191_ACEOF 6192if ac_fn_c_try_link "$LINENO"; then : 6193 eval $cacheid=yes 6194else 6195 eval $cacheid=no 6196fi 6197rm -f core conftest.err conftest.$ac_objext \ 6198 conftest$ac_exeext conftest.$ac_ext 6199fi 6200 6201 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203 6204 eval supported=\$$cacheid 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6206$as_echo "$supported" >&6; } 6207 if test "$supported" = "yes" ; then 6208 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6209 found="yes" 6210 fi 6211 fi 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227xorg_testset_save_CFLAGS="$CFLAGS" 6228 6229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6237/* end confdefs.h. */ 6238int i; 6239_ACEOF 6240if ac_fn_c_try_compile "$LINENO"; then : 6241 xorg_cv_cc_flag_unknown_warning_option=yes 6242else 6243 xorg_cv_cc_flag_unknown_warning_option=no 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6246fi 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251fi 6252 6253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266_ACEOF 6267if ac_fn_c_try_compile "$LINENO"; then : 6268 xorg_cv_cc_flag_unused_command_line_argument=yes 6269else 6270 xorg_cv_cc_flag_unused_command_line_argument=no 6271fi 6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6273fi 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6277 CFLAGS="$xorg_testset_save_CFLAGS" 6278fi 6279 6280found="no" 6281 6282 if test $found = "no" ; then 6283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 fi 6286 6287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6289 fi 6290 6291 CFLAGS="$CFLAGS -Wuninitialized" 6292 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6294$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6295 cacheid=xorg_cv_cc_flag__Wuninitialized 6296 if eval \${$cacheid+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302int 6303main () 6304{ 6305 6306 ; 6307 return 0; 6308} 6309_ACEOF 6310if ac_fn_c_try_link "$LINENO"; then : 6311 eval $cacheid=yes 6312else 6313 eval $cacheid=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext \ 6316 conftest$ac_exeext conftest.$ac_ext 6317fi 6318 6319 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321 6322 eval supported=\$$cacheid 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6324$as_echo "$supported" >&6; } 6325 if test "$supported" = "yes" ; then 6326 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6327 found="yes" 6328 fi 6329 fi 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345xorg_testset_save_CFLAGS="$CFLAGS" 6346 6347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO"; then : 6359 xorg_cv_cc_flag_unknown_warning_option=yes 6360else 6361 xorg_cv_cc_flag_unknown_warning_option=no 6362fi 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364fi 6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6368 CFLAGS="$xorg_testset_save_CFLAGS" 6369fi 6370 6371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6374 fi 6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383int i; 6384_ACEOF 6385if ac_fn_c_try_compile "$LINENO"; then : 6386 xorg_cv_cc_flag_unused_command_line_argument=yes 6387else 6388 xorg_cv_cc_flag_unused_command_line_argument=no 6389fi 6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6391fi 6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6395 CFLAGS="$xorg_testset_save_CFLAGS" 6396fi 6397 6398found="no" 6399 6400 if test $found = "no" ; then 6401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 fi 6404 6405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 fi 6408 6409 CFLAGS="$CFLAGS -Wshadow" 6410 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6412$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6413 cacheid=xorg_cv_cc_flag__Wshadow 6414 if eval \${$cacheid+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419int i; 6420int 6421main () 6422{ 6423 6424 ; 6425 return 0; 6426} 6427_ACEOF 6428if ac_fn_c_try_link "$LINENO"; then : 6429 eval $cacheid=yes 6430else 6431 eval $cacheid=no 6432fi 6433rm -f core conftest.err conftest.$ac_objext \ 6434 conftest$ac_exeext conftest.$ac_ext 6435fi 6436 6437 6438 CFLAGS="$xorg_testset_save_CFLAGS" 6439 6440 eval supported=\$$cacheid 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6442$as_echo "$supported" >&6; } 6443 if test "$supported" = "yes" ; then 6444 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6445 found="yes" 6446 fi 6447 fi 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463xorg_testset_save_CFLAGS="$CFLAGS" 6464 6465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475_ACEOF 6476if ac_fn_c_try_compile "$LINENO"; then : 6477 xorg_cv_cc_flag_unknown_warning_option=yes 6478else 6479 xorg_cv_cc_flag_unknown_warning_option=no 6480fi 6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6482fi 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6486 CFLAGS="$xorg_testset_save_CFLAGS" 6487fi 6488 6489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6492 fi 6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500/* end confdefs.h. */ 6501int i; 6502_ACEOF 6503if ac_fn_c_try_compile "$LINENO"; then : 6504 xorg_cv_cc_flag_unused_command_line_argument=yes 6505else 6506 xorg_cv_cc_flag_unused_command_line_argument=no 6507fi 6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6509fi 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6513 CFLAGS="$xorg_testset_save_CFLAGS" 6514fi 6515 6516found="no" 6517 6518 if test $found = "no" ; then 6519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521 fi 6522 6523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 fi 6526 6527 CFLAGS="$CFLAGS -Wmissing-noreturn" 6528 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6530$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6531 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6532 if eval \${$cacheid+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537int i; 6538int 6539main () 6540{ 6541 6542 ; 6543 return 0; 6544} 6545_ACEOF 6546if ac_fn_c_try_link "$LINENO"; then : 6547 eval $cacheid=yes 6548else 6549 eval $cacheid=no 6550fi 6551rm -f core conftest.err conftest.$ac_objext \ 6552 conftest$ac_exeext conftest.$ac_ext 6553fi 6554 6555 6556 CFLAGS="$xorg_testset_save_CFLAGS" 6557 6558 eval supported=\$$cacheid 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6560$as_echo "$supported" >&6; } 6561 if test "$supported" = "yes" ; then 6562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6563 found="yes" 6564 fi 6565 fi 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581xorg_testset_save_CFLAGS="$CFLAGS" 6582 6583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592int i; 6593_ACEOF 6594if ac_fn_c_try_compile "$LINENO"; then : 6595 xorg_cv_cc_flag_unknown_warning_option=yes 6596else 6597 xorg_cv_cc_flag_unknown_warning_option=no 6598fi 6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6600fi 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6604 CFLAGS="$xorg_testset_save_CFLAGS" 6605fi 6606 6607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 fi 6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618/* end confdefs.h. */ 6619int i; 6620_ACEOF 6621if ac_fn_c_try_compile "$LINENO"; then : 6622 xorg_cv_cc_flag_unused_command_line_argument=yes 6623else 6624 xorg_cv_cc_flag_unused_command_line_argument=no 6625fi 6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6627fi 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6631 CFLAGS="$xorg_testset_save_CFLAGS" 6632fi 6633 6634found="no" 6635 6636 if test $found = "no" ; then 6637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639 fi 6640 6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6643 fi 6644 6645 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6646 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6648$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6649 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6650 if eval \${$cacheid+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655int i; 6656int 6657main () 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_link "$LINENO"; then : 6665 eval $cacheid=yes 6666else 6667 eval $cacheid=no 6668fi 6669rm -f core conftest.err conftest.$ac_objext \ 6670 conftest$ac_exeext conftest.$ac_ext 6671fi 6672 6673 6674 CFLAGS="$xorg_testset_save_CFLAGS" 6675 6676 eval supported=\$$cacheid 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6678$as_echo "$supported" >&6; } 6679 if test "$supported" = "yes" ; then 6680 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6681 found="yes" 6682 fi 6683 fi 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699xorg_testset_save_CFLAGS="$CFLAGS" 6700 6701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711_ACEOF 6712if ac_fn_c_try_compile "$LINENO"; then : 6713 xorg_cv_cc_flag_unknown_warning_option=yes 6714else 6715 xorg_cv_cc_flag_unknown_warning_option=no 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6722 CFLAGS="$xorg_testset_save_CFLAGS" 6723fi 6724 6725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 fi 6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO"; then : 6740 xorg_cv_cc_flag_unused_command_line_argument=yes 6741else 6742 xorg_cv_cc_flag_unused_command_line_argument=no 6743fi 6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752found="no" 6753 6754 if test $found = "no" ; then 6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 fi 6758 6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 fi 6762 6763 CFLAGS="$CFLAGS -Wredundant-decls" 6764 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6766$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6767 cacheid=xorg_cv_cc_flag__Wredundant_decls 6768 if eval \${$cacheid+:} false; then : 6769 $as_echo_n "(cached) " >&6 6770else 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773int i; 6774int 6775main () 6776{ 6777 6778 ; 6779 return 0; 6780} 6781_ACEOF 6782if ac_fn_c_try_link "$LINENO"; then : 6783 eval $cacheid=yes 6784else 6785 eval $cacheid=no 6786fi 6787rm -f core conftest.err conftest.$ac_objext \ 6788 conftest$ac_exeext conftest.$ac_ext 6789fi 6790 6791 6792 CFLAGS="$xorg_testset_save_CFLAGS" 6793 6794 eval supported=\$$cacheid 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6796$as_echo "$supported" >&6; } 6797 if test "$supported" = "yes" ; then 6798 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6799 found="yes" 6800 fi 6801 fi 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817xorg_testset_save_CFLAGS="$CFLAGS" 6818 6819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6824 $as_echo_n "(cached) " >&6 6825else 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6827/* end confdefs.h. */ 6828int i; 6829_ACEOF 6830if ac_fn_c_try_compile "$LINENO"; then : 6831 xorg_cv_cc_flag_unknown_warning_option=yes 6832else 6833 xorg_cv_cc_flag_unknown_warning_option=no 6834fi 6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6836fi 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6840 CFLAGS="$xorg_testset_save_CFLAGS" 6841fi 6842 6843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6846 fi 6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854/* end confdefs.h. */ 6855int i; 6856_ACEOF 6857if ac_fn_c_try_compile "$LINENO"; then : 6858 xorg_cv_cc_flag_unused_command_line_argument=yes 6859else 6860 xorg_cv_cc_flag_unused_command_line_argument=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6863fi 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868fi 6869 6870found="no" 6871 6872 if test $found = "no" ; then 6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875 fi 6876 6877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6879 fi 6880 6881 CFLAGS="$CFLAGS -Wlogical-op" 6882 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6884$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6885 cacheid=xorg_cv_cc_flag__Wlogical_op 6886 if eval \${$cacheid+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891int i; 6892int 6893main () 6894{ 6895 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 eval $cacheid=yes 6902else 6903 eval $cacheid=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext \ 6906 conftest$ac_exeext conftest.$ac_ext 6907fi 6908 6909 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911 6912 eval supported=\$$cacheid 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6914$as_echo "$supported" >&6; } 6915 if test "$supported" = "yes" ; then 6916 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6917 found="yes" 6918 fi 6919 fi 6920 6921 6922 6923# These are currently disabled because they are noisy. They will be enabled 6924# in the future once the codebase is sufficiently modernized to silence 6925# them. For now, I don't want them to drown out the other warnings. 6926# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6927# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6928# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6929 6930# Turn some warnings into errors, so we don't accidently get successful builds 6931# when there are problems that should be fixed. 6932 6933if test "x$SELECTIVE_WERROR" = "xyes" ; then 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947xorg_testset_save_CFLAGS="$CFLAGS" 6948 6949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957/* end confdefs.h. */ 6958int i; 6959_ACEOF 6960if ac_fn_c_try_compile "$LINENO"; then : 6961 xorg_cv_cc_flag_unknown_warning_option=yes 6962else 6963 xorg_cv_cc_flag_unknown_warning_option=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6966fi 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6971fi 6972 6973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6976 fi 6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985int i; 6986_ACEOF 6987if ac_fn_c_try_compile "$LINENO"; then : 6988 xorg_cv_cc_flag_unused_command_line_argument=yes 6989else 6990 xorg_cv_cc_flag_unused_command_line_argument=no 6991fi 6992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6997 CFLAGS="$xorg_testset_save_CFLAGS" 6998fi 6999 7000found="no" 7001 7002 if test $found = "no" ; then 7003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 fi 7006 7007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 fi 7010 7011 CFLAGS="$CFLAGS -Werror=implicit" 7012 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7014$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7015 cacheid=xorg_cv_cc_flag__Werror_implicit 7016 if eval \${$cacheid+:} false; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022int 7023main () 7024{ 7025 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030if ac_fn_c_try_link "$LINENO"; then : 7031 eval $cacheid=yes 7032else 7033 eval $cacheid=no 7034fi 7035rm -f core conftest.err conftest.$ac_objext \ 7036 conftest$ac_exeext conftest.$ac_ext 7037fi 7038 7039 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041 7042 eval supported=\$$cacheid 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7044$as_echo "$supported" >&6; } 7045 if test "$supported" = "yes" ; then 7046 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7047 found="yes" 7048 fi 7049 fi 7050 7051 if test $found = "no" ; then 7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 fi 7055 7056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7058 fi 7059 7060 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7061 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7063$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7064 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7065 if eval \${$cacheid+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071int 7072main () 7073{ 7074 7075 ; 7076 return 0; 7077} 7078_ACEOF 7079if ac_fn_c_try_link "$LINENO"; then : 7080 eval $cacheid=yes 7081else 7082 eval $cacheid=no 7083fi 7084rm -f core conftest.err conftest.$ac_objext \ 7085 conftest$ac_exeext conftest.$ac_ext 7086fi 7087 7088 7089 CFLAGS="$xorg_testset_save_CFLAGS" 7090 7091 eval supported=\$$cacheid 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7093$as_echo "$supported" >&6; } 7094 if test "$supported" = "yes" ; then 7095 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7096 found="yes" 7097 fi 7098 fi 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114xorg_testset_save_CFLAGS="$CFLAGS" 7115 7116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125int i; 7126_ACEOF 7127if ac_fn_c_try_compile "$LINENO"; then : 7128 xorg_cv_cc_flag_unknown_warning_option=yes 7129else 7130 xorg_cv_cc_flag_unknown_warning_option=no 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7137 CFLAGS="$xorg_testset_save_CFLAGS" 7138fi 7139 7140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7143 fi 7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151/* end confdefs.h. */ 7152int i; 7153_ACEOF 7154if ac_fn_c_try_compile "$LINENO"; then : 7155 xorg_cv_cc_flag_unused_command_line_argument=yes 7156else 7157 xorg_cv_cc_flag_unused_command_line_argument=no 7158fi 7159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7160fi 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7164 CFLAGS="$xorg_testset_save_CFLAGS" 7165fi 7166 7167found="no" 7168 7169 if test $found = "no" ; then 7170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 fi 7173 7174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7176 fi 7177 7178 CFLAGS="$CFLAGS -Werror=nonnull" 7179 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7181$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7182 cacheid=xorg_cv_cc_flag__Werror_nonnull 7183 if eval \${$cacheid+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189int 7190main () 7191{ 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197if ac_fn_c_try_link "$LINENO"; then : 7198 eval $cacheid=yes 7199else 7200 eval $cacheid=no 7201fi 7202rm -f core conftest.err conftest.$ac_objext \ 7203 conftest$ac_exeext conftest.$ac_ext 7204fi 7205 7206 7207 CFLAGS="$xorg_testset_save_CFLAGS" 7208 7209 eval supported=\$$cacheid 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7211$as_echo "$supported" >&6; } 7212 if test "$supported" = "yes" ; then 7213 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7214 found="yes" 7215 fi 7216 fi 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232xorg_testset_save_CFLAGS="$CFLAGS" 7233 7234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243int i; 7244_ACEOF 7245if ac_fn_c_try_compile "$LINENO"; then : 7246 xorg_cv_cc_flag_unknown_warning_option=yes 7247else 7248 xorg_cv_cc_flag_unknown_warning_option=no 7249fi 7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7251fi 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7255 CFLAGS="$xorg_testset_save_CFLAGS" 7256fi 7257 7258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7261 fi 7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270int i; 7271_ACEOF 7272if ac_fn_c_try_compile "$LINENO"; then : 7273 xorg_cv_cc_flag_unused_command_line_argument=yes 7274else 7275 xorg_cv_cc_flag_unused_command_line_argument=no 7276fi 7277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7278fi 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7282 CFLAGS="$xorg_testset_save_CFLAGS" 7283fi 7284 7285found="no" 7286 7287 if test $found = "no" ; then 7288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 fi 7291 7292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7294 fi 7295 7296 CFLAGS="$CFLAGS -Werror=init-self" 7297 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7299$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7300 cacheid=xorg_cv_cc_flag__Werror_init_self 7301 if eval \${$cacheid+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307int 7308main () 7309{ 7310 7311 ; 7312 return 0; 7313} 7314_ACEOF 7315if ac_fn_c_try_link "$LINENO"; then : 7316 eval $cacheid=yes 7317else 7318 eval $cacheid=no 7319fi 7320rm -f core conftest.err conftest.$ac_objext \ 7321 conftest$ac_exeext conftest.$ac_ext 7322fi 7323 7324 7325 CFLAGS="$xorg_testset_save_CFLAGS" 7326 7327 eval supported=\$$cacheid 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7329$as_echo "$supported" >&6; } 7330 if test "$supported" = "yes" ; then 7331 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7332 found="yes" 7333 fi 7334 fi 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350xorg_testset_save_CFLAGS="$CFLAGS" 7351 7352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int i; 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO"; then : 7364 xorg_cv_cc_flag_unknown_warning_option=yes 7365else 7366 xorg_cv_cc_flag_unknown_warning_option=no 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7369fi 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374fi 7375 7376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7379 fi 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389_ACEOF 7390if ac_fn_c_try_compile "$LINENO"; then : 7391 xorg_cv_cc_flag_unused_command_line_argument=yes 7392else 7393 xorg_cv_cc_flag_unused_command_line_argument=no 7394fi 7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7400 CFLAGS="$xorg_testset_save_CFLAGS" 7401fi 7402 7403found="no" 7404 7405 if test $found = "no" ; then 7406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 fi 7409 7410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7412 fi 7413 7414 CFLAGS="$CFLAGS -Werror=main" 7415 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7417$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7418 cacheid=xorg_cv_cc_flag__Werror_main 7419 if eval \${$cacheid+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424int i; 7425int 7426main () 7427{ 7428 7429 ; 7430 return 0; 7431} 7432_ACEOF 7433if ac_fn_c_try_link "$LINENO"; then : 7434 eval $cacheid=yes 7435else 7436 eval $cacheid=no 7437fi 7438rm -f core conftest.err conftest.$ac_objext \ 7439 conftest$ac_exeext conftest.$ac_ext 7440fi 7441 7442 7443 CFLAGS="$xorg_testset_save_CFLAGS" 7444 7445 eval supported=\$$cacheid 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7447$as_echo "$supported" >&6; } 7448 if test "$supported" = "yes" ; then 7449 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7450 found="yes" 7451 fi 7452 fi 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468xorg_testset_save_CFLAGS="$CFLAGS" 7469 7470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479int i; 7480_ACEOF 7481if ac_fn_c_try_compile "$LINENO"; then : 7482 xorg_cv_cc_flag_unknown_warning_option=yes 7483else 7484 xorg_cv_cc_flag_unknown_warning_option=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7487fi 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492fi 7493 7494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 fi 7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505/* end confdefs.h. */ 7506int i; 7507_ACEOF 7508if ac_fn_c_try_compile "$LINENO"; then : 7509 xorg_cv_cc_flag_unused_command_line_argument=yes 7510else 7511 xorg_cv_cc_flag_unused_command_line_argument=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7514fi 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519fi 7520 7521found="no" 7522 7523 if test $found = "no" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 fi 7531 7532 CFLAGS="$CFLAGS -Werror=missing-braces" 7533 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7535$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7536 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7537 if eval \${$cacheid+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541/* end confdefs.h. */ 7542int i; 7543int 7544main () 7545{ 7546 7547 ; 7548 return 0; 7549} 7550_ACEOF 7551if ac_fn_c_try_link "$LINENO"; then : 7552 eval $cacheid=yes 7553else 7554 eval $cacheid=no 7555fi 7556rm -f core conftest.err conftest.$ac_objext \ 7557 conftest$ac_exeext conftest.$ac_ext 7558fi 7559 7560 7561 CFLAGS="$xorg_testset_save_CFLAGS" 7562 7563 eval supported=\$$cacheid 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7565$as_echo "$supported" >&6; } 7566 if test "$supported" = "yes" ; then 7567 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7568 found="yes" 7569 fi 7570 fi 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586xorg_testset_save_CFLAGS="$CFLAGS" 7587 7588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597int i; 7598_ACEOF 7599if ac_fn_c_try_compile "$LINENO"; then : 7600 xorg_cv_cc_flag_unknown_warning_option=yes 7601else 7602 xorg_cv_cc_flag_unknown_warning_option=no 7603fi 7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7609 CFLAGS="$xorg_testset_save_CFLAGS" 7610fi 7611 7612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7615 fi 7616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621else 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623/* end confdefs.h. */ 7624int i; 7625_ACEOF 7626if ac_fn_c_try_compile "$LINENO"; then : 7627 xorg_cv_cc_flag_unused_command_line_argument=yes 7628else 7629 xorg_cv_cc_flag_unused_command_line_argument=no 7630fi 7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7632fi 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7636 CFLAGS="$xorg_testset_save_CFLAGS" 7637fi 7638 7639found="no" 7640 7641 if test $found = "no" ; then 7642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 fi 7645 7646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7648 fi 7649 7650 CFLAGS="$CFLAGS -Werror=sequence-point" 7651 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7653$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7654 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7655 if eval \${$cacheid+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660int i; 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669if ac_fn_c_try_link "$LINENO"; then : 7670 eval $cacheid=yes 7671else 7672 eval $cacheid=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext \ 7675 conftest$ac_exeext conftest.$ac_ext 7676fi 7677 7678 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680 7681 eval supported=\$$cacheid 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7683$as_echo "$supported" >&6; } 7684 if test "$supported" = "yes" ; then 7685 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7686 found="yes" 7687 fi 7688 fi 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704xorg_testset_save_CFLAGS="$CFLAGS" 7705 7706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715int i; 7716_ACEOF 7717if ac_fn_c_try_compile "$LINENO"; then : 7718 xorg_cv_cc_flag_unknown_warning_option=yes 7719else 7720 xorg_cv_cc_flag_unknown_warning_option=no 7721fi 7722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7727 CFLAGS="$xorg_testset_save_CFLAGS" 7728fi 7729 7730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7733 fi 7734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742int i; 7743_ACEOF 7744if ac_fn_c_try_compile "$LINENO"; then : 7745 xorg_cv_cc_flag_unused_command_line_argument=yes 7746else 7747 xorg_cv_cc_flag_unused_command_line_argument=no 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7750fi 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755fi 7756 7757found="no" 7758 7759 if test $found = "no" ; then 7760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 fi 7763 7764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7766 fi 7767 7768 CFLAGS="$CFLAGS -Werror=return-type" 7769 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7771$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7772 cacheid=xorg_cv_cc_flag__Werror_return_type 7773 if eval \${$cacheid+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778int i; 7779int 7780main () 7781{ 7782 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787if ac_fn_c_try_link "$LINENO"; then : 7788 eval $cacheid=yes 7789else 7790 eval $cacheid=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext \ 7793 conftest$ac_exeext conftest.$ac_ext 7794fi 7795 7796 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798 7799 eval supported=\$$cacheid 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7801$as_echo "$supported" >&6; } 7802 if test "$supported" = "yes" ; then 7803 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7804 found="yes" 7805 fi 7806 fi 7807 7808 if test $found = "no" ; then 7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 fi 7812 7813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7815 fi 7816 7817 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7818 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7820$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7821 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7822 if eval \${$cacheid+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828int 7829main () 7830{ 7831 7832 ; 7833 return 0; 7834} 7835_ACEOF 7836if ac_fn_c_try_link "$LINENO"; then : 7837 eval $cacheid=yes 7838else 7839 eval $cacheid=no 7840fi 7841rm -f core conftest.err conftest.$ac_objext \ 7842 conftest$ac_exeext conftest.$ac_ext 7843fi 7844 7845 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847 7848 eval supported=\$$cacheid 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7850$as_echo "$supported" >&6; } 7851 if test "$supported" = "yes" ; then 7852 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7853 found="yes" 7854 fi 7855 fi 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871xorg_testset_save_CFLAGS="$CFLAGS" 7872 7873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO"; then : 7885 xorg_cv_cc_flag_unknown_warning_option=yes 7886else 7887 xorg_cv_cc_flag_unknown_warning_option=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7900 fi 7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910_ACEOF 7911if ac_fn_c_try_compile "$LINENO"; then : 7912 xorg_cv_cc_flag_unused_command_line_argument=yes 7913else 7914 xorg_cv_cc_flag_unused_command_line_argument=no 7915fi 7916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7917fi 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7921 CFLAGS="$xorg_testset_save_CFLAGS" 7922fi 7923 7924found="no" 7925 7926 if test $found = "no" ; then 7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 7931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 fi 7934 7935 CFLAGS="$CFLAGS -Werror=trigraphs" 7936 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7938$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7939 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7940 if eval \${$cacheid+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946int 7947main () 7948{ 7949 7950 ; 7951 return 0; 7952} 7953_ACEOF 7954if ac_fn_c_try_link "$LINENO"; then : 7955 eval $cacheid=yes 7956else 7957 eval $cacheid=no 7958fi 7959rm -f core conftest.err conftest.$ac_objext \ 7960 conftest$ac_exeext conftest.$ac_ext 7961fi 7962 7963 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965 7966 eval supported=\$$cacheid 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7968$as_echo "$supported" >&6; } 7969 if test "$supported" = "yes" ; then 7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7971 found="yes" 7972 fi 7973 fi 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989xorg_testset_save_CFLAGS="$CFLAGS" 7990 7991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001_ACEOF 8002if ac_fn_c_try_compile "$LINENO"; then : 8003 xorg_cv_cc_flag_unknown_warning_option=yes 8004else 8005 xorg_cv_cc_flag_unknown_warning_option=no 8006fi 8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8008fi 8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013fi 8014 8015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8018 fi 8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027int i; 8028_ACEOF 8029if ac_fn_c_try_compile "$LINENO"; then : 8030 xorg_cv_cc_flag_unused_command_line_argument=yes 8031else 8032 xorg_cv_cc_flag_unused_command_line_argument=no 8033fi 8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8035fi 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8039 CFLAGS="$xorg_testset_save_CFLAGS" 8040fi 8041 8042found="no" 8043 8044 if test $found = "no" ; then 8045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047 fi 8048 8049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8051 fi 8052 8053 CFLAGS="$CFLAGS -Werror=array-bounds" 8054 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8056$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8057 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8058 if eval \${$cacheid+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062/* end confdefs.h. */ 8063int i; 8064int 8065main () 8066{ 8067 8068 ; 8069 return 0; 8070} 8071_ACEOF 8072if ac_fn_c_try_link "$LINENO"; then : 8073 eval $cacheid=yes 8074else 8075 eval $cacheid=no 8076fi 8077rm -f core conftest.err conftest.$ac_objext \ 8078 conftest$ac_exeext conftest.$ac_ext 8079fi 8080 8081 8082 CFLAGS="$xorg_testset_save_CFLAGS" 8083 8084 eval supported=\$$cacheid 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8086$as_echo "$supported" >&6; } 8087 if test "$supported" = "yes" ; then 8088 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8089 found="yes" 8090 fi 8091 fi 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107xorg_testset_save_CFLAGS="$CFLAGS" 8108 8109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119_ACEOF 8120if ac_fn_c_try_compile "$LINENO"; then : 8121 xorg_cv_cc_flag_unknown_warning_option=yes 8122else 8123 xorg_cv_cc_flag_unknown_warning_option=no 8124fi 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8130 CFLAGS="$xorg_testset_save_CFLAGS" 8131fi 8132 8133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8136 fi 8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8141 $as_echo_n "(cached) " >&6 8142else 8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8144/* end confdefs.h. */ 8145int i; 8146_ACEOF 8147if ac_fn_c_try_compile "$LINENO"; then : 8148 xorg_cv_cc_flag_unused_command_line_argument=yes 8149else 8150 xorg_cv_cc_flag_unused_command_line_argument=no 8151fi 8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8153fi 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8157 CFLAGS="$xorg_testset_save_CFLAGS" 8158fi 8159 8160found="no" 8161 8162 if test $found = "no" ; then 8163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 fi 8166 8167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8169 fi 8170 8171 CFLAGS="$CFLAGS -Werror=write-strings" 8172 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8174$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8175 cacheid=xorg_cv_cc_flag__Werror_write_strings 8176 if eval \${$cacheid+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182int 8183main () 8184{ 8185 8186 ; 8187 return 0; 8188} 8189_ACEOF 8190if ac_fn_c_try_link "$LINENO"; then : 8191 eval $cacheid=yes 8192else 8193 eval $cacheid=no 8194fi 8195rm -f core conftest.err conftest.$ac_objext \ 8196 conftest$ac_exeext conftest.$ac_ext 8197fi 8198 8199 8200 CFLAGS="$xorg_testset_save_CFLAGS" 8201 8202 eval supported=\$$cacheid 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8204$as_echo "$supported" >&6; } 8205 if test "$supported" = "yes" ; then 8206 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8207 found="yes" 8208 fi 8209 fi 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225xorg_testset_save_CFLAGS="$CFLAGS" 8226 8227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235/* end confdefs.h. */ 8236int i; 8237_ACEOF 8238if ac_fn_c_try_compile "$LINENO"; then : 8239 xorg_cv_cc_flag_unknown_warning_option=yes 8240else 8241 xorg_cv_cc_flag_unknown_warning_option=no 8242fi 8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8244fi 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249fi 8250 8251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8254 fi 8255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262/* end confdefs.h. */ 8263int i; 8264_ACEOF 8265if ac_fn_c_try_compile "$LINENO"; then : 8266 xorg_cv_cc_flag_unused_command_line_argument=yes 8267else 8268 xorg_cv_cc_flag_unused_command_line_argument=no 8269fi 8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8275 CFLAGS="$xorg_testset_save_CFLAGS" 8276fi 8277 8278found="no" 8279 8280 if test $found = "no" ; then 8281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283 fi 8284 8285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8287 fi 8288 8289 CFLAGS="$CFLAGS -Werror=address" 8290 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8292$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8293 cacheid=xorg_cv_cc_flag__Werror_address 8294 if eval \${$cacheid+:} false; then : 8295 $as_echo_n "(cached) " >&6 8296else 8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299int i; 8300int 8301main () 8302{ 8303 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308if ac_fn_c_try_link "$LINENO"; then : 8309 eval $cacheid=yes 8310else 8311 eval $cacheid=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext \ 8314 conftest$ac_exeext conftest.$ac_ext 8315fi 8316 8317 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319 8320 eval supported=\$$cacheid 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8322$as_echo "$supported" >&6; } 8323 if test "$supported" = "yes" ; then 8324 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8325 found="yes" 8326 fi 8327 fi 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343xorg_testset_save_CFLAGS="$CFLAGS" 8344 8345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351else 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO"; then : 8357 xorg_cv_cc_flag_unknown_warning_option=yes 8358else 8359 xorg_cv_cc_flag_unknown_warning_option=no 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8362fi 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8366 CFLAGS="$xorg_testset_save_CFLAGS" 8367fi 8368 8369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8372 fi 8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381int i; 8382_ACEOF 8383if ac_fn_c_try_compile "$LINENO"; then : 8384 xorg_cv_cc_flag_unused_command_line_argument=yes 8385else 8386 xorg_cv_cc_flag_unused_command_line_argument=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394fi 8395 8396found="no" 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8408 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8410$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8411 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8412 if eval \${$cacheid+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417int i; 8418int 8419main () 8420{ 8421 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_link "$LINENO"; then : 8427 eval $cacheid=yes 8428else 8429 eval $cacheid=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext \ 8432 conftest$ac_exeext conftest.$ac_ext 8433fi 8434 8435 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8437 8438 eval supported=\$$cacheid 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8440$as_echo "$supported" >&6; } 8441 if test "$supported" = "yes" ; then 8442 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8443 found="yes" 8444 fi 8445 fi 8446 8447 if test $found = "no" ; then 8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8450 fi 8451 8452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8454 fi 8455 8456 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8457 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8459$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8460 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8461 if eval \${$cacheid+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8465/* end confdefs.h. */ 8466int i; 8467int 8468main () 8469{ 8470 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475if ac_fn_c_try_link "$LINENO"; then : 8476 eval $cacheid=yes 8477else 8478 eval $cacheid=no 8479fi 8480rm -f core conftest.err conftest.$ac_objext \ 8481 conftest$ac_exeext conftest.$ac_ext 8482fi 8483 8484 8485 CFLAGS="$xorg_testset_save_CFLAGS" 8486 8487 eval supported=\$$cacheid 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8489$as_echo "$supported" >&6; } 8490 if test "$supported" = "yes" ; then 8491 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8492 found="yes" 8493 fi 8494 fi 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510xorg_testset_save_CFLAGS="$CFLAGS" 8511 8512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO"; then : 8524 xorg_cv_cc_flag_unknown_warning_option=yes 8525else 8526 xorg_cv_cc_flag_unknown_warning_option=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534fi 8535 8536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8539 fi 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8544 $as_echo_n "(cached) " >&6 8545else 8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547/* end confdefs.h. */ 8548int i; 8549_ACEOF 8550if ac_fn_c_try_compile "$LINENO"; then : 8551 xorg_cv_cc_flag_unused_command_line_argument=yes 8552else 8553 xorg_cv_cc_flag_unused_command_line_argument=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8556fi 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561fi 8562 8563found="no" 8564 8565 if test $found = "no" ; then 8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568 fi 8569 8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8572 fi 8573 8574 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8575 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8577$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8578 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8579 if eval \${$cacheid+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584int i; 8585int 8586main () 8587{ 8588 8589 ; 8590 return 0; 8591} 8592_ACEOF 8593if ac_fn_c_try_link "$LINENO"; then : 8594 eval $cacheid=yes 8595else 8596 eval $cacheid=no 8597fi 8598rm -f core conftest.err conftest.$ac_objext \ 8599 conftest$ac_exeext conftest.$ac_ext 8600fi 8601 8602 8603 CFLAGS="$xorg_testset_save_CFLAGS" 8604 8605 eval supported=\$$cacheid 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8607$as_echo "$supported" >&6; } 8608 if test "$supported" = "yes" ; then 8609 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8610 found="yes" 8611 fi 8612 fi 8613 8614 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8615else 8616{ $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 8617$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;} 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631xorg_testset_save_CFLAGS="$CFLAGS" 8632 8633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642int i; 8643_ACEOF 8644if ac_fn_c_try_compile "$LINENO"; then : 8645 xorg_cv_cc_flag_unknown_warning_option=yes 8646else 8647 xorg_cv_cc_flag_unknown_warning_option=no 8648fi 8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8650fi 8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655fi 8656 8657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8660 fi 8661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668/* end confdefs.h. */ 8669int i; 8670_ACEOF 8671if ac_fn_c_try_compile "$LINENO"; then : 8672 xorg_cv_cc_flag_unused_command_line_argument=yes 8673else 8674 xorg_cv_cc_flag_unused_command_line_argument=no 8675fi 8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8681 CFLAGS="$xorg_testset_save_CFLAGS" 8682fi 8683 8684found="no" 8685 8686 if test $found = "no" ; then 8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 fi 8690 8691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8693 fi 8694 8695 CFLAGS="$CFLAGS -Wimplicit" 8696 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8698$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8699 cacheid=xorg_cv_cc_flag__Wimplicit 8700 if eval \${$cacheid+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702else 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706int 8707main () 8708{ 8709 8710 ; 8711 return 0; 8712} 8713_ACEOF 8714if ac_fn_c_try_link "$LINENO"; then : 8715 eval $cacheid=yes 8716else 8717 eval $cacheid=no 8718fi 8719rm -f core conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext conftest.$ac_ext 8721fi 8722 8723 8724 CFLAGS="$xorg_testset_save_CFLAGS" 8725 8726 eval supported=\$$cacheid 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8728$as_echo "$supported" >&6; } 8729 if test "$supported" = "yes" ; then 8730 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8731 found="yes" 8732 fi 8733 fi 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749xorg_testset_save_CFLAGS="$CFLAGS" 8750 8751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757else 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759/* end confdefs.h. */ 8760int i; 8761_ACEOF 8762if ac_fn_c_try_compile "$LINENO"; then : 8763 xorg_cv_cc_flag_unknown_warning_option=yes 8764else 8765 xorg_cv_cc_flag_unknown_warning_option=no 8766fi 8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8768fi 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8772 CFLAGS="$xorg_testset_save_CFLAGS" 8773fi 8774 8775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8778 fi 8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786/* end confdefs.h. */ 8787int i; 8788_ACEOF 8789if ac_fn_c_try_compile "$LINENO"; then : 8790 xorg_cv_cc_flag_unused_command_line_argument=yes 8791else 8792 xorg_cv_cc_flag_unused_command_line_argument=no 8793fi 8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8795fi 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8799 CFLAGS="$xorg_testset_save_CFLAGS" 8800fi 8801 8802found="no" 8803 8804 if test $found = "no" ; then 8805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8807 fi 8808 8809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8811 fi 8812 8813 CFLAGS="$CFLAGS -Wnonnull" 8814 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8816$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8817 cacheid=xorg_cv_cc_flag__Wnonnull 8818 if eval \${$cacheid+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823int i; 8824int 8825main () 8826{ 8827 8828 ; 8829 return 0; 8830} 8831_ACEOF 8832if ac_fn_c_try_link "$LINENO"; then : 8833 eval $cacheid=yes 8834else 8835 eval $cacheid=no 8836fi 8837rm -f core conftest.err conftest.$ac_objext \ 8838 conftest$ac_exeext conftest.$ac_ext 8839fi 8840 8841 8842 CFLAGS="$xorg_testset_save_CFLAGS" 8843 8844 eval supported=\$$cacheid 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8846$as_echo "$supported" >&6; } 8847 if test "$supported" = "yes" ; then 8848 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8849 found="yes" 8850 fi 8851 fi 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867xorg_testset_save_CFLAGS="$CFLAGS" 8868 8869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878int i; 8879_ACEOF 8880if ac_fn_c_try_compile "$LINENO"; then : 8881 xorg_cv_cc_flag_unknown_warning_option=yes 8882else 8883 xorg_cv_cc_flag_unknown_warning_option=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8886fi 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891fi 8892 8893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8896 fi 8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904/* end confdefs.h. */ 8905int i; 8906_ACEOF 8907if ac_fn_c_try_compile "$LINENO"; then : 8908 xorg_cv_cc_flag_unused_command_line_argument=yes 8909else 8910 xorg_cv_cc_flag_unused_command_line_argument=no 8911fi 8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8913fi 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918fi 8919 8920found="no" 8921 8922 if test $found = "no" ; then 8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 fi 8926 8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8929 fi 8930 8931 CFLAGS="$CFLAGS -Winit-self" 8932 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8934$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8935 cacheid=xorg_cv_cc_flag__Winit_self 8936 if eval \${$cacheid+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941int i; 8942int 8943main () 8944{ 8945 8946 ; 8947 return 0; 8948} 8949_ACEOF 8950if ac_fn_c_try_link "$LINENO"; then : 8951 eval $cacheid=yes 8952else 8953 eval $cacheid=no 8954fi 8955rm -f core conftest.err conftest.$ac_objext \ 8956 conftest$ac_exeext conftest.$ac_ext 8957fi 8958 8959 8960 CFLAGS="$xorg_testset_save_CFLAGS" 8961 8962 eval supported=\$$cacheid 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8964$as_echo "$supported" >&6; } 8965 if test "$supported" = "yes" ; then 8966 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8967 found="yes" 8968 fi 8969 fi 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985xorg_testset_save_CFLAGS="$CFLAGS" 8986 8987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996int i; 8997_ACEOF 8998if ac_fn_c_try_compile "$LINENO"; then : 8999 xorg_cv_cc_flag_unknown_warning_option=yes 9000else 9001 xorg_cv_cc_flag_unknown_warning_option=no 9002fi 9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9004fi 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9008 CFLAGS="$xorg_testset_save_CFLAGS" 9009fi 9010 9011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9014 fi 9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023int i; 9024_ACEOF 9025if ac_fn_c_try_compile "$LINENO"; then : 9026 xorg_cv_cc_flag_unused_command_line_argument=yes 9027else 9028 xorg_cv_cc_flag_unused_command_line_argument=no 9029fi 9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9035 CFLAGS="$xorg_testset_save_CFLAGS" 9036fi 9037 9038found="no" 9039 9040 if test $found = "no" ; then 9041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043 fi 9044 9045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9047 fi 9048 9049 CFLAGS="$CFLAGS -Wmain" 9050 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9052$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9053 cacheid=xorg_cv_cc_flag__Wmain 9054 if eval \${$cacheid+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059int i; 9060int 9061main () 9062{ 9063 9064 ; 9065 return 0; 9066} 9067_ACEOF 9068if ac_fn_c_try_link "$LINENO"; then : 9069 eval $cacheid=yes 9070else 9071 eval $cacheid=no 9072fi 9073rm -f core conftest.err conftest.$ac_objext \ 9074 conftest$ac_exeext conftest.$ac_ext 9075fi 9076 9077 9078 CFLAGS="$xorg_testset_save_CFLAGS" 9079 9080 eval supported=\$$cacheid 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9082$as_echo "$supported" >&6; } 9083 if test "$supported" = "yes" ; then 9084 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9085 found="yes" 9086 fi 9087 fi 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103xorg_testset_save_CFLAGS="$CFLAGS" 9104 9105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113/* end confdefs.h. */ 9114int i; 9115_ACEOF 9116if ac_fn_c_try_compile "$LINENO"; then : 9117 xorg_cv_cc_flag_unknown_warning_option=yes 9118else 9119 xorg_cv_cc_flag_unknown_warning_option=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9122fi 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9126 CFLAGS="$xorg_testset_save_CFLAGS" 9127fi 9128 9129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9132 fi 9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141int i; 9142_ACEOF 9143if ac_fn_c_try_compile "$LINENO"; then : 9144 xorg_cv_cc_flag_unused_command_line_argument=yes 9145else 9146 xorg_cv_cc_flag_unused_command_line_argument=no 9147fi 9148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9149fi 9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9153 CFLAGS="$xorg_testset_save_CFLAGS" 9154fi 9155 9156found="no" 9157 9158 if test $found = "no" ; then 9159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 fi 9162 9163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9165 fi 9166 9167 CFLAGS="$CFLAGS -Wmissing-braces" 9168 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9170$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9171 cacheid=xorg_cv_cc_flag__Wmissing_braces 9172 if eval \${$cacheid+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178int 9179main () 9180{ 9181 9182 ; 9183 return 0; 9184} 9185_ACEOF 9186if ac_fn_c_try_link "$LINENO"; then : 9187 eval $cacheid=yes 9188else 9189 eval $cacheid=no 9190fi 9191rm -f core conftest.err conftest.$ac_objext \ 9192 conftest$ac_exeext conftest.$ac_ext 9193fi 9194 9195 9196 CFLAGS="$xorg_testset_save_CFLAGS" 9197 9198 eval supported=\$$cacheid 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9200$as_echo "$supported" >&6; } 9201 if test "$supported" = "yes" ; then 9202 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9203 found="yes" 9204 fi 9205 fi 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221xorg_testset_save_CFLAGS="$CFLAGS" 9222 9223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229else 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233_ACEOF 9234if ac_fn_c_try_compile "$LINENO"; then : 9235 xorg_cv_cc_flag_unknown_warning_option=yes 9236else 9237 xorg_cv_cc_flag_unknown_warning_option=no 9238fi 9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9250 fi 9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260_ACEOF 9261if ac_fn_c_try_compile "$LINENO"; then : 9262 xorg_cv_cc_flag_unused_command_line_argument=yes 9263else 9264 xorg_cv_cc_flag_unused_command_line_argument=no 9265fi 9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9267fi 9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9271 CFLAGS="$xorg_testset_save_CFLAGS" 9272fi 9273 9274found="no" 9275 9276 if test $found = "no" ; then 9277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9279 fi 9280 9281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9283 fi 9284 9285 CFLAGS="$CFLAGS -Wsequence-point" 9286 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9288$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9289 cacheid=xorg_cv_cc_flag__Wsequence_point 9290 if eval \${$cacheid+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296int 9297main () 9298{ 9299 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304if ac_fn_c_try_link "$LINENO"; then : 9305 eval $cacheid=yes 9306else 9307 eval $cacheid=no 9308fi 9309rm -f core conftest.err conftest.$ac_objext \ 9310 conftest$ac_exeext conftest.$ac_ext 9311fi 9312 9313 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315 9316 eval supported=\$$cacheid 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9318$as_echo "$supported" >&6; } 9319 if test "$supported" = "yes" ; then 9320 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9321 found="yes" 9322 fi 9323 fi 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339xorg_testset_save_CFLAGS="$CFLAGS" 9340 9341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351_ACEOF 9352if ac_fn_c_try_compile "$LINENO"; then : 9353 xorg_cv_cc_flag_unknown_warning_option=yes 9354else 9355 xorg_cv_cc_flag_unknown_warning_option=no 9356fi 9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9358fi 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9362 CFLAGS="$xorg_testset_save_CFLAGS" 9363fi 9364 9365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9368 fi 9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376/* end confdefs.h. */ 9377int i; 9378_ACEOF 9379if ac_fn_c_try_compile "$LINENO"; then : 9380 xorg_cv_cc_flag_unused_command_line_argument=yes 9381else 9382 xorg_cv_cc_flag_unused_command_line_argument=no 9383fi 9384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9385fi 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390fi 9391 9392found="no" 9393 9394 if test $found = "no" ; then 9395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397 fi 9398 9399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9401 fi 9402 9403 CFLAGS="$CFLAGS -Wreturn-type" 9404 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9406$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9407 cacheid=xorg_cv_cc_flag__Wreturn_type 9408 if eval \${$cacheid+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414int 9415main () 9416{ 9417 9418 ; 9419 return 0; 9420} 9421_ACEOF 9422if ac_fn_c_try_link "$LINENO"; then : 9423 eval $cacheid=yes 9424else 9425 eval $cacheid=no 9426fi 9427rm -f core conftest.err conftest.$ac_objext \ 9428 conftest$ac_exeext conftest.$ac_ext 9429fi 9430 9431 9432 CFLAGS="$xorg_testset_save_CFLAGS" 9433 9434 eval supported=\$$cacheid 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9436$as_echo "$supported" >&6; } 9437 if test "$supported" = "yes" ; then 9438 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9439 found="yes" 9440 fi 9441 fi 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457xorg_testset_save_CFLAGS="$CFLAGS" 9458 9459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468int i; 9469_ACEOF 9470if ac_fn_c_try_compile "$LINENO"; then : 9471 xorg_cv_cc_flag_unknown_warning_option=yes 9472else 9473 xorg_cv_cc_flag_unknown_warning_option=no 9474fi 9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9476fi 9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481fi 9482 9483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495int i; 9496_ACEOF 9497if ac_fn_c_try_compile "$LINENO"; then : 9498 xorg_cv_cc_flag_unused_command_line_argument=yes 9499else 9500 xorg_cv_cc_flag_unused_command_line_argument=no 9501fi 9502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9507 CFLAGS="$xorg_testset_save_CFLAGS" 9508fi 9509 9510found="no" 9511 9512 if test $found = "no" ; then 9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 fi 9516 9517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519 fi 9520 9521 CFLAGS="$CFLAGS -Wtrigraphs" 9522 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9524$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9525 cacheid=xorg_cv_cc_flag__Wtrigraphs 9526 if eval \${$cacheid+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531int i; 9532int 9533main () 9534{ 9535 9536 ; 9537 return 0; 9538} 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO"; then : 9541 eval $cacheid=yes 9542else 9543 eval $cacheid=no 9544fi 9545rm -f core conftest.err conftest.$ac_objext \ 9546 conftest$ac_exeext conftest.$ac_ext 9547fi 9548 9549 9550 CFLAGS="$xorg_testset_save_CFLAGS" 9551 9552 eval supported=\$$cacheid 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9554$as_echo "$supported" >&6; } 9555 if test "$supported" = "yes" ; then 9556 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9557 found="yes" 9558 fi 9559 fi 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575xorg_testset_save_CFLAGS="$CFLAGS" 9576 9577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586int i; 9587_ACEOF 9588if ac_fn_c_try_compile "$LINENO"; then : 9589 xorg_cv_cc_flag_unknown_warning_option=yes 9590else 9591 xorg_cv_cc_flag_unknown_warning_option=no 9592fi 9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9594fi 9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599fi 9600 9601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9604 fi 9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612/* end confdefs.h. */ 9613int i; 9614_ACEOF 9615if ac_fn_c_try_compile "$LINENO"; then : 9616 xorg_cv_cc_flag_unused_command_line_argument=yes 9617else 9618 xorg_cv_cc_flag_unused_command_line_argument=no 9619fi 9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9621fi 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626fi 9627 9628found="no" 9629 9630 if test $found = "no" ; then 9631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 fi 9634 9635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 fi 9638 9639 CFLAGS="$CFLAGS -Warray-bounds" 9640 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9642$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9643 cacheid=xorg_cv_cc_flag__Warray_bounds 9644 if eval \${$cacheid+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650int 9651main () 9652{ 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658if ac_fn_c_try_link "$LINENO"; then : 9659 eval $cacheid=yes 9660else 9661 eval $cacheid=no 9662fi 9663rm -f core conftest.err conftest.$ac_objext \ 9664 conftest$ac_exeext conftest.$ac_ext 9665fi 9666 9667 9668 CFLAGS="$xorg_testset_save_CFLAGS" 9669 9670 eval supported=\$$cacheid 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9672$as_echo "$supported" >&6; } 9673 if test "$supported" = "yes" ; then 9674 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9675 found="yes" 9676 fi 9677 fi 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693xorg_testset_save_CFLAGS="$CFLAGS" 9694 9695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705_ACEOF 9706if ac_fn_c_try_compile "$LINENO"; then : 9707 xorg_cv_cc_flag_unknown_warning_option=yes 9708else 9709 xorg_cv_cc_flag_unknown_warning_option=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9712fi 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717fi 9718 9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9722 fi 9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731int i; 9732_ACEOF 9733if ac_fn_c_try_compile "$LINENO"; then : 9734 xorg_cv_cc_flag_unused_command_line_argument=yes 9735else 9736 xorg_cv_cc_flag_unused_command_line_argument=no 9737fi 9738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9739fi 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9743 CFLAGS="$xorg_testset_save_CFLAGS" 9744fi 9745 9746found="no" 9747 9748 if test $found = "no" ; then 9749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 fi 9752 9753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9755 fi 9756 9757 CFLAGS="$CFLAGS -Wwrite-strings" 9758 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9760$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9761 cacheid=xorg_cv_cc_flag__Wwrite_strings 9762 if eval \${$cacheid+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764else 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768int 9769main () 9770{ 9771 9772 ; 9773 return 0; 9774} 9775_ACEOF 9776if ac_fn_c_try_link "$LINENO"; then : 9777 eval $cacheid=yes 9778else 9779 eval $cacheid=no 9780fi 9781rm -f core conftest.err conftest.$ac_objext \ 9782 conftest$ac_exeext conftest.$ac_ext 9783fi 9784 9785 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787 9788 eval supported=\$$cacheid 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9790$as_echo "$supported" >&6; } 9791 if test "$supported" = "yes" ; then 9792 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9793 found="yes" 9794 fi 9795 fi 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811xorg_testset_save_CFLAGS="$CFLAGS" 9812 9813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9821/* end confdefs.h. */ 9822int i; 9823_ACEOF 9824if ac_fn_c_try_compile "$LINENO"; then : 9825 xorg_cv_cc_flag_unknown_warning_option=yes 9826else 9827 xorg_cv_cc_flag_unknown_warning_option=no 9828fi 9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9830fi 9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9834 CFLAGS="$xorg_testset_save_CFLAGS" 9835fi 9836 9837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9840 fi 9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846else 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849int i; 9850_ACEOF 9851if ac_fn_c_try_compile "$LINENO"; then : 9852 xorg_cv_cc_flag_unused_command_line_argument=yes 9853else 9854 xorg_cv_cc_flag_unused_command_line_argument=no 9855fi 9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9857fi 9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862fi 9863 9864found="no" 9865 9866 if test $found = "no" ; then 9867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869 fi 9870 9871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9873 fi 9874 9875 CFLAGS="$CFLAGS -Waddress" 9876 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9878$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9879 cacheid=xorg_cv_cc_flag__Waddress 9880 if eval \${$cacheid+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885int i; 9886int 9887main () 9888{ 9889 9890 ; 9891 return 0; 9892} 9893_ACEOF 9894if ac_fn_c_try_link "$LINENO"; then : 9895 eval $cacheid=yes 9896else 9897 eval $cacheid=no 9898fi 9899rm -f core conftest.err conftest.$ac_objext \ 9900 conftest$ac_exeext conftest.$ac_ext 9901fi 9902 9903 9904 CFLAGS="$xorg_testset_save_CFLAGS" 9905 9906 eval supported=\$$cacheid 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9908$as_echo "$supported" >&6; } 9909 if test "$supported" = "yes" ; then 9910 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9911 found="yes" 9912 fi 9913 fi 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929xorg_testset_save_CFLAGS="$CFLAGS" 9930 9931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940int i; 9941_ACEOF 9942if ac_fn_c_try_compile "$LINENO"; then : 9943 xorg_cv_cc_flag_unknown_warning_option=yes 9944else 9945 xorg_cv_cc_flag_unknown_warning_option=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9948fi 9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9952 CFLAGS="$xorg_testset_save_CFLAGS" 9953fi 9954 9955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9958 fi 9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964else 9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9966/* end confdefs.h. */ 9967int i; 9968_ACEOF 9969if ac_fn_c_try_compile "$LINENO"; then : 9970 xorg_cv_cc_flag_unused_command_line_argument=yes 9971else 9972 xorg_cv_cc_flag_unused_command_line_argument=no 9973fi 9974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9975fi 9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980fi 9981 9982found="no" 9983 9984 if test $found = "no" ; then 9985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 fi 9988 9989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 fi 9992 9993 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9994 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9996$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9997 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9998 if eval \${$cacheid+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002/* end confdefs.h. */ 10003int i; 10004int 10005main () 10006{ 10007 10008 ; 10009 return 0; 10010} 10011_ACEOF 10012if ac_fn_c_try_link "$LINENO"; then : 10013 eval $cacheid=yes 10014else 10015 eval $cacheid=no 10016fi 10017rm -f core conftest.err conftest.$ac_objext \ 10018 conftest$ac_exeext conftest.$ac_ext 10019fi 10020 10021 10022 CFLAGS="$xorg_testset_save_CFLAGS" 10023 10024 eval supported=\$$cacheid 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10026$as_echo "$supported" >&6; } 10027 if test "$supported" = "yes" ; then 10028 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10029 found="yes" 10030 fi 10031 fi 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047xorg_testset_save_CFLAGS="$CFLAGS" 10048 10049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO"; then : 10061 xorg_cv_cc_flag_unknown_warning_option=yes 10062else 10063 xorg_cv_cc_flag_unknown_warning_option=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071fi 10072 10073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 fi 10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082else 10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084/* end confdefs.h. */ 10085int i; 10086_ACEOF 10087if ac_fn_c_try_compile "$LINENO"; then : 10088 xorg_cv_cc_flag_unused_command_line_argument=yes 10089else 10090 xorg_cv_cc_flag_unused_command_line_argument=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093fi 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098fi 10099 10100found="no" 10101 10102 if test $found = "no" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10109 fi 10110 10111 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10114$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10115 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10116 if eval \${$cacheid+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 eval $cacheid=yes 10132else 10133 eval $cacheid=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext \ 10136 conftest$ac_exeext conftest.$ac_ext 10137fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144$as_echo "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152fi 10153 10154 10155 10156 10157 10158 10159 10160 CWARNFLAGS="$BASE_CFLAGS" 10161 if test "x$GCC" = xyes ; then 10162 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10163 fi 10164 10165 10166 10167 10168 10169 10170 10171 10172# Check whether --enable-strict-compilation was given. 10173if test "${enable_strict_compilation+set}" = set; then : 10174 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10175else 10176 STRICT_COMPILE=no 10177fi 10178 10179 10180 10181 10182 10183 10184STRICT_CFLAGS="" 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198xorg_testset_save_CFLAGS="$CFLAGS" 10199 10200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10205 $as_echo_n "(cached) " >&6 10206else 10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209int i; 10210_ACEOF 10211if ac_fn_c_try_compile "$LINENO"; then : 10212 xorg_cv_cc_flag_unknown_warning_option=yes 10213else 10214 xorg_cv_cc_flag_unknown_warning_option=no 10215fi 10216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10217fi 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10221 CFLAGS="$xorg_testset_save_CFLAGS" 10222fi 10223 10224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10227 fi 10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10232 $as_echo_n "(cached) " >&6 10233else 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236int i; 10237_ACEOF 10238if ac_fn_c_try_compile "$LINENO"; then : 10239 xorg_cv_cc_flag_unused_command_line_argument=yes 10240else 10241 xorg_cv_cc_flag_unused_command_line_argument=no 10242fi 10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10244fi 10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10248 CFLAGS="$xorg_testset_save_CFLAGS" 10249fi 10250 10251found="no" 10252 10253 if test $found = "no" ; then 10254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10256 fi 10257 10258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10260 fi 10261 10262 CFLAGS="$CFLAGS -pedantic" 10263 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10265$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10266 cacheid=xorg_cv_cc_flag__pedantic 10267 if eval \${$cacheid+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272int i; 10273int 10274main () 10275{ 10276 10277 ; 10278 return 0; 10279} 10280_ACEOF 10281if ac_fn_c_try_link "$LINENO"; then : 10282 eval $cacheid=yes 10283else 10284 eval $cacheid=no 10285fi 10286rm -f core conftest.err conftest.$ac_objext \ 10287 conftest$ac_exeext conftest.$ac_ext 10288fi 10289 10290 10291 CFLAGS="$xorg_testset_save_CFLAGS" 10292 10293 eval supported=\$$cacheid 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10295$as_echo "$supported" >&6; } 10296 if test "$supported" = "yes" ; then 10297 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10298 found="yes" 10299 fi 10300 fi 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316xorg_testset_save_CFLAGS="$CFLAGS" 10317 10318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10323 $as_echo_n "(cached) " >&6 10324else 10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10326/* end confdefs.h. */ 10327int i; 10328_ACEOF 10329if ac_fn_c_try_compile "$LINENO"; then : 10330 xorg_cv_cc_flag_unknown_warning_option=yes 10331else 10332 xorg_cv_cc_flag_unknown_warning_option=no 10333fi 10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10335fi 10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10339 CFLAGS="$xorg_testset_save_CFLAGS" 10340fi 10341 10342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 fi 10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351else 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354int i; 10355_ACEOF 10356if ac_fn_c_try_compile "$LINENO"; then : 10357 xorg_cv_cc_flag_unused_command_line_argument=yes 10358else 10359 xorg_cv_cc_flag_unused_command_line_argument=no 10360fi 10361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10362fi 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367fi 10368 10369found="no" 10370 10371 if test $found = "no" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378 fi 10379 10380 CFLAGS="$CFLAGS -Werror" 10381 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10383$as_echo_n "checking if $CC supports -Werror... " >&6; } 10384 cacheid=xorg_cv_cc_flag__Werror 10385 if eval \${$cacheid+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390int i; 10391int 10392main () 10393{ 10394 10395 ; 10396 return 0; 10397} 10398_ACEOF 10399if ac_fn_c_try_link "$LINENO"; then : 10400 eval $cacheid=yes 10401else 10402 eval $cacheid=no 10403fi 10404rm -f core conftest.err conftest.$ac_objext \ 10405 conftest$ac_exeext conftest.$ac_ext 10406fi 10407 10408 10409 CFLAGS="$xorg_testset_save_CFLAGS" 10410 10411 eval supported=\$$cacheid 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10413$as_echo "$supported" >&6; } 10414 if test "$supported" = "yes" ; then 10415 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10416 found="yes" 10417 fi 10418 fi 10419 10420 if test $found = "no" ; then 10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10423 fi 10424 10425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 fi 10428 10429 CFLAGS="$CFLAGS -errwarn" 10430 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10432$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10433 cacheid=xorg_cv_cc_flag__errwarn 10434 if eval \${$cacheid+:} false; then : 10435 $as_echo_n "(cached) " >&6 10436else 10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439int i; 10440int 10441main () 10442{ 10443 10444 ; 10445 return 0; 10446} 10447_ACEOF 10448if ac_fn_c_try_link "$LINENO"; then : 10449 eval $cacheid=yes 10450else 10451 eval $cacheid=no 10452fi 10453rm -f core conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455fi 10456 10457 10458 CFLAGS="$xorg_testset_save_CFLAGS" 10459 10460 eval supported=\$$cacheid 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10462$as_echo "$supported" >&6; } 10463 if test "$supported" = "yes" ; then 10464 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10465 found="yes" 10466 fi 10467 fi 10468 10469 10470 10471# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10472# activate it with -Werror, so we add it here explicitly. 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486xorg_testset_save_CFLAGS="$CFLAGS" 10487 10488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10493 $as_echo_n "(cached) " >&6 10494else 10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10496/* end confdefs.h. */ 10497int i; 10498_ACEOF 10499if ac_fn_c_try_compile "$LINENO"; then : 10500 xorg_cv_cc_flag_unknown_warning_option=yes 10501else 10502 xorg_cv_cc_flag_unknown_warning_option=no 10503fi 10504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10505fi 10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10509 CFLAGS="$xorg_testset_save_CFLAGS" 10510fi 10511 10512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10515 fi 10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10520 $as_echo_n "(cached) " >&6 10521else 10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10523/* end confdefs.h. */ 10524int i; 10525_ACEOF 10526if ac_fn_c_try_compile "$LINENO"; then : 10527 xorg_cv_cc_flag_unused_command_line_argument=yes 10528else 10529 xorg_cv_cc_flag_unused_command_line_argument=no 10530fi 10531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10532fi 10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10536 CFLAGS="$xorg_testset_save_CFLAGS" 10537fi 10538 10539found="no" 10540 10541 if test $found = "no" ; then 10542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10544 fi 10545 10546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10548 fi 10549 10550 CFLAGS="$CFLAGS -Werror=attributes" 10551 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10553$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10554 cacheid=xorg_cv_cc_flag__Werror_attributes 10555 if eval \${$cacheid+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559/* end confdefs.h. */ 10560int i; 10561int 10562main () 10563{ 10564 10565 ; 10566 return 0; 10567} 10568_ACEOF 10569if ac_fn_c_try_link "$LINENO"; then : 10570 eval $cacheid=yes 10571else 10572 eval $cacheid=no 10573fi 10574rm -f core conftest.err conftest.$ac_objext \ 10575 conftest$ac_exeext conftest.$ac_ext 10576fi 10577 10578 10579 CFLAGS="$xorg_testset_save_CFLAGS" 10580 10581 eval supported=\$$cacheid 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10583$as_echo "$supported" >&6; } 10584 if test "$supported" = "yes" ; then 10585 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10586 found="yes" 10587 fi 10588 fi 10589 10590 10591 10592if test "x$STRICT_COMPILE" = "xyes"; then 10593 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10594 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10595fi 10596 10597 10598 10599 10600 10601 10602cat >>confdefs.h <<_ACEOF 10603#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10604_ACEOF 10605 10606 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10607 if test "x$PVM" = "x"; then 10608 PVM="0" 10609 fi 10610 10611cat >>confdefs.h <<_ACEOF 10612#define PACKAGE_VERSION_MINOR $PVM 10613_ACEOF 10614 10615 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10616 if test "x$PVP" = "x"; then 10617 PVP="0" 10618 fi 10619 10620cat >>confdefs.h <<_ACEOF 10621#define PACKAGE_VERSION_PATCHLEVEL $PVP 10622_ACEOF 10623 10624 10625 10626CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10627mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10628|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10629echo 'git directory not found: installing possibly empty changelog.' >&2)" 10630 10631 10632 10633 10634macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10635INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10636mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10637|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10638echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10639 10640 10641 10642 10643 10644 10645if test x$APP_MAN_SUFFIX = x ; then 10646 APP_MAN_SUFFIX=1 10647fi 10648if test x$APP_MAN_DIR = x ; then 10649 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10650fi 10651 10652if test x$LIB_MAN_SUFFIX = x ; then 10653 LIB_MAN_SUFFIX=3 10654fi 10655if test x$LIB_MAN_DIR = x ; then 10656 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10657fi 10658 10659if test x$FILE_MAN_SUFFIX = x ; then 10660 case $host_os in 10661 solaris*) FILE_MAN_SUFFIX=4 ;; 10662 *) FILE_MAN_SUFFIX=5 ;; 10663 esac 10664fi 10665if test x$FILE_MAN_DIR = x ; then 10666 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10667fi 10668 10669if test x$MISC_MAN_SUFFIX = x ; then 10670 case $host_os in 10671 solaris*) MISC_MAN_SUFFIX=5 ;; 10672 *) MISC_MAN_SUFFIX=7 ;; 10673 esac 10674fi 10675if test x$MISC_MAN_DIR = x ; then 10676 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10677fi 10678 10679if test x$DRIVER_MAN_SUFFIX = x ; then 10680 case $host_os in 10681 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10682 *) DRIVER_MAN_SUFFIX=4 ;; 10683 esac 10684fi 10685if test x$DRIVER_MAN_DIR = x ; then 10686 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10687fi 10688 10689if test x$ADMIN_MAN_SUFFIX = x ; then 10690 case $host_os in 10691 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10692 *) ADMIN_MAN_SUFFIX=8 ;; 10693 esac 10694fi 10695if test x$ADMIN_MAN_DIR = x ; then 10696 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10697fi 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713XORG_MAN_PAGE="X Version 11" 10714 10715MAN_SUBSTS="\ 10716 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10717 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10718 -e 's|__xservername__|Xorg|g' \ 10719 -e 's|__xconfigfile__|xorg.conf|g' \ 10720 -e 's|__projectroot__|\$(prefix)|g' \ 10721 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10722 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10723 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10724 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10725 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10726 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10727 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10728 10729 10730 10731# Check whether --enable-silent-rules was given. 10732if test "${enable_silent_rules+set}" = set; then : 10733 enableval=$enable_silent_rules; 10734fi 10735 10736case $enable_silent_rules in # ((( 10737 yes) AM_DEFAULT_VERBOSITY=0;; 10738 no) AM_DEFAULT_VERBOSITY=1;; 10739 *) AM_DEFAULT_VERBOSITY=0;; 10740esac 10741am_make=${MAKE-make} 10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10743$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10744if ${am_cv_make_support_nested_variables+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746else 10747 if $as_echo 'TRUE=$(BAR$(V)) 10748BAR0=false 10749BAR1=true 10750V=1 10751am__doit: 10752 @$(TRUE) 10753.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10754 am_cv_make_support_nested_variables=yes 10755else 10756 am_cv_make_support_nested_variables=no 10757fi 10758fi 10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10760$as_echo "$am_cv_make_support_nested_variables" >&6; } 10761if test $am_cv_make_support_nested_variables = yes; then 10762 AM_V='$(V)' 10763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10764else 10765 AM_V=$AM_DEFAULT_VERBOSITY 10766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10767fi 10768AM_BACKSLASH='\' 10769 10770 10771 10772# Checks for programs 10773ac_ext=c 10774ac_cpp='$CPP $CPPFLAGS' 10775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10777ac_compiler_gnu=$ac_cv_c_compiler_gnu 10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10779$as_echo_n "checking how to run the C preprocessor... " >&6; } 10780# On Suns, sometimes $CPP names a directory. 10781if test -n "$CPP" && test -d "$CPP"; then 10782 CPP= 10783fi 10784if test -z "$CPP"; then 10785 if ${ac_cv_prog_CPP+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787else 10788 # Double quotes because CPP needs to be expanded 10789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10790 do 10791 ac_preproc_ok=false 10792for ac_c_preproc_warn_flag in '' yes 10793do 10794 # Use a header file that comes with gcc, so configuring glibc 10795 # with a fresh cross-compiler works. 10796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10797 # <limits.h> exists even on freestanding compilers. 10798 # On the NeXT, cc -E runs the code through the compiler's parser, 10799 # not just through cpp. "Syntax error" is here to catch this case. 10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802#ifdef __STDC__ 10803# include <limits.h> 10804#else 10805# include <assert.h> 10806#endif 10807 Syntax error 10808_ACEOF 10809if ac_fn_c_try_cpp "$LINENO"; then : 10810 10811else 10812 # Broken: fails on valid input. 10813continue 10814fi 10815rm -f conftest.err conftest.i conftest.$ac_ext 10816 10817 # OK, works on sane cases. Now check whether nonexistent headers 10818 # can be detected and how. 10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821#include <ac_nonexistent.h> 10822_ACEOF 10823if ac_fn_c_try_cpp "$LINENO"; then : 10824 # Broken: success on invalid input. 10825continue 10826else 10827 # Passes both tests. 10828ac_preproc_ok=: 10829break 10830fi 10831rm -f conftest.err conftest.i conftest.$ac_ext 10832 10833done 10834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10835rm -f conftest.i conftest.err conftest.$ac_ext 10836if $ac_preproc_ok; then : 10837 break 10838fi 10839 10840 done 10841 ac_cv_prog_CPP=$CPP 10842 10843fi 10844 CPP=$ac_cv_prog_CPP 10845else 10846 ac_cv_prog_CPP=$CPP 10847fi 10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10849$as_echo "$CPP" >&6; } 10850ac_preproc_ok=false 10851for ac_c_preproc_warn_flag in '' yes 10852do 10853 # Use a header file that comes with gcc, so configuring glibc 10854 # with a fresh cross-compiler works. 10855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10856 # <limits.h> exists even on freestanding compilers. 10857 # On the NeXT, cc -E runs the code through the compiler's parser, 10858 # not just through cpp. "Syntax error" is here to catch this case. 10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10860/* end confdefs.h. */ 10861#ifdef __STDC__ 10862# include <limits.h> 10863#else 10864# include <assert.h> 10865#endif 10866 Syntax error 10867_ACEOF 10868if ac_fn_c_try_cpp "$LINENO"; then : 10869 10870else 10871 # Broken: fails on valid input. 10872continue 10873fi 10874rm -f conftest.err conftest.i conftest.$ac_ext 10875 10876 # OK, works on sane cases. Now check whether nonexistent headers 10877 # can be detected and how. 10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10879/* end confdefs.h. */ 10880#include <ac_nonexistent.h> 10881_ACEOF 10882if ac_fn_c_try_cpp "$LINENO"; then : 10883 # Broken: success on invalid input. 10884continue 10885else 10886 # Passes both tests. 10887ac_preproc_ok=: 10888break 10889fi 10890rm -f conftest.err conftest.i conftest.$ac_ext 10891 10892done 10893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10894rm -f conftest.i conftest.err conftest.$ac_ext 10895if $ac_preproc_ok; then : 10896 10897else 10898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10900as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 10901See \`config.log' for more details" "$LINENO" 5; } 10902fi 10903 10904ac_ext=c 10905ac_cpp='$CPP $CPPFLAGS' 10906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10908ac_compiler_gnu=$ac_cv_c_compiler_gnu 10909 10910 10911# Extract the first word of "lbxproxy", so it can be a program name with args. 10912set dummy lbxproxy; ac_word=$2 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10914$as_echo_n "checking for $ac_word... " >&6; } 10915if ${ac_cv_path_LBXPROXY+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 case $LBXPROXY in 10919 [\\/]* | ?:[\\/]*) 10920 ac_cv_path_LBXPROXY="$LBXPROXY" # Let the user override the test with a path. 10921 ;; 10922 *) 10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10924for as_dir in $PATH 10925do 10926 IFS=$as_save_IFS 10927 test -z "$as_dir" && as_dir=. 10928 for ac_exec_ext in '' $ac_executable_extensions; do 10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10930 ac_cv_path_LBXPROXY="$as_dir/$ac_word$ac_exec_ext" 10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10932 break 2 10933 fi 10934done 10935 done 10936IFS=$as_save_IFS 10937 10938 ;; 10939esac 10940fi 10941LBXPROXY=$ac_cv_path_LBXPROXY 10942if test -n "$LBXPROXY"; then 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LBXPROXY" >&5 10944$as_echo "$LBXPROXY" >&6; } 10945else 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10947$as_echo "no" >&6; } 10948fi 10949 10950 10951if [ -z $LBXPROXY ] ; then 10952 as_fn_error $? "lbxproxy is needed" "$LINENO" 5 10953fi 10954 10955# Checks for pkg-config packages 10956 10957pkg_failed=no 10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROXYMNGR" >&5 10959$as_echo_n "checking for PROXYMNGR... " >&6; } 10960 10961if test -n "$PROXYMNGR_CFLAGS"; then 10962 pkg_cv_PROXYMNGR_CFLAGS="$PROXYMNGR_CFLAGS" 10963 elif test -n "$PKG_CONFIG"; then 10964 if test -n "$PKG_CONFIG" && \ 10965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice xt xproto >= 7.0.17 xproxymngproto\""; } >&5 10966 ($PKG_CONFIG --exists --print-errors "ice xt xproto >= 7.0.17 xproxymngproto") 2>&5 10967 ac_status=$? 10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10969 test $ac_status = 0; }; then 10970 pkg_cv_PROXYMNGR_CFLAGS=`$PKG_CONFIG --cflags "ice xt xproto >= 7.0.17 xproxymngproto" 2>/dev/null` 10971else 10972 pkg_failed=yes 10973fi 10974 else 10975 pkg_failed=untried 10976fi 10977if test -n "$PROXYMNGR_LIBS"; then 10978 pkg_cv_PROXYMNGR_LIBS="$PROXYMNGR_LIBS" 10979 elif test -n "$PKG_CONFIG"; then 10980 if test -n "$PKG_CONFIG" && \ 10981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice xt xproto >= 7.0.17 xproxymngproto\""; } >&5 10982 ($PKG_CONFIG --exists --print-errors "ice xt xproto >= 7.0.17 xproxymngproto") 2>&5 10983 ac_status=$? 10984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10985 test $ac_status = 0; }; then 10986 pkg_cv_PROXYMNGR_LIBS=`$PKG_CONFIG --libs "ice xt xproto >= 7.0.17 xproxymngproto" 2>/dev/null` 10987else 10988 pkg_failed=yes 10989fi 10990 else 10991 pkg_failed=untried 10992fi 10993 10994 10995 10996if test $pkg_failed = yes; then 10997 10998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10999 _pkg_short_errors_supported=yes 11000else 11001 _pkg_short_errors_supported=no 11002fi 11003 if test $_pkg_short_errors_supported = yes; then 11004 PROXYMNGR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice xt xproto >= 7.0.17 xproxymngproto" 2>&1` 11005 else 11006 PROXYMNGR_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice xt xproto >= 7.0.17 xproxymngproto" 2>&1` 11007 fi 11008 # Put the nasty error message in config.log where it belongs 11009 echo "$PROXYMNGR_PKG_ERRORS" >&5 11010 11011 as_fn_error $? "Package requirements (ice xt xproto >= 7.0.17 xproxymngproto) were not met: 11012 11013$PROXYMNGR_PKG_ERRORS 11014 11015Consider adjusting the PKG_CONFIG_PATH environment variable if you 11016installed software in a non-standard prefix. 11017 11018Alternatively, you may set the environment variables PROXYMNGR_CFLAGS 11019and PROXYMNGR_LIBS to avoid the need to call pkg-config. 11020See the pkg-config man page for more details. 11021" "$LINENO" 5 11022elif test $pkg_failed = untried; then 11023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11025as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11026is in your PATH or set the PKG_CONFIG environment variable to the full 11027path to pkg-config. 11028 11029Alternatively, you may set the environment variables PROXYMNGR_CFLAGS 11030and PROXYMNGR_LIBS to avoid the need to call pkg-config. 11031See the pkg-config man page for more details. 11032 11033To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11034See \`config.log' for more details" "$LINENO" 5; } 11035else 11036 PROXYMNGR_CFLAGS=$pkg_cv_PROXYMNGR_CFLAGS 11037 PROXYMNGR_LIBS=$pkg_cv_PROXYMNGR_LIBS 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11039$as_echo "yes" >&6; } 11040 : 11041fi 11042 11043ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11044if test "x$ac_cv_func_strcasecmp" = xyes; then : 11045 11046else 11047 11048$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h 11049 11050fi 11051 11052 11053# Needed to check for IPv6 support and set flags appropriately 11054 11055 # SVR4 hides these in libraries other than libc 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 11057$as_echo_n "checking for library containing socket... " >&6; } 11058if ${ac_cv_search_socket+:} false; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 ac_func_search_save_LIBS=$LIBS 11062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063/* end confdefs.h. */ 11064 11065/* Override any GCC internal prototype to avoid an error. 11066 Use char because int might match the return type of a GCC 11067 builtin and then its argument prototype would still apply. */ 11068#ifdef __cplusplus 11069extern "C" 11070#endif 11071char socket (); 11072int 11073main () 11074{ 11075return socket (); 11076 ; 11077 return 0; 11078} 11079_ACEOF 11080for ac_lib in '' socket; do 11081 if test -z "$ac_lib"; then 11082 ac_res="none required" 11083 else 11084 ac_res=-l$ac_lib 11085 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11086 fi 11087 if ac_fn_c_try_link "$LINENO"; then : 11088 ac_cv_search_socket=$ac_res 11089fi 11090rm -f core conftest.err conftest.$ac_objext \ 11091 conftest$ac_exeext 11092 if ${ac_cv_search_socket+:} false; then : 11093 break 11094fi 11095done 11096if ${ac_cv_search_socket+:} false; then : 11097 11098else 11099 ac_cv_search_socket=no 11100fi 11101rm conftest.$ac_ext 11102LIBS=$ac_func_search_save_LIBS 11103fi 11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 11105$as_echo "$ac_cv_search_socket" >&6; } 11106ac_res=$ac_cv_search_socket 11107if test "$ac_res" != no; then : 11108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11109 11110fi 11111 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 11113$as_echo_n "checking for library containing gethostbyname... " >&6; } 11114if ${ac_cv_search_gethostbyname+:} false; then : 11115 $as_echo_n "(cached) " >&6 11116else 11117 ac_func_search_save_LIBS=$LIBS 11118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119/* end confdefs.h. */ 11120 11121/* Override any GCC internal prototype to avoid an error. 11122 Use char because int might match the return type of a GCC 11123 builtin and then its argument prototype would still apply. */ 11124#ifdef __cplusplus 11125extern "C" 11126#endif 11127char gethostbyname (); 11128int 11129main () 11130{ 11131return gethostbyname (); 11132 ; 11133 return 0; 11134} 11135_ACEOF 11136for ac_lib in '' nsl; do 11137 if test -z "$ac_lib"; then 11138 ac_res="none required" 11139 else 11140 ac_res=-l$ac_lib 11141 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11142 fi 11143 if ac_fn_c_try_link "$LINENO"; then : 11144 ac_cv_search_gethostbyname=$ac_res 11145fi 11146rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext 11148 if ${ac_cv_search_gethostbyname+:} false; then : 11149 break 11150fi 11151done 11152if ${ac_cv_search_gethostbyname+:} false; then : 11153 11154else 11155 ac_cv_search_gethostbyname=no 11156fi 11157rm conftest.$ac_ext 11158LIBS=$ac_func_search_save_LIBS 11159fi 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 11161$as_echo "$ac_cv_search_gethostbyname" >&6; } 11162ac_res=$ac_cv_search_gethostbyname 11163if test "$ac_res" != no; then : 11164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11165 11166fi 11167 11168 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 11170$as_echo_n "checking for main in -lws2_32... " >&6; } 11171if ${ac_cv_lib_ws2_32_main+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173else 11174 ac_check_lib_save_LIBS=$LIBS 11175LIBS="-lws2_32 $LIBS" 11176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11177/* end confdefs.h. */ 11178 11179 11180int 11181main () 11182{ 11183return main (); 11184 ; 11185 return 0; 11186} 11187_ACEOF 11188if ac_fn_c_try_link "$LINENO"; then : 11189 ac_cv_lib_ws2_32_main=yes 11190else 11191 ac_cv_lib_ws2_32_main=no 11192fi 11193rm -f core conftest.err conftest.$ac_objext \ 11194 conftest$ac_exeext conftest.$ac_ext 11195LIBS=$ac_check_lib_save_LIBS 11196fi 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 11198$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 11199if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 11200 cat >>confdefs.h <<_ACEOF 11201#define HAVE_LIBWS2_32 1 11202_ACEOF 11203 11204 LIBS="-lws2_32 $LIBS" 11205 11206fi 11207 11208 fi 11209 11210 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 11211 # Check whether --enable-ipv6 was given. 11212if test "${enable_ipv6+set}" = set; then : 11213 enableval=$enable_ipv6; IPV6CONN=$enableval 11214else 11215 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 11216if test "x$ac_cv_func_getaddrinfo" = xyes; then : 11217 IPV6CONN=yes 11218else 11219 IPV6CONN=no 11220fi 11221 11222fi 11223 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 11225$as_echo_n "checking if IPv6 support should be built... " >&6; } 11226 if test "$IPV6CONN" = "yes"; then 11227 11228$as_echo "#define IPv6 1" >>confdefs.h 11229 11230 fi 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 11232$as_echo "$IPV6CONN" >&6; } 11233 11234 # 4.3BSD-Reno added a new member to struct sockaddr_in 11235 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 11236#include <sys/types.h> 11237#include <sys/socket.h> 11238#include <netinet/in.h> 11239 11240" 11241if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 11242 11243$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 11244 11245fi 11246 11247 11248 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 11249 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 11250$ac_includes_default 11251#include <sys/socket.h> 11252" 11253if test "x$ac_cv_type_socklen_t" = xyes; then : 11254 11255cat >>confdefs.h <<_ACEOF 11256#define HAVE_SOCKLEN_T 1 11257_ACEOF 11258 11259 11260fi 11261 11262 11263 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 11264 # _XOPEN_SOURCE to get it (such as on Solaris) 11265 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11266$ac_includes_default 11267#include <sys/socket.h> 11268 11269" 11270if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11271 11272fi 11273 11274 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 11275 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 11276 unset ac_cv_member_struct_msghdr_msg_control 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 11278$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 11279 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11280#define _XOPEN_SOURCE 600 11281$ac_includes_default 11282#include <sys/socket.h> 11283 11284" 11285if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11286 11287$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 11288 11289 11290fi 11291 11292 fi 11293 # If that didn't work, fall back to XPG5/UNIX98 with C89 11294 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 11295 unset ac_cv_member_struct_msghdr_msg_control 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 11297$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 11298 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 11299#define _XOPEN_SOURCE 500 11300$ac_includes_default 11301#include <sys/socket.h> 11302 11303" 11304if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 11305 11306$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 11307 11308 11309fi 11310 11311 fi 11312 11313 11314 11315 11316ac_config_files="$ac_config_files Makefile" 11317 11318cat >confcache <<\_ACEOF 11319# This file is a shell script that caches the results of configure 11320# tests run on this system so they can be shared between configure 11321# scripts and configure runs, see configure's option --config-cache. 11322# It is not useful on other systems. If it contains results you don't 11323# want to keep, you may remove or edit it. 11324# 11325# config.status only pays attention to the cache file if you give it 11326# the --recheck option to rerun configure. 11327# 11328# `ac_cv_env_foo' variables (set or unset) will be overridden when 11329# loading this file, other *unset* `ac_cv_foo' will be assigned the 11330# following values. 11331 11332_ACEOF 11333 11334# The following way of writing the cache mishandles newlines in values, 11335# but we know of no workaround that is simple, portable, and efficient. 11336# So, we kill variables containing newlines. 11337# Ultrix sh set writes to stderr and can't be redirected directly, 11338# and sets the high bit in the cache file unless we assign to the vars. 11339( 11340 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11341 eval ac_val=\$$ac_var 11342 case $ac_val in #( 11343 *${as_nl}*) 11344 case $ac_var in #( 11345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11346$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11347 esac 11348 case $ac_var in #( 11349 _ | IFS | as_nl) ;; #( 11350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11351 *) { eval $ac_var=; unset $ac_var;} ;; 11352 esac ;; 11353 esac 11354 done 11355 11356 (set) 2>&1 | 11357 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11358 *${as_nl}ac_space=\ *) 11359 # `set' does not quote correctly, so add quotes: double-quote 11360 # substitution turns \\\\ into \\, and sed turns \\ into \. 11361 sed -n \ 11362 "s/'/'\\\\''/g; 11363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11364 ;; #( 11365 *) 11366 # `set' quotes correctly as required by POSIX, so do not add quotes. 11367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11368 ;; 11369 esac | 11370 sort 11371) | 11372 sed ' 11373 /^ac_cv_env_/b end 11374 t clear 11375 :clear 11376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11377 t end 11378 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11379 :end' >>confcache 11380if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11381 if test -w "$cache_file"; then 11382 if test "x$cache_file" != "x/dev/null"; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11384$as_echo "$as_me: updating cache $cache_file" >&6;} 11385 if test ! -f "$cache_file" || test -h "$cache_file"; then 11386 cat confcache >"$cache_file" 11387 else 11388 case $cache_file in #( 11389 */* | ?:*) 11390 mv -f confcache "$cache_file"$$ && 11391 mv -f "$cache_file"$$ "$cache_file" ;; #( 11392 *) 11393 mv -f confcache "$cache_file" ;; 11394 esac 11395 fi 11396 fi 11397 else 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11399$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11400 fi 11401fi 11402rm -f confcache 11403 11404test "x$prefix" = xNONE && prefix=$ac_default_prefix 11405# Let make expand exec_prefix. 11406test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11407 11408DEFS=-DHAVE_CONFIG_H 11409 11410ac_libobjs= 11411ac_ltlibobjs= 11412U= 11413for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11414 # 1. Remove the extension, and $U if already installed. 11415 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11416 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11417 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11418 # will be set to the directory where LIBOBJS objects are built. 11419 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11420 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11421done 11422LIBOBJS=$ac_libobjs 11423 11424LTLIBOBJS=$ac_ltlibobjs 11425 11426 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11428$as_echo_n "checking that generated files are newer than configure... " >&6; } 11429 if test -n "$am_sleep_pid"; then 11430 # Hide warnings about reused PIDs. 11431 wait $am_sleep_pid 2>/dev/null 11432 fi 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11434$as_echo "done" >&6; } 11435 if test -n "$EXEEXT"; then 11436 am__EXEEXT_TRUE= 11437 am__EXEEXT_FALSE='#' 11438else 11439 am__EXEEXT_TRUE='#' 11440 am__EXEEXT_FALSE= 11441fi 11442 11443if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11444 as_fn_error $? "conditional \"AMDEP\" was never defined. 11445Usually this means the macro was only invoked conditionally." "$LINENO" 5 11446fi 11447if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11448 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11449Usually this means the macro was only invoked conditionally." "$LINENO" 5 11450fi 11451 11452: "${CONFIG_STATUS=./config.status}" 11453ac_write_fail=0 11454ac_clean_files_save=$ac_clean_files 11455ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11456{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11457$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11458as_write_fail=0 11459cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11460#! $SHELL 11461# Generated by $as_me. 11462# Run this file to recreate the current configuration. 11463# Compiler output produced by configure, useful for debugging 11464# configure, is in config.log if it exists. 11465 11466debug=false 11467ac_cs_recheck=false 11468ac_cs_silent=false 11469 11470SHELL=\${CONFIG_SHELL-$SHELL} 11471export SHELL 11472_ASEOF 11473cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11474## -------------------- ## 11475## M4sh Initialization. ## 11476## -------------------- ## 11477 11478# Be more Bourne compatible 11479DUALCASE=1; export DUALCASE # for MKS sh 11480if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11481 emulate sh 11482 NULLCMD=: 11483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11484 # is contrary to our usage. Disable this feature. 11485 alias -g '${1+"$@"}'='"$@"' 11486 setopt NO_GLOB_SUBST 11487else 11488 case `(set -o) 2>/dev/null` in #( 11489 *posix*) : 11490 set -o posix ;; #( 11491 *) : 11492 ;; 11493esac 11494fi 11495 11496 11497as_nl=' 11498' 11499export as_nl 11500# Printing a long string crashes Solaris 7 /usr/bin/printf. 11501as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11504# Prefer a ksh shell builtin over an external printf program on Solaris, 11505# but without wasting forks for bash or zsh. 11506if test -z "$BASH_VERSION$ZSH_VERSION" \ 11507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11508 as_echo='print -r --' 11509 as_echo_n='print -rn --' 11510elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11511 as_echo='printf %s\n' 11512 as_echo_n='printf %s' 11513else 11514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11515 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11516 as_echo_n='/usr/ucb/echo -n' 11517 else 11518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11519 as_echo_n_body='eval 11520 arg=$1; 11521 case $arg in #( 11522 *"$as_nl"*) 11523 expr "X$arg" : "X\\(.*\\)$as_nl"; 11524 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11525 esac; 11526 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11527 ' 11528 export as_echo_n_body 11529 as_echo_n='sh -c $as_echo_n_body as_echo' 11530 fi 11531 export as_echo_body 11532 as_echo='sh -c $as_echo_body as_echo' 11533fi 11534 11535# The user is always right. 11536if test "${PATH_SEPARATOR+set}" != set; then 11537 PATH_SEPARATOR=: 11538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11539 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11540 PATH_SEPARATOR=';' 11541 } 11542fi 11543 11544 11545# IFS 11546# We need space, tab and new line, in precisely that order. Quoting is 11547# there to prevent editors from complaining about space-tab. 11548# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11549# splitting by setting IFS to empty value.) 11550IFS=" "" $as_nl" 11551 11552# Find who we are. Look in the path if we contain no directory separator. 11553as_myself= 11554case $0 in #(( 11555 *[\\/]* ) as_myself=$0 ;; 11556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11557for as_dir in $PATH 11558do 11559 IFS=$as_save_IFS 11560 test -z "$as_dir" && as_dir=. 11561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11562 done 11563IFS=$as_save_IFS 11564 11565 ;; 11566esac 11567# We did not find ourselves, most probably we were run as `sh COMMAND' 11568# in which case we are not to be found in the path. 11569if test "x$as_myself" = x; then 11570 as_myself=$0 11571fi 11572if test ! -f "$as_myself"; then 11573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11574 exit 1 11575fi 11576 11577# Unset variables that we do not need and which cause bugs (e.g. in 11578# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11579# suppresses any "Segmentation fault" message there. '((' could 11580# trigger a bug in pdksh 5.2.14. 11581for as_var in BASH_ENV ENV MAIL MAILPATH 11582do eval test x\${$as_var+set} = xset \ 11583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11584done 11585PS1='$ ' 11586PS2='> ' 11587PS4='+ ' 11588 11589# NLS nuisances. 11590LC_ALL=C 11591export LC_ALL 11592LANGUAGE=C 11593export LANGUAGE 11594 11595# CDPATH. 11596(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11597 11598 11599# as_fn_error STATUS ERROR [LINENO LOG_FD] 11600# ---------------------------------------- 11601# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11602# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11603# script with STATUS, using 1 if that was 0. 11604as_fn_error () 11605{ 11606 as_status=$1; test $as_status -eq 0 && as_status=1 11607 if test "$4"; then 11608 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11609 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11610 fi 11611 $as_echo "$as_me: error: $2" >&2 11612 as_fn_exit $as_status 11613} # as_fn_error 11614 11615 11616# as_fn_set_status STATUS 11617# ----------------------- 11618# Set $? to STATUS, without forking. 11619as_fn_set_status () 11620{ 11621 return $1 11622} # as_fn_set_status 11623 11624# as_fn_exit STATUS 11625# ----------------- 11626# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11627as_fn_exit () 11628{ 11629 set +e 11630 as_fn_set_status $1 11631 exit $1 11632} # as_fn_exit 11633 11634# as_fn_unset VAR 11635# --------------- 11636# Portably unset VAR. 11637as_fn_unset () 11638{ 11639 { eval $1=; unset $1;} 11640} 11641as_unset=as_fn_unset 11642# as_fn_append VAR VALUE 11643# ---------------------- 11644# Append the text in VALUE to the end of the definition contained in VAR. Take 11645# advantage of any shell optimizations that allow amortized linear growth over 11646# repeated appends, instead of the typical quadratic growth present in naive 11647# implementations. 11648if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11649 eval 'as_fn_append () 11650 { 11651 eval $1+=\$2 11652 }' 11653else 11654 as_fn_append () 11655 { 11656 eval $1=\$$1\$2 11657 } 11658fi # as_fn_append 11659 11660# as_fn_arith ARG... 11661# ------------------ 11662# Perform arithmetic evaluation on the ARGs, and store the result in the 11663# global $as_val. Take advantage of shells that can avoid forks. The arguments 11664# must be portable across $(()) and expr. 11665if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11666 eval 'as_fn_arith () 11667 { 11668 as_val=$(( $* )) 11669 }' 11670else 11671 as_fn_arith () 11672 { 11673 as_val=`expr "$@" || test $? -eq 1` 11674 } 11675fi # as_fn_arith 11676 11677 11678if expr a : '\(a\)' >/dev/null 2>&1 && 11679 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11680 as_expr=expr 11681else 11682 as_expr=false 11683fi 11684 11685if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11686 as_basename=basename 11687else 11688 as_basename=false 11689fi 11690 11691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11692 as_dirname=dirname 11693else 11694 as_dirname=false 11695fi 11696 11697as_me=`$as_basename -- "$0" || 11698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11699 X"$0" : 'X\(//\)$' \| \ 11700 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11701$as_echo X/"$0" | 11702 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11703 s//\1/ 11704 q 11705 } 11706 /^X\/\(\/\/\)$/{ 11707 s//\1/ 11708 q 11709 } 11710 /^X\/\(\/\).*/{ 11711 s//\1/ 11712 q 11713 } 11714 s/.*/./; q'` 11715 11716# Avoid depending upon Character Ranges. 11717as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11718as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11719as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11720as_cr_digits='0123456789' 11721as_cr_alnum=$as_cr_Letters$as_cr_digits 11722 11723ECHO_C= ECHO_N= ECHO_T= 11724case `echo -n x` in #((((( 11725-n*) 11726 case `echo 'xy\c'` in 11727 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11728 xy) ECHO_C='\c';; 11729 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11730 ECHO_T=' ';; 11731 esac;; 11732*) 11733 ECHO_N='-n';; 11734esac 11735 11736rm -f conf$$ conf$$.exe conf$$.file 11737if test -d conf$$.dir; then 11738 rm -f conf$$.dir/conf$$.file 11739else 11740 rm -f conf$$.dir 11741 mkdir conf$$.dir 2>/dev/null 11742fi 11743if (echo >conf$$.file) 2>/dev/null; then 11744 if ln -s conf$$.file conf$$ 2>/dev/null; then 11745 as_ln_s='ln -s' 11746 # ... but there are two gotchas: 11747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11749 # In both cases, we have to default to `cp -pR'. 11750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11751 as_ln_s='cp -pR' 11752 elif ln conf$$.file conf$$ 2>/dev/null; then 11753 as_ln_s=ln 11754 else 11755 as_ln_s='cp -pR' 11756 fi 11757else 11758 as_ln_s='cp -pR' 11759fi 11760rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11761rmdir conf$$.dir 2>/dev/null 11762 11763 11764# as_fn_mkdir_p 11765# ------------- 11766# Create "$as_dir" as a directory, including parents if necessary. 11767as_fn_mkdir_p () 11768{ 11769 11770 case $as_dir in #( 11771 -*) as_dir=./$as_dir;; 11772 esac 11773 test -d "$as_dir" || eval $as_mkdir_p || { 11774 as_dirs= 11775 while :; do 11776 case $as_dir in #( 11777 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11778 *) as_qdir=$as_dir;; 11779 esac 11780 as_dirs="'$as_qdir' $as_dirs" 11781 as_dir=`$as_dirname -- "$as_dir" || 11782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11783 X"$as_dir" : 'X\(//\)[^/]' \| \ 11784 X"$as_dir" : 'X\(//\)$' \| \ 11785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11786$as_echo X"$as_dir" | 11787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11788 s//\1/ 11789 q 11790 } 11791 /^X\(\/\/\)[^/].*/{ 11792 s//\1/ 11793 q 11794 } 11795 /^X\(\/\/\)$/{ 11796 s//\1/ 11797 q 11798 } 11799 /^X\(\/\).*/{ 11800 s//\1/ 11801 q 11802 } 11803 s/.*/./; q'` 11804 test -d "$as_dir" && break 11805 done 11806 test -z "$as_dirs" || eval "mkdir $as_dirs" 11807 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11808 11809 11810} # as_fn_mkdir_p 11811if mkdir -p . 2>/dev/null; then 11812 as_mkdir_p='mkdir -p "$as_dir"' 11813else 11814 test -d ./-p && rmdir ./-p 11815 as_mkdir_p=false 11816fi 11817 11818 11819# as_fn_executable_p FILE 11820# ----------------------- 11821# Test if FILE is an executable regular file. 11822as_fn_executable_p () 11823{ 11824 test -f "$1" && test -x "$1" 11825} # as_fn_executable_p 11826as_test_x='test -x' 11827as_executable_p=as_fn_executable_p 11828 11829# Sed expression to map a string onto a valid CPP name. 11830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11831 11832# Sed expression to map a string onto a valid variable name. 11833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11834 11835 11836exec 6>&1 11837## ----------------------------------- ## 11838## Main body of $CONFIG_STATUS script. ## 11839## ----------------------------------- ## 11840_ASEOF 11841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11842 11843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11844# Save the log message, to keep $0 and so on meaningful, and to 11845# report actual input values of CONFIG_FILES etc. instead of their 11846# values after options handling. 11847ac_log=" 11848This file was extended by proxymngr $as_me 1.0.4, which was 11849generated by GNU Autoconf 2.69. Invocation command line was 11850 11851 CONFIG_FILES = $CONFIG_FILES 11852 CONFIG_HEADERS = $CONFIG_HEADERS 11853 CONFIG_LINKS = $CONFIG_LINKS 11854 CONFIG_COMMANDS = $CONFIG_COMMANDS 11855 $ $0 $@ 11856 11857on `(hostname || uname -n) 2>/dev/null | sed 1q` 11858" 11859 11860_ACEOF 11861 11862case $ac_config_files in *" 11863"*) set x $ac_config_files; shift; ac_config_files=$*;; 11864esac 11865 11866case $ac_config_headers in *" 11867"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11868esac 11869 11870 11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11872# Files that config.status was made for. 11873config_files="$ac_config_files" 11874config_headers="$ac_config_headers" 11875config_commands="$ac_config_commands" 11876 11877_ACEOF 11878 11879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11880ac_cs_usage="\ 11881\`$as_me' instantiates files and other configuration actions 11882from templates according to the current configuration. Unless the files 11883and actions are specified as TAGs, all are instantiated by default. 11884 11885Usage: $0 [OPTION]... [TAG]... 11886 11887 -h, --help print this help, then exit 11888 -V, --version print version number and configuration settings, then exit 11889 --config print configuration, then exit 11890 -q, --quiet, --silent 11891 do not print progress messages 11892 -d, --debug don't remove temporary files 11893 --recheck update $as_me by reconfiguring in the same conditions 11894 --file=FILE[:TEMPLATE] 11895 instantiate the configuration file FILE 11896 --header=FILE[:TEMPLATE] 11897 instantiate the configuration header FILE 11898 11899Configuration files: 11900$config_files 11901 11902Configuration headers: 11903$config_headers 11904 11905Configuration commands: 11906$config_commands 11907 11908Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11909 11910_ACEOF 11911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11912ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11913ac_cs_version="\\ 11914proxymngr config.status 1.0.4 11915configured by $0, generated by GNU Autoconf 2.69, 11916 with options \\"\$ac_cs_config\\" 11917 11918Copyright (C) 2012 Free Software Foundation, Inc. 11919This config.status script is free software; the Free Software Foundation 11920gives unlimited permission to copy, distribute and modify it." 11921 11922ac_pwd='$ac_pwd' 11923srcdir='$srcdir' 11924INSTALL='$INSTALL' 11925MKDIR_P='$MKDIR_P' 11926AWK='$AWK' 11927test -n "\$AWK" || AWK=awk 11928_ACEOF 11929 11930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11931# The default lists apply if the user does not specify any file. 11932ac_need_defaults=: 11933while test $# != 0 11934do 11935 case $1 in 11936 --*=?*) 11937 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11939 ac_shift=: 11940 ;; 11941 --*=) 11942 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11943 ac_optarg= 11944 ac_shift=: 11945 ;; 11946 *) 11947 ac_option=$1 11948 ac_optarg=$2 11949 ac_shift=shift 11950 ;; 11951 esac 11952 11953 case $ac_option in 11954 # Handling of the options. 11955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11956 ac_cs_recheck=: ;; 11957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11958 $as_echo "$ac_cs_version"; exit ;; 11959 --config | --confi | --conf | --con | --co | --c ) 11960 $as_echo "$ac_cs_config"; exit ;; 11961 --debug | --debu | --deb | --de | --d | -d ) 11962 debug=: ;; 11963 --file | --fil | --fi | --f ) 11964 $ac_shift 11965 case $ac_optarg in 11966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11967 '') as_fn_error $? "missing file argument" ;; 11968 esac 11969 as_fn_append CONFIG_FILES " '$ac_optarg'" 11970 ac_need_defaults=false;; 11971 --header | --heade | --head | --hea ) 11972 $ac_shift 11973 case $ac_optarg in 11974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11975 esac 11976 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11977 ac_need_defaults=false;; 11978 --he | --h) 11979 # Conflict between --help and --header 11980 as_fn_error $? "ambiguous option: \`$1' 11981Try \`$0 --help' for more information.";; 11982 --help | --hel | -h ) 11983 $as_echo "$ac_cs_usage"; exit ;; 11984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11985 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11986 ac_cs_silent=: ;; 11987 11988 # This is an error. 11989 -*) as_fn_error $? "unrecognized option: \`$1' 11990Try \`$0 --help' for more information." ;; 11991 11992 *) as_fn_append ac_config_targets " $1" 11993 ac_need_defaults=false ;; 11994 11995 esac 11996 shift 11997done 11998 11999ac_configure_extra_args= 12000 12001if $ac_cs_silent; then 12002 exec 6>/dev/null 12003 ac_configure_extra_args="$ac_configure_extra_args --silent" 12004fi 12005 12006_ACEOF 12007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12008if \$ac_cs_recheck; then 12009 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12010 shift 12011 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12012 CONFIG_SHELL='$SHELL' 12013 export CONFIG_SHELL 12014 exec "\$@" 12015fi 12016 12017_ACEOF 12018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12019exec 5>>config.log 12020{ 12021 echo 12022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12023## Running $as_me. ## 12024_ASBOX 12025 $as_echo "$ac_log" 12026} >&5 12027 12028_ACEOF 12029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12030# 12031# INIT-COMMANDS 12032# 12033AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12034 12035_ACEOF 12036 12037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12038 12039# Handling of arguments. 12040for ac_config_target in $ac_config_targets 12041do 12042 case $ac_config_target in 12043 "xconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS xconfig.h" ;; 12044 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12046 12047 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12048 esac 12049done 12050 12051 12052# If the user did not use the arguments to specify the items to instantiate, 12053# then the envvar interface is used. Set only those that are not. 12054# We use the long form for the default assignment because of an extremely 12055# bizarre bug on SunOS 4.1.3. 12056if $ac_need_defaults; then 12057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12060fi 12061 12062# Have a temporary directory for convenience. Make it in the build tree 12063# simply because there is no reason against having it here, and in addition, 12064# creating and moving files from /tmp can sometimes cause problems. 12065# Hook for its removal unless debugging. 12066# Note that there is a small window in which the directory will not be cleaned: 12067# after its creation but before its name has been assigned to `$tmp'. 12068$debug || 12069{ 12070 tmp= ac_tmp= 12071 trap 'exit_status=$? 12072 : "${ac_tmp:=$tmp}" 12073 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12074' 0 12075 trap 'as_fn_exit 1' 1 2 13 15 12076} 12077# Create a (secure) tmp directory for tmp files. 12078 12079{ 12080 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12081 test -d "$tmp" 12082} || 12083{ 12084 tmp=./conf$$-$RANDOM 12085 (umask 077 && mkdir "$tmp") 12086} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12087ac_tmp=$tmp 12088 12089# Set up the scripts for CONFIG_FILES section. 12090# No need to generate them if there are no CONFIG_FILES. 12091# This happens for instance with `./config.status config.h'. 12092if test -n "$CONFIG_FILES"; then 12093 12094 12095ac_cr=`echo X | tr X '\015'` 12096# On cygwin, bash can eat \r inside `` if the user requested igncr. 12097# But we know of no other shell where ac_cr would be empty at this 12098# point, so we can use a bashism as a fallback. 12099if test "x$ac_cr" = x; then 12100 eval ac_cr=\$\'\\r\' 12101fi 12102ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12103if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12104 ac_cs_awk_cr='\\r' 12105else 12106 ac_cs_awk_cr=$ac_cr 12107fi 12108 12109echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12110_ACEOF 12111 12112 12113{ 12114 echo "cat >conf$$subs.awk <<_ACEOF" && 12115 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12116 echo "_ACEOF" 12117} >conf$$subs.sh || 12118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12119ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12120ac_delim='%!_!# ' 12121for ac_last_try in false false false false false :; do 12122 . ./conf$$subs.sh || 12123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12124 12125 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12126 if test $ac_delim_n = $ac_delim_num; then 12127 break 12128 elif $ac_last_try; then 12129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12130 else 12131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12132 fi 12133done 12134rm -f conf$$subs.sh 12135 12136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12137cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12138_ACEOF 12139sed -n ' 12140h 12141s/^/S["/; s/!.*/"]=/ 12142p 12143g 12144s/^[^!]*!// 12145:repl 12146t repl 12147s/'"$ac_delim"'$// 12148t delim 12149:nl 12150h 12151s/\(.\{148\}\)..*/\1/ 12152t more1 12153s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12154p 12155n 12156b repl 12157:more1 12158s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12159p 12160g 12161s/.\{148\}// 12162t nl 12163:delim 12164h 12165s/\(.\{148\}\)..*/\1/ 12166t more2 12167s/["\\]/\\&/g; s/^/"/; s/$/"/ 12168p 12169b 12170:more2 12171s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12172p 12173g 12174s/.\{148\}// 12175t delim 12176' <conf$$subs.awk | sed ' 12177/^[^""]/{ 12178 N 12179 s/\n// 12180} 12181' >>$CONFIG_STATUS || ac_write_fail=1 12182rm -f conf$$subs.awk 12183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12184_ACAWK 12185cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12186 for (key in S) S_is_set[key] = 1 12187 FS = "" 12188 12189} 12190{ 12191 line = $ 0 12192 nfields = split(line, field, "@") 12193 substed = 0 12194 len = length(field[1]) 12195 for (i = 2; i < nfields; i++) { 12196 key = field[i] 12197 keylen = length(key) 12198 if (S_is_set[key]) { 12199 value = S[key] 12200 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12201 len += length(value) + length(field[++i]) 12202 substed = 1 12203 } else 12204 len += 1 + keylen 12205 } 12206 12207 print line 12208} 12209 12210_ACAWK 12211_ACEOF 12212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12213if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12214 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12215else 12216 cat 12217fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12218 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12219_ACEOF 12220 12221# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12222# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12223# trailing colons and then remove the whole line if VPATH becomes empty 12224# (actually we leave an empty line to preserve line numbers). 12225if test "x$srcdir" = x.; then 12226 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12227h 12228s/// 12229s/^/:/ 12230s/[ ]*$/:/ 12231s/:\$(srcdir):/:/g 12232s/:\${srcdir}:/:/g 12233s/:@srcdir@:/:/g 12234s/^:*// 12235s/:*$// 12236x 12237s/\(=[ ]*\).*/\1/ 12238G 12239s/\n// 12240s/^[^=]*=[ ]*$// 12241}' 12242fi 12243 12244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12245fi # test -n "$CONFIG_FILES" 12246 12247# Set up the scripts for CONFIG_HEADERS section. 12248# No need to generate them if there are no CONFIG_HEADERS. 12249# This happens for instance with `./config.status Makefile'. 12250if test -n "$CONFIG_HEADERS"; then 12251cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12252BEGIN { 12253_ACEOF 12254 12255# Transform confdefs.h into an awk script `defines.awk', embedded as 12256# here-document in config.status, that substitutes the proper values into 12257# config.h.in to produce config.h. 12258 12259# Create a delimiter string that does not exist in confdefs.h, to ease 12260# handling of long lines. 12261ac_delim='%!_!# ' 12262for ac_last_try in false false :; do 12263 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12264 if test -z "$ac_tt"; then 12265 break 12266 elif $ac_last_try; then 12267 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12268 else 12269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12270 fi 12271done 12272 12273# For the awk script, D is an array of macro values keyed by name, 12274# likewise P contains macro parameters if any. Preserve backslash 12275# newline sequences. 12276 12277ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12278sed -n ' 12279s/.\{148\}/&'"$ac_delim"'/g 12280t rset 12281:rset 12282s/^[ ]*#[ ]*define[ ][ ]*/ / 12283t def 12284d 12285:def 12286s/\\$// 12287t bsnl 12288s/["\\]/\\&/g 12289s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12290D["\1"]=" \3"/p 12291s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12292d 12293:bsnl 12294s/["\\]/\\&/g 12295s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12296D["\1"]=" \3\\\\\\n"\\/p 12297t cont 12298s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12299t cont 12300d 12301:cont 12302n 12303s/.\{148\}/&'"$ac_delim"'/g 12304t clear 12305:clear 12306s/\\$// 12307t bsnlc 12308s/["\\]/\\&/g; s/^/"/; s/$/"/p 12309d 12310:bsnlc 12311s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12312b cont 12313' <confdefs.h | sed ' 12314s/'"$ac_delim"'/"\\\ 12315"/g' >>$CONFIG_STATUS || ac_write_fail=1 12316 12317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12318 for (key in D) D_is_set[key] = 1 12319 FS = "" 12320} 12321/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12322 line = \$ 0 12323 split(line, arg, " ") 12324 if (arg[1] == "#") { 12325 defundef = arg[2] 12326 mac1 = arg[3] 12327 } else { 12328 defundef = substr(arg[1], 2) 12329 mac1 = arg[2] 12330 } 12331 split(mac1, mac2, "(") #) 12332 macro = mac2[1] 12333 prefix = substr(line, 1, index(line, defundef) - 1) 12334 if (D_is_set[macro]) { 12335 # Preserve the white space surrounding the "#". 12336 print prefix "define", macro P[macro] D[macro] 12337 next 12338 } else { 12339 # Replace #undef with comments. This is necessary, for example, 12340 # in the case of _POSIX_SOURCE, which is predefined and required 12341 # on some systems where configure will not decide to define it. 12342 if (defundef == "undef") { 12343 print "/*", prefix defundef, macro, "*/" 12344 next 12345 } 12346 } 12347} 12348{ print } 12349_ACAWK 12350_ACEOF 12351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12352 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12353fi # test -n "$CONFIG_HEADERS" 12354 12355 12356eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12357shift 12358for ac_tag 12359do 12360 case $ac_tag in 12361 :[FHLC]) ac_mode=$ac_tag; continue;; 12362 esac 12363 case $ac_mode$ac_tag in 12364 :[FHL]*:*);; 12365 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12366 :[FH]-) ac_tag=-:-;; 12367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12368 esac 12369 ac_save_IFS=$IFS 12370 IFS=: 12371 set x $ac_tag 12372 IFS=$ac_save_IFS 12373 shift 12374 ac_file=$1 12375 shift 12376 12377 case $ac_mode in 12378 :L) ac_source=$1;; 12379 :[FH]) 12380 ac_file_inputs= 12381 for ac_f 12382 do 12383 case $ac_f in 12384 -) ac_f="$ac_tmp/stdin";; 12385 *) # Look for the file first in the build tree, then in the source tree 12386 # (if the path is not absolute). The absolute path cannot be DOS-style, 12387 # because $ac_f cannot contain `:'. 12388 test -f "$ac_f" || 12389 case $ac_f in 12390 [\\/$]*) false;; 12391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12392 esac || 12393 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12394 esac 12395 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12396 as_fn_append ac_file_inputs " '$ac_f'" 12397 done 12398 12399 # Let's still pretend it is `configure' which instantiates (i.e., don't 12400 # use $as_me), people would be surprised to read: 12401 # /* config.h. Generated by config.status. */ 12402 configure_input='Generated from '` 12403 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12404 `' by configure.' 12405 if test x"$ac_file" != x-; then 12406 configure_input="$ac_file. $configure_input" 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12408$as_echo "$as_me: creating $ac_file" >&6;} 12409 fi 12410 # Neutralize special characters interpreted by sed in replacement strings. 12411 case $configure_input in #( 12412 *\&* | *\|* | *\\* ) 12413 ac_sed_conf_input=`$as_echo "$configure_input" | 12414 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12415 *) ac_sed_conf_input=$configure_input;; 12416 esac 12417 12418 case $ac_tag in 12419 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12421 esac 12422 ;; 12423 esac 12424 12425 ac_dir=`$as_dirname -- "$ac_file" || 12426$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12427 X"$ac_file" : 'X\(//\)[^/]' \| \ 12428 X"$ac_file" : 'X\(//\)$' \| \ 12429 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12430$as_echo X"$ac_file" | 12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\(\/\/\)[^/].*/{ 12436 s//\1/ 12437 q 12438 } 12439 /^X\(\/\/\)$/{ 12440 s//\1/ 12441 q 12442 } 12443 /^X\(\/\).*/{ 12444 s//\1/ 12445 q 12446 } 12447 s/.*/./; q'` 12448 as_dir="$ac_dir"; as_fn_mkdir_p 12449 ac_builddir=. 12450 12451case "$ac_dir" in 12452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12453*) 12454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12455 # A ".." for each directory in $ac_dir_suffix. 12456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12457 case $ac_top_builddir_sub in 12458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12460 esac ;; 12461esac 12462ac_abs_top_builddir=$ac_pwd 12463ac_abs_builddir=$ac_pwd$ac_dir_suffix 12464# for backward compatibility: 12465ac_top_builddir=$ac_top_build_prefix 12466 12467case $srcdir in 12468 .) # We are building in place. 12469 ac_srcdir=. 12470 ac_top_srcdir=$ac_top_builddir_sub 12471 ac_abs_top_srcdir=$ac_pwd ;; 12472 [\\/]* | ?:[\\/]* ) # Absolute name. 12473 ac_srcdir=$srcdir$ac_dir_suffix; 12474 ac_top_srcdir=$srcdir 12475 ac_abs_top_srcdir=$srcdir ;; 12476 *) # Relative name. 12477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12478 ac_top_srcdir=$ac_top_build_prefix$srcdir 12479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12480esac 12481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12482 12483 12484 case $ac_mode in 12485 :F) 12486 # 12487 # CONFIG_FILE 12488 # 12489 12490 case $INSTALL in 12491 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12492 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12493 esac 12494 ac_MKDIR_P=$MKDIR_P 12495 case $MKDIR_P in 12496 [\\/$]* | ?:[\\/]* ) ;; 12497 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12498 esac 12499_ACEOF 12500 12501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12502# If the template does not know about datarootdir, expand it. 12503# FIXME: This hack should be removed a few years after 2.60. 12504ac_datarootdir_hack=; ac_datarootdir_seen= 12505ac_sed_dataroot=' 12506/datarootdir/ { 12507 p 12508 q 12509} 12510/@datadir@/p 12511/@docdir@/p 12512/@infodir@/p 12513/@localedir@/p 12514/@mandir@/p' 12515case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12516*datarootdir*) ac_datarootdir_seen=yes;; 12517*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12519$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12520_ACEOF 12521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12522 ac_datarootdir_hack=' 12523 s&@datadir@&$datadir&g 12524 s&@docdir@&$docdir&g 12525 s&@infodir@&$infodir&g 12526 s&@localedir@&$localedir&g 12527 s&@mandir@&$mandir&g 12528 s&\\\${datarootdir}&$datarootdir&g' ;; 12529esac 12530_ACEOF 12531 12532# Neutralize VPATH when `$srcdir' = `.'. 12533# Shell code in configure.ac might set extrasub. 12534# FIXME: do we really want to maintain this feature? 12535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12536ac_sed_extra="$ac_vpsub 12537$extrasub 12538_ACEOF 12539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12540:t 12541/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12542s|@configure_input@|$ac_sed_conf_input|;t t 12543s&@top_builddir@&$ac_top_builddir_sub&;t t 12544s&@top_build_prefix@&$ac_top_build_prefix&;t t 12545s&@srcdir@&$ac_srcdir&;t t 12546s&@abs_srcdir@&$ac_abs_srcdir&;t t 12547s&@top_srcdir@&$ac_top_srcdir&;t t 12548s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12549s&@builddir@&$ac_builddir&;t t 12550s&@abs_builddir@&$ac_abs_builddir&;t t 12551s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12552s&@INSTALL@&$ac_INSTALL&;t t 12553s&@MKDIR_P@&$ac_MKDIR_P&;t t 12554$ac_datarootdir_hack 12555" 12556eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12557 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12558 12559test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12560 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12562 "$ac_tmp/out"`; test -z "$ac_out"; } && 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12564which seems to be undefined. Please make sure it is defined" >&5 12565$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12566which seems to be undefined. Please make sure it is defined" >&2;} 12567 12568 rm -f "$ac_tmp/stdin" 12569 case $ac_file in 12570 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12571 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12572 esac \ 12573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12574 ;; 12575 :H) 12576 # 12577 # CONFIG_HEADER 12578 # 12579 if test x"$ac_file" != x-; then 12580 { 12581 $as_echo "/* $configure_input */" \ 12582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12583 } >"$ac_tmp/config.h" \ 12584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12585 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12587$as_echo "$as_me: $ac_file is unchanged" >&6;} 12588 else 12589 rm -f "$ac_file" 12590 mv "$ac_tmp/config.h" "$ac_file" \ 12591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12592 fi 12593 else 12594 $as_echo "/* $configure_input */" \ 12595 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12596 || as_fn_error $? "could not create -" "$LINENO" 5 12597 fi 12598# Compute "$ac_file"'s index in $config_headers. 12599_am_arg="$ac_file" 12600_am_stamp_count=1 12601for _am_header in $config_headers :; do 12602 case $_am_header in 12603 $_am_arg | $_am_arg:* ) 12604 break ;; 12605 * ) 12606 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12607 esac 12608done 12609echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12610$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12611 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12612 X"$_am_arg" : 'X\(//\)$' \| \ 12613 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12614$as_echo X"$_am_arg" | 12615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\/\)[^/].*/{ 12620 s//\1/ 12621 q 12622 } 12623 /^X\(\/\/\)$/{ 12624 s//\1/ 12625 q 12626 } 12627 /^X\(\/\).*/{ 12628 s//\1/ 12629 q 12630 } 12631 s/.*/./; q'`/stamp-h$_am_stamp_count 12632 ;; 12633 12634 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12635$as_echo "$as_me: executing $ac_file commands" >&6;} 12636 ;; 12637 esac 12638 12639 12640 case $ac_file$ac_mode in 12641 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12642 # Older Autoconf quotes --file arguments for eval, but not when files 12643 # are listed without --file. Let's play safe and only enable the eval 12644 # if we detect the quoting. 12645 case $CONFIG_FILES in 12646 *\'*) eval set x "$CONFIG_FILES" ;; 12647 *) set x $CONFIG_FILES ;; 12648 esac 12649 shift 12650 for mf 12651 do 12652 # Strip MF so we end up with the name of the file. 12653 mf=`echo "$mf" | sed -e 's/:.*$//'` 12654 # Check whether this is an Automake generated Makefile or not. 12655 # We used to match only the files named 'Makefile.in', but 12656 # some people rename them; so instead we look at the file content. 12657 # Grep'ing the first line is not enough: some people post-process 12658 # each Makefile.in and add a new line on top of each file to say so. 12659 # Grep'ing the whole file is not good either: AIX grep has a line 12660 # limit of 2048, but all sed's we know have understand at least 4000. 12661 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12662 dirpart=`$as_dirname -- "$mf" || 12663$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12664 X"$mf" : 'X\(//\)[^/]' \| \ 12665 X"$mf" : 'X\(//\)$' \| \ 12666 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12667$as_echo X"$mf" | 12668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12669 s//\1/ 12670 q 12671 } 12672 /^X\(\/\/\)[^/].*/{ 12673 s//\1/ 12674 q 12675 } 12676 /^X\(\/\/\)$/{ 12677 s//\1/ 12678 q 12679 } 12680 /^X\(\/\).*/{ 12681 s//\1/ 12682 q 12683 } 12684 s/.*/./; q'` 12685 else 12686 continue 12687 fi 12688 # Extract the definition of DEPDIR, am__include, and am__quote 12689 # from the Makefile without running 'make'. 12690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12691 test -z "$DEPDIR" && continue 12692 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12693 test -z "$am__include" && continue 12694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12695 # Find all dependency output files, they are included files with 12696 # $(DEPDIR) in their names. We invoke sed twice because it is the 12697 # simplest approach to changing $(DEPDIR) to its actual value in the 12698 # expansion. 12699 for file in `sed -n " 12700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12702 # Make sure the directory exists. 12703 test -f "$dirpart/$file" && continue 12704 fdir=`$as_dirname -- "$file" || 12705$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12706 X"$file" : 'X\(//\)[^/]' \| \ 12707 X"$file" : 'X\(//\)$' \| \ 12708 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12709$as_echo X"$file" | 12710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12711 s//\1/ 12712 q 12713 } 12714 /^X\(\/\/\)[^/].*/{ 12715 s//\1/ 12716 q 12717 } 12718 /^X\(\/\/\)$/{ 12719 s//\1/ 12720 q 12721 } 12722 /^X\(\/\).*/{ 12723 s//\1/ 12724 q 12725 } 12726 s/.*/./; q'` 12727 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12728 # echo "creating $dirpart/$file" 12729 echo '# dummy' > "$dirpart/$file" 12730 done 12731 done 12732} 12733 ;; 12734 12735 esac 12736done # for ac_tag 12737 12738 12739as_fn_exit 0 12740_ACEOF 12741ac_clean_files=$ac_clean_files_save 12742 12743test $ac_write_fail = 0 || 12744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12745 12746 12747# configure is writing to config.log, and then calls config.status. 12748# config.status does its own redirection, appending to config.log. 12749# Unfortunately, on DOS this fails, as config.log is still kept open 12750# by configure, so config.status won't be able to write to it; its 12751# output is simply discarded. So we exec the FD to /dev/null, 12752# effectively closing config.log, so it can be properly (re)opened and 12753# appended to by config.status. When coming back to configure, we 12754# need to make the FD available again. 12755if test "$no_create" != yes; then 12756 ac_cs_success=: 12757 ac_config_status_args= 12758 test "$silent" = yes && 12759 ac_config_status_args="$ac_config_status_args --quiet" 12760 exec 5>/dev/null 12761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12762 exec 5>>config.log 12763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12764 # would make configure fail if this is the last instruction. 12765 $ac_cs_success || as_fn_exit 1 12766fi 12767if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12769$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12770fi 12771 12772