configure revision d73e0b87
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xinit 1.4.0. 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='xinit' 583PACKAGE_TARNAME='xinit' 584PACKAGE_VERSION='1.4.0' 585PACKAGE_STRING='xinit 1.4.0' 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 630XINITDIR 631XINIT 632XAUTH 633XSERVER 634XTERM 635XCLOCK 636TWM 637XMODMAP 638XRDB 639XCONFIGFILEMAN 640XCONFIGFILE 641XSERVERNAME 642SHELL_CMD 643STARTX_COOKIE_FLAGS 644OPENSSL 645MCOOKIE 646XINIT_LIBS 647XINIT_CFLAGS 648LAUNCHAGENT_XSERVER_FALSE 649LAUNCHAGENT_XSERVER_TRUE 650TIGER_LAUNCHD_FALSE 651TIGER_LAUNCHD_TRUE 652LAUNCHD_FALSE 653LAUNCHD_TRUE 654launchagentxserver 655bundleidprefix 656launchdaemonsdir 657launchagentsdir 658LAUNCHD 659TRADITIONALCPPFLAGS 660RAWCPPFLAGS 661RAWCPP 662MAN_SUBSTS 663XORG_MAN_PAGE 664ADMIN_MAN_DIR 665DRIVER_MAN_DIR 666MISC_MAN_DIR 667FILE_MAN_DIR 668LIB_MAN_DIR 669APP_MAN_DIR 670ADMIN_MAN_SUFFIX 671DRIVER_MAN_SUFFIX 672MISC_MAN_SUFFIX 673FILE_MAN_SUFFIX 674LIB_MAN_SUFFIX 675APP_MAN_SUFFIX 676SED 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685INSTALL_CMD 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689CHANGELOG_CMD 690STRICT_CFLAGS 691CWARNFLAGS 692BASE_CFLAGS 693EGREP 694GREP 695CPP 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713AM_BACKSLASH 714AM_DEFAULT_VERBOSITY 715AM_DEFAULT_V 716AM_V 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_dependency_tracking 783enable_selective_werror 784enable_strict_compilation 785with_xrdb 786with_xmodmap 787with_twm 788with_xclock 789with_xterm 790with_xserver 791with_xauth 792with_xinit 793with_xinitdir 794with_launchd 795with_launchagents_dir 796with_launchagent_xserver 797with_launchdaemons_dir 798with_launchd_id_prefix 799with_bundle_id_prefix 800' 801 ac_precious_vars='build_alias 802host_alias 803target_alias 804CC 805CFLAGS 806LDFLAGS 807LIBS 808CPPFLAGS 809CPP 810PKG_CONFIG 811PKG_CONFIG_PATH 812PKG_CONFIG_LIBDIR 813XINIT_CFLAGS 814XINIT_LIBS' 815 816 817# Initialize some variables set by options. 818ac_init_help= 819ac_init_version=false 820ac_unrecognized_opts= 821ac_unrecognized_sep= 822# The variables have the same names as the options, with 823# dashes changed to underlines. 824cache_file=/dev/null 825exec_prefix=NONE 826no_create= 827no_recursion= 828prefix=NONE 829program_prefix=NONE 830program_suffix=NONE 831program_transform_name=s,x,x, 832silent= 833site= 834srcdir= 835verbose= 836x_includes=NONE 837x_libraries=NONE 838 839# Installation directory options. 840# These are left unexpanded so users can "make install exec_prefix=/foo" 841# and all the variables that are supposed to be based on exec_prefix 842# by default will actually change. 843# Use braces instead of parens because sh, perl, etc. also accept them. 844# (The list follows the same order as the GNU Coding Standards.) 845bindir='${exec_prefix}/bin' 846sbindir='${exec_prefix}/sbin' 847libexecdir='${exec_prefix}/libexec' 848datarootdir='${prefix}/share' 849datadir='${datarootdir}' 850sysconfdir='${prefix}/etc' 851sharedstatedir='${prefix}/com' 852localstatedir='${prefix}/var' 853includedir='${prefix}/include' 854oldincludedir='/usr/include' 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856infodir='${datarootdir}/info' 857htmldir='${docdir}' 858dvidir='${docdir}' 859pdfdir='${docdir}' 860psdir='${docdir}' 861libdir='${exec_prefix}/lib' 862localedir='${datarootdir}/locale' 863mandir='${datarootdir}/man' 864 865ac_prev= 866ac_dashdash= 867for ac_option 868do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298$as_echo X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures xinit 1.4.0 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408_ACEOF 1409 1410 cat <<\_ACEOF 1411 1412Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420_ACEOF 1421fi 1422 1423if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of xinit 1.4.0:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-silent-rules less verbose build output (undo: "make V=1") 1434 --disable-silent-rules verbose build output (undo: "make V=0") 1435 --enable-dependency-tracking 1436 do not reject slow dependency extractors 1437 --disable-dependency-tracking 1438 speeds up one-time build 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-xrdb=XRDB Path to xrdb 1450 --with-xmodmap=XMODMAP Path to xmodmap 1451 --with-twm=TWM Path to twm 1452 --with-xclock=XCLOCK Path to xclock 1453 --with-xterm=XTERM Path to xterm 1454 --with-xserver=XSERVER Path to default X server 1455 --with-xauth=XAUTH Path to xauth 1456 --with-xinit=XINIT Path to xinit 1457 --with-xinitdir=XINITDIR 1458 Path to xinitdir 1459 --with-launchd Build with support for Apple's launchd (default: 1460 auto) 1461 --with-launchagents-dir=PATH 1462 Path to launchd's LaunchAgents directory (default: 1463 /Library/LaunchAgents) 1464 --with-launchagent-xserver=PATH 1465 Path to the X server which the LaunchAgent should 1466 start (if not provided, let startx decide)" 1467 --with-launchdaemons-dir=PATH 1468 Path to launchd's LaunchDaemonss directory (default: 1469 /Library/LaunchDaemons) 1470 --with-launchd-id-prefix=PATH 1471 Deprecated: Use --with-bundle-id-prefix. 1472 --with-bundle-id-prefix=PATH 1473 Prefix to use for bundle identifiers (default: 1474 org.x) 1475 1476Some influential environment variables: 1477 CC C compiler command 1478 CFLAGS C compiler flags 1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480 nonstandard directory <lib dir> 1481 LIBS libraries to pass to the linker, e.g. -l<library> 1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1483 you have headers in a nonstandard directory <include dir> 1484 CPP C preprocessor 1485 PKG_CONFIG path to pkg-config utility 1486 PKG_CONFIG_PATH 1487 directories to add to pkg-config's search path 1488 PKG_CONFIG_LIBDIR 1489 path overriding pkg-config's built-in search path 1490 XINIT_CFLAGS 1491 C compiler flags for XINIT, overriding pkg-config 1492 XINIT_LIBS linker flags for XINIT, overriding pkg-config 1493 1494Use these variables to override the choices made by `configure' or to help 1495it to find libraries and programs with nonstandard names/locations. 1496 1497Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1498_ACEOF 1499ac_status=$? 1500fi 1501 1502if test "$ac_init_help" = "recursive"; then 1503 # If there are subdirs, report their specific --help. 1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1505 test -d "$ac_dir" || 1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1507 continue 1508 ac_builddir=. 1509 1510case "$ac_dir" in 1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512*) 1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1514 # A ".." for each directory in $ac_dir_suffix. 1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1516 case $ac_top_builddir_sub in 1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1519 esac ;; 1520esac 1521ac_abs_top_builddir=$ac_pwd 1522ac_abs_builddir=$ac_pwd$ac_dir_suffix 1523# for backward compatibility: 1524ac_top_builddir=$ac_top_build_prefix 1525 1526case $srcdir in 1527 .) # We are building in place. 1528 ac_srcdir=. 1529 ac_top_srcdir=$ac_top_builddir_sub 1530 ac_abs_top_srcdir=$ac_pwd ;; 1531 [\\/]* | ?:[\\/]* ) # Absolute name. 1532 ac_srcdir=$srcdir$ac_dir_suffix; 1533 ac_top_srcdir=$srcdir 1534 ac_abs_top_srcdir=$srcdir ;; 1535 *) # Relative name. 1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1537 ac_top_srcdir=$ac_top_build_prefix$srcdir 1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1539esac 1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1541 1542 cd "$ac_dir" || { ac_status=$?; continue; } 1543 # Check for guested configure. 1544 if test -f "$ac_srcdir/configure.gnu"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1547 elif test -f "$ac_srcdir/configure"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure" --help=recursive 1550 else 1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1552 fi || ac_status=$? 1553 cd "$ac_pwd" || { ac_status=$?; break; } 1554 done 1555fi 1556 1557test -n "$ac_init_help" && exit $ac_status 1558if $ac_init_version; then 1559 cat <<\_ACEOF 1560xinit configure 1.4.0 1561generated by GNU Autoconf 2.69 1562 1563Copyright (C) 2012 Free Software Foundation, Inc. 1564This configure script is free software; the Free Software Foundation 1565gives unlimited permission to copy, distribute and modify it. 1566_ACEOF 1567 exit 1568fi 1569 1570## ------------------------ ## 1571## Autoconf initialization. ## 1572## ------------------------ ## 1573 1574# ac_fn_c_try_compile LINENO 1575# -------------------------- 1576# Try to compile conftest.$ac_ext, and return whether this succeeded. 1577ac_fn_c_try_compile () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 rm -f conftest.$ac_objext 1581 if { { ac_try="$ac_compile" 1582case "(($ac_try" in 1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1584 *) ac_try_echo=$ac_try;; 1585esac 1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1587$as_echo "$ac_try_echo"; } >&5 1588 (eval "$ac_compile") 2>conftest.err 1589 ac_status=$? 1590 if test -s conftest.err; then 1591 grep -v '^ *+' conftest.err >conftest.er1 1592 cat conftest.er1 >&5 1593 mv -f conftest.er1 conftest.err 1594 fi 1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1596 test $ac_status = 0; } && { 1597 test -z "$ac_c_werror_flag" || 1598 test ! -s conftest.err 1599 } && test -s conftest.$ac_objext; then : 1600 ac_retval=0 1601else 1602 $as_echo "$as_me: failed program was:" >&5 1603sed 's/^/| /' conftest.$ac_ext >&5 1604 1605 ac_retval=1 1606fi 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1608 as_fn_set_status $ac_retval 1609 1610} # ac_fn_c_try_compile 1611 1612# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1613# --------------------------------------------- 1614# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1615# accordingly. 1616ac_fn_c_check_decl () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 as_decl_name=`echo $2|sed 's/ *(.*//'` 1620 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1622$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1623if eval \${$3+:} false; then : 1624 $as_echo_n "(cached) " >&6 1625else 1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1627/* end confdefs.h. */ 1628$4 1629int 1630main () 1631{ 1632#ifndef $as_decl_name 1633#ifdef __cplusplus 1634 (void) $as_decl_use; 1635#else 1636 (void) $as_decl_name; 1637#endif 1638#endif 1639 1640 ; 1641 return 0; 1642} 1643_ACEOF 1644if ac_fn_c_try_compile "$LINENO"; then : 1645 eval "$3=yes" 1646else 1647 eval "$3=no" 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1650fi 1651eval ac_res=\$$3 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653$as_echo "$ac_res" >&6; } 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 1656} # ac_fn_c_check_decl 1657 1658# ac_fn_c_try_cpp LINENO 1659# ---------------------- 1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_cpp () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if { { ac_try="$ac_cpp conftest.$ac_ext" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } > conftest.i && { 1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 1689fi 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 as_fn_set_status $ac_retval 1692 1693} # ac_fn_c_try_cpp 1694 1695# ac_fn_c_try_run LINENO 1696# ---------------------- 1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1698# that executables *can* be run. 1699ac_fn_c_try_run () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 if { { ac_try="$ac_link" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1713 { { case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_try") 2>&5 1720 ac_status=$? 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; }; }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: program exited with status $ac_status" >&5 1726 $as_echo "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=$ac_status 1730fi 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_run 1736 1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1738# ------------------------------------------------------- 1739# Tests whether HEADER exists and can be compiled using the include files in 1740# INCLUDES, setting the cache variable VAR accordingly. 1741ac_fn_c_check_header_compile () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751$4 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_compile "$LINENO"; then : 1755 eval "$3=yes" 1756else 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 1766} # ac_fn_c_check_header_compile 1767 1768# ac_fn_c_try_link LINENO 1769# ----------------------- 1770# Try to link conftest.$ac_ext, and return whether this succeeded. 1771ac_fn_c_try_link () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 rm -f conftest.$ac_objext conftest$ac_exeext 1775 if { { ac_try="$ac_link" 1776case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_link") 2>conftest.err 1783 ac_status=$? 1784 if test -s conftest.err; then 1785 grep -v '^ *+' conftest.err >conftest.er1 1786 cat conftest.er1 >&5 1787 mv -f conftest.er1 conftest.err 1788 fi 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } && { 1791 test -z "$ac_c_werror_flag" || 1792 test ! -s conftest.err 1793 } && test -s conftest$ac_exeext && { 1794 test "$cross_compiling" = yes || 1795 test -x conftest$ac_exeext 1796 }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=1 1803fi 1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1806 # interfere with the next link command; also delete a directory that is 1807 # left behind by Apple's compiler. We do this before executing the actions. 1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_link 1813 1814# ac_fn_c_check_func LINENO FUNC VAR 1815# ---------------------------------- 1816# Tests whether FUNC exists, setting the cache variable VAR accordingly 1817ac_fn_c_check_func () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821$as_echo_n "checking for $2... " >&6; } 1822if eval \${$3+:} false; then : 1823 $as_echo_n "(cached) " >&6 1824else 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1829#define $2 innocuous_$2 1830 1831/* System header to define __stub macros and hopefully few prototypes, 1832 which can conflict with char $2 (); below. 1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1834 <limits.h> exists even on freestanding compilers. */ 1835 1836#ifdef __STDC__ 1837# include <limits.h> 1838#else 1839# include <assert.h> 1840#endif 1841 1842#undef $2 1843 1844/* Override any GCC internal prototype to avoid an error. 1845 Use char because int might match the return type of a GCC 1846 builtin and then its argument prototype would still apply. */ 1847#ifdef __cplusplus 1848extern "C" 1849#endif 1850char $2 (); 1851/* The GNU C library defines this for functions which it implements 1852 to always fail with ENOSYS. Some functions are actually named 1853 something starting with __ and the normal name is an alias. */ 1854#if defined __stub_$2 || defined __stub___$2 1855choke me 1856#endif 1857 1858int 1859main () 1860{ 1861return $2 (); 1862 ; 1863 return 0; 1864} 1865_ACEOF 1866if ac_fn_c_try_link "$LINENO"; then : 1867 eval "$3=yes" 1868else 1869 eval "$3=no" 1870fi 1871rm -f core conftest.err conftest.$ac_objext \ 1872 conftest$ac_exeext conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_func 1880cat >config.log <<_ACEOF 1881This file contains any messages produced by compilers while 1882running configure, to aid debugging if configure makes a mistake. 1883 1884It was created by xinit $as_me 1.4.0, which was 1885generated by GNU Autoconf 2.69. Invocation command line was 1886 1887 $ $0 $@ 1888 1889_ACEOF 1890exec 5>>config.log 1891{ 1892cat <<_ASUNAME 1893## --------- ## 1894## Platform. ## 1895## --------- ## 1896 1897hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1898uname -m = `(uname -m) 2>/dev/null || echo unknown` 1899uname -r = `(uname -r) 2>/dev/null || echo unknown` 1900uname -s = `(uname -s) 2>/dev/null || echo unknown` 1901uname -v = `(uname -v) 2>/dev/null || echo unknown` 1902 1903/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1904/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1905 1906/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1907/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1908/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1909/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1910/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1911/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1912/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1913 1914_ASUNAME 1915 1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1917for as_dir in $PATH 1918do 1919 IFS=$as_save_IFS 1920 test -z "$as_dir" && as_dir=. 1921 $as_echo "PATH: $as_dir" 1922 done 1923IFS=$as_save_IFS 1924 1925} >&5 1926 1927cat >&5 <<_ACEOF 1928 1929 1930## ----------- ## 1931## Core tests. ## 1932## ----------- ## 1933 1934_ACEOF 1935 1936 1937# Keep a trace of the command line. 1938# Strip out --no-create and --no-recursion so they do not pile up. 1939# Strip out --silent because we don't want to record it for future runs. 1940# Also quote any args containing shell meta-characters. 1941# Make two passes to allow for proper duplicate-argument suppression. 1942ac_configure_args= 1943ac_configure_args0= 1944ac_configure_args1= 1945ac_must_keep_next=false 1946for ac_pass in 1 2 1947do 1948 for ac_arg 1949 do 1950 case $ac_arg in 1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1953 | -silent | --silent | --silen | --sile | --sil) 1954 continue ;; 1955 *\'*) 1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1957 esac 1958 case $ac_pass in 1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1960 2) 1961 as_fn_append ac_configure_args1 " '$ac_arg'" 1962 if test $ac_must_keep_next = true; then 1963 ac_must_keep_next=false # Got value, back to normal. 1964 else 1965 case $ac_arg in 1966 *=* | --config-cache | -C | -disable-* | --disable-* \ 1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1969 | -with-* | --with-* | -without-* | --without-* | --x) 1970 case "$ac_configure_args0 " in 1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1972 esac 1973 ;; 1974 -* ) ac_must_keep_next=true ;; 1975 esac 1976 fi 1977 as_fn_append ac_configure_args " '$ac_arg'" 1978 ;; 1979 esac 1980 done 1981done 1982{ ac_configure_args0=; unset ac_configure_args0;} 1983{ ac_configure_args1=; unset ac_configure_args1;} 1984 1985# When interrupted or exit'd, cleanup temporary files, and complete 1986# config.log. We remove comments because anyway the quotes in there 1987# would cause problems or look ugly. 1988# WARNING: Use '\'' to represent an apostrophe within the trap. 1989# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1990trap 'exit_status=$? 1991 # Save into config.log some information that might help in debugging. 1992 { 1993 echo 1994 1995 $as_echo "## ---------------- ## 1996## Cache variables. ## 1997## ---------------- ##" 1998 echo 1999 # The following way of writing the cache mishandles newlines in values, 2000( 2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in #( 2004 *${as_nl}*) 2005 case $ac_var in #( 2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008 esac 2009 case $ac_var in #( 2010 _ | IFS | as_nl) ;; #( 2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2012 *) { eval $ac_var=; unset $ac_var;} ;; 2013 esac ;; 2014 esac 2015 done 2016 (set) 2>&1 | 2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018 *${as_nl}ac_space=\ *) 2019 sed -n \ 2020 "s/'\''/'\''\\\\'\'''\''/g; 2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022 ;; #( 2023 *) 2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025 ;; 2026 esac | 2027 sort 2028) 2029 echo 2030 2031 $as_echo "## ----------------- ## 2032## Output variables. ## 2033## ----------------- ##" 2034 echo 2035 for ac_var in $ac_subst_vars 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 $as_echo "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 2045 if test -n "$ac_subst_files"; then 2046 $as_echo "## ------------------- ## 2047## File substitutions. ## 2048## ------------------- ##" 2049 echo 2050 for ac_var in $ac_subst_files 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 $as_echo "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 fi 2060 2061 if test -s confdefs.h; then 2062 $as_echo "## ----------- ## 2063## confdefs.h. ## 2064## ----------- ##" 2065 echo 2066 cat confdefs.h 2067 echo 2068 fi 2069 test "$ac_signal" != 0 && 2070 $as_echo "$as_me: caught signal $ac_signal" 2071 $as_echo "$as_me: exit $exit_status" 2072 } >&5 2073 rm -f core *.core core.conftest.* && 2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2075 exit $exit_status 2076' 0 2077for ac_signal in 1 2 13 15; do 2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2079done 2080ac_signal=0 2081 2082# confdefs.h avoids OS command line length limits that DEFS can exceed. 2083rm -f -r conftest* confdefs.h 2084 2085$as_echo "/* confdefs.h */" > confdefs.h 2086 2087# Predefined preprocessor variables. 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_NAME "$PACKAGE_NAME" 2091_ACEOF 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_VERSION "$PACKAGE_VERSION" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_STRING "$PACKAGE_STRING" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_URL "$PACKAGE_URL" 2111_ACEOF 2112 2113 2114# Let the site file select an alternate cache file if it wants to. 2115# Prefer an explicitly selected file to automatically selected ones. 2116ac_site_file1=NONE 2117ac_site_file2=NONE 2118if test -n "$CONFIG_SITE"; then 2119 # We do not want a PATH search for config.site. 2120 case $CONFIG_SITE in #(( 2121 -*) ac_site_file1=./$CONFIG_SITE;; 2122 */*) ac_site_file1=$CONFIG_SITE;; 2123 *) ac_site_file1=./$CONFIG_SITE;; 2124 esac 2125elif test "x$prefix" != xNONE; then 2126 ac_site_file1=$prefix/share/config.site 2127 ac_site_file2=$prefix/etc/config.site 2128else 2129 ac_site_file1=$ac_default_prefix/share/config.site 2130 ac_site_file2=$ac_default_prefix/etc/config.site 2131fi 2132for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2133do 2134 test "x$ac_site_file" = xNONE && continue 2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2137$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2138 sed 's/^/| /' "$ac_site_file" >&5 2139 . "$ac_site_file" \ 2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2142as_fn_error $? "failed to load site script $ac_site_file 2143See \`config.log' for more details" "$LINENO" 5; } 2144 fi 2145done 2146 2147if test -r "$cache_file"; then 2148 # Some versions of bash will fail to source /dev/null (special files 2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2152$as_echo "$as_me: loading cache $cache_file" >&6;} 2153 case $cache_file in 2154 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2155 *) . "./$cache_file";; 2156 esac 2157 fi 2158else 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2160$as_echo "$as_me: creating cache $cache_file" >&6;} 2161 >$cache_file 2162fi 2163 2164# Check that the precious variables saved in the cache have kept the same 2165# value. 2166ac_cache_corrupted=false 2167for ac_var in $ac_precious_vars; do 2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2169 eval ac_new_set=\$ac_env_${ac_var}_set 2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2171 eval ac_new_val=\$ac_env_${ac_var}_value 2172 case $ac_old_set,$ac_new_set in 2173 set,) 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2175$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2176 ac_cache_corrupted=: ;; 2177 ,set) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2179$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2180 ac_cache_corrupted=: ;; 2181 ,);; 2182 *) 2183 if test "x$ac_old_val" != "x$ac_new_val"; then 2184 # differences in whitespace do not lead to failure. 2185 ac_old_val_w=`echo x $ac_old_val` 2186 ac_new_val_w=`echo x $ac_new_val` 2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2189$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2190 ac_cache_corrupted=: 2191 else 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2193$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2194 eval $ac_var=\$ac_old_val 2195 fi 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2197$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2199$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2200 fi;; 2201 esac 2202 # Pass precious variables to config.status. 2203 if test "$ac_new_set" = set; then 2204 case $ac_new_val in 2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2206 *) ac_arg=$ac_var=$ac_new_val ;; 2207 esac 2208 case " $ac_configure_args " in 2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2211 esac 2212 fi 2213done 2214if $ac_cache_corrupted; then 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2218$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2220fi 2221## -------------------- ## 2222## Main body of script. ## 2223## -------------------- ## 2224 2225ac_ext=c 2226ac_cpp='$CPP $CPPFLAGS' 2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2229ac_compiler_gnu=$ac_cv_c_compiler_gnu 2230 2231 2232 2233ac_config_headers="$ac_config_headers config.h" 2234 2235 2236# Initialize Automake 2237am__api_version='1.15' 2238 2239ac_aux_dir= 2240for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2241 if test -f "$ac_dir/install-sh"; then 2242 ac_aux_dir=$ac_dir 2243 ac_install_sh="$ac_aux_dir/install-sh -c" 2244 break 2245 elif test -f "$ac_dir/install.sh"; then 2246 ac_aux_dir=$ac_dir 2247 ac_install_sh="$ac_aux_dir/install.sh -c" 2248 break 2249 elif test -f "$ac_dir/shtool"; then 2250 ac_aux_dir=$ac_dir 2251 ac_install_sh="$ac_aux_dir/shtool install -c" 2252 break 2253 fi 2254done 2255if test -z "$ac_aux_dir"; then 2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2257fi 2258 2259# These three variables are undocumented and unsupported, 2260# and are intended to be withdrawn in a future Autoconf release. 2261# They can cause serious problems if a builder's source tree is in a directory 2262# whose full name contains unusual characters. 2263ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2264ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2265ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2266 2267 2268# Find a good install program. We prefer a C program (faster), 2269# so one script is as good as another. But avoid the broken or 2270# incompatible versions: 2271# SysV /etc/install, /usr/sbin/install 2272# SunOS /usr/etc/install 2273# IRIX /sbin/install 2274# AIX /bin/install 2275# AmigaOS /C/install, which installs bootblocks on floppy discs 2276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2277# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2279# OS/2's system install, which has a completely different semantic 2280# ./install, which can be erroneously created by make from ./install.sh. 2281# Reject install programs that cannot install multiple files. 2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2283$as_echo_n "checking for a BSD-compatible install... " >&6; } 2284if test -z "$INSTALL"; then 2285if ${ac_cv_path_install+:} false; then : 2286 $as_echo_n "(cached) " >&6 2287else 2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 # Account for people who put trailing slashes in PATH elements. 2294case $as_dir/ in #(( 2295 ./ | .// | /[cC]/* | \ 2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2298 /usr/ucb/* ) ;; 2299 *) 2300 # OSF1 and SCO ODT 3.0 have their own names for install. 2301 # Don't use installbsd from OSF since it installs stuff as root 2302 # by default. 2303 for ac_prog in ginstall scoinst install; do 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2306 if test $ac_prog = install && 2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2308 # AIX install. It has an incompatible calling convention. 2309 : 2310 elif test $ac_prog = install && 2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2312 # program-specific install script used by HP pwplus--don't use. 2313 : 2314 else 2315 rm -rf conftest.one conftest.two conftest.dir 2316 echo one > conftest.one 2317 echo two > conftest.two 2318 mkdir conftest.dir 2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2320 test -s conftest.one && test -s conftest.two && 2321 test -s conftest.dir/conftest.one && 2322 test -s conftest.dir/conftest.two 2323 then 2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2325 break 3 2326 fi 2327 fi 2328 fi 2329 done 2330 done 2331 ;; 2332esac 2333 2334 done 2335IFS=$as_save_IFS 2336 2337rm -rf conftest.one conftest.two conftest.dir 2338 2339fi 2340 if test "${ac_cv_path_install+set}" = set; then 2341 INSTALL=$ac_cv_path_install 2342 else 2343 # As a last resort, use the slow shell script. Don't cache a 2344 # value for INSTALL within a source directory, because that will 2345 # break other packages using the cache if that directory is 2346 # removed, or if the value is a relative name. 2347 INSTALL=$ac_install_sh 2348 fi 2349fi 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2351$as_echo "$INSTALL" >&6; } 2352 2353# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2354# It thinks the first close brace ends the variable substitution. 2355test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2356 2357test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2358 2359test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2360 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2362$as_echo_n "checking whether build environment is sane... " >&6; } 2363# Reject unsafe characters in $srcdir or the absolute working directory 2364# name. Accept space and tab only in the latter. 2365am_lf=' 2366' 2367case `pwd` in 2368 *[\\\"\#\$\&\'\`$am_lf]*) 2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2370esac 2371case $srcdir in 2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2374esac 2375 2376# Do 'set' in a subshell so we don't clobber the current shell's 2377# arguments. Must try -L first in case configure is actually a 2378# symlink; some systems play weird games with the mod time of symlinks 2379# (eg FreeBSD returns the mod time of the symlink's containing 2380# directory). 2381if ( 2382 am_has_slept=no 2383 for am_try in 1 2; do 2384 echo "timestamp, slept: $am_has_slept" > conftest.file 2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2386 if test "$*" = "X"; then 2387 # -L didn't work. 2388 set X `ls -t "$srcdir/configure" conftest.file` 2389 fi 2390 if test "$*" != "X $srcdir/configure conftest.file" \ 2391 && test "$*" != "X conftest.file $srcdir/configure"; then 2392 2393 # If neither matched, then we have a broken ls. This can happen 2394 # if, for instance, CONFIG_SHELL is bash and it inherits a 2395 # broken ls alias from the environment. This has actually 2396 # happened. Such a system could not be considered "sane". 2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2398 alias in your environment" "$LINENO" 5 2399 fi 2400 if test "$2" = conftest.file || test $am_try -eq 2; then 2401 break 2402 fi 2403 # Just in case. 2404 sleep 1 2405 am_has_slept=yes 2406 done 2407 test "$2" = conftest.file 2408 ) 2409then 2410 # Ok. 2411 : 2412else 2413 as_fn_error $? "newly created file is older than distributed files! 2414Check your system clock" "$LINENO" 5 2415fi 2416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2417$as_echo "yes" >&6; } 2418# If we didn't sleep, we still need to ensure time stamps of config.status and 2419# generated files are strictly newer. 2420am_sleep_pid= 2421if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2422 ( sleep 1 ) & 2423 am_sleep_pid=$! 2424fi 2425 2426rm -f conftest.file 2427 2428test "$program_prefix" != NONE && 2429 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2430# Use a double $ so make ignores it. 2431test "$program_suffix" != NONE && 2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2433# Double any \ or $. 2434# By default was `s,x,x', remove it if useless. 2435ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2436program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2437 2438# Expand $ac_aux_dir to an absolute path. 2439am_aux_dir=`cd "$ac_aux_dir" && pwd` 2440 2441if test x"${MISSING+set}" != xset; then 2442 case $am_aux_dir in 2443 *\ * | *\ *) 2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2445 *) 2446 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2447 esac 2448fi 2449# Use eval to expand $SHELL 2450if eval "$MISSING --is-lightweight"; then 2451 am_missing_run="$MISSING " 2452else 2453 am_missing_run= 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2455$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2456fi 2457 2458if test x"${install_sh+set}" != xset; then 2459 case $am_aux_dir in 2460 *\ * | *\ *) 2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2462 *) 2463 install_sh="\${SHELL} $am_aux_dir/install-sh" 2464 esac 2465fi 2466 2467# Installed binaries are usually stripped using 'strip' when the user 2468# run "make install-strip". However 'strip' might not be the right 2469# tool to use in cross-compilation environments, therefore Automake 2470# will honor the 'STRIP' environment variable to overrule this program. 2471if test "$cross_compiling" != no; then 2472 if test -n "$ac_tool_prefix"; then 2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2474set dummy ${ac_tool_prefix}strip; ac_word=$2 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2476$as_echo_n "checking for $ac_word... " >&6; } 2477if ${ac_cv_prog_STRIP+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test -n "$STRIP"; then 2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495 done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500STRIP=$ac_cv_prog_STRIP 2501if test -n "$STRIP"; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2503$as_echo "$STRIP" >&6; } 2504else 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2506$as_echo "no" >&6; } 2507fi 2508 2509 2510fi 2511if test -z "$ac_cv_prog_STRIP"; then 2512 ac_ct_STRIP=$STRIP 2513 # Extract the first word of "strip", so it can be a program name with args. 2514set dummy strip; ac_word=$2 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2516$as_echo_n "checking for $ac_word... " >&6; } 2517if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2518 $as_echo_n "(cached) " >&6 2519else 2520 if test -n "$ac_ct_STRIP"; then 2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2522else 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2530 ac_cv_prog_ac_ct_STRIP="strip" 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535 done 2536IFS=$as_save_IFS 2537 2538fi 2539fi 2540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2541if test -n "$ac_ct_STRIP"; then 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2543$as_echo "$ac_ct_STRIP" >&6; } 2544else 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2546$as_echo "no" >&6; } 2547fi 2548 2549 if test "x$ac_ct_STRIP" = x; then 2550 STRIP=":" 2551 else 2552 case $cross_compiling:$ac_tool_warned in 2553yes:) 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2556ac_tool_warned=yes ;; 2557esac 2558 STRIP=$ac_ct_STRIP 2559 fi 2560else 2561 STRIP="$ac_cv_prog_STRIP" 2562fi 2563 2564fi 2565INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2566 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2568$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2569if test -z "$MKDIR_P"; then 2570 if ${ac_cv_path_mkdir+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_prog in mkdir gmkdir; do 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2582 'mkdir (GNU coreutils) '* | \ 2583 'mkdir (coreutils) '* | \ 2584 'mkdir (fileutils) '4.1*) 2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2586 break 3;; 2587 esac 2588 done 2589 done 2590 done 2591IFS=$as_save_IFS 2592 2593fi 2594 2595 test -d ./--version && rmdir ./--version 2596 if test "${ac_cv_path_mkdir+set}" = set; then 2597 MKDIR_P="$ac_cv_path_mkdir -p" 2598 else 2599 # As a last resort, use the slow shell script. Don't cache a 2600 # value for MKDIR_P within a source directory, because that will 2601 # break other packages using the cache if that directory is 2602 # removed, or if the value is a relative name. 2603 MKDIR_P="$ac_install_sh -d" 2604 fi 2605fi 2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2607$as_echo "$MKDIR_P" >&6; } 2608 2609for ac_prog in gawk mawk nawk awk 2610do 2611 # Extract the first word of "$ac_prog", so it can be a program name with args. 2612set dummy $ac_prog; ac_word=$2 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2614$as_echo_n "checking for $ac_word... " >&6; } 2615if ${ac_cv_prog_AWK+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617else 2618 if test -n "$AWK"; then 2619 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2628 ac_cv_prog_AWK="$ac_prog" 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633 done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638AWK=$ac_cv_prog_AWK 2639if test -n "$AWK"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2641$as_echo "$AWK" >&6; } 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645fi 2646 2647 2648 test -n "$AWK" && break 2649done 2650 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2653set x ${MAKE-make} 2654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2655if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2656 $as_echo_n "(cached) " >&6 2657else 2658 cat >conftest.make <<\_ACEOF 2659SHELL = /bin/sh 2660all: 2661 @echo '@@@%%%=$(MAKE)=@@@%%%' 2662_ACEOF 2663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2664case `${MAKE-make} -f conftest.make 2>/dev/null` in 2665 *@@@%%%=?*=@@@%%%*) 2666 eval ac_cv_prog_make_${ac_make}_set=yes;; 2667 *) 2668 eval ac_cv_prog_make_${ac_make}_set=no;; 2669esac 2670rm -f conftest.make 2671fi 2672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2674$as_echo "yes" >&6; } 2675 SET_MAKE= 2676else 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2678$as_echo "no" >&6; } 2679 SET_MAKE="MAKE=${MAKE-make}" 2680fi 2681 2682rm -rf .tst 2>/dev/null 2683mkdir .tst 2>/dev/null 2684if test -d .tst; then 2685 am__leading_dot=. 2686else 2687 am__leading_dot=_ 2688fi 2689rmdir .tst 2>/dev/null 2690 2691# Check whether --enable-silent-rules was given. 2692if test "${enable_silent_rules+set}" = set; then : 2693 enableval=$enable_silent_rules; 2694fi 2695 2696case $enable_silent_rules in # ((( 2697 yes) AM_DEFAULT_VERBOSITY=0;; 2698 no) AM_DEFAULT_VERBOSITY=1;; 2699 *) AM_DEFAULT_VERBOSITY=1;; 2700esac 2701am_make=${MAKE-make} 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2703$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2704if ${am_cv_make_support_nested_variables+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if $as_echo 'TRUE=$(BAR$(V)) 2708BAR0=false 2709BAR1=true 2710V=1 2711am__doit: 2712 @$(TRUE) 2713.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2714 am_cv_make_support_nested_variables=yes 2715else 2716 am_cv_make_support_nested_variables=no 2717fi 2718fi 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2720$as_echo "$am_cv_make_support_nested_variables" >&6; } 2721if test $am_cv_make_support_nested_variables = yes; then 2722 AM_V='$(V)' 2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2724else 2725 AM_V=$AM_DEFAULT_VERBOSITY 2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2727fi 2728AM_BACKSLASH='\' 2729 2730if test "`cd $srcdir && pwd`" != "`pwd`"; then 2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2732 # is not polluted with repeated "-I." 2733 am__isrc=' -I$(srcdir)' 2734 # test to see if srcdir already configured 2735 if test -f $srcdir/config.status; then 2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2737 fi 2738fi 2739 2740# test whether we have cygpath 2741if test -z "$CYGPATH_W"; then 2742 if (cygpath --version) >/dev/null 2>/dev/null; then 2743 CYGPATH_W='cygpath -w' 2744 else 2745 CYGPATH_W=echo 2746 fi 2747fi 2748 2749 2750# Define the identity of the package. 2751 PACKAGE='xinit' 2752 VERSION='1.4.0' 2753 2754 2755cat >>confdefs.h <<_ACEOF 2756#define PACKAGE "$PACKAGE" 2757_ACEOF 2758 2759 2760cat >>confdefs.h <<_ACEOF 2761#define VERSION "$VERSION" 2762_ACEOF 2763 2764# Some tools Automake needs. 2765 2766ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2767 2768 2769AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2770 2771 2772AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2773 2774 2775AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2776 2777 2778MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2779 2780# For better backward compatibility. To be removed once Automake 1.9.x 2781# dies out for good. For more background, see: 2782# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2784mkdir_p='$(MKDIR_P)' 2785 2786# We need awk for the "check" target (and possibly the TAP driver). The 2787# system "awk" is bad on some platforms. 2788# Always define AMTAR for backward compatibility. Yes, it's still used 2789# in the wild :-( We should find a proper way to deprecate it ... 2790AMTAR='$${TAR-tar}' 2791 2792 2793# We'll loop over all known methods to create a tar archive until one works. 2794_am_tools='gnutar pax cpio none' 2795 2796am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2797 2798 2799 2800 2801 2802 2803# POSIX will say in a future version that running "rm -f" with no argument 2804# is OK; and we want to be able to make that assumption in our Makefile 2805# recipes. So use an aggressive probe to check that the usage we want is 2806# actually supported "in the wild" to an acceptable degree. 2807# See automake bug#10828. 2808# To make any issue more visible, cause the running configure to be aborted 2809# by default if the 'rm' program in use doesn't match our expectations; the 2810# user can still override this though. 2811if rm -f && rm -fr && rm -rf; then : OK; else 2812 cat >&2 <<'END' 2813Oops! 2814 2815Your 'rm' program seems unable to run without file operands specified 2816on the command line, even when the '-f' option is present. This is contrary 2817to the behaviour of most rm programs out there, and not conforming with 2818the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2819 2820Please tell bug-automake@gnu.org about your system, including the value 2821of your $PATH and any error possibly output before this message. This 2822can help us improve future automake versions. 2823 2824END 2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2826 echo 'Configuration will proceed anyway, since you have set the' >&2 2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2828 echo >&2 2829 else 2830 cat >&2 <<'END' 2831Aborting the configuration process, to ensure you take notice of the issue. 2832 2833You can download and install GNU coreutils to get an 'rm' implementation 2834that behaves properly: <http://www.gnu.org/software/coreutils/>. 2835 2836If you want to complete the configuration process using your problematic 2837'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2838to "yes", and re-run configure. 2839 2840END 2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2842 fi 2843fi 2844 2845 2846# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858DEPDIR="${am__leading_dot}deps" 2859 2860ac_config_commands="$ac_config_commands depfiles" 2861 2862 2863am_make=${MAKE-make} 2864cat > confinc << 'END' 2865am__doit: 2866 @echo this is the am__doit target 2867.PHONY: am__doit 2868END 2869# If we don't find an include directive, just comment out the code. 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2871$as_echo_n "checking for style of include used by $am_make... " >&6; } 2872am__include="#" 2873am__quote= 2874_am_result=none 2875# First try GNU make style include. 2876echo "include confinc" > confmf 2877# Ignore all kinds of additional output from 'make'. 2878case `$am_make -s -f confmf 2> /dev/null` in #( 2879*the\ am__doit\ target*) 2880 am__include=include 2881 am__quote= 2882 _am_result=GNU 2883 ;; 2884esac 2885# Now try BSD make style include. 2886if test "$am__include" = "#"; then 2887 echo '.include "confinc"' > confmf 2888 case `$am_make -s -f confmf 2> /dev/null` in #( 2889 *the\ am__doit\ target*) 2890 am__include=.include 2891 am__quote="\"" 2892 _am_result=BSD 2893 ;; 2894 esac 2895fi 2896 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2899$as_echo "$_am_result" >&6; } 2900rm -f confinc confmf 2901 2902# Check whether --enable-dependency-tracking was given. 2903if test "${enable_dependency_tracking+set}" = set; then : 2904 enableval=$enable_dependency_tracking; 2905fi 2906 2907if test "x$enable_dependency_tracking" != xno; then 2908 am_depcomp="$ac_aux_dir/depcomp" 2909 AMDEPBACKSLASH='\' 2910 am__nodep='_no' 2911fi 2912 if test "x$enable_dependency_tracking" != xno; then 2913 AMDEP_TRUE= 2914 AMDEP_FALSE='#' 2915else 2916 AMDEP_TRUE='#' 2917 AMDEP_FALSE= 2918fi 2919 2920 2921ac_ext=c 2922ac_cpp='$CPP $CPPFLAGS' 2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925ac_compiler_gnu=$ac_cv_c_compiler_gnu 2926if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}gcc; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if ${ac_cv_prog_CC+:} false; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957$as_echo "$CC" >&6; } 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "gcc", so it can be a program name with args. 2968set dummy gcc; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if ${ac_cv_prog_ac_ct_CC+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$ac_ct_CC"; then 2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_ac_ct_CC="gcc" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_CC=$ac_cv_prog_ac_ct_CC 2995if test -n "$ac_ct_CC"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2997$as_echo "$ac_ct_CC" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_CC" = x; then 3004 CC="" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 CC=$ac_ct_CC 3013 fi 3014else 3015 CC="$ac_cv_prog_CC" 3016fi 3017 3018if test -z "$CC"; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}cc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_CC="${ac_tool_prefix}cc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 fi 3058fi 3059if test -z "$CC"; then 3060 # Extract the first word of "cc", so it can be a program name with args. 3061set dummy cc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070 ac_prog_rejected=no 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3079 ac_prog_rejected=yes 3080 continue 3081 fi 3082 ac_cv_prog_CC="cc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090if test $ac_prog_rejected = yes; then 3091 # We found a bogon in the path, so make sure we never use it. 3092 set dummy $ac_cv_prog_CC 3093 shift 3094 if test $# != 0; then 3095 # We chose a different compiler from the bogus one. 3096 # However, it has the same basename, so the bogon will be chosen 3097 # first if we set CC to just the basename; use the full file name. 3098 shift 3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3100 fi 3101fi 3102fi 3103fi 3104CC=$ac_cv_prog_CC 3105if test -n "$CC"; then 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3107$as_echo "$CC" >&6; } 3108else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110$as_echo "no" >&6; } 3111fi 3112 3113 3114fi 3115if test -z "$CC"; then 3116 if test -n "$ac_tool_prefix"; then 3117 for ac_prog in cl.exe 3118 do 3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$CC"; then 3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$CC" && break 3157 done 3158fi 3159if test -z "$CC"; then 3160 ac_ct_CC=$CC 3161 for ac_prog in cl.exe 3162do 3163 # Extract the first word of "$ac_prog", so it can be a program name with args. 3164set dummy $ac_prog; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_ac_ct_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$ac_ct_CC"; then 3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_ac_ct_CC="$ac_prog" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190ac_ct_CC=$ac_cv_prog_ac_ct_CC 3191if test -n "$ac_ct_CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3193$as_echo "$ac_ct_CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 test -n "$ac_ct_CC" && break 3201done 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214fi 3215 3216fi 3217 3218 3219test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "no acceptable C compiler found in \$PATH 3222See \`config.log' for more details" "$LINENO" 5; } 3223 3224# Provide some information about the compiler. 3225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3226set X $ac_compile 3227ac_compiler=$2 3228for ac_option in --version -v -V -qversion; do 3229 { { ac_try="$ac_compiler $ac_option >&5" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3237 ac_status=$? 3238 if test -s conftest.err; then 3239 sed '10a\ 3240... rest of stderr output deleted ... 3241 10q' conftest.err >conftest.er1 3242 cat conftest.er1 >&5 3243 fi 3244 rm -f conftest.er1 conftest.err 3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3246 test $ac_status = 0; } 3247done 3248 3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main () 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260ac_clean_files_save=$ac_clean_files 3261ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3262# Try to create an executable without -o first, disregard a.out. 3263# It will help us diagnose broken compilers, and finding out an intuition 3264# of exeext. 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3266$as_echo_n "checking whether the C compiler works... " >&6; } 3267ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3268 3269# The possible output files: 3270ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3271 3272ac_rmfiles= 3273for ac_file in $ac_files 3274do 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3278 esac 3279done 3280rm -f $ac_rmfiles 3281 3282if { { ac_try="$ac_link_default" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_link_default") 2>&5 3290 ac_status=$? 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292 test $ac_status = 0; }; then : 3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3294# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3295# in a Makefile. We should not override ac_cv_exeext if it was cached, 3296# so that the user can short-circuit this test for compilers unknown to 3297# Autoconf. 3298for ac_file in $ac_files '' 3299do 3300 test -f "$ac_file" || continue 3301 case $ac_file in 3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3303 ;; 3304 [ab].out ) 3305 # We found the default executable, but exeext='' is most 3306 # certainly right. 3307 break;; 3308 *.* ) 3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3310 then :; else 3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 fi 3313 # We set ac_cv_exeext here because the later test for it is not 3314 # safe: cross compilers may not add the suffix if given an `-o' 3315 # argument, so we may need to know it at that point already. 3316 # Even if this section looks crufty: it has the advantage of 3317 # actually working. 3318 break;; 3319 * ) 3320 break;; 3321 esac 3322done 3323test "$ac_cv_exeext" = no && ac_cv_exeext= 3324 3325else 3326 ac_file='' 3327fi 3328if test -z "$ac_file"; then : 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331$as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336as_fn_error 77 "C compiler cannot create executables 3337See \`config.log' for more details" "$LINENO" 5; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3340$as_echo "yes" >&6; } 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3343$as_echo_n "checking for C compiler default output file name... " >&6; } 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3345$as_echo "$ac_file" >&6; } 3346ac_exeext=$ac_cv_exeext 3347 3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349ac_clean_files=$ac_clean_files_save 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3351$as_echo_n "checking for suffix of executables... " >&6; } 3352if { { ac_try="$ac_link" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358$as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_link") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; }; then : 3363 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3364# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3365# work properly (i.e., refer to `conftest.exe'), while it won't with 3366# `rm'. 3367for ac_file in conftest.exe conftest conftest.*; do 3368 test -f "$ac_file" || continue 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3372 break;; 3373 * ) break;; 3374 esac 3375done 3376else 3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3380See \`config.log' for more details" "$LINENO" 5; } 3381fi 3382rm -f conftest conftest$ac_cv_exeext 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3384$as_echo "$ac_cv_exeext" >&6; } 3385 3386rm -f conftest.$ac_ext 3387EXEEXT=$ac_cv_exeext 3388ac_exeext=$EXEEXT 3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <stdio.h> 3392int 3393main () 3394{ 3395FILE *f = fopen ("conftest.out", "w"); 3396 return ferror (f) || fclose (f) != 0; 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402ac_clean_files="$ac_clean_files conftest.out" 3403# Check that the compiler produces executables we can run. If not, either 3404# the compiler is broken, or we cross compile. 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3406$as_echo_n "checking whether we are cross compiling... " >&6; } 3407if test "$cross_compiling" != yes; then 3408 { { ac_try="$ac_link" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_link") 2>&5 3416 ac_status=$? 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; } 3419 if { ac_try='./conftest$ac_cv_exeext' 3420 { { case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3425$as_echo "$ac_try_echo"; } >&5 3426 (eval "$ac_try") 2>&5 3427 ac_status=$? 3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3429 test $ac_status = 0; }; }; then 3430 cross_compiling=no 3431 else 3432 if test "$cross_compiling" = maybe; then 3433 cross_compiling=yes 3434 else 3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error $? "cannot run C compiled programs. 3438If you meant to cross compile, use \`--host'. 3439See \`config.log' for more details" "$LINENO" 5; } 3440 fi 3441 fi 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3444$as_echo "$cross_compiling" >&6; } 3445 3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3447ac_clean_files=$ac_clean_files_save 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3449$as_echo_n "checking for suffix of object files... " >&6; } 3450if ${ac_cv_objext+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464rm -f conftest.o conftest.obj 3465if { { ac_try="$ac_compile" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_compile") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 for ac_file in conftest.o conftest.obj conftest.*; do 3477 test -f "$ac_file" || continue; 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3481 break;; 3482 esac 3483done 3484else 3485 $as_echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "cannot compute suffix of object files: cannot compile 3491See \`config.log' for more details" "$LINENO" 5; } 3492fi 3493rm -f conftest.$ac_cv_objext conftest.$ac_ext 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3496$as_echo "$ac_cv_objext" >&6; } 3497OBJEXT=$ac_cv_objext 3498ac_objext=$OBJEXT 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3501if ${ac_cv_c_compiler_gnu+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510#ifndef __GNUC__ 3511 choke me 3512#endif 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_compiler_gnu=yes 3520else 3521 ac_compiler_gnu=no 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524ac_cv_c_compiler_gnu=$ac_compiler_gnu 3525 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3528$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3529if test $ac_compiler_gnu = yes; then 3530 GCC=yes 3531else 3532 GCC= 3533fi 3534ac_test_CFLAGS=${CFLAGS+set} 3535ac_save_CFLAGS=$CFLAGS 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3537$as_echo_n "checking whether $CC accepts -g... " >&6; } 3538if ${ac_cv_prog_cc_g+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 ac_save_c_werror_flag=$ac_c_werror_flag 3542 ac_c_werror_flag=yes 3543 ac_cv_prog_cc_g=no 3544 CFLAGS="-g" 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_g=yes 3558else 3559 CFLAGS="" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main () 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO"; then : 3572 3573else 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575 CFLAGS="-g" 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587if ac_fn_c_try_compile "$LINENO"; then : 3588 ac_cv_prog_cc_g=yes 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591fi 3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3598$as_echo "$ac_cv_prog_cc_g" >&6; } 3599if test "$ac_test_CFLAGS" = set; then 3600 CFLAGS=$ac_save_CFLAGS 3601elif test $ac_cv_prog_cc_g = yes; then 3602 if test "$GCC" = yes; then 3603 CFLAGS="-g -O2" 3604 else 3605 CFLAGS="-g" 3606 fi 3607else 3608 if test "$GCC" = yes; then 3609 CFLAGS="-O2" 3610 else 3611 CFLAGS= 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3616if ${ac_cv_prog_cc_c89+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_cv_prog_cc_c89=no 3620ac_save_CC=$CC 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623#include <stdarg.h> 3624#include <stdio.h> 3625struct stat; 3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627struct buf { int x; }; 3628FILE * (*rcsopen) (struct buf *, struct stat *, int); 3629static char *e (p, i) 3630 char **p; 3631 int i; 3632{ 3633 return p[i]; 3634} 3635static char *f (char * (*g) (char **, int), char **p, ...) 3636{ 3637 char *s; 3638 va_list v; 3639 va_start (v,p); 3640 s = g (p, va_arg (v,int)); 3641 va_end (v); 3642 return s; 3643} 3644 3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646 function prototypes and stuff, but not '\xHH' hex character constants. 3647 These don't provoke an error unfortunately, instead are silently treated 3648 as 'x'. The following induces an error, until -std is added to get 3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650 array size at least. It's necessary to write '\x00'==0 to get something 3651 that's true only with -std. */ 3652int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653 3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655 inside strings and character constants. */ 3656#define FOO(x) 'x' 3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658 3659int test (int i, double x); 3660struct s1 {int (*f) (int a);}; 3661struct s2 {int (*f) (double a);}; 3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663int argc; 3664char **argv; 3665int 3666main () 3667{ 3668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675do 3676 CC="$ac_save_CC $ac_arg" 3677 if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_c89=$ac_arg 3679fi 3680rm -f core conftest.err conftest.$ac_objext 3681 test "x$ac_cv_prog_cc_c89" != "xno" && break 3682done 3683rm -f conftest.$ac_ext 3684CC=$ac_save_CC 3685 3686fi 3687# AC_CACHE_VAL 3688case "x$ac_cv_prog_cc_c89" in 3689 x) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3691$as_echo "none needed" >&6; } ;; 3692 xno) 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3694$as_echo "unsupported" >&6; } ;; 3695 *) 3696 CC="$CC $ac_cv_prog_cc_c89" 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3698$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3699esac 3700if test "x$ac_cv_prog_cc_c89" != xno; then : 3701 3702fi 3703 3704ac_ext=c 3705ac_cpp='$CPP $CPPFLAGS' 3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708ac_compiler_gnu=$ac_cv_c_compiler_gnu 3709 3710ac_ext=c 3711ac_cpp='$CPP $CPPFLAGS' 3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3714ac_compiler_gnu=$ac_cv_c_compiler_gnu 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3716$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3717if ${am_cv_prog_cc_c_o+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722 3723int 3724main () 3725{ 3726 3727 ; 3728 return 0; 3729} 3730_ACEOF 3731 # Make sure it works both with $CC and with simple cc. 3732 # Following AC_PROG_CC_C_O, we do the test twice because some 3733 # compilers refuse to overwrite an existing .o file with -o, 3734 # though they will create one. 3735 am_cv_prog_cc_c_o=yes 3736 for am_i in 1 2; do 3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3739 ac_status=$? 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); } \ 3742 && test -f conftest2.$ac_objext; then 3743 : OK 3744 else 3745 am_cv_prog_cc_c_o=no 3746 break 3747 fi 3748 done 3749 rm -f core conftest* 3750 unset am_i 3751fi 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3753$as_echo "$am_cv_prog_cc_c_o" >&6; } 3754if test "$am_cv_prog_cc_c_o" != yes; then 3755 # Losing compiler, so override with the script. 3756 # FIXME: It is wrong to rewrite CC. 3757 # But if we don't then we get into trouble of one sort or another. 3758 # A longer-term fix would be to have automake use am__CC in this case, 3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3760 CC="$am_aux_dir/compile $CC" 3761fi 3762ac_ext=c 3763ac_cpp='$CPP $CPPFLAGS' 3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3766ac_compiler_gnu=$ac_cv_c_compiler_gnu 3767 3768 3769depcc="$CC" am_compiler_list= 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3772$as_echo_n "checking dependency style of $depcc... " >&6; } 3773if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3777 # We make a subdir and do the tests there. Otherwise we can end up 3778 # making bogus files that we don't know about and never remove. For 3779 # instance it was reported that on HP-UX the gcc test will end up 3780 # making a dummy file named 'D' -- because '-MD' means "put the output 3781 # in D". 3782 rm -rf conftest.dir 3783 mkdir conftest.dir 3784 # Copy depcomp to subdir because otherwise we won't find it if we're 3785 # using a relative directory. 3786 cp "$am_depcomp" conftest.dir 3787 cd conftest.dir 3788 # We will build objects and dependencies in a subdirectory because 3789 # it helps to detect inapplicable dependency modes. For instance 3790 # both Tru64's cc and ICC support -MD to output dependencies as a 3791 # side effect of compilation, but ICC will put the dependencies in 3792 # the current directory while Tru64 will put them in the object 3793 # directory. 3794 mkdir sub 3795 3796 am_cv_CC_dependencies_compiler_type=none 3797 if test "$am_compiler_list" = ""; then 3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3799 fi 3800 am__universal=false 3801 case " $depcc " in #( 3802 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3803 esac 3804 3805 for depmode in $am_compiler_list; do 3806 # Setup a source with many dependencies, because some compilers 3807 # like to wrap large dependency lists on column 80 (with \), and 3808 # we should not choose a depcomp mode which is confused by this. 3809 # 3810 # We need to recreate these files for each test, as the compiler may 3811 # overwrite some of them when testing with obscure command lines. 3812 # This happens at least with the AIX C compiler. 3813 : > sub/conftest.c 3814 for i in 1 2 3 4 5 6; do 3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3817 # Solaris 10 /bin/sh. 3818 echo '/* dummy */' > sub/conftst$i.h 3819 done 3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3821 3822 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3823 # mode. It turns out that the SunPro C++ compiler does not properly 3824 # handle '-M -o', and we need to detect this. Also, some Intel 3825 # versions had trouble with output in subdirs. 3826 am__obj=sub/conftest.${OBJEXT-o} 3827 am__minus_obj="-o $am__obj" 3828 case $depmode in 3829 gcc) 3830 # This depmode causes a compiler race in universal mode. 3831 test "$am__universal" = false || continue 3832 ;; 3833 nosideeffect) 3834 # After this tag, mechanisms are not by side-effect, so they'll 3835 # only be used when explicitly requested. 3836 if test "x$enable_dependency_tracking" = xyes; then 3837 continue 3838 else 3839 break 3840 fi 3841 ;; 3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3843 # This compiler won't grok '-c -o', but also, the minuso test has 3844 # not run yet. These depmodes are late enough in the game, and 3845 # so weak that their functioning should not be impacted. 3846 am__obj=conftest.${OBJEXT-o} 3847 am__minus_obj= 3848 ;; 3849 none) break ;; 3850 esac 3851 if depmode=$depmode \ 3852 source=sub/conftest.c object=$am__obj \ 3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3855 >/dev/null 2>conftest.err && 3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3860 # icc doesn't choke on unknown options, it will just issue warnings 3861 # or remarks (even with -Werror). So we grep stderr for any message 3862 # that says an option was ignored or not supported. 3863 # When given -MP, icc 7.0 and 7.1 complain thusly: 3864 # icc: Command line warning: ignoring option '-M'; no argument required 3865 # The diagnosis changed in icc 8.0: 3866 # icc: Command line remark: option '-MP' not supported 3867 if (grep 'ignoring option' conftest.err || 3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3869 am_cv_CC_dependencies_compiler_type=$depmode 3870 break 3871 fi 3872 fi 3873 done 3874 3875 cd .. 3876 rm -rf conftest.dir 3877else 3878 am_cv_CC_dependencies_compiler_type=none 3879fi 3880 3881fi 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3885 3886 if 3887 test "x$enable_dependency_tracking" != xno \ 3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3889 am__fastdepCC_TRUE= 3890 am__fastdepCC_FALSE='#' 3891else 3892 am__fastdepCC_TRUE='#' 3893 am__fastdepCC_FALSE= 3894fi 3895 3896 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3898$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3899if ${ac_cv_prog_cc_c99+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 ac_cv_prog_cc_c99=no 3903ac_save_CC=$CC 3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906#include <stdarg.h> 3907#include <stdbool.h> 3908#include <stdlib.h> 3909#include <wchar.h> 3910#include <stdio.h> 3911 3912// Check varargs macros. These examples are taken from C99 6.10.3.5. 3913#define debug(...) fprintf (stderr, __VA_ARGS__) 3914#define showlist(...) puts (#__VA_ARGS__) 3915#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3916static void 3917test_varargs_macros (void) 3918{ 3919 int x = 1234; 3920 int y = 5678; 3921 debug ("Flag"); 3922 debug ("X = %d\n", x); 3923 showlist (The first, second, and third items.); 3924 report (x>y, "x is %d but y is %d", x, y); 3925} 3926 3927// Check long long types. 3928#define BIG64 18446744073709551615ull 3929#define BIG32 4294967295ul 3930#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3931#if !BIG_OK 3932 your preprocessor is broken; 3933#endif 3934#if BIG_OK 3935#else 3936 your preprocessor is broken; 3937#endif 3938static long long int bignum = -9223372036854775807LL; 3939static unsigned long long int ubignum = BIG64; 3940 3941struct incomplete_array 3942{ 3943 int datasize; 3944 double data[]; 3945}; 3946 3947struct named_init { 3948 int number; 3949 const wchar_t *name; 3950 double average; 3951}; 3952 3953typedef const char *ccp; 3954 3955static inline int 3956test_restrict (ccp restrict text) 3957{ 3958 // See if C++-style comments work. 3959 // Iterate through items via the restricted pointer. 3960 // Also check for declarations in for loops. 3961 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3962 continue; 3963 return 0; 3964} 3965 3966// Check varargs and va_copy. 3967static void 3968test_varargs (const char *format, ...) 3969{ 3970 va_list args; 3971 va_start (args, format); 3972 va_list args_copy; 3973 va_copy (args_copy, args); 3974 3975 const char *str; 3976 int number; 3977 float fnumber; 3978 3979 while (*format) 3980 { 3981 switch (*format++) 3982 { 3983 case 's': // string 3984 str = va_arg (args_copy, const char *); 3985 break; 3986 case 'd': // int 3987 number = va_arg (args_copy, int); 3988 break; 3989 case 'f': // float 3990 fnumber = va_arg (args_copy, double); 3991 break; 3992 default: 3993 break; 3994 } 3995 } 3996 va_end (args_copy); 3997 va_end (args); 3998} 3999 4000int 4001main () 4002{ 4003 4004 // Check bool. 4005 _Bool success = false; 4006 4007 // Check restrict. 4008 if (test_restrict ("String literal") == 0) 4009 success = true; 4010 char *restrict newvar = "Another string"; 4011 4012 // Check varargs. 4013 test_varargs ("s, d' f .", "string", 65, 34.234); 4014 test_varargs_macros (); 4015 4016 // Check flexible array members. 4017 struct incomplete_array *ia = 4018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4019 ia->datasize = 10; 4020 for (int i = 0; i < ia->datasize; ++i) 4021 ia->data[i] = i * 1.234; 4022 4023 // Check named initializers. 4024 struct named_init ni = { 4025 .number = 34, 4026 .name = L"Test wide string", 4027 .average = 543.34343, 4028 }; 4029 4030 ni.number = 58; 4031 4032 int dynamic_array[ni.number]; 4033 dynamic_array[ni.number - 1] = 543; 4034 4035 // work around unused variable warnings 4036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4037 || dynamic_array[ni.number - 1] != 543); 4038 4039 ; 4040 return 0; 4041} 4042_ACEOF 4043for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4044do 4045 CC="$ac_save_CC $ac_arg" 4046 if ac_fn_c_try_compile "$LINENO"; then : 4047 ac_cv_prog_cc_c99=$ac_arg 4048fi 4049rm -f core conftest.err conftest.$ac_objext 4050 test "x$ac_cv_prog_cc_c99" != "xno" && break 4051done 4052rm -f conftest.$ac_ext 4053CC=$ac_save_CC 4054 4055fi 4056# AC_CACHE_VAL 4057case "x$ac_cv_prog_cc_c99" in 4058 x) 4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4060$as_echo "none needed" >&6; } ;; 4061 xno) 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4063$as_echo "unsupported" >&6; } ;; 4064 *) 4065 CC="$CC $ac_cv_prog_cc_c99" 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4067$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4068esac 4069if test "x$ac_cv_prog_cc_c99" != xno; then : 4070 4071fi 4072 4073 4074 4075ac_ext=c 4076ac_cpp='$CPP $CPPFLAGS' 4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4079ac_compiler_gnu=$ac_cv_c_compiler_gnu 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4081$as_echo_n "checking how to run the C preprocessor... " >&6; } 4082# On Suns, sometimes $CPP names a directory. 4083if test -n "$CPP" && test -d "$CPP"; then 4084 CPP= 4085fi 4086if test -z "$CPP"; then 4087 if ${ac_cv_prog_CPP+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 # Double quotes because CPP needs to be expanded 4091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4092 do 4093 ac_preproc_ok=false 4094for ac_c_preproc_warn_flag in '' yes 4095do 4096 # Use a header file that comes with gcc, so configuring glibc 4097 # with a fresh cross-compiler works. 4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4099 # <limits.h> exists even on freestanding compilers. 4100 # On the NeXT, cc -E runs the code through the compiler's parser, 4101 # not just through cpp. "Syntax error" is here to catch this case. 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#ifdef __STDC__ 4105# include <limits.h> 4106#else 4107# include <assert.h> 4108#endif 4109 Syntax error 4110_ACEOF 4111if ac_fn_c_try_cpp "$LINENO"; then : 4112 4113else 4114 # Broken: fails on valid input. 4115continue 4116fi 4117rm -f conftest.err conftest.i conftest.$ac_ext 4118 4119 # OK, works on sane cases. Now check whether nonexistent headers 4120 # can be detected and how. 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123#include <ac_nonexistent.h> 4124_ACEOF 4125if ac_fn_c_try_cpp "$LINENO"; then : 4126 # Broken: success on invalid input. 4127continue 4128else 4129 # Passes both tests. 4130ac_preproc_ok=: 4131break 4132fi 4133rm -f conftest.err conftest.i conftest.$ac_ext 4134 4135done 4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4137rm -f conftest.i conftest.err conftest.$ac_ext 4138if $ac_preproc_ok; then : 4139 break 4140fi 4141 4142 done 4143 ac_cv_prog_CPP=$CPP 4144 4145fi 4146 CPP=$ac_cv_prog_CPP 4147else 4148 ac_cv_prog_CPP=$CPP 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4151$as_echo "$CPP" >&6; } 4152ac_preproc_ok=false 4153for ac_c_preproc_warn_flag in '' yes 4154do 4155 # Use a header file that comes with gcc, so configuring glibc 4156 # with a fresh cross-compiler works. 4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4158 # <limits.h> exists even on freestanding compilers. 4159 # On the NeXT, cc -E runs the code through the compiler's parser, 4160 # not just through cpp. "Syntax error" is here to catch this case. 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162/* end confdefs.h. */ 4163#ifdef __STDC__ 4164# include <limits.h> 4165#else 4166# include <assert.h> 4167#endif 4168 Syntax error 4169_ACEOF 4170if ac_fn_c_try_cpp "$LINENO"; then : 4171 4172else 4173 # Broken: fails on valid input. 4174continue 4175fi 4176rm -f conftest.err conftest.i conftest.$ac_ext 4177 4178 # OK, works on sane cases. Now check whether nonexistent headers 4179 # can be detected and how. 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <ac_nonexistent.h> 4183_ACEOF 4184if ac_fn_c_try_cpp "$LINENO"; then : 4185 # Broken: success on invalid input. 4186continue 4187else 4188 # Passes both tests. 4189ac_preproc_ok=: 4190break 4191fi 4192rm -f conftest.err conftest.i conftest.$ac_ext 4193 4194done 4195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4196rm -f conftest.i conftest.err conftest.$ac_ext 4197if $ac_preproc_ok; then : 4198 4199else 4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4202as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4203See \`config.log' for more details" "$LINENO" 5; } 4204fi 4205 4206ac_ext=c 4207ac_cpp='$CPP $CPPFLAGS' 4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4210ac_compiler_gnu=$ac_cv_c_compiler_gnu 4211 4212 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4214$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4215if ${ac_cv_path_GREP+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 if test -z "$GREP"; then 4219 ac_path_GREP_found=false 4220 # Loop through the user's path and test for each of PROGNAME-LIST 4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4223do 4224 IFS=$as_save_IFS 4225 test -z "$as_dir" && as_dir=. 4226 for ac_prog in grep ggrep; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4229 as_fn_executable_p "$ac_path_GREP" || continue 4230# Check for GNU ac_path_GREP and select it if it is found. 4231 # Check for GNU $ac_path_GREP 4232case `"$ac_path_GREP" --version 2>&1` in 4233*GNU*) 4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4235*) 4236 ac_count=0 4237 $as_echo_n 0123456789 >"conftest.in" 4238 while : 4239 do 4240 cat "conftest.in" "conftest.in" >"conftest.tmp" 4241 mv "conftest.tmp" "conftest.in" 4242 cp "conftest.in" "conftest.nl" 4243 $as_echo 'GREP' >> "conftest.nl" 4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4246 as_fn_arith $ac_count + 1 && ac_count=$as_val 4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4248 # Best one so far, save it but keep looking for a better one 4249 ac_cv_path_GREP="$ac_path_GREP" 4250 ac_path_GREP_max=$ac_count 4251 fi 4252 # 10*(2^10) chars as input seems more than enough 4253 test $ac_count -gt 10 && break 4254 done 4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4256esac 4257 4258 $ac_path_GREP_found && break 3 4259 done 4260 done 4261 done 4262IFS=$as_save_IFS 4263 if test -z "$ac_cv_path_GREP"; then 4264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4265 fi 4266else 4267 ac_cv_path_GREP=$GREP 4268fi 4269 4270fi 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4272$as_echo "$ac_cv_path_GREP" >&6; } 4273 GREP="$ac_cv_path_GREP" 4274 4275 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4277$as_echo_n "checking for egrep... " >&6; } 4278if ${ac_cv_path_EGREP+:} false; then : 4279 $as_echo_n "(cached) " >&6 4280else 4281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4282 then ac_cv_path_EGREP="$GREP -E" 4283 else 4284 if test -z "$EGREP"; then 4285 ac_path_EGREP_found=false 4286 # Loop through the user's path and test for each of PROGNAME-LIST 4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4289do 4290 IFS=$as_save_IFS 4291 test -z "$as_dir" && as_dir=. 4292 for ac_prog in egrep; do 4293 for ac_exec_ext in '' $ac_executable_extensions; do 4294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4295 as_fn_executable_p "$ac_path_EGREP" || continue 4296# Check for GNU ac_path_EGREP and select it if it is found. 4297 # Check for GNU $ac_path_EGREP 4298case `"$ac_path_EGREP" --version 2>&1` in 4299*GNU*) 4300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4301*) 4302 ac_count=0 4303 $as_echo_n 0123456789 >"conftest.in" 4304 while : 4305 do 4306 cat "conftest.in" "conftest.in" >"conftest.tmp" 4307 mv "conftest.tmp" "conftest.in" 4308 cp "conftest.in" "conftest.nl" 4309 $as_echo 'EGREP' >> "conftest.nl" 4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4312 as_fn_arith $ac_count + 1 && ac_count=$as_val 4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4314 # Best one so far, save it but keep looking for a better one 4315 ac_cv_path_EGREP="$ac_path_EGREP" 4316 ac_path_EGREP_max=$ac_count 4317 fi 4318 # 10*(2^10) chars as input seems more than enough 4319 test $ac_count -gt 10 && break 4320 done 4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4322esac 4323 4324 $ac_path_EGREP_found && break 3 4325 done 4326 done 4327 done 4328IFS=$as_save_IFS 4329 if test -z "$ac_cv_path_EGREP"; then 4330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4331 fi 4332else 4333 ac_cv_path_EGREP=$EGREP 4334fi 4335 4336 fi 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4339$as_echo "$ac_cv_path_EGREP" >&6; } 4340 EGREP="$ac_cv_path_EGREP" 4341 4342 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4344$as_echo_n "checking for ANSI C header files... " >&6; } 4345if ${ac_cv_header_stdc+:} false; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350#include <stdlib.h> 4351#include <stdarg.h> 4352#include <string.h> 4353#include <float.h> 4354 4355int 4356main () 4357{ 4358 4359 ; 4360 return 0; 4361} 4362_ACEOF 4363if ac_fn_c_try_compile "$LINENO"; then : 4364 ac_cv_header_stdc=yes 4365else 4366 ac_cv_header_stdc=no 4367fi 4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4369 4370if test $ac_cv_header_stdc = yes; then 4371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374#include <string.h> 4375 4376_ACEOF 4377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4378 $EGREP "memchr" >/dev/null 2>&1; then : 4379 4380else 4381 ac_cv_header_stdc=no 4382fi 4383rm -f conftest* 4384 4385fi 4386 4387if test $ac_cv_header_stdc = yes; then 4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391#include <stdlib.h> 4392 4393_ACEOF 4394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4395 $EGREP "free" >/dev/null 2>&1; then : 4396 4397else 4398 ac_cv_header_stdc=no 4399fi 4400rm -f conftest* 4401 4402fi 4403 4404if test $ac_cv_header_stdc = yes; then 4405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4406 if test "$cross_compiling" = yes; then : 4407 : 4408else 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411#include <ctype.h> 4412#include <stdlib.h> 4413#if ((' ' & 0x0FF) == 0x020) 4414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4416#else 4417# define ISLOWER(c) \ 4418 (('a' <= (c) && (c) <= 'i') \ 4419 || ('j' <= (c) && (c) <= 'r') \ 4420 || ('s' <= (c) && (c) <= 'z')) 4421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4422#endif 4423 4424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4425int 4426main () 4427{ 4428 int i; 4429 for (i = 0; i < 256; i++) 4430 if (XOR (islower (i), ISLOWER (i)) 4431 || toupper (i) != TOUPPER (i)) 4432 return 2; 4433 return 0; 4434} 4435_ACEOF 4436if ac_fn_c_try_run "$LINENO"; then : 4437 4438else 4439 ac_cv_header_stdc=no 4440fi 4441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4442 conftest.$ac_objext conftest.beam conftest.$ac_ext 4443fi 4444 4445fi 4446fi 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4448$as_echo "$ac_cv_header_stdc" >&6; } 4449if test $ac_cv_header_stdc = yes; then 4450 4451$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4452 4453fi 4454 4455# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4457 inttypes.h stdint.h unistd.h 4458do : 4459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4460ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4461" 4462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4463 cat >>confdefs.h <<_ACEOF 4464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4465_ACEOF 4466 4467fi 4468 4469done 4470 4471 4472 4473 4474 4475 4476ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4477if test "x$ac_cv_have_decl___clang__" = xyes; then : 4478 CLANGCC="yes" 4479else 4480 CLANGCC="no" 4481fi 4482 4483ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4484if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4485 INTELCC="yes" 4486else 4487 INTELCC="no" 4488fi 4489 4490ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4491if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4492 SUNCC="yes" 4493else 4494 SUNCC="no" 4495fi 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4506 if test -n "$ac_tool_prefix"; then 4507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4508set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4510$as_echo_n "checking for $ac_word... " >&6; } 4511if ${ac_cv_path_PKG_CONFIG+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 case $PKG_CONFIG in 4515 [\\/]* | ?:[\\/]*) 4516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4517 ;; 4518 *) 4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534 ;; 4535esac 4536fi 4537PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4538if test -n "$PKG_CONFIG"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4540$as_echo "$PKG_CONFIG" >&6; } 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544fi 4545 4546 4547fi 4548if test -z "$ac_cv_path_PKG_CONFIG"; then 4549 ac_pt_PKG_CONFIG=$PKG_CONFIG 4550 # Extract the first word of "pkg-config", so it can be a program name with args. 4551set dummy pkg-config; ac_word=$2 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4553$as_echo_n "checking for $ac_word... " >&6; } 4554if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 case $ac_pt_PKG_CONFIG in 4558 [\\/]* | ?:[\\/]*) 4559 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4560 ;; 4561 *) 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577 ;; 4578esac 4579fi 4580ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4581if test -n "$ac_pt_PKG_CONFIG"; then 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4583$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4584else 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4586$as_echo "no" >&6; } 4587fi 4588 4589 if test "x$ac_pt_PKG_CONFIG" = x; then 4590 PKG_CONFIG="" 4591 else 4592 case $cross_compiling:$ac_tool_warned in 4593yes:) 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4596ac_tool_warned=yes ;; 4597esac 4598 PKG_CONFIG=$ac_pt_PKG_CONFIG 4599 fi 4600else 4601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4602fi 4603 4604fi 4605if test -n "$PKG_CONFIG"; then 4606 _pkg_min_version=0.9.0 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4608$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4609 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4611$as_echo "yes" >&6; } 4612 else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4614$as_echo "no" >&6; } 4615 PKG_CONFIG="" 4616 fi 4617fi 4618# Make sure we can run config.sub. 4619$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4623$as_echo_n "checking build system type... " >&6; } 4624if ${ac_cv_build+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 ac_build_alias=$build_alias 4628test "x$ac_build_alias" = x && 4629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4630test "x$ac_build_alias" = x && 4631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4632ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4634 4635fi 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4637$as_echo "$ac_cv_build" >&6; } 4638case $ac_cv_build in 4639*-*-*) ;; 4640*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4641esac 4642build=$ac_cv_build 4643ac_save_IFS=$IFS; IFS='-' 4644set x $ac_cv_build 4645shift 4646build_cpu=$1 4647build_vendor=$2 4648shift; shift 4649# Remember, the first character of IFS is used to create $*, 4650# except with old shells: 4651build_os=$* 4652IFS=$ac_save_IFS 4653case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4654 4655 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4657$as_echo_n "checking host system type... " >&6; } 4658if ${ac_cv_host+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 if test "x$host_alias" = x; then 4662 ac_cv_host=$ac_cv_build 4663else 4664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4666fi 4667 4668fi 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4670$as_echo "$ac_cv_host" >&6; } 4671case $ac_cv_host in 4672*-*-*) ;; 4673*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4674esac 4675host=$ac_cv_host 4676ac_save_IFS=$IFS; IFS='-' 4677set x $ac_cv_host 4678shift 4679host_cpu=$1 4680host_vendor=$2 4681shift; shift 4682# Remember, the first character of IFS is used to create $*, 4683# except with old shells: 4684host_os=$* 4685IFS=$ac_save_IFS 4686case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4687 4688 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4690$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4691if ${ac_cv_path_SED+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4695 for ac_i in 1 2 3 4 5 6 7; do 4696 ac_script="$ac_script$as_nl$ac_script" 4697 done 4698 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4699 { ac_script=; unset ac_script;} 4700 if test -z "$SED"; then 4701 ac_path_SED_found=false 4702 # Loop through the user's path and test for each of PROGNAME-LIST 4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_prog in sed gsed; do 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4711 as_fn_executable_p "$ac_path_SED" || continue 4712# Check for GNU ac_path_SED and select it if it is found. 4713 # Check for GNU $ac_path_SED 4714case `"$ac_path_SED" --version 2>&1` in 4715*GNU*) 4716 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4717*) 4718 ac_count=0 4719 $as_echo_n 0123456789 >"conftest.in" 4720 while : 4721 do 4722 cat "conftest.in" "conftest.in" >"conftest.tmp" 4723 mv "conftest.tmp" "conftest.in" 4724 cp "conftest.in" "conftest.nl" 4725 $as_echo '' >> "conftest.nl" 4726 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4728 as_fn_arith $ac_count + 1 && ac_count=$as_val 4729 if test $ac_count -gt ${ac_path_SED_max-0}; then 4730 # Best one so far, save it but keep looking for a better one 4731 ac_cv_path_SED="$ac_path_SED" 4732 ac_path_SED_max=$ac_count 4733 fi 4734 # 10*(2^10) chars as input seems more than enough 4735 test $ac_count -gt 10 && break 4736 done 4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4738esac 4739 4740 $ac_path_SED_found && break 3 4741 done 4742 done 4743 done 4744IFS=$as_save_IFS 4745 if test -z "$ac_cv_path_SED"; then 4746 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4747 fi 4748else 4749 ac_cv_path_SED=$SED 4750fi 4751 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4754$as_echo "$ac_cv_path_SED" >&6; } 4755 SED="$ac_cv_path_SED" 4756 rm -f conftest.sed 4757 4758 4759 4760 4761 4762 4763# Check whether --enable-selective-werror was given. 4764if test "${enable_selective_werror+set}" = set; then : 4765 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4766else 4767 SELECTIVE_WERROR=yes 4768fi 4769 4770 4771 4772 4773 4774# -v is too short to test reliably with XORG_TESTSET_CFLAG 4775if test "x$SUNCC" = "xyes"; then 4776 BASE_CFLAGS="-v" 4777else 4778 BASE_CFLAGS="" 4779fi 4780 4781# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795xorg_testset_save_CFLAGS="$CFLAGS" 4796 4797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4805/* end confdefs.h. */ 4806int i; 4807_ACEOF 4808if ac_fn_c_try_compile "$LINENO"; then : 4809 xorg_cv_cc_flag_unknown_warning_option=yes 4810else 4811 xorg_cv_cc_flag_unknown_warning_option=no 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814fi 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4818 CFLAGS="$xorg_testset_save_CFLAGS" 4819fi 4820 4821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4824 fi 4825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4832/* end confdefs.h. */ 4833int i; 4834_ACEOF 4835if ac_fn_c_try_compile "$LINENO"; then : 4836 xorg_cv_cc_flag_unused_command_line_argument=yes 4837else 4838 xorg_cv_cc_flag_unused_command_line_argument=no 4839fi 4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4841fi 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4845 CFLAGS="$xorg_testset_save_CFLAGS" 4846fi 4847 4848found="no" 4849 4850 if test $found = "no" ; then 4851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4853 fi 4854 4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4857 fi 4858 4859 CFLAGS="$CFLAGS -Wall" 4860 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4862$as_echo_n "checking if $CC supports -Wall... " >&6; } 4863 cacheid=xorg_cv_cc_flag__Wall 4864 if eval \${$cacheid+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869int i; 4870int 4871main () 4872{ 4873 4874 ; 4875 return 0; 4876} 4877_ACEOF 4878if ac_fn_c_try_link "$LINENO"; then : 4879 eval $cacheid=yes 4880else 4881 eval $cacheid=no 4882fi 4883rm -f core conftest.err conftest.$ac_objext \ 4884 conftest$ac_exeext conftest.$ac_ext 4885fi 4886 4887 4888 CFLAGS="$xorg_testset_save_CFLAGS" 4889 4890 eval supported=\$$cacheid 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4892$as_echo "$supported" >&6; } 4893 if test "$supported" = "yes" ; then 4894 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4895 found="yes" 4896 fi 4897 fi 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913xorg_testset_save_CFLAGS="$CFLAGS" 4914 4915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924int i; 4925_ACEOF 4926if ac_fn_c_try_compile "$LINENO"; then : 4927 xorg_cv_cc_flag_unknown_warning_option=yes 4928else 4929 xorg_cv_cc_flag_unknown_warning_option=no 4930fi 4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4932fi 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4936 CFLAGS="$xorg_testset_save_CFLAGS" 4937fi 4938 4939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4942 fi 4943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951int i; 4952_ACEOF 4953if ac_fn_c_try_compile "$LINENO"; then : 4954 xorg_cv_cc_flag_unused_command_line_argument=yes 4955else 4956 xorg_cv_cc_flag_unused_command_line_argument=no 4957fi 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959fi 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4963 CFLAGS="$xorg_testset_save_CFLAGS" 4964fi 4965 4966found="no" 4967 4968 if test $found = "no" ; then 4969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4971 fi 4972 4973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4975 fi 4976 4977 CFLAGS="$CFLAGS -Wpointer-arith" 4978 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4980$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4981 cacheid=xorg_cv_cc_flag__Wpointer_arith 4982 if eval \${$cacheid+:} false; then : 4983 $as_echo_n "(cached) " >&6 4984else 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987int i; 4988int 4989main () 4990{ 4991 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996if ac_fn_c_try_link "$LINENO"; then : 4997 eval $cacheid=yes 4998else 4999 eval $cacheid=no 5000fi 5001rm -f core conftest.err conftest.$ac_objext \ 5002 conftest$ac_exeext conftest.$ac_ext 5003fi 5004 5005 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007 5008 eval supported=\$$cacheid 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5010$as_echo "$supported" >&6; } 5011 if test "$supported" = "yes" ; then 5012 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5013 found="yes" 5014 fi 5015 fi 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031xorg_testset_save_CFLAGS="$CFLAGS" 5032 5033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO"; then : 5045 xorg_cv_cc_flag_unknown_warning_option=yes 5046else 5047 xorg_cv_cc_flag_unknown_warning_option=no 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050fi 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5054 CFLAGS="$xorg_testset_save_CFLAGS" 5055fi 5056 5057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5060 fi 5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068/* end confdefs.h. */ 5069int i; 5070_ACEOF 5071if ac_fn_c_try_compile "$LINENO"; then : 5072 xorg_cv_cc_flag_unused_command_line_argument=yes 5073else 5074 xorg_cv_cc_flag_unused_command_line_argument=no 5075fi 5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5081 CFLAGS="$xorg_testset_save_CFLAGS" 5082fi 5083 5084found="no" 5085 5086 if test $found = "no" ; then 5087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5089 fi 5090 5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5093 fi 5094 5095 CFLAGS="$CFLAGS -Wmissing-declarations" 5096 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5098$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5099 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5100 if eval \${$cacheid+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105int i; 5106int 5107main () 5108{ 5109 5110 ; 5111 return 0; 5112} 5113_ACEOF 5114if ac_fn_c_try_link "$LINENO"; then : 5115 eval $cacheid=yes 5116else 5117 eval $cacheid=no 5118fi 5119rm -f core conftest.err conftest.$ac_objext \ 5120 conftest$ac_exeext conftest.$ac_ext 5121fi 5122 5123 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125 5126 eval supported=\$$cacheid 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5128$as_echo "$supported" >&6; } 5129 if test "$supported" = "yes" ; then 5130 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5131 found="yes" 5132 fi 5133 fi 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149xorg_testset_save_CFLAGS="$CFLAGS" 5150 5151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160int i; 5161_ACEOF 5162if ac_fn_c_try_compile "$LINENO"; then : 5163 xorg_cv_cc_flag_unknown_warning_option=yes 5164else 5165 xorg_cv_cc_flag_unknown_warning_option=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5172 CFLAGS="$xorg_testset_save_CFLAGS" 5173fi 5174 5175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5178 fi 5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188_ACEOF 5189if ac_fn_c_try_compile "$LINENO"; then : 5190 xorg_cv_cc_flag_unused_command_line_argument=yes 5191else 5192 xorg_cv_cc_flag_unused_command_line_argument=no 5193fi 5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5195fi 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5199 CFLAGS="$xorg_testset_save_CFLAGS" 5200fi 5201 5202found="no" 5203 5204 if test $found = "no" ; then 5205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5207 fi 5208 5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5211 fi 5212 5213 CFLAGS="$CFLAGS -Wformat=2" 5214 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5216$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5217 cacheid=xorg_cv_cc_flag__Wformat_2 5218 if eval \${$cacheid+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224int 5225main () 5226{ 5227 5228 ; 5229 return 0; 5230} 5231_ACEOF 5232if ac_fn_c_try_link "$LINENO"; then : 5233 eval $cacheid=yes 5234else 5235 eval $cacheid=no 5236fi 5237rm -f core conftest.err conftest.$ac_objext \ 5238 conftest$ac_exeext conftest.$ac_ext 5239fi 5240 5241 5242 CFLAGS="$xorg_testset_save_CFLAGS" 5243 5244 eval supported=\$$cacheid 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5246$as_echo "$supported" >&6; } 5247 if test "$supported" = "yes" ; then 5248 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5249 found="yes" 5250 fi 5251 fi 5252 5253 if test $found = "no" ; then 5254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5256 fi 5257 5258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5260 fi 5261 5262 CFLAGS="$CFLAGS -Wformat" 5263 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5265$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5266 cacheid=xorg_cv_cc_flag__Wformat 5267 if eval \${$cacheid+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273int 5274main () 5275{ 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281if ac_fn_c_try_link "$LINENO"; then : 5282 eval $cacheid=yes 5283else 5284 eval $cacheid=no 5285fi 5286rm -f core conftest.err conftest.$ac_objext \ 5287 conftest$ac_exeext conftest.$ac_ext 5288fi 5289 5290 5291 CFLAGS="$xorg_testset_save_CFLAGS" 5292 5293 eval supported=\$$cacheid 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5295$as_echo "$supported" >&6; } 5296 if test "$supported" = "yes" ; then 5297 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5298 found="yes" 5299 fi 5300 fi 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318xorg_testset_save_CFLAGS="$CFLAGS" 5319 5320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328/* end confdefs.h. */ 5329int i; 5330_ACEOF 5331if ac_fn_c_try_compile "$LINENO"; then : 5332 xorg_cv_cc_flag_unknown_warning_option=yes 5333else 5334 xorg_cv_cc_flag_unknown_warning_option=no 5335fi 5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342fi 5343 5344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5347 fi 5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357_ACEOF 5358if ac_fn_c_try_compile "$LINENO"; then : 5359 xorg_cv_cc_flag_unused_command_line_argument=yes 5360else 5361 xorg_cv_cc_flag_unused_command_line_argument=no 5362fi 5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369fi 5370 5371found="no" 5372 5373 if test $found = "no" ; then 5374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 fi 5377 5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5380 fi 5381 5382 CFLAGS="$CFLAGS -Wstrict-prototypes" 5383 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5385$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5386 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5387 if eval \${$cacheid+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392int i; 5393int 5394main () 5395{ 5396 5397 ; 5398 return 0; 5399} 5400_ACEOF 5401if ac_fn_c_try_link "$LINENO"; then : 5402 eval $cacheid=yes 5403else 5404 eval $cacheid=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext \ 5407 conftest$ac_exeext conftest.$ac_ext 5408fi 5409 5410 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412 5413 eval supported=\$$cacheid 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5415$as_echo "$supported" >&6; } 5416 if test "$supported" = "yes" ; then 5417 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5418 found="yes" 5419 fi 5420 fi 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436xorg_testset_save_CFLAGS="$CFLAGS" 5437 5438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448_ACEOF 5449if ac_fn_c_try_compile "$LINENO"; then : 5450 xorg_cv_cc_flag_unknown_warning_option=yes 5451else 5452 xorg_cv_cc_flag_unknown_warning_option=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460fi 5461 5462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5465 fi 5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474int i; 5475_ACEOF 5476if ac_fn_c_try_compile "$LINENO"; then : 5477 xorg_cv_cc_flag_unused_command_line_argument=yes 5478else 5479 xorg_cv_cc_flag_unused_command_line_argument=no 5480fi 5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5482fi 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487fi 5488 5489found="no" 5490 5491 if test $found = "no" ; then 5492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5494 fi 5495 5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5498 fi 5499 5500 CFLAGS="$CFLAGS -Wmissing-prototypes" 5501 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5503$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5504 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5505 if eval \${$cacheid+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5509/* end confdefs.h. */ 5510int i; 5511int 5512main () 5513{ 5514 5515 ; 5516 return 0; 5517} 5518_ACEOF 5519if ac_fn_c_try_link "$LINENO"; then : 5520 eval $cacheid=yes 5521else 5522 eval $cacheid=no 5523fi 5524rm -f core conftest.err conftest.$ac_objext \ 5525 conftest$ac_exeext conftest.$ac_ext 5526fi 5527 5528 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530 5531 eval supported=\$$cacheid 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5533$as_echo "$supported" >&6; } 5534 if test "$supported" = "yes" ; then 5535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5536 found="yes" 5537 fi 5538 fi 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554xorg_testset_save_CFLAGS="$CFLAGS" 5555 5556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5561 $as_echo_n "(cached) " >&6 5562else 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int i; 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO"; then : 5568 xorg_cv_cc_flag_unknown_warning_option=yes 5569else 5570 xorg_cv_cc_flag_unknown_warning_option=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573fi 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5577 CFLAGS="$xorg_testset_save_CFLAGS" 5578fi 5579 5580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5583 fi 5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592int i; 5593_ACEOF 5594if ac_fn_c_try_compile "$LINENO"; then : 5595 xorg_cv_cc_flag_unused_command_line_argument=yes 5596else 5597 xorg_cv_cc_flag_unused_command_line_argument=no 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5600fi 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5604 CFLAGS="$xorg_testset_save_CFLAGS" 5605fi 5606 5607found="no" 5608 5609 if test $found = "no" ; then 5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 fi 5613 5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5616 fi 5617 5618 CFLAGS="$CFLAGS -Wnested-externs" 5619 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5621$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5622 cacheid=xorg_cv_cc_flag__Wnested_externs 5623 if eval \${$cacheid+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5627/* end confdefs.h. */ 5628int i; 5629int 5630main () 5631{ 5632 5633 ; 5634 return 0; 5635} 5636_ACEOF 5637if ac_fn_c_try_link "$LINENO"; then : 5638 eval $cacheid=yes 5639else 5640 eval $cacheid=no 5641fi 5642rm -f core conftest.err conftest.$ac_objext \ 5643 conftest$ac_exeext conftest.$ac_ext 5644fi 5645 5646 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648 5649 eval supported=\$$cacheid 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5651$as_echo "$supported" >&6; } 5652 if test "$supported" = "yes" ; then 5653 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5654 found="yes" 5655 fi 5656 fi 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672xorg_testset_save_CFLAGS="$CFLAGS" 5673 5674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5682/* end confdefs.h. */ 5683int i; 5684_ACEOF 5685if ac_fn_c_try_compile "$LINENO"; then : 5686 xorg_cv_cc_flag_unknown_warning_option=yes 5687else 5688 xorg_cv_cc_flag_unknown_warning_option=no 5689fi 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5691fi 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5695 CFLAGS="$xorg_testset_save_CFLAGS" 5696fi 5697 5698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5701 fi 5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710int i; 5711_ACEOF 5712if ac_fn_c_try_compile "$LINENO"; then : 5713 xorg_cv_cc_flag_unused_command_line_argument=yes 5714else 5715 xorg_cv_cc_flag_unused_command_line_argument=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718fi 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723fi 5724 5725found="no" 5726 5727 if test $found = "no" ; then 5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 fi 5731 5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5734 fi 5735 5736 CFLAGS="$CFLAGS -Wbad-function-cast" 5737 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5739$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5740 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5741 if eval \${$cacheid+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747int 5748main () 5749{ 5750 5751 ; 5752 return 0; 5753} 5754_ACEOF 5755if ac_fn_c_try_link "$LINENO"; then : 5756 eval $cacheid=yes 5757else 5758 eval $cacheid=no 5759fi 5760rm -f core conftest.err conftest.$ac_objext \ 5761 conftest$ac_exeext conftest.$ac_ext 5762fi 5763 5764 5765 CFLAGS="$xorg_testset_save_CFLAGS" 5766 5767 eval supported=\$$cacheid 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5769$as_echo "$supported" >&6; } 5770 if test "$supported" = "yes" ; then 5771 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5772 found="yes" 5773 fi 5774 fi 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790xorg_testset_save_CFLAGS="$CFLAGS" 5791 5792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801int i; 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO"; then : 5804 xorg_cv_cc_flag_unknown_warning_option=yes 5805else 5806 xorg_cv_cc_flag_unknown_warning_option=no 5807fi 5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809fi 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814fi 5815 5816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5819 fi 5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828int i; 5829_ACEOF 5830if ac_fn_c_try_compile "$LINENO"; then : 5831 xorg_cv_cc_flag_unused_command_line_argument=yes 5832else 5833 xorg_cv_cc_flag_unused_command_line_argument=no 5834fi 5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5836fi 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5840 CFLAGS="$xorg_testset_save_CFLAGS" 5841fi 5842 5843found="no" 5844 5845 if test $found = "no" ; then 5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5848 fi 5849 5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5852 fi 5853 5854 CFLAGS="$CFLAGS -Wold-style-definition" 5855 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5857$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5858 cacheid=xorg_cv_cc_flag__Wold_style_definition 5859 if eval \${$cacheid+:} false; then : 5860 $as_echo_n "(cached) " >&6 5861else 5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5863/* end confdefs.h. */ 5864int i; 5865int 5866main () 5867{ 5868 5869 ; 5870 return 0; 5871} 5872_ACEOF 5873if ac_fn_c_try_link "$LINENO"; then : 5874 eval $cacheid=yes 5875else 5876 eval $cacheid=no 5877fi 5878rm -f core conftest.err conftest.$ac_objext \ 5879 conftest$ac_exeext conftest.$ac_ext 5880fi 5881 5882 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884 5885 eval supported=\$$cacheid 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5887$as_echo "$supported" >&6; } 5888 if test "$supported" = "yes" ; then 5889 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5890 found="yes" 5891 fi 5892 fi 5893 5894 if test $found = "no" ; then 5895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5897 fi 5898 5899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5901 fi 5902 5903 CFLAGS="$CFLAGS -fd" 5904 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5906$as_echo_n "checking if $CC supports -fd... " >&6; } 5907 cacheid=xorg_cv_cc_flag__fd 5908 if eval \${$cacheid+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914int 5915main () 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922if ac_fn_c_try_link "$LINENO"; then : 5923 eval $cacheid=yes 5924else 5925 eval $cacheid=no 5926fi 5927rm -f core conftest.err conftest.$ac_objext \ 5928 conftest$ac_exeext conftest.$ac_ext 5929fi 5930 5931 5932 CFLAGS="$xorg_testset_save_CFLAGS" 5933 5934 eval supported=\$$cacheid 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5936$as_echo "$supported" >&6; } 5937 if test "$supported" = "yes" ; then 5938 BASE_CFLAGS="$BASE_CFLAGS -fd" 5939 found="yes" 5940 fi 5941 fi 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957xorg_testset_save_CFLAGS="$CFLAGS" 5958 5959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968int i; 5969_ACEOF 5970if ac_fn_c_try_compile "$LINENO"; then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else 5973 xorg_cv_cc_flag_unknown_warning_option=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5976fi 5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995int i; 5996_ACEOF 5997if ac_fn_c_try_compile "$LINENO"; then : 5998 xorg_cv_cc_flag_unused_command_line_argument=yes 5999else 6000 xorg_cv_cc_flag_unused_command_line_argument=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6003fi 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008fi 6009 6010found="no" 6011 6012 if test $found = "no" ; then 6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 fi 6016 6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6019 fi 6020 6021 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6022 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6024$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6025 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6026 if eval \${$cacheid+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031int i; 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040if ac_fn_c_try_link "$LINENO"; then : 6041 eval $cacheid=yes 6042else 6043 eval $cacheid=no 6044fi 6045rm -f core conftest.err conftest.$ac_objext \ 6046 conftest$ac_exeext conftest.$ac_ext 6047fi 6048 6049 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051 6052 eval supported=\$$cacheid 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6054$as_echo "$supported" >&6; } 6055 if test "$supported" = "yes" ; then 6056 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6057 found="yes" 6058 fi 6059 fi 6060 6061 6062 6063 6064 6065# This chunk adds additional warnings that could catch undesired effects. 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079xorg_testset_save_CFLAGS="$CFLAGS" 6080 6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091_ACEOF 6092if ac_fn_c_try_compile "$LINENO"; then : 6093 xorg_cv_cc_flag_unknown_warning_option=yes 6094else 6095 xorg_cv_cc_flag_unknown_warning_option=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6098fi 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6102 CFLAGS="$xorg_testset_save_CFLAGS" 6103fi 6104 6105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6108 fi 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117int i; 6118_ACEOF 6119if ac_fn_c_try_compile "$LINENO"; then : 6120 xorg_cv_cc_flag_unused_command_line_argument=yes 6121else 6122 xorg_cv_cc_flag_unused_command_line_argument=no 6123fi 6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6125fi 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130fi 6131 6132found="no" 6133 6134 if test $found = "no" ; then 6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 fi 6138 6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 fi 6142 6143 CFLAGS="$CFLAGS -Wunused" 6144 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6146$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6147 cacheid=xorg_cv_cc_flag__Wunused 6148 if eval \${$cacheid+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153int i; 6154int 6155main () 6156{ 6157 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162if ac_fn_c_try_link "$LINENO"; then : 6163 eval $cacheid=yes 6164else 6165 eval $cacheid=no 6166fi 6167rm -f core conftest.err conftest.$ac_objext \ 6168 conftest$ac_exeext conftest.$ac_ext 6169fi 6170 6171 6172 CFLAGS="$xorg_testset_save_CFLAGS" 6173 6174 eval supported=\$$cacheid 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6176$as_echo "$supported" >&6; } 6177 if test "$supported" = "yes" ; then 6178 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6179 found="yes" 6180 fi 6181 fi 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197xorg_testset_save_CFLAGS="$CFLAGS" 6198 6199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6204 $as_echo_n "(cached) " >&6 6205else 6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208int i; 6209_ACEOF 6210if ac_fn_c_try_compile "$LINENO"; then : 6211 xorg_cv_cc_flag_unknown_warning_option=yes 6212else 6213 xorg_cv_cc_flag_unknown_warning_option=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6216fi 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221fi 6222 6223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6226 fi 6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232else 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234/* end confdefs.h. */ 6235int i; 6236_ACEOF 6237if ac_fn_c_try_compile "$LINENO"; then : 6238 xorg_cv_cc_flag_unused_command_line_argument=yes 6239else 6240 xorg_cv_cc_flag_unused_command_line_argument=no 6241fi 6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6243fi 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6247 CFLAGS="$xorg_testset_save_CFLAGS" 6248fi 6249 6250found="no" 6251 6252 if test $found = "no" ; then 6253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6255 fi 6256 6257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6259 fi 6260 6261 CFLAGS="$CFLAGS -Wuninitialized" 6262 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6264$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6265 cacheid=xorg_cv_cc_flag__Wuninitialized 6266 if eval \${$cacheid+:} false; then : 6267 $as_echo_n "(cached) " >&6 6268else 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271int i; 6272int 6273main () 6274{ 6275 6276 ; 6277 return 0; 6278} 6279_ACEOF 6280if ac_fn_c_try_link "$LINENO"; then : 6281 eval $cacheid=yes 6282else 6283 eval $cacheid=no 6284fi 6285rm -f core conftest.err conftest.$ac_objext \ 6286 conftest$ac_exeext conftest.$ac_ext 6287fi 6288 6289 6290 CFLAGS="$xorg_testset_save_CFLAGS" 6291 6292 eval supported=\$$cacheid 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6294$as_echo "$supported" >&6; } 6295 if test "$supported" = "yes" ; then 6296 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6297 found="yes" 6298 fi 6299 fi 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315xorg_testset_save_CFLAGS="$CFLAGS" 6316 6317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6325/* end confdefs.h. */ 6326int i; 6327_ACEOF 6328if ac_fn_c_try_compile "$LINENO"; then : 6329 xorg_cv_cc_flag_unknown_warning_option=yes 6330else 6331 xorg_cv_cc_flag_unknown_warning_option=no 6332fi 6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339fi 6340 6341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6344 fi 6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6349 $as_echo_n "(cached) " >&6 6350else 6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6352/* end confdefs.h. */ 6353int i; 6354_ACEOF 6355if ac_fn_c_try_compile "$LINENO"; then : 6356 xorg_cv_cc_flag_unused_command_line_argument=yes 6357else 6358 xorg_cv_cc_flag_unused_command_line_argument=no 6359fi 6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6361fi 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366fi 6367 6368found="no" 6369 6370 if test $found = "no" ; then 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 fi 6374 6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 fi 6378 6379 CFLAGS="$CFLAGS -Wshadow" 6380 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6382$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6383 cacheid=xorg_cv_cc_flag__Wshadow 6384 if eval \${$cacheid+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389int i; 6390int 6391main () 6392{ 6393 6394 ; 6395 return 0; 6396} 6397_ACEOF 6398if ac_fn_c_try_link "$LINENO"; then : 6399 eval $cacheid=yes 6400else 6401 eval $cacheid=no 6402fi 6403rm -f core conftest.err conftest.$ac_objext \ 6404 conftest$ac_exeext conftest.$ac_ext 6405fi 6406 6407 6408 CFLAGS="$xorg_testset_save_CFLAGS" 6409 6410 eval supported=\$$cacheid 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6412$as_echo "$supported" >&6; } 6413 if test "$supported" = "yes" ; then 6414 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6415 found="yes" 6416 fi 6417 fi 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433xorg_testset_save_CFLAGS="$CFLAGS" 6434 6435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445_ACEOF 6446if ac_fn_c_try_compile "$LINENO"; then : 6447 xorg_cv_cc_flag_unknown_warning_option=yes 6448else 6449 xorg_cv_cc_flag_unknown_warning_option=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457fi 6458 6459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6467 $as_echo_n "(cached) " >&6 6468else 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471int i; 6472_ACEOF 6473if ac_fn_c_try_compile "$LINENO"; then : 6474 xorg_cv_cc_flag_unused_command_line_argument=yes 6475else 6476 xorg_cv_cc_flag_unused_command_line_argument=no 6477fi 6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6483 CFLAGS="$xorg_testset_save_CFLAGS" 6484fi 6485 6486found="no" 6487 6488 if test $found = "no" ; then 6489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6491 fi 6492 6493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6495 fi 6496 6497 CFLAGS="$CFLAGS -Wmissing-noreturn" 6498 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6500$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6501 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6502 if eval \${$cacheid+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507int i; 6508int 6509main () 6510{ 6511 6512 ; 6513 return 0; 6514} 6515_ACEOF 6516if ac_fn_c_try_link "$LINENO"; then : 6517 eval $cacheid=yes 6518else 6519 eval $cacheid=no 6520fi 6521rm -f core conftest.err conftest.$ac_objext \ 6522 conftest$ac_exeext conftest.$ac_ext 6523fi 6524 6525 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527 6528 eval supported=\$$cacheid 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6530$as_echo "$supported" >&6; } 6531 if test "$supported" = "yes" ; then 6532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6533 found="yes" 6534 fi 6535 fi 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551xorg_testset_save_CFLAGS="$CFLAGS" 6552 6553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561/* end confdefs.h. */ 6562int i; 6563_ACEOF 6564if ac_fn_c_try_compile "$LINENO"; then : 6565 xorg_cv_cc_flag_unknown_warning_option=yes 6566else 6567 xorg_cv_cc_flag_unknown_warning_option=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6570fi 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575fi 6576 6577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 fi 6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586else 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589int i; 6590_ACEOF 6591if ac_fn_c_try_compile "$LINENO"; then : 6592 xorg_cv_cc_flag_unused_command_line_argument=yes 6593else 6594 xorg_cv_cc_flag_unused_command_line_argument=no 6595fi 6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6597fi 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6601 CFLAGS="$xorg_testset_save_CFLAGS" 6602fi 6603 6604found="no" 6605 6606 if test $found = "no" ; then 6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6609 fi 6610 6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6613 fi 6614 6615 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6616 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6618$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6619 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6620 if eval \${$cacheid+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625int i; 6626int 6627main () 6628{ 6629 6630 ; 6631 return 0; 6632} 6633_ACEOF 6634if ac_fn_c_try_link "$LINENO"; then : 6635 eval $cacheid=yes 6636else 6637 eval $cacheid=no 6638fi 6639rm -f core conftest.err conftest.$ac_objext \ 6640 conftest$ac_exeext conftest.$ac_ext 6641fi 6642 6643 6644 CFLAGS="$xorg_testset_save_CFLAGS" 6645 6646 eval supported=\$$cacheid 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6648$as_echo "$supported" >&6; } 6649 if test "$supported" = "yes" ; then 6650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6651 found="yes" 6652 fi 6653 fi 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669xorg_testset_save_CFLAGS="$CFLAGS" 6670 6671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO"; then : 6683 xorg_cv_cc_flag_unknown_warning_option=yes 6684else 6685 xorg_cv_cc_flag_unknown_warning_option=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693fi 6694 6695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707int i; 6708_ACEOF 6709if ac_fn_c_try_compile "$LINENO"; then : 6710 xorg_cv_cc_flag_unused_command_line_argument=yes 6711else 6712 xorg_cv_cc_flag_unused_command_line_argument=no 6713fi 6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6715fi 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6719 CFLAGS="$xorg_testset_save_CFLAGS" 6720fi 6721 6722found="no" 6723 6724 if test $found = "no" ; then 6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 fi 6728 6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6731 fi 6732 6733 CFLAGS="$CFLAGS -Wredundant-decls" 6734 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6736$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6737 cacheid=xorg_cv_cc_flag__Wredundant_decls 6738 if eval \${$cacheid+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743int i; 6744int 6745main () 6746{ 6747 6748 ; 6749 return 0; 6750} 6751_ACEOF 6752if ac_fn_c_try_link "$LINENO"; then : 6753 eval $cacheid=yes 6754else 6755 eval $cacheid=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext \ 6758 conftest$ac_exeext conftest.$ac_ext 6759fi 6760 6761 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763 6764 eval supported=\$$cacheid 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6766$as_echo "$supported" >&6; } 6767 if test "$supported" = "yes" ; then 6768 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6769 found="yes" 6770 fi 6771 fi 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787xorg_testset_save_CFLAGS="$CFLAGS" 6788 6789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO"; then : 6801 xorg_cv_cc_flag_unknown_warning_option=yes 6802else 6803 xorg_cv_cc_flag_unknown_warning_option=no 6804fi 6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6806fi 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811fi 6812 6813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 fi 6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6821 $as_echo_n "(cached) " >&6 6822else 6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6824/* end confdefs.h. */ 6825int i; 6826_ACEOF 6827if ac_fn_c_try_compile "$LINENO"; then : 6828 xorg_cv_cc_flag_unused_command_line_argument=yes 6829else 6830 xorg_cv_cc_flag_unused_command_line_argument=no 6831fi 6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6833fi 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6837 CFLAGS="$xorg_testset_save_CFLAGS" 6838fi 6839 6840found="no" 6841 6842 if test $found = "no" ; then 6843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6845 fi 6846 6847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6849 fi 6850 6851 CFLAGS="$CFLAGS -Wlogical-op" 6852 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6854$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6855 cacheid=xorg_cv_cc_flag__Wlogical_op 6856 if eval \${$cacheid+:} false; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860/* end confdefs.h. */ 6861int i; 6862int 6863main () 6864{ 6865 6866 ; 6867 return 0; 6868} 6869_ACEOF 6870if ac_fn_c_try_link "$LINENO"; then : 6871 eval $cacheid=yes 6872else 6873 eval $cacheid=no 6874fi 6875rm -f core conftest.err conftest.$ac_objext \ 6876 conftest$ac_exeext conftest.$ac_ext 6877fi 6878 6879 6880 CFLAGS="$xorg_testset_save_CFLAGS" 6881 6882 eval supported=\$$cacheid 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6884$as_echo "$supported" >&6; } 6885 if test "$supported" = "yes" ; then 6886 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6887 found="yes" 6888 fi 6889 fi 6890 6891 6892 6893# These are currently disabled because they are noisy. They will be enabled 6894# in the future once the codebase is sufficiently modernized to silence 6895# them. For now, I don't want them to drown out the other warnings. 6896# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6897# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6898# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6899 6900# Turn some warnings into errors, so we don't accidently get successful builds 6901# when there are problems that should be fixed. 6902 6903if test "x$SELECTIVE_WERROR" = "xyes" ; then 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917xorg_testset_save_CFLAGS="$CFLAGS" 6918 6919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928int i; 6929_ACEOF 6930if ac_fn_c_try_compile "$LINENO"; then : 6931 xorg_cv_cc_flag_unknown_warning_option=yes 6932else 6933 xorg_cv_cc_flag_unknown_warning_option=no 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6936fi 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6940 CFLAGS="$xorg_testset_save_CFLAGS" 6941fi 6942 6943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 fi 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956_ACEOF 6957if ac_fn_c_try_compile "$LINENO"; then : 6958 xorg_cv_cc_flag_unused_command_line_argument=yes 6959else 6960 xorg_cv_cc_flag_unused_command_line_argument=no 6961fi 6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6963fi 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6967 CFLAGS="$xorg_testset_save_CFLAGS" 6968fi 6969 6970found="no" 6971 6972 if test $found = "no" ; then 6973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6975 fi 6976 6977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6979 fi 6980 6981 CFLAGS="$CFLAGS -Werror=implicit" 6982 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6984$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6985 cacheid=xorg_cv_cc_flag__Werror_implicit 6986 if eval \${$cacheid+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990/* end confdefs.h. */ 6991int i; 6992int 6993main () 6994{ 6995 6996 ; 6997 return 0; 6998} 6999_ACEOF 7000if ac_fn_c_try_link "$LINENO"; then : 7001 eval $cacheid=yes 7002else 7003 eval $cacheid=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext \ 7006 conftest$ac_exeext conftest.$ac_ext 7007fi 7008 7009 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011 7012 eval supported=\$$cacheid 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7014$as_echo "$supported" >&6; } 7015 if test "$supported" = "yes" ; then 7016 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7017 found="yes" 7018 fi 7019 fi 7020 7021 if test $found = "no" ; then 7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 fi 7025 7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7028 fi 7029 7030 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7031 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7033$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7034 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7035 if eval \${$cacheid+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040int i; 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049if ac_fn_c_try_link "$LINENO"; then : 7050 eval $cacheid=yes 7051else 7052 eval $cacheid=no 7053fi 7054rm -f core conftest.err conftest.$ac_objext \ 7055 conftest$ac_exeext conftest.$ac_ext 7056fi 7057 7058 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060 7061 eval supported=\$$cacheid 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7063$as_echo "$supported" >&6; } 7064 if test "$supported" = "yes" ; then 7065 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7066 found="yes" 7067 fi 7068 fi 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084xorg_testset_save_CFLAGS="$CFLAGS" 7085 7086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092else 7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094/* end confdefs.h. */ 7095int i; 7096_ACEOF 7097if ac_fn_c_try_compile "$LINENO"; then : 7098 xorg_cv_cc_flag_unknown_warning_option=yes 7099else 7100 xorg_cv_cc_flag_unknown_warning_option=no 7101fi 7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7103fi 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7107 CFLAGS="$xorg_testset_save_CFLAGS" 7108fi 7109 7110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 fi 7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121/* end confdefs.h. */ 7122int i; 7123_ACEOF 7124if ac_fn_c_try_compile "$LINENO"; then : 7125 xorg_cv_cc_flag_unused_command_line_argument=yes 7126else 7127 xorg_cv_cc_flag_unused_command_line_argument=no 7128fi 7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7130fi 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135fi 7136 7137found="no" 7138 7139 if test $found = "no" ; then 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7146 fi 7147 7148 CFLAGS="$CFLAGS -Werror=nonnull" 7149 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7151$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7152 cacheid=xorg_cv_cc_flag__Werror_nonnull 7153 if eval \${$cacheid+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157/* end confdefs.h. */ 7158int i; 7159int 7160main () 7161{ 7162 7163 ; 7164 return 0; 7165} 7166_ACEOF 7167if ac_fn_c_try_link "$LINENO"; then : 7168 eval $cacheid=yes 7169else 7170 eval $cacheid=no 7171fi 7172rm -f core conftest.err conftest.$ac_objext \ 7173 conftest$ac_exeext conftest.$ac_ext 7174fi 7175 7176 7177 CFLAGS="$xorg_testset_save_CFLAGS" 7178 7179 eval supported=\$$cacheid 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7181$as_echo "$supported" >&6; } 7182 if test "$supported" = "yes" ; then 7183 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7184 found="yes" 7185 fi 7186 fi 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202xorg_testset_save_CFLAGS="$CFLAGS" 7203 7204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7212/* end confdefs.h. */ 7213int i; 7214_ACEOF 7215if ac_fn_c_try_compile "$LINENO"; then : 7216 xorg_cv_cc_flag_unknown_warning_option=yes 7217else 7218 xorg_cv_cc_flag_unknown_warning_option=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7221fi 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226fi 7227 7228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7231 fi 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239/* end confdefs.h. */ 7240int i; 7241_ACEOF 7242if ac_fn_c_try_compile "$LINENO"; then : 7243 xorg_cv_cc_flag_unused_command_line_argument=yes 7244else 7245 xorg_cv_cc_flag_unused_command_line_argument=no 7246fi 7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7248fi 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7252 CFLAGS="$xorg_testset_save_CFLAGS" 7253fi 7254 7255found="no" 7256 7257 if test $found = "no" ; then 7258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7260 fi 7261 7262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7264 fi 7265 7266 CFLAGS="$CFLAGS -Werror=init-self" 7267 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7269$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7270 cacheid=xorg_cv_cc_flag__Werror_init_self 7271 if eval \${$cacheid+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277int 7278main () 7279{ 7280 7281 ; 7282 return 0; 7283} 7284_ACEOF 7285if ac_fn_c_try_link "$LINENO"; then : 7286 eval $cacheid=yes 7287else 7288 eval $cacheid=no 7289fi 7290rm -f core conftest.err conftest.$ac_objext \ 7291 conftest$ac_exeext conftest.$ac_ext 7292fi 7293 7294 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296 7297 eval supported=\$$cacheid 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7299$as_echo "$supported" >&6; } 7300 if test "$supported" = "yes" ; then 7301 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7302 found="yes" 7303 fi 7304 fi 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320xorg_testset_save_CFLAGS="$CFLAGS" 7321 7322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328else 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331int i; 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO"; then : 7334 xorg_cv_cc_flag_unknown_warning_option=yes 7335else 7336 xorg_cv_cc_flag_unknown_warning_option=no 7337fi 7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7339fi 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7343 CFLAGS="$xorg_testset_save_CFLAGS" 7344fi 7345 7346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7349 fi 7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355else 7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7357/* end confdefs.h. */ 7358int i; 7359_ACEOF 7360if ac_fn_c_try_compile "$LINENO"; then : 7361 xorg_cv_cc_flag_unused_command_line_argument=yes 7362else 7363 xorg_cv_cc_flag_unused_command_line_argument=no 7364fi 7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7366fi 7367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7370 CFLAGS="$xorg_testset_save_CFLAGS" 7371fi 7372 7373found="no" 7374 7375 if test $found = "no" ; then 7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7378 fi 7379 7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7382 fi 7383 7384 CFLAGS="$CFLAGS -Werror=main" 7385 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7387$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7388 cacheid=xorg_cv_cc_flag__Werror_main 7389 if eval \${$cacheid+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394int i; 7395int 7396main () 7397{ 7398 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_link "$LINENO"; then : 7404 eval $cacheid=yes 7405else 7406 eval $cacheid=no 7407fi 7408rm -f core conftest.err conftest.$ac_objext \ 7409 conftest$ac_exeext conftest.$ac_ext 7410fi 7411 7412 7413 CFLAGS="$xorg_testset_save_CFLAGS" 7414 7415 eval supported=\$$cacheid 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7417$as_echo "$supported" >&6; } 7418 if test "$supported" = "yes" ; then 7419 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7420 found="yes" 7421 fi 7422 fi 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438xorg_testset_save_CFLAGS="$CFLAGS" 7439 7440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO"; then : 7452 xorg_cv_cc_flag_unknown_warning_option=yes 7453else 7454 xorg_cv_cc_flag_unknown_warning_option=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7457fi 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462fi 7463 7464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7467 fi 7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477_ACEOF 7478if ac_fn_c_try_compile "$LINENO"; then : 7479 xorg_cv_cc_flag_unused_command_line_argument=yes 7480else 7481 xorg_cv_cc_flag_unused_command_line_argument=no 7482fi 7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7484fi 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7488 CFLAGS="$xorg_testset_save_CFLAGS" 7489fi 7490 7491found="no" 7492 7493 if test $found = "no" ; then 7494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7496 fi 7497 7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7500 fi 7501 7502 CFLAGS="$CFLAGS -Werror=missing-braces" 7503 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7505$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7506 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7507 if eval \${$cacheid+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512int i; 7513int 7514main () 7515{ 7516 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521if ac_fn_c_try_link "$LINENO"; then : 7522 eval $cacheid=yes 7523else 7524 eval $cacheid=no 7525fi 7526rm -f core conftest.err conftest.$ac_objext \ 7527 conftest$ac_exeext conftest.$ac_ext 7528fi 7529 7530 7531 CFLAGS="$xorg_testset_save_CFLAGS" 7532 7533 eval supported=\$$cacheid 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7535$as_echo "$supported" >&6; } 7536 if test "$supported" = "yes" ; then 7537 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7538 found="yes" 7539 fi 7540 fi 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556xorg_testset_save_CFLAGS="$CFLAGS" 7557 7558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567int i; 7568_ACEOF 7569if ac_fn_c_try_compile "$LINENO"; then : 7570 xorg_cv_cc_flag_unknown_warning_option=yes 7571else 7572 xorg_cv_cc_flag_unknown_warning_option=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7575fi 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580fi 7581 7582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7585 fi 7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7590 $as_echo_n "(cached) " >&6 7591else 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594int i; 7595_ACEOF 7596if ac_fn_c_try_compile "$LINENO"; then : 7597 xorg_cv_cc_flag_unused_command_line_argument=yes 7598else 7599 xorg_cv_cc_flag_unused_command_line_argument=no 7600fi 7601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7602fi 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7606 CFLAGS="$xorg_testset_save_CFLAGS" 7607fi 7608 7609found="no" 7610 7611 if test $found = "no" ; then 7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7614 fi 7615 7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 fi 7619 7620 CFLAGS="$CFLAGS -Werror=sequence-point" 7621 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7623$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7624 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7625 if eval \${$cacheid+:} false; then : 7626 $as_echo_n "(cached) " >&6 7627else 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630int i; 7631int 7632main () 7633{ 7634 7635 ; 7636 return 0; 7637} 7638_ACEOF 7639if ac_fn_c_try_link "$LINENO"; then : 7640 eval $cacheid=yes 7641else 7642 eval $cacheid=no 7643fi 7644rm -f core conftest.err conftest.$ac_objext \ 7645 conftest$ac_exeext conftest.$ac_ext 7646fi 7647 7648 7649 CFLAGS="$xorg_testset_save_CFLAGS" 7650 7651 eval supported=\$$cacheid 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7653$as_echo "$supported" >&6; } 7654 if test "$supported" = "yes" ; then 7655 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7656 found="yes" 7657 fi 7658 fi 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674xorg_testset_save_CFLAGS="$CFLAGS" 7675 7676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685int i; 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO"; then : 7688 xorg_cv_cc_flag_unknown_warning_option=yes 7689else 7690 xorg_cv_cc_flag_unknown_warning_option=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698fi 7699 7700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703 fi 7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712int i; 7713_ACEOF 7714if ac_fn_c_try_compile "$LINENO"; then : 7715 xorg_cv_cc_flag_unused_command_line_argument=yes 7716else 7717 xorg_cv_cc_flag_unused_command_line_argument=no 7718fi 7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7720fi 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725fi 7726 7727found="no" 7728 7729 if test $found = "no" ; then 7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 fi 7733 7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7736 fi 7737 7738 CFLAGS="$CFLAGS -Werror=return-type" 7739 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7741$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7742 cacheid=xorg_cv_cc_flag__Werror_return_type 7743 if eval \${$cacheid+:} false; then : 7744 $as_echo_n "(cached) " >&6 7745else 7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7747/* end confdefs.h. */ 7748int i; 7749int 7750main () 7751{ 7752 7753 ; 7754 return 0; 7755} 7756_ACEOF 7757if ac_fn_c_try_link "$LINENO"; then : 7758 eval $cacheid=yes 7759else 7760 eval $cacheid=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext \ 7763 conftest$ac_exeext conftest.$ac_ext 7764fi 7765 7766 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768 7769 eval supported=\$$cacheid 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7771$as_echo "$supported" >&6; } 7772 if test "$supported" = "yes" ; then 7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7774 found="yes" 7775 fi 7776 fi 7777 7778 if test $found = "no" ; then 7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 fi 7782 7783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7785 fi 7786 7787 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7788 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7790$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7791 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7792 if eval \${$cacheid+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794else 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797int i; 7798int 7799main () 7800{ 7801 7802 ; 7803 return 0; 7804} 7805_ACEOF 7806if ac_fn_c_try_link "$LINENO"; then : 7807 eval $cacheid=yes 7808else 7809 eval $cacheid=no 7810fi 7811rm -f core conftest.err conftest.$ac_objext \ 7812 conftest$ac_exeext conftest.$ac_ext 7813fi 7814 7815 7816 CFLAGS="$xorg_testset_save_CFLAGS" 7817 7818 eval supported=\$$cacheid 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7820$as_echo "$supported" >&6; } 7821 if test "$supported" = "yes" ; then 7822 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7823 found="yes" 7824 fi 7825 fi 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841xorg_testset_save_CFLAGS="$CFLAGS" 7842 7843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7851/* end confdefs.h. */ 7852int i; 7853_ACEOF 7854if ac_fn_c_try_compile "$LINENO"; then : 7855 xorg_cv_cc_flag_unknown_warning_option=yes 7856else 7857 xorg_cv_cc_flag_unknown_warning_option=no 7858fi 7859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7860fi 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7864 CFLAGS="$xorg_testset_save_CFLAGS" 7865fi 7866 7867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7870 fi 7871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879int i; 7880_ACEOF 7881if ac_fn_c_try_compile "$LINENO"; then : 7882 xorg_cv_cc_flag_unused_command_line_argument=yes 7883else 7884 xorg_cv_cc_flag_unused_command_line_argument=no 7885fi 7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7887fi 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892fi 7893 7894found="no" 7895 7896 if test $found = "no" ; then 7897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7899 fi 7900 7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7903 fi 7904 7905 CFLAGS="$CFLAGS -Werror=trigraphs" 7906 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7908$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7909 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7910 if eval \${$cacheid+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914/* end confdefs.h. */ 7915int i; 7916int 7917main () 7918{ 7919 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924if ac_fn_c_try_link "$LINENO"; then : 7925 eval $cacheid=yes 7926else 7927 eval $cacheid=no 7928fi 7929rm -f core conftest.err conftest.$ac_objext \ 7930 conftest$ac_exeext conftest.$ac_ext 7931fi 7932 7933 7934 CFLAGS="$xorg_testset_save_CFLAGS" 7935 7936 eval supported=\$$cacheid 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7938$as_echo "$supported" >&6; } 7939 if test "$supported" = "yes" ; then 7940 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7941 found="yes" 7942 fi 7943 fi 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959xorg_testset_save_CFLAGS="$CFLAGS" 7960 7961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969/* end confdefs.h. */ 7970int i; 7971_ACEOF 7972if ac_fn_c_try_compile "$LINENO"; then : 7973 xorg_cv_cc_flag_unknown_warning_option=yes 7974else 7975 xorg_cv_cc_flag_unknown_warning_option=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7978fi 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7982 CFLAGS="$xorg_testset_save_CFLAGS" 7983fi 7984 7985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7988 fi 7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996/* end confdefs.h. */ 7997int i; 7998_ACEOF 7999if ac_fn_c_try_compile "$LINENO"; then : 8000 xorg_cv_cc_flag_unused_command_line_argument=yes 8001else 8002 xorg_cv_cc_flag_unused_command_line_argument=no 8003fi 8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8009 CFLAGS="$xorg_testset_save_CFLAGS" 8010fi 8011 8012found="no" 8013 8014 if test $found = "no" ; then 8015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017 fi 8018 8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8021 fi 8022 8023 CFLAGS="$CFLAGS -Werror=array-bounds" 8024 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8026$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8027 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8028 if eval \${$cacheid+:} false; then : 8029 $as_echo_n "(cached) " >&6 8030else 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033int i; 8034int 8035main () 8036{ 8037 8038 ; 8039 return 0; 8040} 8041_ACEOF 8042if ac_fn_c_try_link "$LINENO"; then : 8043 eval $cacheid=yes 8044else 8045 eval $cacheid=no 8046fi 8047rm -f core conftest.err conftest.$ac_objext \ 8048 conftest$ac_exeext conftest.$ac_ext 8049fi 8050 8051 8052 CFLAGS="$xorg_testset_save_CFLAGS" 8053 8054 eval supported=\$$cacheid 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8056$as_echo "$supported" >&6; } 8057 if test "$supported" = "yes" ; then 8058 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8059 found="yes" 8060 fi 8061 fi 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077xorg_testset_save_CFLAGS="$CFLAGS" 8078 8079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087/* end confdefs.h. */ 8088int i; 8089_ACEOF 8090if ac_fn_c_try_compile "$LINENO"; then : 8091 xorg_cv_cc_flag_unknown_warning_option=yes 8092else 8093 xorg_cv_cc_flag_unknown_warning_option=no 8094fi 8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8096fi 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101fi 8102 8103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8106 fi 8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8114/* end confdefs.h. */ 8115int i; 8116_ACEOF 8117if ac_fn_c_try_compile "$LINENO"; then : 8118 xorg_cv_cc_flag_unused_command_line_argument=yes 8119else 8120 xorg_cv_cc_flag_unused_command_line_argument=no 8121fi 8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8123fi 8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8127 CFLAGS="$xorg_testset_save_CFLAGS" 8128fi 8129 8130found="no" 8131 8132 if test $found = "no" ; then 8133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8135 fi 8136 8137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8139 fi 8140 8141 CFLAGS="$CFLAGS -Werror=write-strings" 8142 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8144$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8145 cacheid=xorg_cv_cc_flag__Werror_write_strings 8146 if eval \${$cacheid+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8150/* end confdefs.h. */ 8151int i; 8152int 8153main () 8154{ 8155 8156 ; 8157 return 0; 8158} 8159_ACEOF 8160if ac_fn_c_try_link "$LINENO"; then : 8161 eval $cacheid=yes 8162else 8163 eval $cacheid=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext \ 8166 conftest$ac_exeext conftest.$ac_ext 8167fi 8168 8169 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171 8172 eval supported=\$$cacheid 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8174$as_echo "$supported" >&6; } 8175 if test "$supported" = "yes" ; then 8176 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8177 found="yes" 8178 fi 8179 fi 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195xorg_testset_save_CFLAGS="$CFLAGS" 8196 8197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8202 $as_echo_n "(cached) " >&6 8203else 8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8205/* end confdefs.h. */ 8206int i; 8207_ACEOF 8208if ac_fn_c_try_compile "$LINENO"; then : 8209 xorg_cv_cc_flag_unknown_warning_option=yes 8210else 8211 xorg_cv_cc_flag_unknown_warning_option=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8214fi 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219fi 8220 8221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8224 fi 8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8229 $as_echo_n "(cached) " >&6 8230else 8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8232/* end confdefs.h. */ 8233int i; 8234_ACEOF 8235if ac_fn_c_try_compile "$LINENO"; then : 8236 xorg_cv_cc_flag_unused_command_line_argument=yes 8237else 8238 xorg_cv_cc_flag_unused_command_line_argument=no 8239fi 8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8241fi 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8245 CFLAGS="$xorg_testset_save_CFLAGS" 8246fi 8247 8248found="no" 8249 8250 if test $found = "no" ; then 8251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8253 fi 8254 8255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8257 fi 8258 8259 CFLAGS="$CFLAGS -Werror=address" 8260 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8262$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8263 cacheid=xorg_cv_cc_flag__Werror_address 8264 if eval \${$cacheid+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269int i; 8270int 8271main () 8272{ 8273 8274 ; 8275 return 0; 8276} 8277_ACEOF 8278if ac_fn_c_try_link "$LINENO"; then : 8279 eval $cacheid=yes 8280else 8281 eval $cacheid=no 8282fi 8283rm -f core conftest.err conftest.$ac_objext \ 8284 conftest$ac_exeext conftest.$ac_ext 8285fi 8286 8287 8288 CFLAGS="$xorg_testset_save_CFLAGS" 8289 8290 eval supported=\$$cacheid 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8292$as_echo "$supported" >&6; } 8293 if test "$supported" = "yes" ; then 8294 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8295 found="yes" 8296 fi 8297 fi 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313xorg_testset_save_CFLAGS="$CFLAGS" 8314 8315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324int i; 8325_ACEOF 8326if ac_fn_c_try_compile "$LINENO"; then : 8327 xorg_cv_cc_flag_unknown_warning_option=yes 8328else 8329 xorg_cv_cc_flag_unknown_warning_option=no 8330fi 8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8332fi 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8336 CFLAGS="$xorg_testset_save_CFLAGS" 8337fi 8338 8339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8342 fi 8343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351int i; 8352_ACEOF 8353if ac_fn_c_try_compile "$LINENO"; then : 8354 xorg_cv_cc_flag_unused_command_line_argument=yes 8355else 8356 xorg_cv_cc_flag_unused_command_line_argument=no 8357fi 8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8359fi 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8363 CFLAGS="$xorg_testset_save_CFLAGS" 8364fi 8365 8366found="no" 8367 8368 if test $found = "no" ; then 8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8371 fi 8372 8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375 fi 8376 8377 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8378 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8380$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8381 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8382 if eval \${$cacheid+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387int i; 8388int 8389main () 8390{ 8391 8392 ; 8393 return 0; 8394} 8395_ACEOF 8396if ac_fn_c_try_link "$LINENO"; then : 8397 eval $cacheid=yes 8398else 8399 eval $cacheid=no 8400fi 8401rm -f core conftest.err conftest.$ac_objext \ 8402 conftest$ac_exeext conftest.$ac_ext 8403fi 8404 8405 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407 8408 eval supported=\$$cacheid 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8410$as_echo "$supported" >&6; } 8411 if test "$supported" = "yes" ; then 8412 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8413 found="yes" 8414 fi 8415 fi 8416 8417 if test $found = "no" ; then 8418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 fi 8421 8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8424 fi 8425 8426 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8427 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8429$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8430 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8431 if eval \${$cacheid+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8435/* end confdefs.h. */ 8436int i; 8437int 8438main () 8439{ 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445if ac_fn_c_try_link "$LINENO"; then : 8446 eval $cacheid=yes 8447else 8448 eval $cacheid=no 8449fi 8450rm -f core conftest.err conftest.$ac_objext \ 8451 conftest$ac_exeext conftest.$ac_ext 8452fi 8453 8454 8455 CFLAGS="$xorg_testset_save_CFLAGS" 8456 8457 eval supported=\$$cacheid 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8459$as_echo "$supported" >&6; } 8460 if test "$supported" = "yes" ; then 8461 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8462 found="yes" 8463 fi 8464 fi 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480xorg_testset_save_CFLAGS="$CFLAGS" 8481 8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492_ACEOF 8493if ac_fn_c_try_compile "$LINENO"; then : 8494 xorg_cv_cc_flag_unknown_warning_option=yes 8495else 8496 xorg_cv_cc_flag_unknown_warning_option=no 8497fi 8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8499fi 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8503 CFLAGS="$xorg_testset_save_CFLAGS" 8504fi 8505 8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 fi 8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8514 $as_echo_n "(cached) " >&6 8515else 8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517/* end confdefs.h. */ 8518int i; 8519_ACEOF 8520if ac_fn_c_try_compile "$LINENO"; then : 8521 xorg_cv_cc_flag_unused_command_line_argument=yes 8522else 8523 xorg_cv_cc_flag_unused_command_line_argument=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531fi 8532 8533found="no" 8534 8535 if test $found = "no" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8542 fi 8543 8544 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8545 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8547$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8548 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8549 if eval \${$cacheid+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555int 8556main () 8557{ 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563if ac_fn_c_try_link "$LINENO"; then : 8564 eval $cacheid=yes 8565else 8566 eval $cacheid=no 8567fi 8568rm -f core conftest.err conftest.$ac_objext \ 8569 conftest$ac_exeext conftest.$ac_ext 8570fi 8571 8572 8573 CFLAGS="$xorg_testset_save_CFLAGS" 8574 8575 eval supported=\$$cacheid 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8577$as_echo "$supported" >&6; } 8578 if test "$supported" = "yes" ; then 8579 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8580 found="yes" 8581 fi 8582 fi 8583 8584 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8585else 8586{ $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 8587$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;} 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601xorg_testset_save_CFLAGS="$CFLAGS" 8602 8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO"; then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616else 8617 xorg_cv_cc_flag_unknown_warning_option=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638/* end confdefs.h. */ 8639int i; 8640_ACEOF 8641if ac_fn_c_try_compile "$LINENO"; then : 8642 xorg_cv_cc_flag_unused_command_line_argument=yes 8643else 8644 xorg_cv_cc_flag_unused_command_line_argument=no 8645fi 8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8647fi 8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8651 CFLAGS="$xorg_testset_save_CFLAGS" 8652fi 8653 8654found="no" 8655 8656 if test $found = "no" ; then 8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 fi 8660 8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8663 fi 8664 8665 CFLAGS="$CFLAGS -Wimplicit" 8666 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8668$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8669 cacheid=xorg_cv_cc_flag__Wimplicit 8670 if eval \${$cacheid+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675int i; 8676int 8677main () 8678{ 8679 8680 ; 8681 return 0; 8682} 8683_ACEOF 8684if ac_fn_c_try_link "$LINENO"; then : 8685 eval $cacheid=yes 8686else 8687 eval $cacheid=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext \ 8690 conftest$ac_exeext conftest.$ac_ext 8691fi 8692 8693 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695 8696 eval supported=\$$cacheid 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8698$as_echo "$supported" >&6; } 8699 if test "$supported" = "yes" ; then 8700 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8701 found="yes" 8702 fi 8703 fi 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719xorg_testset_save_CFLAGS="$CFLAGS" 8720 8721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730int i; 8731_ACEOF 8732if ac_fn_c_try_compile "$LINENO"; then : 8733 xorg_cv_cc_flag_unknown_warning_option=yes 8734else 8735 xorg_cv_cc_flag_unknown_warning_option=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8748 fi 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO"; then : 8760 xorg_cv_cc_flag_unused_command_line_argument=yes 8761else 8762 xorg_cv_cc_flag_unused_command_line_argument=no 8763fi 8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770fi 8771 8772found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Wnonnull" 8784 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8786$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Wnonnull 8788 if eval \${$cacheid+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793int i; 8794int 8795main () 8796{ 8797 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802if ac_fn_c_try_link "$LINENO"; then : 8803 eval $cacheid=yes 8804else 8805 eval $cacheid=no 8806fi 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809fi 8810 8811 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813 8814 eval supported=\$$cacheid 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8816$as_echo "$supported" >&6; } 8817 if test "$supported" = "yes" ; then 8818 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8819 found="yes" 8820 fi 8821 fi 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837xorg_testset_save_CFLAGS="$CFLAGS" 8838 8839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847/* end confdefs.h. */ 8848int i; 8849_ACEOF 8850if ac_fn_c_try_compile "$LINENO"; then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852else 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856fi 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874/* end confdefs.h. */ 8875int i; 8876_ACEOF 8877if ac_fn_c_try_compile "$LINENO"; then : 8878 xorg_cv_cc_flag_unused_command_line_argument=yes 8879else 8880 xorg_cv_cc_flag_unused_command_line_argument=no 8881fi 8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888fi 8889 8890found="no" 8891 8892 if test $found = "no" ; then 8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8895 fi 8896 8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8899 fi 8900 8901 CFLAGS="$CFLAGS -Winit-self" 8902 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8904$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8905 cacheid=xorg_cv_cc_flag__Winit_self 8906 if eval \${$cacheid+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911int i; 8912int 8913main () 8914{ 8915 8916 ; 8917 return 0; 8918} 8919_ACEOF 8920if ac_fn_c_try_link "$LINENO"; then : 8921 eval $cacheid=yes 8922else 8923 eval $cacheid=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext \ 8926 conftest$ac_exeext conftest.$ac_ext 8927fi 8928 8929 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931 8932 eval supported=\$$cacheid 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8934$as_echo "$supported" >&6; } 8935 if test "$supported" = "yes" ; then 8936 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8937 found="yes" 8938 fi 8939 fi 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955xorg_testset_save_CFLAGS="$CFLAGS" 8956 8957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO"; then : 8969 xorg_cv_cc_flag_unknown_warning_option=yes 8970else 8971 xorg_cv_cc_flag_unknown_warning_option=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979fi 8980 8981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 fi 8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8989 $as_echo_n "(cached) " >&6 8990else 8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8992/* end confdefs.h. */ 8993int i; 8994_ACEOF 8995if ac_fn_c_try_compile "$LINENO"; then : 8996 xorg_cv_cc_flag_unused_command_line_argument=yes 8997else 8998 xorg_cv_cc_flag_unused_command_line_argument=no 8999fi 9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9001fi 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9005 CFLAGS="$xorg_testset_save_CFLAGS" 9006fi 9007 9008found="no" 9009 9010 if test $found = "no" ; then 9011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9013 fi 9014 9015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9017 fi 9018 9019 CFLAGS="$CFLAGS -Wmain" 9020 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9022$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9023 cacheid=xorg_cv_cc_flag__Wmain 9024 if eval \${$cacheid+:} false; then : 9025 $as_echo_n "(cached) " >&6 9026else 9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028/* end confdefs.h. */ 9029int i; 9030int 9031main () 9032{ 9033 9034 ; 9035 return 0; 9036} 9037_ACEOF 9038if ac_fn_c_try_link "$LINENO"; then : 9039 eval $cacheid=yes 9040else 9041 eval $cacheid=no 9042fi 9043rm -f core conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext conftest.$ac_ext 9045fi 9046 9047 9048 CFLAGS="$xorg_testset_save_CFLAGS" 9049 9050 eval supported=\$$cacheid 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9052$as_echo "$supported" >&6; } 9053 if test "$supported" = "yes" ; then 9054 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9055 found="yes" 9056 fi 9057 fi 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073xorg_testset_save_CFLAGS="$CFLAGS" 9074 9075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084int i; 9085_ACEOF 9086if ac_fn_c_try_compile "$LINENO"; then : 9087 xorg_cv_cc_flag_unknown_warning_option=yes 9088else 9089 xorg_cv_cc_flag_unknown_warning_option=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9092fi 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097fi 9098 9099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 fi 9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108else 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111int i; 9112_ACEOF 9113if ac_fn_c_try_compile "$LINENO"; then : 9114 xorg_cv_cc_flag_unused_command_line_argument=yes 9115else 9116 xorg_cv_cc_flag_unused_command_line_argument=no 9117fi 9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9119fi 9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9123 CFLAGS="$xorg_testset_save_CFLAGS" 9124fi 9125 9126found="no" 9127 9128 if test $found = "no" ; then 9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 fi 9132 9133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9135 fi 9136 9137 CFLAGS="$CFLAGS -Wmissing-braces" 9138 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9140$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9141 cacheid=xorg_cv_cc_flag__Wmissing_braces 9142 if eval \${$cacheid+:} false; then : 9143 $as_echo_n "(cached) " >&6 9144else 9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146/* end confdefs.h. */ 9147int i; 9148int 9149main () 9150{ 9151 9152 ; 9153 return 0; 9154} 9155_ACEOF 9156if ac_fn_c_try_link "$LINENO"; then : 9157 eval $cacheid=yes 9158else 9159 eval $cacheid=no 9160fi 9161rm -f core conftest.err conftest.$ac_objext \ 9162 conftest$ac_exeext conftest.$ac_ext 9163fi 9164 9165 9166 CFLAGS="$xorg_testset_save_CFLAGS" 9167 9168 eval supported=\$$cacheid 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9170$as_echo "$supported" >&6; } 9171 if test "$supported" = "yes" ; then 9172 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9173 found="yes" 9174 fi 9175 fi 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191xorg_testset_save_CFLAGS="$CFLAGS" 9192 9193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202int i; 9203_ACEOF 9204if ac_fn_c_try_compile "$LINENO"; then : 9205 xorg_cv_cc_flag_unknown_warning_option=yes 9206else 9207 xorg_cv_cc_flag_unknown_warning_option=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210fi 9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9214 CFLAGS="$xorg_testset_save_CFLAGS" 9215fi 9216 9217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 fi 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9225 $as_echo_n "(cached) " >&6 9226else 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229int i; 9230_ACEOF 9231if ac_fn_c_try_compile "$LINENO"; then : 9232 xorg_cv_cc_flag_unused_command_line_argument=yes 9233else 9234 xorg_cv_cc_flag_unused_command_line_argument=no 9235fi 9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9237fi 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9241 CFLAGS="$xorg_testset_save_CFLAGS" 9242fi 9243 9244found="no" 9245 9246 if test $found = "no" ; then 9247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 fi 9250 9251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9253 fi 9254 9255 CFLAGS="$CFLAGS -Wsequence-point" 9256 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9258$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9259 cacheid=xorg_cv_cc_flag__Wsequence_point 9260 if eval \${$cacheid+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262else 9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264/* end confdefs.h. */ 9265int i; 9266int 9267main () 9268{ 9269 9270 ; 9271 return 0; 9272} 9273_ACEOF 9274if ac_fn_c_try_link "$LINENO"; then : 9275 eval $cacheid=yes 9276else 9277 eval $cacheid=no 9278fi 9279rm -f core conftest.err conftest.$ac_objext \ 9280 conftest$ac_exeext conftest.$ac_ext 9281fi 9282 9283 9284 CFLAGS="$xorg_testset_save_CFLAGS" 9285 9286 eval supported=\$$cacheid 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9288$as_echo "$supported" >&6; } 9289 if test "$supported" = "yes" ; then 9290 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9291 found="yes" 9292 fi 9293 fi 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309xorg_testset_save_CFLAGS="$CFLAGS" 9310 9311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320int i; 9321_ACEOF 9322if ac_fn_c_try_compile "$LINENO"; then : 9323 xorg_cv_cc_flag_unknown_warning_option=yes 9324else 9325 xorg_cv_cc_flag_unknown_warning_option=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9343 $as_echo_n "(cached) " >&6 9344else 9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346/* end confdefs.h. */ 9347int i; 9348_ACEOF 9349if ac_fn_c_try_compile "$LINENO"; then : 9350 xorg_cv_cc_flag_unused_command_line_argument=yes 9351else 9352 xorg_cv_cc_flag_unused_command_line_argument=no 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9355fi 9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360fi 9361 9362found="no" 9363 9364 if test $found = "no" ; then 9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 fi 9368 9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 fi 9372 9373 CFLAGS="$CFLAGS -Wreturn-type" 9374 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9376$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9377 cacheid=xorg_cv_cc_flag__Wreturn_type 9378 if eval \${$cacheid+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380else 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383int i; 9384int 9385main () 9386{ 9387 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO"; then : 9393 eval $cacheid=yes 9394else 9395 eval $cacheid=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399fi 9400 9401 9402 CFLAGS="$xorg_testset_save_CFLAGS" 9403 9404 eval supported=\$$cacheid 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9406$as_echo "$supported" >&6; } 9407 if test "$supported" = "yes" ; then 9408 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9409 found="yes" 9410 fi 9411 fi 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427xorg_testset_save_CFLAGS="$CFLAGS" 9428 9429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437/* end confdefs.h. */ 9438int i; 9439_ACEOF 9440if ac_fn_c_try_compile "$LINENO"; then : 9441 xorg_cv_cc_flag_unknown_warning_option=yes 9442else 9443 xorg_cv_cc_flag_unknown_warning_option=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9446fi 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451fi 9452 9453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9456 fi 9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9461 $as_echo_n "(cached) " >&6 9462else 9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464/* end confdefs.h. */ 9465int i; 9466_ACEOF 9467if ac_fn_c_try_compile "$LINENO"; then : 9468 xorg_cv_cc_flag_unused_command_line_argument=yes 9469else 9470 xorg_cv_cc_flag_unused_command_line_argument=no 9471fi 9472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9473fi 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9477 CFLAGS="$xorg_testset_save_CFLAGS" 9478fi 9479 9480found="no" 9481 9482 if test $found = "no" ; then 9483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9485 fi 9486 9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9489 fi 9490 9491 CFLAGS="$CFLAGS -Wtrigraphs" 9492 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9494$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9495 cacheid=xorg_cv_cc_flag__Wtrigraphs 9496 if eval \${$cacheid+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9500/* end confdefs.h. */ 9501int i; 9502int 9503main () 9504{ 9505 9506 ; 9507 return 0; 9508} 9509_ACEOF 9510if ac_fn_c_try_link "$LINENO"; then : 9511 eval $cacheid=yes 9512else 9513 eval $cacheid=no 9514fi 9515rm -f core conftest.err conftest.$ac_objext \ 9516 conftest$ac_exeext conftest.$ac_ext 9517fi 9518 9519 9520 CFLAGS="$xorg_testset_save_CFLAGS" 9521 9522 eval supported=\$$cacheid 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9524$as_echo "$supported" >&6; } 9525 if test "$supported" = "yes" ; then 9526 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9527 found="yes" 9528 fi 9529 fi 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545xorg_testset_save_CFLAGS="$CFLAGS" 9546 9547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9555/* end confdefs.h. */ 9556int i; 9557_ACEOF 9558if ac_fn_c_try_compile "$LINENO"; then : 9559 xorg_cv_cc_flag_unknown_warning_option=yes 9560else 9561 xorg_cv_cc_flag_unknown_warning_option=no 9562fi 9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9564fi 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569fi 9570 9571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9574 fi 9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9579 $as_echo_n "(cached) " >&6 9580else 9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582/* end confdefs.h. */ 9583int i; 9584_ACEOF 9585if ac_fn_c_try_compile "$LINENO"; then : 9586 xorg_cv_cc_flag_unused_command_line_argument=yes 9587else 9588 xorg_cv_cc_flag_unused_command_line_argument=no 9589fi 9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9591fi 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9595 CFLAGS="$xorg_testset_save_CFLAGS" 9596fi 9597 9598found="no" 9599 9600 if test $found = "no" ; then 9601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9603 fi 9604 9605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9607 fi 9608 9609 CFLAGS="$CFLAGS -Warray-bounds" 9610 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9612$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9613 cacheid=xorg_cv_cc_flag__Warray_bounds 9614 if eval \${$cacheid+:} false; then : 9615 $as_echo_n "(cached) " >&6 9616else 9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9618/* end confdefs.h. */ 9619int i; 9620int 9621main () 9622{ 9623 9624 ; 9625 return 0; 9626} 9627_ACEOF 9628if ac_fn_c_try_link "$LINENO"; then : 9629 eval $cacheid=yes 9630else 9631 eval $cacheid=no 9632fi 9633rm -f core conftest.err conftest.$ac_objext \ 9634 conftest$ac_exeext conftest.$ac_ext 9635fi 9636 9637 9638 CFLAGS="$xorg_testset_save_CFLAGS" 9639 9640 eval supported=\$$cacheid 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9642$as_echo "$supported" >&6; } 9643 if test "$supported" = "yes" ; then 9644 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9645 found="yes" 9646 fi 9647 fi 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663xorg_testset_save_CFLAGS="$CFLAGS" 9664 9665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO"; then : 9677 xorg_cv_cc_flag_unknown_warning_option=yes 9678else 9679 xorg_cv_cc_flag_unknown_warning_option=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9682fi 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687fi 9688 9689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 fi 9693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9697 $as_echo_n "(cached) " >&6 9698else 9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701int i; 9702_ACEOF 9703if ac_fn_c_try_compile "$LINENO"; then : 9704 xorg_cv_cc_flag_unused_command_line_argument=yes 9705else 9706 xorg_cv_cc_flag_unused_command_line_argument=no 9707fi 9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9709fi 9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9713 CFLAGS="$xorg_testset_save_CFLAGS" 9714fi 9715 9716found="no" 9717 9718 if test $found = "no" ; then 9719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9721 fi 9722 9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9725 fi 9726 9727 CFLAGS="$CFLAGS -Wwrite-strings" 9728 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9730$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9731 cacheid=xorg_cv_cc_flag__Wwrite_strings 9732 if eval \${$cacheid+:} false; then : 9733 $as_echo_n "(cached) " >&6 9734else 9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9736/* end confdefs.h. */ 9737int i; 9738int 9739main () 9740{ 9741 9742 ; 9743 return 0; 9744} 9745_ACEOF 9746if ac_fn_c_try_link "$LINENO"; then : 9747 eval $cacheid=yes 9748else 9749 eval $cacheid=no 9750fi 9751rm -f core conftest.err conftest.$ac_objext \ 9752 conftest$ac_exeext conftest.$ac_ext 9753fi 9754 9755 9756 CFLAGS="$xorg_testset_save_CFLAGS" 9757 9758 eval supported=\$$cacheid 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9760$as_echo "$supported" >&6; } 9761 if test "$supported" = "yes" ; then 9762 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9763 found="yes" 9764 fi 9765 fi 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781xorg_testset_save_CFLAGS="$CFLAGS" 9782 9783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793_ACEOF 9794if ac_fn_c_try_compile "$LINENO"; then : 9795 xorg_cv_cc_flag_unknown_warning_option=yes 9796else 9797 xorg_cv_cc_flag_unknown_warning_option=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805fi 9806 9807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9810 fi 9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818/* end confdefs.h. */ 9819int i; 9820_ACEOF 9821if ac_fn_c_try_compile "$LINENO"; then : 9822 xorg_cv_cc_flag_unused_command_line_argument=yes 9823else 9824 xorg_cv_cc_flag_unused_command_line_argument=no 9825fi 9826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9831 CFLAGS="$xorg_testset_save_CFLAGS" 9832fi 9833 9834found="no" 9835 9836 if test $found = "no" ; then 9837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9839 fi 9840 9841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9843 fi 9844 9845 CFLAGS="$CFLAGS -Waddress" 9846 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9848$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9849 cacheid=xorg_cv_cc_flag__Waddress 9850 if eval \${$cacheid+:} false; then : 9851 $as_echo_n "(cached) " >&6 9852else 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855int i; 9856int 9857main () 9858{ 9859 9860 ; 9861 return 0; 9862} 9863_ACEOF 9864if ac_fn_c_try_link "$LINENO"; then : 9865 eval $cacheid=yes 9866else 9867 eval $cacheid=no 9868fi 9869rm -f core conftest.err conftest.$ac_objext \ 9870 conftest$ac_exeext conftest.$ac_ext 9871fi 9872 9873 9874 CFLAGS="$xorg_testset_save_CFLAGS" 9875 9876 eval supported=\$$cacheid 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9878$as_echo "$supported" >&6; } 9879 if test "$supported" = "yes" ; then 9880 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9881 found="yes" 9882 fi 9883 fi 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899xorg_testset_save_CFLAGS="$CFLAGS" 9900 9901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO"; then : 9913 xorg_cv_cc_flag_unknown_warning_option=yes 9914else 9915 xorg_cv_cc_flag_unknown_warning_option=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9918fi 9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923fi 9924 9925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9928 fi 9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO"; then : 9940 xorg_cv_cc_flag_unused_command_line_argument=yes 9941else 9942 xorg_cv_cc_flag_unused_command_line_argument=no 9943fi 9944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9949 CFLAGS="$xorg_testset_save_CFLAGS" 9950fi 9951 9952found="no" 9953 9954 if test $found = "no" ; then 9955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9957 fi 9958 9959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9961 fi 9962 9963 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9964 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9966$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9967 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9968 if eval \${$cacheid+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973int i; 9974int 9975main () 9976{ 9977 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982if ac_fn_c_try_link "$LINENO"; then : 9983 eval $cacheid=yes 9984else 9985 eval $cacheid=no 9986fi 9987rm -f core conftest.err conftest.$ac_objext \ 9988 conftest$ac_exeext conftest.$ac_ext 9989fi 9990 9991 9992 CFLAGS="$xorg_testset_save_CFLAGS" 9993 9994 eval supported=\$$cacheid 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9996$as_echo "$supported" >&6; } 9997 if test "$supported" = "yes" ; then 9998 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9999 found="yes" 10000 fi 10001 fi 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017xorg_testset_save_CFLAGS="$CFLAGS" 10018 10019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10024 $as_echo_n "(cached) " >&6 10025else 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028int i; 10029_ACEOF 10030if ac_fn_c_try_compile "$LINENO"; then : 10031 xorg_cv_cc_flag_unknown_warning_option=yes 10032else 10033 xorg_cv_cc_flag_unknown_warning_option=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10036fi 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041fi 10042 10043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 fi 10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10051 $as_echo_n "(cached) " >&6 10052else 10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054/* end confdefs.h. */ 10055int i; 10056_ACEOF 10057if ac_fn_c_try_compile "$LINENO"; then : 10058 xorg_cv_cc_flag_unused_command_line_argument=yes 10059else 10060 xorg_cv_cc_flag_unused_command_line_argument=no 10061fi 10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10063fi 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10067 CFLAGS="$xorg_testset_save_CFLAGS" 10068fi 10069 10070found="no" 10071 10072 if test $found = "no" ; then 10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10075 fi 10076 10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10079 fi 10080 10081 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10082 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10084$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10085 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10086 if eval \${$cacheid+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10090/* end confdefs.h. */ 10091int i; 10092int 10093main () 10094{ 10095 10096 ; 10097 return 0; 10098} 10099_ACEOF 10100if ac_fn_c_try_link "$LINENO"; then : 10101 eval $cacheid=yes 10102else 10103 eval $cacheid=no 10104fi 10105rm -f core conftest.err conftest.$ac_objext \ 10106 conftest$ac_exeext conftest.$ac_ext 10107fi 10108 10109 10110 CFLAGS="$xorg_testset_save_CFLAGS" 10111 10112 eval supported=\$$cacheid 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10114$as_echo "$supported" >&6; } 10115 if test "$supported" = "yes" ; then 10116 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10117 found="yes" 10118 fi 10119 fi 10120 10121 10122fi 10123 10124 10125 10126 10127 10128 10129 10130 CWARNFLAGS="$BASE_CFLAGS" 10131 if test "x$GCC" = xyes ; then 10132 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10133 fi 10134 10135 10136 10137 10138 10139 10140 10141 10142# Check whether --enable-strict-compilation was given. 10143if test "${enable_strict_compilation+set}" = set; then : 10144 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10145else 10146 STRICT_COMPILE=no 10147fi 10148 10149 10150 10151 10152 10153 10154STRICT_CFLAGS="" 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168xorg_testset_save_CFLAGS="$CFLAGS" 10169 10170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10175 $as_echo_n "(cached) " >&6 10176else 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178/* end confdefs.h. */ 10179int i; 10180_ACEOF 10181if ac_fn_c_try_compile "$LINENO"; then : 10182 xorg_cv_cc_flag_unknown_warning_option=yes 10183else 10184 xorg_cv_cc_flag_unknown_warning_option=no 10185fi 10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192fi 10193 10194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10197 fi 10198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203else 10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206int i; 10207_ACEOF 10208if ac_fn_c_try_compile "$LINENO"; then : 10209 xorg_cv_cc_flag_unused_command_line_argument=yes 10210else 10211 xorg_cv_cc_flag_unused_command_line_argument=no 10212fi 10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10214fi 10215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10218 CFLAGS="$xorg_testset_save_CFLAGS" 10219fi 10220 10221found="no" 10222 10223 if test $found = "no" ; then 10224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10226 fi 10227 10228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10230 fi 10231 10232 CFLAGS="$CFLAGS -pedantic" 10233 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10235$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10236 cacheid=xorg_cv_cc_flag__pedantic 10237 if eval \${$cacheid+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239else 10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10241/* end confdefs.h. */ 10242int i; 10243int 10244main () 10245{ 10246 10247 ; 10248 return 0; 10249} 10250_ACEOF 10251if ac_fn_c_try_link "$LINENO"; then : 10252 eval $cacheid=yes 10253else 10254 eval $cacheid=no 10255fi 10256rm -f core conftest.err conftest.$ac_objext \ 10257 conftest$ac_exeext conftest.$ac_ext 10258fi 10259 10260 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262 10263 eval supported=\$$cacheid 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10265$as_echo "$supported" >&6; } 10266 if test "$supported" = "yes" ; then 10267 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10268 found="yes" 10269 fi 10270 fi 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286xorg_testset_save_CFLAGS="$CFLAGS" 10287 10288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10293 $as_echo_n "(cached) " >&6 10294else 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO"; then : 10300 xorg_cv_cc_flag_unknown_warning_option=yes 10301else 10302 xorg_cv_cc_flag_unknown_warning_option=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310fi 10311 10312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 fi 10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325_ACEOF 10326if ac_fn_c_try_compile "$LINENO"; then : 10327 xorg_cv_cc_flag_unused_command_line_argument=yes 10328else 10329 xorg_cv_cc_flag_unused_command_line_argument=no 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10332fi 10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337fi 10338 10339found="no" 10340 10341 if test $found = "no" ; then 10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 fi 10345 10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10348 fi 10349 10350 CFLAGS="$CFLAGS -Werror" 10351 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10353$as_echo_n "checking if $CC supports -Werror... " >&6; } 10354 cacheid=xorg_cv_cc_flag__Werror 10355 if eval \${$cacheid+:} false; then : 10356 $as_echo_n "(cached) " >&6 10357else 10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10359/* end confdefs.h. */ 10360int i; 10361int 10362main () 10363{ 10364 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369if ac_fn_c_try_link "$LINENO"; then : 10370 eval $cacheid=yes 10371else 10372 eval $cacheid=no 10373fi 10374rm -f core conftest.err conftest.$ac_objext \ 10375 conftest$ac_exeext conftest.$ac_ext 10376fi 10377 10378 10379 CFLAGS="$xorg_testset_save_CFLAGS" 10380 10381 eval supported=\$$cacheid 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10383$as_echo "$supported" >&6; } 10384 if test "$supported" = "yes" ; then 10385 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10386 found="yes" 10387 fi 10388 fi 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -errwarn" 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10402$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10403 cacheid=xorg_cv_cc_flag__errwarn 10404 if eval \${$cacheid+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410int 10411main () 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO"; then : 10419 eval $cacheid=yes 10420else 10421 eval $cacheid=no 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425fi 10426 10427 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429 10430 eval supported=\$$cacheid 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10432$as_echo "$supported" >&6; } 10433 if test "$supported" = "yes" ; then 10434 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10435 found="yes" 10436 fi 10437 fi 10438 10439 10440 10441# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10442# activate it with -Werror, so we add it here explicitly. 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456xorg_testset_save_CFLAGS="$CFLAGS" 10457 10458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464else 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467int i; 10468_ACEOF 10469if ac_fn_c_try_compile "$LINENO"; then : 10470 xorg_cv_cc_flag_unknown_warning_option=yes 10471else 10472 xorg_cv_cc_flag_unknown_warning_option=no 10473fi 10474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10475fi 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10479 CFLAGS="$xorg_testset_save_CFLAGS" 10480fi 10481 10482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 fi 10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10490 $as_echo_n "(cached) " >&6 10491else 10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10493/* end confdefs.h. */ 10494int i; 10495_ACEOF 10496if ac_fn_c_try_compile "$LINENO"; then : 10497 xorg_cv_cc_flag_unused_command_line_argument=yes 10498else 10499 xorg_cv_cc_flag_unused_command_line_argument=no 10500fi 10501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10502fi 10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10506 CFLAGS="$xorg_testset_save_CFLAGS" 10507fi 10508 10509found="no" 10510 10511 if test $found = "no" ; then 10512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10514 fi 10515 10516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10518 fi 10519 10520 CFLAGS="$CFLAGS -Werror=attributes" 10521 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10523$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10524 cacheid=xorg_cv_cc_flag__Werror_attributes 10525 if eval \${$cacheid+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531int 10532main () 10533{ 10534 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539if ac_fn_c_try_link "$LINENO"; then : 10540 eval $cacheid=yes 10541else 10542 eval $cacheid=no 10543fi 10544rm -f core conftest.err conftest.$ac_objext \ 10545 conftest$ac_exeext conftest.$ac_ext 10546fi 10547 10548 10549 CFLAGS="$xorg_testset_save_CFLAGS" 10550 10551 eval supported=\$$cacheid 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10553$as_echo "$supported" >&6; } 10554 if test "$supported" = "yes" ; then 10555 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10556 found="yes" 10557 fi 10558 fi 10559 10560 10561 10562if test "x$STRICT_COMPILE" = "xyes"; then 10563 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10564 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10565fi 10566 10567 10568 10569 10570 10571 10572cat >>confdefs.h <<_ACEOF 10573#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10574_ACEOF 10575 10576 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10577 if test "x$PVM" = "x"; then 10578 PVM="0" 10579 fi 10580 10581cat >>confdefs.h <<_ACEOF 10582#define PACKAGE_VERSION_MINOR $PVM 10583_ACEOF 10584 10585 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10586 if test "x$PVP" = "x"; then 10587 PVP="0" 10588 fi 10589 10590cat >>confdefs.h <<_ACEOF 10591#define PACKAGE_VERSION_PATCHLEVEL $PVP 10592_ACEOF 10593 10594 10595 10596CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10597mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10598|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10599echo 'git directory not found: installing possibly empty changelog.' >&2)" 10600 10601 10602 10603 10604macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10605INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10606mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10607|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10608echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10609 10610 10611 10612 10613 10614 10615if test x$APP_MAN_SUFFIX = x ; then 10616 APP_MAN_SUFFIX=1 10617fi 10618if test x$APP_MAN_DIR = x ; then 10619 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10620fi 10621 10622if test x$LIB_MAN_SUFFIX = x ; then 10623 LIB_MAN_SUFFIX=3 10624fi 10625if test x$LIB_MAN_DIR = x ; then 10626 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10627fi 10628 10629if test x$FILE_MAN_SUFFIX = x ; then 10630 case $host_os in 10631 # Solaris 2.0 - 11 use SysV man page sections 10632 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10633 *) FILE_MAN_SUFFIX=5 ;; 10634 esac 10635fi 10636if test x$FILE_MAN_DIR = x ; then 10637 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10638fi 10639 10640if test x$MISC_MAN_SUFFIX = x ; then 10641 case $host_os in 10642 # Solaris 2.0 - 11 use SysV man page sections 10643 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10644 *) MISC_MAN_SUFFIX=7 ;; 10645 esac 10646fi 10647if test x$MISC_MAN_DIR = x ; then 10648 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10649fi 10650 10651if test x$DRIVER_MAN_SUFFIX = x ; then 10652 case $host_os in 10653 # Solaris 2.0 - 11 use SysV man page sections 10654 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10655 *) DRIVER_MAN_SUFFIX=4 ;; 10656 esac 10657fi 10658if test x$DRIVER_MAN_DIR = x ; then 10659 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10660fi 10661 10662if test x$ADMIN_MAN_SUFFIX = x ; then 10663 case $host_os in 10664 # Solaris 2.0 - 11 use SysV man page sections 10665 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10666 *) ADMIN_MAN_SUFFIX=8 ;; 10667 esac 10668fi 10669if test x$ADMIN_MAN_DIR = x ; then 10670 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10671fi 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687XORG_MAN_PAGE="X Version 11" 10688 10689MAN_SUBSTS="\ 10690 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10691 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10692 -e 's|__xservername__|Xorg|g' \ 10693 -e 's|__xconfigfile__|xorg.conf|g' \ 10694 -e 's|__projectroot__|\$(prefix)|g' \ 10695 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10696 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10697 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10698 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10699 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10700 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10701 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10702 10703 10704 10705# Check whether --enable-silent-rules was given. 10706if test "${enable_silent_rules+set}" = set; then : 10707 enableval=$enable_silent_rules; 10708fi 10709 10710case $enable_silent_rules in # ((( 10711 yes) AM_DEFAULT_VERBOSITY=0;; 10712 no) AM_DEFAULT_VERBOSITY=1;; 10713 *) AM_DEFAULT_VERBOSITY=0;; 10714esac 10715am_make=${MAKE-make} 10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10717$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10718if ${am_cv_make_support_nested_variables+:} false; then : 10719 $as_echo_n "(cached) " >&6 10720else 10721 if $as_echo 'TRUE=$(BAR$(V)) 10722BAR0=false 10723BAR1=true 10724V=1 10725am__doit: 10726 @$(TRUE) 10727.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10728 am_cv_make_support_nested_variables=yes 10729else 10730 am_cv_make_support_nested_variables=no 10731fi 10732fi 10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10734$as_echo "$am_cv_make_support_nested_variables" >&6; } 10735if test $am_cv_make_support_nested_variables = yes; then 10736 AM_V='$(V)' 10737 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10738else 10739 AM_V=$AM_DEFAULT_VERBOSITY 10740 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10741fi 10742AM_BACKSLASH='\' 10743 10744 10745 10746 10747 10748for ac_prog in cpp 10749do 10750 # Extract the first word of "$ac_prog", so it can be a program name with args. 10751set dummy $ac_prog; ac_word=$2 10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10753$as_echo_n "checking for $ac_word... " >&6; } 10754if ${ac_cv_path_RAWCPP+:} false; then : 10755 $as_echo_n "(cached) " >&6 10756else 10757 case $RAWCPP in 10758 [\\/]* | ?:[\\/]*) 10759 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 10760 ;; 10761 *) 10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10763as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 10764for as_dir in $as_dummy 10765do 10766 IFS=$as_save_IFS 10767 test -z "$as_dir" && as_dir=. 10768 for ac_exec_ext in '' $ac_executable_extensions; do 10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10770 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10772 break 2 10773 fi 10774done 10775 done 10776IFS=$as_save_IFS 10777 10778 ;; 10779esac 10780fi 10781RAWCPP=$ac_cv_path_RAWCPP 10782if test -n "$RAWCPP"; then 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 10784$as_echo "$RAWCPP" >&6; } 10785else 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10787$as_echo "no" >&6; } 10788fi 10789 10790 10791 test -n "$RAWCPP" && break 10792done 10793test -n "$RAWCPP" || RAWCPP="${CPP}" 10794 10795 10796# Check for flag to avoid builtin definitions - assumes unix is predefined, 10797# which is not the best choice for supporting other OS'es, but covers most 10798# of the ones we need for now. 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 10800$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803Does cpp redefine unix ? 10804_ACEOF 10805if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10807$as_echo "no" >&6; } 10808else 10809 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10810 RAWCPPFLAGS=-undef 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10812$as_echo "yes" >&6; } 10813 # under Cygwin unix is still defined even with -undef 10814 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10815 RAWCPPFLAGS="-undef -ansi" 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 10817$as_echo "yes, with -ansi" >&6; } 10818 else 10819 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 10820 fi 10821fi 10822rm -f conftest.$ac_ext 10823 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 10825$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 10826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828Does cpp preserve "whitespace"? 10829_ACEOF 10830if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10832$as_echo "no" >&6; } 10833else 10834 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 10835 TRADITIONALCPPFLAGS="-traditional" 10836 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10838$as_echo "yes" >&6; } 10839 else 10840 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 10841 fi 10842fi 10843rm -f conftest.$ac_ext 10844 10845 10846 10847 10848 10849# Build options 10850DEFAULT_XRDB=xrdb 10851DEFAULT_XMODMAP=xmodmap 10852DEFAULT_TWM=twm 10853DEFAULT_XCLOCK=xclock 10854DEFAULT_XTERM=xterm 10855# You always want to specify the full path to the X server 10856DEFAULT_XSERVER=${bindir}/X 10857DEFAULT_XAUTH=xauth 10858DEFAULT_XINIT=xinit 10859DEFAULT_XINITDIR=${sysconfdir}/X11/xinit 10860 10861 10862# Check whether --with-xrdb was given. 10863if test "${with_xrdb+set}" = set; then : 10864 withval=$with_xrdb; XRDB="$withval" 10865else 10866 XRDB="$DEFAULT_XRDB" 10867fi 10868 10869 10870 10871# Check whether --with-xmodmap was given. 10872if test "${with_xmodmap+set}" = set; then : 10873 withval=$with_xmodmap; XMODMAP="$withval" 10874else 10875 XMODMAP="$DEFAULT_XMODMAP" 10876fi 10877 10878 10879 10880# Check whether --with-twm was given. 10881if test "${with_twm+set}" = set; then : 10882 withval=$with_twm; TWM="$withval" 10883else 10884 TWM="$DEFAULT_TWM" 10885fi 10886 10887 10888 10889# Check whether --with-xclock was given. 10890if test "${with_xclock+set}" = set; then : 10891 withval=$with_xclock; XCLOCK="$withval" 10892else 10893 XCLOCK="$DEFAULT_XCLOCK" 10894fi 10895 10896 10897 10898# Check whether --with-xterm was given. 10899if test "${with_xterm+set}" = set; then : 10900 withval=$with_xterm; XTERM="$withval" 10901else 10902 XTERM="$DEFAULT_XTERM" 10903fi 10904 10905 10906 10907# Check whether --with-xserver was given. 10908if test "${with_xserver+set}" = set; then : 10909 withval=$with_xserver; XSERVER="$withval" 10910else 10911 XSERVER="$DEFAULT_XSERVER" 10912fi 10913 10914 10915 10916# Check whether --with-xauth was given. 10917if test "${with_xauth+set}" = set; then : 10918 withval=$with_xauth; XAUTH="$withval" 10919else 10920 XAUTH="$DEFAULT_XAUTH" 10921fi 10922 10923 10924 10925# Check whether --with-xinit was given. 10926if test "${with_xinit+set}" = set; then : 10927 withval=$with_xinit; XINIT="$withval" 10928else 10929 XINIT="$DEFAULT_XINIT" 10930fi 10931 10932 10933 10934# Check whether --with-xinitdir was given. 10935if test "${with_xinitdir+set}" = set; then : 10936 withval=$with_xinitdir; XINITDIR="$withval" 10937else 10938 XINITDIR="$DEFAULT_XINITDIR" 10939fi 10940 10941 10942 10943# Check whether --with-launchd was given. 10944if test "${with_launchd+set}" = set; then : 10945 withval=$with_launchd; LAUNCHD=$withval 10946else 10947 LAUNCHD=auto 10948fi 10949 10950 10951# Check whether --with-launchagents-dir was given. 10952if test "${with_launchagents_dir+set}" = set; then : 10953 withval=$with_launchagents_dir; launchagentsdir="${withval}" 10954else 10955 launchagentsdir="/Library/LaunchAgents" 10956fi 10957 10958 10959# Check whether --with-launchagent-xserver was given. 10960if test "${with_launchagent_xserver+set}" = set; then : 10961 withval=$with_launchagent_xserver; launchagentxserver="${withval}" 10962else 10963 launchagentxserver="no" 10964fi 10965 10966 10967# Check whether --with-launchdaemons-dir was given. 10968if test "${with_launchdaemons_dir+set}" = set; then : 10969 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 10970else 10971 launchdaemonsdir="/Library/LaunchDaemons" 10972fi 10973 10974 10975# Check whether --with-launchd-id-prefix was given. 10976if test "${with_launchd_id_prefix+set}" = set; then : 10977 withval=$with_launchd_id_prefix; bundleidprefix="${withval}" 10978else 10979 bundleidprefix="org.x" 10980fi 10981 10982 10983# Check whether --with-bundle-id-prefix was given. 10984if test "${with_bundle_id_prefix+set}" = set; then : 10985 withval=$with_bundle_id_prefix; bundleidprefix="${withval}" 10986fi 10987 10988 10989if test "x$LAUNCHD" = "xauto"; then 10990 unset LAUNCHD 10991 # Extract the first word of "launchd", so it can be a program name with args. 10992set dummy launchd; ac_word=$2 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10994$as_echo_n "checking for $ac_word... " >&6; } 10995if ${ac_cv_prog_LAUNCHD+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 if test -n "$LAUNCHD"; then 10999 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 11000else 11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11002for as_dir in $PATH$PATH_SEPARATOR/sbin 11003do 11004 IFS=$as_save_IFS 11005 test -z "$as_dir" && as_dir=. 11006 for ac_exec_ext in '' $ac_executable_extensions; do 11007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11008 ac_cv_prog_LAUNCHD="yes" 11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11010 break 2 11011 fi 11012done 11013 done 11014IFS=$as_save_IFS 11015 11016 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 11017fi 11018fi 11019LAUNCHD=$ac_cv_prog_LAUNCHD 11020if test -n "$LAUNCHD"; then 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 11022$as_echo "$LAUNCHD" >&6; } 11023else 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11025$as_echo "no" >&6; } 11026fi 11027 11028 11029fi 11030 11031TIGER_LAUNCHD=no 11032if test "x$LAUNCHD" = "xyes" ; then 11033 11034$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 11035 11036 case $host_os in 11037 darwin8*) 11038 TIGER_LAUNCHD=yes 11039 ;; 11040 esac 11041 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 11042if test "x$ac_cv_func_dispatch_async" = xyes; then : 11043 11044$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 11045 11046fi 11047 11048fi 11049 11050 11051cat >>confdefs.h <<_ACEOF 11052#define BUNDLE_ID_PREFIX "$bundleidprefix" 11053_ACEOF 11054 11055 11056 11057 11058 11059 if test "x$LAUNCHD" = "xyes"; then 11060 LAUNCHD_TRUE= 11061 LAUNCHD_FALSE='#' 11062else 11063 LAUNCHD_TRUE='#' 11064 LAUNCHD_FALSE= 11065fi 11066 11067 if test "x$TIGER_LAUNCHD" = "xyes"; then 11068 TIGER_LAUNCHD_TRUE= 11069 TIGER_LAUNCHD_FALSE='#' 11070else 11071 TIGER_LAUNCHD_TRUE='#' 11072 TIGER_LAUNCHD_FALSE= 11073fi 11074 11075 if test "x$launchagentxserver" != "xno"; then 11076 LAUNCHAGENT_XSERVER_TRUE= 11077 LAUNCHAGENT_XSERVER_FALSE='#' 11078else 11079 LAUNCHAGENT_XSERVER_TRUE='#' 11080 LAUNCHAGENT_XSERVER_FALSE= 11081fi 11082 11083 11084# Checks for pkg-config packages 11085 11086pkg_failed=no 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 11088$as_echo_n "checking for XINIT... " >&6; } 11089 11090if test -n "$XINIT_CFLAGS"; then 11091 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 11092 elif test -n "$PKG_CONFIG"; then 11093 if test -n "$PKG_CONFIG" && \ 11094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 11095 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11096 ac_status=$? 11097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11098 test $ac_status = 0; }; then 11099 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 11100 test "x$?" != "x0" && pkg_failed=yes 11101else 11102 pkg_failed=yes 11103fi 11104 else 11105 pkg_failed=untried 11106fi 11107if test -n "$XINIT_LIBS"; then 11108 pkg_cv_XINIT_LIBS="$XINIT_LIBS" 11109 elif test -n "$PKG_CONFIG"; then 11110 if test -n "$PKG_CONFIG" && \ 11111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 11112 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11113 ac_status=$? 11114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11115 test $ac_status = 0; }; then 11116 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 11117 test "x$?" != "x0" && pkg_failed=yes 11118else 11119 pkg_failed=yes 11120fi 11121 else 11122 pkg_failed=untried 11123fi 11124 11125 11126 11127if test $pkg_failed = yes; then 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11129$as_echo "no" >&6; } 11130 11131if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11132 _pkg_short_errors_supported=yes 11133else 11134 _pkg_short_errors_supported=no 11135fi 11136 if test $_pkg_short_errors_supported = yes; then 11137 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11138 else 11139 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11140 fi 11141 # Put the nasty error message in config.log where it belongs 11142 echo "$XINIT_PKG_ERRORS" >&5 11143 11144 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 11145 11146$XINIT_PKG_ERRORS 11147 11148Consider adjusting the PKG_CONFIG_PATH environment variable if you 11149installed software in a non-standard prefix. 11150 11151Alternatively, you may set the environment variables XINIT_CFLAGS 11152and XINIT_LIBS to avoid the need to call pkg-config. 11153See the pkg-config man page for more details." "$LINENO" 5 11154elif test $pkg_failed = untried; then 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11156$as_echo "no" >&6; } 11157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11159as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11160is in your PATH or set the PKG_CONFIG environment variable to the full 11161path to pkg-config. 11162 11163Alternatively, you may set the environment variables XINIT_CFLAGS 11164and XINIT_LIBS to avoid the need to call pkg-config. 11165See the pkg-config man page for more details. 11166 11167To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11168See \`config.log' for more details" "$LINENO" 5; } 11169else 11170 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 11171 XINIT_LIBS=$pkg_cv_XINIT_LIBS 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11173$as_echo "yes" >&6; } 11174 11175fi 11176 11177case $host_os in 11178 *bsd*) 11179 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 11180 ;; 11181esac 11182 11183 11184for ac_prog in mcookie 11185do 11186 # Extract the first word of "$ac_prog", so it can be a program name with args. 11187set dummy $ac_prog; ac_word=$2 11188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11189$as_echo_n "checking for $ac_word... " >&6; } 11190if ${ac_cv_path_MCOOKIE+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 case $MCOOKIE in 11194 [\\/]* | ?:[\\/]*) 11195 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 11196 ;; 11197 *) 11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11199as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 11200for as_dir in $as_dummy 11201do 11202 IFS=$as_save_IFS 11203 test -z "$as_dir" && as_dir=. 11204 for ac_exec_ext in '' $ac_executable_extensions; do 11205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11206 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext" 11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11208 break 2 11209 fi 11210done 11211 done 11212IFS=$as_save_IFS 11213 11214 ;; 11215esac 11216fi 11217MCOOKIE=$ac_cv_path_MCOOKIE 11218if test -n "$MCOOKIE"; then 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 11220$as_echo "$MCOOKIE" >&6; } 11221else 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11223$as_echo "no" >&6; } 11224fi 11225 11226 11227 test -n "$MCOOKIE" && break 11228done 11229test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 11230 11231 11232# If mcookie not found, try openssl, else per-system fallbacks 11233if test "x$MCOOKIE" = x ; then 11234 for ac_prog in openssl 11235do 11236 # Extract the first word of "$ac_prog", so it can be a program name with args. 11237set dummy $ac_prog; ac_word=$2 11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11239$as_echo_n "checking for $ac_word... " >&6; } 11240if ${ac_cv_path_OPENSSL+:} false; then : 11241 $as_echo_n "(cached) " >&6 11242else 11243 case $OPENSSL in 11244 [\\/]* | ?:[\\/]*) 11245 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path. 11246 ;; 11247 *) 11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11249as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin" 11250for as_dir in $as_dummy 11251do 11252 IFS=$as_save_IFS 11253 test -z "$as_dir" && as_dir=. 11254 for ac_exec_ext in '' $ac_executable_extensions; do 11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11256 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext" 11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11258 break 2 11259 fi 11260done 11261 done 11262IFS=$as_save_IFS 11263 11264 ;; 11265esac 11266fi 11267OPENSSL=$ac_cv_path_OPENSSL 11268if test -n "$OPENSSL"; then 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5 11270$as_echo "$OPENSSL" >&6; } 11271else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11273$as_echo "no" >&6; } 11274fi 11275 11276 11277 test -n "$OPENSSL" && break 11278done 11279test -n "$OPENSSL" || OPENSSL="$OPENSSL" 11280 11281 if test "x$OPENSSL" != x ; then 11282 MCOOKIE="$OPENSSL rand -hex 16" 11283 else 11284 case $host_os in 11285 *solaris*) 11286 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 11287 ;; 11288 esac 11289 fi 11290fi 11291if test "x$MCOOKIE" != x ; then 11292 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5 11294$as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;} 11295fi 11296 11297 11298# Additional substitutions in startx, xinitrc & man pages 11299SHELL_CMD="/bin/sh" 11300XSERVERNAME="Xorg" 11301XCONFIGFILE="xorg.conf" 11302XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' 11303case $host_os in 11304 cygwin*) 11305 XSERVERNAME="XWin" 11306 XCONFIGFILE="XWinrc" 11307 ;; 11308 darwin*) 11309 XSERVERNAME="Xquartz" 11310 XCONFIGFILE="defaults" 11311 XCONFIGFILEMAN='defaults (1)' 11312 ;; 11313 *solaris*) 11314 SHELL_CMD="/bin/ksh" 11315 ;; 11316esac 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile" 11333 11334cat >confcache <<\_ACEOF 11335# This file is a shell script that caches the results of configure 11336# tests run on this system so they can be shared between configure 11337# scripts and configure runs, see configure's option --config-cache. 11338# It is not useful on other systems. If it contains results you don't 11339# want to keep, you may remove or edit it. 11340# 11341# config.status only pays attention to the cache file if you give it 11342# the --recheck option to rerun configure. 11343# 11344# `ac_cv_env_foo' variables (set or unset) will be overridden when 11345# loading this file, other *unset* `ac_cv_foo' will be assigned the 11346# following values. 11347 11348_ACEOF 11349 11350# The following way of writing the cache mishandles newlines in values, 11351# but we know of no workaround that is simple, portable, and efficient. 11352# So, we kill variables containing newlines. 11353# Ultrix sh set writes to stderr and can't be redirected directly, 11354# and sets the high bit in the cache file unless we assign to the vars. 11355( 11356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11357 eval ac_val=\$$ac_var 11358 case $ac_val in #( 11359 *${as_nl}*) 11360 case $ac_var in #( 11361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11363 esac 11364 case $ac_var in #( 11365 _ | IFS | as_nl) ;; #( 11366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11367 *) { eval $ac_var=; unset $ac_var;} ;; 11368 esac ;; 11369 esac 11370 done 11371 11372 (set) 2>&1 | 11373 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11374 *${as_nl}ac_space=\ *) 11375 # `set' does not quote correctly, so add quotes: double-quote 11376 # substitution turns \\\\ into \\, and sed turns \\ into \. 11377 sed -n \ 11378 "s/'/'\\\\''/g; 11379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11380 ;; #( 11381 *) 11382 # `set' quotes correctly as required by POSIX, so do not add quotes. 11383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11384 ;; 11385 esac | 11386 sort 11387) | 11388 sed ' 11389 /^ac_cv_env_/b end 11390 t clear 11391 :clear 11392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11393 t end 11394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11395 :end' >>confcache 11396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11397 if test -w "$cache_file"; then 11398 if test "x$cache_file" != "x/dev/null"; then 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11400$as_echo "$as_me: updating cache $cache_file" >&6;} 11401 if test ! -f "$cache_file" || test -h "$cache_file"; then 11402 cat confcache >"$cache_file" 11403 else 11404 case $cache_file in #( 11405 */* | ?:*) 11406 mv -f confcache "$cache_file"$$ && 11407 mv -f "$cache_file"$$ "$cache_file" ;; #( 11408 *) 11409 mv -f confcache "$cache_file" ;; 11410 esac 11411 fi 11412 fi 11413 else 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11416 fi 11417fi 11418rm -f confcache 11419 11420test "x$prefix" = xNONE && prefix=$ac_default_prefix 11421# Let make expand exec_prefix. 11422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11423 11424DEFS=-DHAVE_CONFIG_H 11425 11426ac_libobjs= 11427ac_ltlibobjs= 11428U= 11429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11430 # 1. Remove the extension, and $U if already installed. 11431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11434 # will be set to the directory where LIBOBJS objects are built. 11435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11437done 11438LIBOBJS=$ac_libobjs 11439 11440LTLIBOBJS=$ac_ltlibobjs 11441 11442 11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11444$as_echo_n "checking that generated files are newer than configure... " >&6; } 11445 if test -n "$am_sleep_pid"; then 11446 # Hide warnings about reused PIDs. 11447 wait $am_sleep_pid 2>/dev/null 11448 fi 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11450$as_echo "done" >&6; } 11451 if test -n "$EXEEXT"; then 11452 am__EXEEXT_TRUE= 11453 am__EXEEXT_FALSE='#' 11454else 11455 am__EXEEXT_TRUE='#' 11456 am__EXEEXT_FALSE= 11457fi 11458 11459if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11460 as_fn_error $? "conditional \"AMDEP\" was never defined. 11461Usually this means the macro was only invoked conditionally." "$LINENO" 5 11462fi 11463if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11464 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11465Usually this means the macro was only invoked conditionally." "$LINENO" 5 11466fi 11467if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 11468 as_fn_error $? "conditional \"LAUNCHD\" was never defined. 11469Usually this means the macro was only invoked conditionally." "$LINENO" 5 11470fi 11471if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then 11472 as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined. 11473Usually this means the macro was only invoked conditionally." "$LINENO" 5 11474fi 11475if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then 11476 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined. 11477Usually this means the macro was only invoked conditionally." "$LINENO" 5 11478fi 11479 11480: "${CONFIG_STATUS=./config.status}" 11481ac_write_fail=0 11482ac_clean_files_save=$ac_clean_files 11483ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11485$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11486as_write_fail=0 11487cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11488#! $SHELL 11489# Generated by $as_me. 11490# Run this file to recreate the current configuration. 11491# Compiler output produced by configure, useful for debugging 11492# configure, is in config.log if it exists. 11493 11494debug=false 11495ac_cs_recheck=false 11496ac_cs_silent=false 11497 11498SHELL=\${CONFIG_SHELL-$SHELL} 11499export SHELL 11500_ASEOF 11501cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11502## -------------------- ## 11503## M4sh Initialization. ## 11504## -------------------- ## 11505 11506# Be more Bourne compatible 11507DUALCASE=1; export DUALCASE # for MKS sh 11508if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11509 emulate sh 11510 NULLCMD=: 11511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11512 # is contrary to our usage. Disable this feature. 11513 alias -g '${1+"$@"}'='"$@"' 11514 setopt NO_GLOB_SUBST 11515else 11516 case `(set -o) 2>/dev/null` in #( 11517 *posix*) : 11518 set -o posix ;; #( 11519 *) : 11520 ;; 11521esac 11522fi 11523 11524 11525as_nl=' 11526' 11527export as_nl 11528# Printing a long string crashes Solaris 7 /usr/bin/printf. 11529as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11530as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11531as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11532# Prefer a ksh shell builtin over an external printf program on Solaris, 11533# but without wasting forks for bash or zsh. 11534if test -z "$BASH_VERSION$ZSH_VERSION" \ 11535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11536 as_echo='print -r --' 11537 as_echo_n='print -rn --' 11538elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11539 as_echo='printf %s\n' 11540 as_echo_n='printf %s' 11541else 11542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11544 as_echo_n='/usr/ucb/echo -n' 11545 else 11546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11547 as_echo_n_body='eval 11548 arg=$1; 11549 case $arg in #( 11550 *"$as_nl"*) 11551 expr "X$arg" : "X\\(.*\\)$as_nl"; 11552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11553 esac; 11554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11555 ' 11556 export as_echo_n_body 11557 as_echo_n='sh -c $as_echo_n_body as_echo' 11558 fi 11559 export as_echo_body 11560 as_echo='sh -c $as_echo_body as_echo' 11561fi 11562 11563# The user is always right. 11564if test "${PATH_SEPARATOR+set}" != set; then 11565 PATH_SEPARATOR=: 11566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11568 PATH_SEPARATOR=';' 11569 } 11570fi 11571 11572 11573# IFS 11574# We need space, tab and new line, in precisely that order. Quoting is 11575# there to prevent editors from complaining about space-tab. 11576# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11577# splitting by setting IFS to empty value.) 11578IFS=" "" $as_nl" 11579 11580# Find who we are. Look in the path if we contain no directory separator. 11581as_myself= 11582case $0 in #(( 11583 *[\\/]* ) as_myself=$0 ;; 11584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11585for as_dir in $PATH 11586do 11587 IFS=$as_save_IFS 11588 test -z "$as_dir" && as_dir=. 11589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11590 done 11591IFS=$as_save_IFS 11592 11593 ;; 11594esac 11595# We did not find ourselves, most probably we were run as `sh COMMAND' 11596# in which case we are not to be found in the path. 11597if test "x$as_myself" = x; then 11598 as_myself=$0 11599fi 11600if test ! -f "$as_myself"; then 11601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11602 exit 1 11603fi 11604 11605# Unset variables that we do not need and which cause bugs (e.g. in 11606# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11607# suppresses any "Segmentation fault" message there. '((' could 11608# trigger a bug in pdksh 5.2.14. 11609for as_var in BASH_ENV ENV MAIL MAILPATH 11610do eval test x\${$as_var+set} = xset \ 11611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11612done 11613PS1='$ ' 11614PS2='> ' 11615PS4='+ ' 11616 11617# NLS nuisances. 11618LC_ALL=C 11619export LC_ALL 11620LANGUAGE=C 11621export LANGUAGE 11622 11623# CDPATH. 11624(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11625 11626 11627# as_fn_error STATUS ERROR [LINENO LOG_FD] 11628# ---------------------------------------- 11629# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11630# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11631# script with STATUS, using 1 if that was 0. 11632as_fn_error () 11633{ 11634 as_status=$1; test $as_status -eq 0 && as_status=1 11635 if test "$4"; then 11636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11638 fi 11639 $as_echo "$as_me: error: $2" >&2 11640 as_fn_exit $as_status 11641} # as_fn_error 11642 11643 11644# as_fn_set_status STATUS 11645# ----------------------- 11646# Set $? to STATUS, without forking. 11647as_fn_set_status () 11648{ 11649 return $1 11650} # as_fn_set_status 11651 11652# as_fn_exit STATUS 11653# ----------------- 11654# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11655as_fn_exit () 11656{ 11657 set +e 11658 as_fn_set_status $1 11659 exit $1 11660} # as_fn_exit 11661 11662# as_fn_unset VAR 11663# --------------- 11664# Portably unset VAR. 11665as_fn_unset () 11666{ 11667 { eval $1=; unset $1;} 11668} 11669as_unset=as_fn_unset 11670# as_fn_append VAR VALUE 11671# ---------------------- 11672# Append the text in VALUE to the end of the definition contained in VAR. Take 11673# advantage of any shell optimizations that allow amortized linear growth over 11674# repeated appends, instead of the typical quadratic growth present in naive 11675# implementations. 11676if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11677 eval 'as_fn_append () 11678 { 11679 eval $1+=\$2 11680 }' 11681else 11682 as_fn_append () 11683 { 11684 eval $1=\$$1\$2 11685 } 11686fi # as_fn_append 11687 11688# as_fn_arith ARG... 11689# ------------------ 11690# Perform arithmetic evaluation on the ARGs, and store the result in the 11691# global $as_val. Take advantage of shells that can avoid forks. The arguments 11692# must be portable across $(()) and expr. 11693if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11694 eval 'as_fn_arith () 11695 { 11696 as_val=$(( $* )) 11697 }' 11698else 11699 as_fn_arith () 11700 { 11701 as_val=`expr "$@" || test $? -eq 1` 11702 } 11703fi # as_fn_arith 11704 11705 11706if expr a : '\(a\)' >/dev/null 2>&1 && 11707 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11708 as_expr=expr 11709else 11710 as_expr=false 11711fi 11712 11713if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11714 as_basename=basename 11715else 11716 as_basename=false 11717fi 11718 11719if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11720 as_dirname=dirname 11721else 11722 as_dirname=false 11723fi 11724 11725as_me=`$as_basename -- "$0" || 11726$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11727 X"$0" : 'X\(//\)$' \| \ 11728 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11729$as_echo X/"$0" | 11730 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11731 s//\1/ 11732 q 11733 } 11734 /^X\/\(\/\/\)$/{ 11735 s//\1/ 11736 q 11737 } 11738 /^X\/\(\/\).*/{ 11739 s//\1/ 11740 q 11741 } 11742 s/.*/./; q'` 11743 11744# Avoid depending upon Character Ranges. 11745as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11746as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11747as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11748as_cr_digits='0123456789' 11749as_cr_alnum=$as_cr_Letters$as_cr_digits 11750 11751ECHO_C= ECHO_N= ECHO_T= 11752case `echo -n x` in #((((( 11753-n*) 11754 case `echo 'xy\c'` in 11755 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11756 xy) ECHO_C='\c';; 11757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11758 ECHO_T=' ';; 11759 esac;; 11760*) 11761 ECHO_N='-n';; 11762esac 11763 11764rm -f conf$$ conf$$.exe conf$$.file 11765if test -d conf$$.dir; then 11766 rm -f conf$$.dir/conf$$.file 11767else 11768 rm -f conf$$.dir 11769 mkdir conf$$.dir 2>/dev/null 11770fi 11771if (echo >conf$$.file) 2>/dev/null; then 11772 if ln -s conf$$.file conf$$ 2>/dev/null; then 11773 as_ln_s='ln -s' 11774 # ... but there are two gotchas: 11775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11777 # In both cases, we have to default to `cp -pR'. 11778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11779 as_ln_s='cp -pR' 11780 elif ln conf$$.file conf$$ 2>/dev/null; then 11781 as_ln_s=ln 11782 else 11783 as_ln_s='cp -pR' 11784 fi 11785else 11786 as_ln_s='cp -pR' 11787fi 11788rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11789rmdir conf$$.dir 2>/dev/null 11790 11791 11792# as_fn_mkdir_p 11793# ------------- 11794# Create "$as_dir" as a directory, including parents if necessary. 11795as_fn_mkdir_p () 11796{ 11797 11798 case $as_dir in #( 11799 -*) as_dir=./$as_dir;; 11800 esac 11801 test -d "$as_dir" || eval $as_mkdir_p || { 11802 as_dirs= 11803 while :; do 11804 case $as_dir in #( 11805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11806 *) as_qdir=$as_dir;; 11807 esac 11808 as_dirs="'$as_qdir' $as_dirs" 11809 as_dir=`$as_dirname -- "$as_dir" || 11810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11811 X"$as_dir" : 'X\(//\)[^/]' \| \ 11812 X"$as_dir" : 'X\(//\)$' \| \ 11813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11814$as_echo X"$as_dir" | 11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11816 s//\1/ 11817 q 11818 } 11819 /^X\(\/\/\)[^/].*/{ 11820 s//\1/ 11821 q 11822 } 11823 /^X\(\/\/\)$/{ 11824 s//\1/ 11825 q 11826 } 11827 /^X\(\/\).*/{ 11828 s//\1/ 11829 q 11830 } 11831 s/.*/./; q'` 11832 test -d "$as_dir" && break 11833 done 11834 test -z "$as_dirs" || eval "mkdir $as_dirs" 11835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11836 11837 11838} # as_fn_mkdir_p 11839if mkdir -p . 2>/dev/null; then 11840 as_mkdir_p='mkdir -p "$as_dir"' 11841else 11842 test -d ./-p && rmdir ./-p 11843 as_mkdir_p=false 11844fi 11845 11846 11847# as_fn_executable_p FILE 11848# ----------------------- 11849# Test if FILE is an executable regular file. 11850as_fn_executable_p () 11851{ 11852 test -f "$1" && test -x "$1" 11853} # as_fn_executable_p 11854as_test_x='test -x' 11855as_executable_p=as_fn_executable_p 11856 11857# Sed expression to map a string onto a valid CPP name. 11858as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11859 11860# Sed expression to map a string onto a valid variable name. 11861as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11862 11863 11864exec 6>&1 11865## ----------------------------------- ## 11866## Main body of $CONFIG_STATUS script. ## 11867## ----------------------------------- ## 11868_ASEOF 11869test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11870 11871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11872# Save the log message, to keep $0 and so on meaningful, and to 11873# report actual input values of CONFIG_FILES etc. instead of their 11874# values after options handling. 11875ac_log=" 11876This file was extended by xinit $as_me 1.4.0, which was 11877generated by GNU Autoconf 2.69. Invocation command line was 11878 11879 CONFIG_FILES = $CONFIG_FILES 11880 CONFIG_HEADERS = $CONFIG_HEADERS 11881 CONFIG_LINKS = $CONFIG_LINKS 11882 CONFIG_COMMANDS = $CONFIG_COMMANDS 11883 $ $0 $@ 11884 11885on `(hostname || uname -n) 2>/dev/null | sed 1q` 11886" 11887 11888_ACEOF 11889 11890case $ac_config_files in *" 11891"*) set x $ac_config_files; shift; ac_config_files=$*;; 11892esac 11893 11894case $ac_config_headers in *" 11895"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11896esac 11897 11898 11899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11900# Files that config.status was made for. 11901config_files="$ac_config_files" 11902config_headers="$ac_config_headers" 11903config_commands="$ac_config_commands" 11904 11905_ACEOF 11906 11907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11908ac_cs_usage="\ 11909\`$as_me' instantiates files and other configuration actions 11910from templates according to the current configuration. Unless the files 11911and actions are specified as TAGs, all are instantiated by default. 11912 11913Usage: $0 [OPTION]... [TAG]... 11914 11915 -h, --help print this help, then exit 11916 -V, --version print version number and configuration settings, then exit 11917 --config print configuration, then exit 11918 -q, --quiet, --silent 11919 do not print progress messages 11920 -d, --debug don't remove temporary files 11921 --recheck update $as_me by reconfiguring in the same conditions 11922 --file=FILE[:TEMPLATE] 11923 instantiate the configuration file FILE 11924 --header=FILE[:TEMPLATE] 11925 instantiate the configuration header FILE 11926 11927Configuration files: 11928$config_files 11929 11930Configuration headers: 11931$config_headers 11932 11933Configuration commands: 11934$config_commands 11935 11936Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11937 11938_ACEOF 11939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11940ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11941ac_cs_version="\\ 11942xinit config.status 1.4.0 11943configured by $0, generated by GNU Autoconf 2.69, 11944 with options \\"\$ac_cs_config\\" 11945 11946Copyright (C) 2012 Free Software Foundation, Inc. 11947This config.status script is free software; the Free Software Foundation 11948gives unlimited permission to copy, distribute and modify it." 11949 11950ac_pwd='$ac_pwd' 11951srcdir='$srcdir' 11952INSTALL='$INSTALL' 11953MKDIR_P='$MKDIR_P' 11954AWK='$AWK' 11955test -n "\$AWK" || AWK=awk 11956_ACEOF 11957 11958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11959# The default lists apply if the user does not specify any file. 11960ac_need_defaults=: 11961while test $# != 0 11962do 11963 case $1 in 11964 --*=?*) 11965 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11967 ac_shift=: 11968 ;; 11969 --*=) 11970 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11971 ac_optarg= 11972 ac_shift=: 11973 ;; 11974 *) 11975 ac_option=$1 11976 ac_optarg=$2 11977 ac_shift=shift 11978 ;; 11979 esac 11980 11981 case $ac_option in 11982 # Handling of the options. 11983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11984 ac_cs_recheck=: ;; 11985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11986 $as_echo "$ac_cs_version"; exit ;; 11987 --config | --confi | --conf | --con | --co | --c ) 11988 $as_echo "$ac_cs_config"; exit ;; 11989 --debug | --debu | --deb | --de | --d | -d ) 11990 debug=: ;; 11991 --file | --fil | --fi | --f ) 11992 $ac_shift 11993 case $ac_optarg in 11994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11995 '') as_fn_error $? "missing file argument" ;; 11996 esac 11997 as_fn_append CONFIG_FILES " '$ac_optarg'" 11998 ac_need_defaults=false;; 11999 --header | --heade | --head | --hea ) 12000 $ac_shift 12001 case $ac_optarg in 12002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12003 esac 12004 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12005 ac_need_defaults=false;; 12006 --he | --h) 12007 # Conflict between --help and --header 12008 as_fn_error $? "ambiguous option: \`$1' 12009Try \`$0 --help' for more information.";; 12010 --help | --hel | -h ) 12011 $as_echo "$ac_cs_usage"; exit ;; 12012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12013 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12014 ac_cs_silent=: ;; 12015 12016 # This is an error. 12017 -*) as_fn_error $? "unrecognized option: \`$1' 12018Try \`$0 --help' for more information." ;; 12019 12020 *) as_fn_append ac_config_targets " $1" 12021 ac_need_defaults=false ;; 12022 12023 esac 12024 shift 12025done 12026 12027ac_configure_extra_args= 12028 12029if $ac_cs_silent; then 12030 exec 6>/dev/null 12031 ac_configure_extra_args="$ac_configure_extra_args --silent" 12032fi 12033 12034_ACEOF 12035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12036if \$ac_cs_recheck; then 12037 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12038 shift 12039 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12040 CONFIG_SHELL='$SHELL' 12041 export CONFIG_SHELL 12042 exec "\$@" 12043fi 12044 12045_ACEOF 12046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12047exec 5>>config.log 12048{ 12049 echo 12050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12051## Running $as_me. ## 12052_ASBOX 12053 $as_echo "$ac_log" 12054} >&5 12055 12056_ACEOF 12057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12058# 12059# INIT-COMMANDS 12060# 12061AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12062 12063_ACEOF 12064 12065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12066 12067# Handling of arguments. 12068for ac_config_target in $ac_config_targets 12069do 12070 case $ac_config_target in 12071 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12072 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12074 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12075 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;; 12076 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;; 12077 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;; 12078 12079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12080 esac 12081done 12082 12083 12084# If the user did not use the arguments to specify the items to instantiate, 12085# then the envvar interface is used. Set only those that are not. 12086# We use the long form for the default assignment because of an extremely 12087# bizarre bug on SunOS 4.1.3. 12088if $ac_need_defaults; then 12089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12092fi 12093 12094# Have a temporary directory for convenience. Make it in the build tree 12095# simply because there is no reason against having it here, and in addition, 12096# creating and moving files from /tmp can sometimes cause problems. 12097# Hook for its removal unless debugging. 12098# Note that there is a small window in which the directory will not be cleaned: 12099# after its creation but before its name has been assigned to `$tmp'. 12100$debug || 12101{ 12102 tmp= ac_tmp= 12103 trap 'exit_status=$? 12104 : "${ac_tmp:=$tmp}" 12105 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12106' 0 12107 trap 'as_fn_exit 1' 1 2 13 15 12108} 12109# Create a (secure) tmp directory for tmp files. 12110 12111{ 12112 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12113 test -d "$tmp" 12114} || 12115{ 12116 tmp=./conf$$-$RANDOM 12117 (umask 077 && mkdir "$tmp") 12118} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12119ac_tmp=$tmp 12120 12121# Set up the scripts for CONFIG_FILES section. 12122# No need to generate them if there are no CONFIG_FILES. 12123# This happens for instance with `./config.status config.h'. 12124if test -n "$CONFIG_FILES"; then 12125 12126 12127ac_cr=`echo X | tr X '\015'` 12128# On cygwin, bash can eat \r inside `` if the user requested igncr. 12129# But we know of no other shell where ac_cr would be empty at this 12130# point, so we can use a bashism as a fallback. 12131if test "x$ac_cr" = x; then 12132 eval ac_cr=\$\'\\r\' 12133fi 12134ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12135if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12136 ac_cs_awk_cr='\\r' 12137else 12138 ac_cs_awk_cr=$ac_cr 12139fi 12140 12141echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12142_ACEOF 12143 12144 12145{ 12146 echo "cat >conf$$subs.awk <<_ACEOF" && 12147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12148 echo "_ACEOF" 12149} >conf$$subs.sh || 12150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12151ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12152ac_delim='%!_!# ' 12153for ac_last_try in false false false false false :; do 12154 . ./conf$$subs.sh || 12155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12156 12157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12158 if test $ac_delim_n = $ac_delim_num; then 12159 break 12160 elif $ac_last_try; then 12161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12162 else 12163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12164 fi 12165done 12166rm -f conf$$subs.sh 12167 12168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12169cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12170_ACEOF 12171sed -n ' 12172h 12173s/^/S["/; s/!.*/"]=/ 12174p 12175g 12176s/^[^!]*!// 12177:repl 12178t repl 12179s/'"$ac_delim"'$// 12180t delim 12181:nl 12182h 12183s/\(.\{148\}\)..*/\1/ 12184t more1 12185s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12186p 12187n 12188b repl 12189:more1 12190s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12191p 12192g 12193s/.\{148\}// 12194t nl 12195:delim 12196h 12197s/\(.\{148\}\)..*/\1/ 12198t more2 12199s/["\\]/\\&/g; s/^/"/; s/$/"/ 12200p 12201b 12202:more2 12203s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12204p 12205g 12206s/.\{148\}// 12207t delim 12208' <conf$$subs.awk | sed ' 12209/^[^""]/{ 12210 N 12211 s/\n// 12212} 12213' >>$CONFIG_STATUS || ac_write_fail=1 12214rm -f conf$$subs.awk 12215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12216_ACAWK 12217cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12218 for (key in S) S_is_set[key] = 1 12219 FS = "" 12220 12221} 12222{ 12223 line = $ 0 12224 nfields = split(line, field, "@") 12225 substed = 0 12226 len = length(field[1]) 12227 for (i = 2; i < nfields; i++) { 12228 key = field[i] 12229 keylen = length(key) 12230 if (S_is_set[key]) { 12231 value = S[key] 12232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12233 len += length(value) + length(field[++i]) 12234 substed = 1 12235 } else 12236 len += 1 + keylen 12237 } 12238 12239 print line 12240} 12241 12242_ACAWK 12243_ACEOF 12244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12245if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12247else 12248 cat 12249fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12250 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12251_ACEOF 12252 12253# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12254# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12255# trailing colons and then remove the whole line if VPATH becomes empty 12256# (actually we leave an empty line to preserve line numbers). 12257if test "x$srcdir" = x.; then 12258 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12259h 12260s/// 12261s/^/:/ 12262s/[ ]*$/:/ 12263s/:\$(srcdir):/:/g 12264s/:\${srcdir}:/:/g 12265s/:@srcdir@:/:/g 12266s/^:*// 12267s/:*$// 12268x 12269s/\(=[ ]*\).*/\1/ 12270G 12271s/\n// 12272s/^[^=]*=[ ]*$// 12273}' 12274fi 12275 12276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12277fi # test -n "$CONFIG_FILES" 12278 12279# Set up the scripts for CONFIG_HEADERS section. 12280# No need to generate them if there are no CONFIG_HEADERS. 12281# This happens for instance with `./config.status Makefile'. 12282if test -n "$CONFIG_HEADERS"; then 12283cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12284BEGIN { 12285_ACEOF 12286 12287# Transform confdefs.h into an awk script `defines.awk', embedded as 12288# here-document in config.status, that substitutes the proper values into 12289# config.h.in to produce config.h. 12290 12291# Create a delimiter string that does not exist in confdefs.h, to ease 12292# handling of long lines. 12293ac_delim='%!_!# ' 12294for ac_last_try in false false :; do 12295 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12296 if test -z "$ac_tt"; then 12297 break 12298 elif $ac_last_try; then 12299 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12300 else 12301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12302 fi 12303done 12304 12305# For the awk script, D is an array of macro values keyed by name, 12306# likewise P contains macro parameters if any. Preserve backslash 12307# newline sequences. 12308 12309ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12310sed -n ' 12311s/.\{148\}/&'"$ac_delim"'/g 12312t rset 12313:rset 12314s/^[ ]*#[ ]*define[ ][ ]*/ / 12315t def 12316d 12317:def 12318s/\\$// 12319t bsnl 12320s/["\\]/\\&/g 12321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12322D["\1"]=" \3"/p 12323s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12324d 12325:bsnl 12326s/["\\]/\\&/g 12327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12328D["\1"]=" \3\\\\\\n"\\/p 12329t cont 12330s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12331t cont 12332d 12333:cont 12334n 12335s/.\{148\}/&'"$ac_delim"'/g 12336t clear 12337:clear 12338s/\\$// 12339t bsnlc 12340s/["\\]/\\&/g; s/^/"/; s/$/"/p 12341d 12342:bsnlc 12343s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12344b cont 12345' <confdefs.h | sed ' 12346s/'"$ac_delim"'/"\\\ 12347"/g' >>$CONFIG_STATUS || ac_write_fail=1 12348 12349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12350 for (key in D) D_is_set[key] = 1 12351 FS = "" 12352} 12353/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12354 line = \$ 0 12355 split(line, arg, " ") 12356 if (arg[1] == "#") { 12357 defundef = arg[2] 12358 mac1 = arg[3] 12359 } else { 12360 defundef = substr(arg[1], 2) 12361 mac1 = arg[2] 12362 } 12363 split(mac1, mac2, "(") #) 12364 macro = mac2[1] 12365 prefix = substr(line, 1, index(line, defundef) - 1) 12366 if (D_is_set[macro]) { 12367 # Preserve the white space surrounding the "#". 12368 print prefix "define", macro P[macro] D[macro] 12369 next 12370 } else { 12371 # Replace #undef with comments. This is necessary, for example, 12372 # in the case of _POSIX_SOURCE, which is predefined and required 12373 # on some systems where configure will not decide to define it. 12374 if (defundef == "undef") { 12375 print "/*", prefix defundef, macro, "*/" 12376 next 12377 } 12378 } 12379} 12380{ print } 12381_ACAWK 12382_ACEOF 12383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12384 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12385fi # test -n "$CONFIG_HEADERS" 12386 12387 12388eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12389shift 12390for ac_tag 12391do 12392 case $ac_tag in 12393 :[FHLC]) ac_mode=$ac_tag; continue;; 12394 esac 12395 case $ac_mode$ac_tag in 12396 :[FHL]*:*);; 12397 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12398 :[FH]-) ac_tag=-:-;; 12399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12400 esac 12401 ac_save_IFS=$IFS 12402 IFS=: 12403 set x $ac_tag 12404 IFS=$ac_save_IFS 12405 shift 12406 ac_file=$1 12407 shift 12408 12409 case $ac_mode in 12410 :L) ac_source=$1;; 12411 :[FH]) 12412 ac_file_inputs= 12413 for ac_f 12414 do 12415 case $ac_f in 12416 -) ac_f="$ac_tmp/stdin";; 12417 *) # Look for the file first in the build tree, then in the source tree 12418 # (if the path is not absolute). The absolute path cannot be DOS-style, 12419 # because $ac_f cannot contain `:'. 12420 test -f "$ac_f" || 12421 case $ac_f in 12422 [\\/$]*) false;; 12423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12424 esac || 12425 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12426 esac 12427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12428 as_fn_append ac_file_inputs " '$ac_f'" 12429 done 12430 12431 # Let's still pretend it is `configure' which instantiates (i.e., don't 12432 # use $as_me), people would be surprised to read: 12433 # /* config.h. Generated by config.status. */ 12434 configure_input='Generated from '` 12435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12436 `' by configure.' 12437 if test x"$ac_file" != x-; then 12438 configure_input="$ac_file. $configure_input" 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12440$as_echo "$as_me: creating $ac_file" >&6;} 12441 fi 12442 # Neutralize special characters interpreted by sed in replacement strings. 12443 case $configure_input in #( 12444 *\&* | *\|* | *\\* ) 12445 ac_sed_conf_input=`$as_echo "$configure_input" | 12446 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12447 *) ac_sed_conf_input=$configure_input;; 12448 esac 12449 12450 case $ac_tag in 12451 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12453 esac 12454 ;; 12455 esac 12456 12457 ac_dir=`$as_dirname -- "$ac_file" || 12458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12459 X"$ac_file" : 'X\(//\)[^/]' \| \ 12460 X"$ac_file" : 'X\(//\)$' \| \ 12461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12462$as_echo X"$ac_file" | 12463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12464 s//\1/ 12465 q 12466 } 12467 /^X\(\/\/\)[^/].*/{ 12468 s//\1/ 12469 q 12470 } 12471 /^X\(\/\/\)$/{ 12472 s//\1/ 12473 q 12474 } 12475 /^X\(\/\).*/{ 12476 s//\1/ 12477 q 12478 } 12479 s/.*/./; q'` 12480 as_dir="$ac_dir"; as_fn_mkdir_p 12481 ac_builddir=. 12482 12483case "$ac_dir" in 12484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12485*) 12486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12487 # A ".." for each directory in $ac_dir_suffix. 12488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12489 case $ac_top_builddir_sub in 12490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12492 esac ;; 12493esac 12494ac_abs_top_builddir=$ac_pwd 12495ac_abs_builddir=$ac_pwd$ac_dir_suffix 12496# for backward compatibility: 12497ac_top_builddir=$ac_top_build_prefix 12498 12499case $srcdir in 12500 .) # We are building in place. 12501 ac_srcdir=. 12502 ac_top_srcdir=$ac_top_builddir_sub 12503 ac_abs_top_srcdir=$ac_pwd ;; 12504 [\\/]* | ?:[\\/]* ) # Absolute name. 12505 ac_srcdir=$srcdir$ac_dir_suffix; 12506 ac_top_srcdir=$srcdir 12507 ac_abs_top_srcdir=$srcdir ;; 12508 *) # Relative name. 12509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12510 ac_top_srcdir=$ac_top_build_prefix$srcdir 12511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12512esac 12513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12514 12515 12516 case $ac_mode in 12517 :F) 12518 # 12519 # CONFIG_FILE 12520 # 12521 12522 case $INSTALL in 12523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12525 esac 12526 ac_MKDIR_P=$MKDIR_P 12527 case $MKDIR_P in 12528 [\\/$]* | ?:[\\/]* ) ;; 12529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12530 esac 12531_ACEOF 12532 12533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12534# If the template does not know about datarootdir, expand it. 12535# FIXME: This hack should be removed a few years after 2.60. 12536ac_datarootdir_hack=; ac_datarootdir_seen= 12537ac_sed_dataroot=' 12538/datarootdir/ { 12539 p 12540 q 12541} 12542/@datadir@/p 12543/@docdir@/p 12544/@infodir@/p 12545/@localedir@/p 12546/@mandir@/p' 12547case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12548*datarootdir*) ac_datarootdir_seen=yes;; 12549*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12551$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12552_ACEOF 12553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12554 ac_datarootdir_hack=' 12555 s&@datadir@&$datadir&g 12556 s&@docdir@&$docdir&g 12557 s&@infodir@&$infodir&g 12558 s&@localedir@&$localedir&g 12559 s&@mandir@&$mandir&g 12560 s&\\\${datarootdir}&$datarootdir&g' ;; 12561esac 12562_ACEOF 12563 12564# Neutralize VPATH when `$srcdir' = `.'. 12565# Shell code in configure.ac might set extrasub. 12566# FIXME: do we really want to maintain this feature? 12567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12568ac_sed_extra="$ac_vpsub 12569$extrasub 12570_ACEOF 12571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572:t 12573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12574s|@configure_input@|$ac_sed_conf_input|;t t 12575s&@top_builddir@&$ac_top_builddir_sub&;t t 12576s&@top_build_prefix@&$ac_top_build_prefix&;t t 12577s&@srcdir@&$ac_srcdir&;t t 12578s&@abs_srcdir@&$ac_abs_srcdir&;t t 12579s&@top_srcdir@&$ac_top_srcdir&;t t 12580s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12581s&@builddir@&$ac_builddir&;t t 12582s&@abs_builddir@&$ac_abs_builddir&;t t 12583s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12584s&@INSTALL@&$ac_INSTALL&;t t 12585s&@MKDIR_P@&$ac_MKDIR_P&;t t 12586$ac_datarootdir_hack 12587" 12588eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12590 12591test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12594 "$ac_tmp/out"`; test -z "$ac_out"; } && 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12596which seems to be undefined. Please make sure it is defined" >&5 12597$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12598which seems to be undefined. Please make sure it is defined" >&2;} 12599 12600 rm -f "$ac_tmp/stdin" 12601 case $ac_file in 12602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12604 esac \ 12605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12606 ;; 12607 :H) 12608 # 12609 # CONFIG_HEADER 12610 # 12611 if test x"$ac_file" != x-; then 12612 { 12613 $as_echo "/* $configure_input */" \ 12614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12615 } >"$ac_tmp/config.h" \ 12616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12617 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12619$as_echo "$as_me: $ac_file is unchanged" >&6;} 12620 else 12621 rm -f "$ac_file" 12622 mv "$ac_tmp/config.h" "$ac_file" \ 12623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12624 fi 12625 else 12626 $as_echo "/* $configure_input */" \ 12627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12628 || as_fn_error $? "could not create -" "$LINENO" 5 12629 fi 12630# Compute "$ac_file"'s index in $config_headers. 12631_am_arg="$ac_file" 12632_am_stamp_count=1 12633for _am_header in $config_headers :; do 12634 case $_am_header in 12635 $_am_arg | $_am_arg:* ) 12636 break ;; 12637 * ) 12638 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12639 esac 12640done 12641echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12642$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12643 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12644 X"$_am_arg" : 'X\(//\)$' \| \ 12645 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12646$as_echo X"$_am_arg" | 12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12648 s//\1/ 12649 q 12650 } 12651 /^X\(\/\/\)[^/].*/{ 12652 s//\1/ 12653 q 12654 } 12655 /^X\(\/\/\)$/{ 12656 s//\1/ 12657 q 12658 } 12659 /^X\(\/\).*/{ 12660 s//\1/ 12661 q 12662 } 12663 s/.*/./; q'`/stamp-h$_am_stamp_count 12664 ;; 12665 12666 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12667$as_echo "$as_me: executing $ac_file commands" >&6;} 12668 ;; 12669 esac 12670 12671 12672 case $ac_file$ac_mode in 12673 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12674 # Older Autoconf quotes --file arguments for eval, but not when files 12675 # are listed without --file. Let's play safe and only enable the eval 12676 # if we detect the quoting. 12677 case $CONFIG_FILES in 12678 *\'*) eval set x "$CONFIG_FILES" ;; 12679 *) set x $CONFIG_FILES ;; 12680 esac 12681 shift 12682 for mf 12683 do 12684 # Strip MF so we end up with the name of the file. 12685 mf=`echo "$mf" | sed -e 's/:.*$//'` 12686 # Check whether this is an Automake generated Makefile or not. 12687 # We used to match only the files named 'Makefile.in', but 12688 # some people rename them; so instead we look at the file content. 12689 # Grep'ing the first line is not enough: some people post-process 12690 # each Makefile.in and add a new line on top of each file to say so. 12691 # Grep'ing the whole file is not good either: AIX grep has a line 12692 # limit of 2048, but all sed's we know have understand at least 4000. 12693 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12694 dirpart=`$as_dirname -- "$mf" || 12695$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12696 X"$mf" : 'X\(//\)[^/]' \| \ 12697 X"$mf" : 'X\(//\)$' \| \ 12698 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12699$as_echo X"$mf" | 12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12701 s//\1/ 12702 q 12703 } 12704 /^X\(\/\/\)[^/].*/{ 12705 s//\1/ 12706 q 12707 } 12708 /^X\(\/\/\)$/{ 12709 s//\1/ 12710 q 12711 } 12712 /^X\(\/\).*/{ 12713 s//\1/ 12714 q 12715 } 12716 s/.*/./; q'` 12717 else 12718 continue 12719 fi 12720 # Extract the definition of DEPDIR, am__include, and am__quote 12721 # from the Makefile without running 'make'. 12722 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12723 test -z "$DEPDIR" && continue 12724 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12725 test -z "$am__include" && continue 12726 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12727 # Find all dependency output files, they are included files with 12728 # $(DEPDIR) in their names. We invoke sed twice because it is the 12729 # simplest approach to changing $(DEPDIR) to its actual value in the 12730 # expansion. 12731 for file in `sed -n " 12732 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12733 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12734 # Make sure the directory exists. 12735 test -f "$dirpart/$file" && continue 12736 fdir=`$as_dirname -- "$file" || 12737$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12738 X"$file" : 'X\(//\)[^/]' \| \ 12739 X"$file" : 'X\(//\)$' \| \ 12740 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12741$as_echo X"$file" | 12742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12743 s//\1/ 12744 q 12745 } 12746 /^X\(\/\/\)[^/].*/{ 12747 s//\1/ 12748 q 12749 } 12750 /^X\(\/\/\)$/{ 12751 s//\1/ 12752 q 12753 } 12754 /^X\(\/\).*/{ 12755 s//\1/ 12756 q 12757 } 12758 s/.*/./; q'` 12759 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12760 # echo "creating $dirpart/$file" 12761 echo '# dummy' > "$dirpart/$file" 12762 done 12763 done 12764} 12765 ;; 12766 12767 esac 12768done # for ac_tag 12769 12770 12771as_fn_exit 0 12772_ACEOF 12773ac_clean_files=$ac_clean_files_save 12774 12775test $ac_write_fail = 0 || 12776 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12777 12778 12779# configure is writing to config.log, and then calls config.status. 12780# config.status does its own redirection, appending to config.log. 12781# Unfortunately, on DOS this fails, as config.log is still kept open 12782# by configure, so config.status won't be able to write to it; its 12783# output is simply discarded. So we exec the FD to /dev/null, 12784# effectively closing config.log, so it can be properly (re)opened and 12785# appended to by config.status. When coming back to configure, we 12786# need to make the FD available again. 12787if test "$no_create" != yes; then 12788 ac_cs_success=: 12789 ac_config_status_args= 12790 test "$silent" = yes && 12791 ac_config_status_args="$ac_config_status_args --quiet" 12792 exec 5>/dev/null 12793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12794 exec 5>>config.log 12795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12796 # would make configure fail if this is the last instruction. 12797 $ac_cs_success || as_fn_exit 1 12798fi 12799if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12801$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12802fi 12803 12804