configure revision f765521f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xedit 1.2.2. 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='xedit' 583PACKAGE_TARNAME='xedit' 584PACKAGE_VERSION='1.2.2' 585PACKAGE_STRING='xedit 1.2.2' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628LIBOBJS 629appdefaultdir 630APPDEFS_LIBS 631APPDEFS_CFLAGS 632NEED_UNSETENV_FALSE 633NEED_UNSETENV_TRUE 634NEED_STRCASECMP_FALSE 635NEED_STRCASECMP_TRUE 636NEED_REALPATH_FALSE 637NEED_REALPATH_TRUE 638LISPDIR 639PKGDEPS_LIBS 640PKGDEPS_CFLAGS 641RANLIB 642ac_ct_AR 643AR 644MAN_SUBSTS 645XORG_MAN_PAGE 646ADMIN_MAN_DIR 647DRIVER_MAN_DIR 648MISC_MAN_DIR 649FILE_MAN_DIR 650LIB_MAN_DIR 651APP_MAN_DIR 652ADMIN_MAN_SUFFIX 653DRIVER_MAN_SUFFIX 654MISC_MAN_SUFFIX 655FILE_MAN_SUFFIX 656LIB_MAN_SUFFIX 657APP_MAN_SUFFIX 658SED 659host_os 660host_vendor 661host_cpu 662host 663build_os 664build_vendor 665build_cpu 666build 667INSTALL_CMD 668PKG_CONFIG_LIBDIR 669PKG_CONFIG_PATH 670PKG_CONFIG 671CHANGELOG_CMD 672STRICT_CFLAGS 673CWARNFLAGS 674BASE_CFLAGS 675EGREP 676GREP 677CPP 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688OBJEXT 689EXEEXT 690ac_ct_CC 691CPPFLAGS 692LDFLAGS 693CFLAGS 694CC 695AM_BACKSLASH 696AM_DEFAULT_VERBOSITY 697AM_DEFAULT_V 698AM_V 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_alias 723host_alias 724build_alias 725LIBS 726ECHO_T 727ECHO_N 728ECHO_C 729DEFS 730mandir 731localedir 732libdir 733psdir 734pdfdir 735dvidir 736htmldir 737infodir 738docdir 739oldincludedir 740includedir 741localstatedir 742sharedstatedir 743sysconfdir 744datadir 745datarootdir 746libexecdir 747sbindir 748bindir 749program_transform_name 750prefix 751exec_prefix 752PACKAGE_URL 753PACKAGE_BUGREPORT 754PACKAGE_STRING 755PACKAGE_VERSION 756PACKAGE_TARNAME 757PACKAGE_NAME 758PATH_SEPARATOR 759SHELL' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_silent_rules 764enable_dependency_tracking 765enable_selective_werror 766enable_strict_compilation 767with_lispdir 768with_appdefaultdir 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CPP 779PKG_CONFIG 780PKG_CONFIG_PATH 781PKG_CONFIG_LIBDIR 782PKGDEPS_CFLAGS 783PKGDEPS_LIBS 784APPDEFS_CFLAGS 785APPDEFS_LIBS' 786 787 788# Initialize some variables set by options. 789ac_init_help= 790ac_init_version=false 791ac_unrecognized_opts= 792ac_unrecognized_sep= 793# The variables have the same names as the options, with 794# dashes changed to underlines. 795cache_file=/dev/null 796exec_prefix=NONE 797no_create= 798no_recursion= 799prefix=NONE 800program_prefix=NONE 801program_suffix=NONE 802program_transform_name=s,x,x, 803silent= 804site= 805srcdir= 806verbose= 807x_includes=NONE 808x_libraries=NONE 809 810# Installation directory options. 811# These are left unexpanded so users can "make install exec_prefix=/foo" 812# and all the variables that are supposed to be based on exec_prefix 813# by default will actually change. 814# Use braces instead of parens because sh, perl, etc. also accept them. 815# (The list follows the same order as the GNU Coding Standards.) 816bindir='${exec_prefix}/bin' 817sbindir='${exec_prefix}/sbin' 818libexecdir='${exec_prefix}/libexec' 819datarootdir='${prefix}/share' 820datadir='${datarootdir}' 821sysconfdir='${prefix}/etc' 822sharedstatedir='${prefix}/com' 823localstatedir='${prefix}/var' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=) ac_optarg= ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 # Accept the important Cygnus configure options, so we can diagnose typos. 854 855 case $ac_dashdash$ac_option in 856 --) 857 ac_dashdash=yes ;; 858 859 -bindir | --bindir | --bindi | --bind | --bin | --bi) 860 ac_prev=bindir ;; 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 862 bindir=$ac_optarg ;; 863 864 -build | --build | --buil | --bui | --bu) 865 ac_prev=build_alias ;; 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 867 build_alias=$ac_optarg ;; 868 869 -cache-file | --cache-file | --cache-fil | --cache-fi \ 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 871 ac_prev=cache_file ;; 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 874 cache_file=$ac_optarg ;; 875 876 --config-cache | -C) 877 cache_file=config.cache ;; 878 879 -datadir | --datadir | --datadi | --datad) 880 ac_prev=datadir ;; 881 -datadir=* | --datadir=* | --datadi=* | --datad=*) 882 datadir=$ac_optarg ;; 883 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 885 | --dataroo | --dataro | --datar) 886 ac_prev=datarootdir ;; 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 889 datarootdir=$ac_optarg ;; 890 891 -disable-* | --disable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=no ;; 906 907 -docdir | --docdir | --docdi | --doc | --do) 908 ac_prev=docdir ;; 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 910 docdir=$ac_optarg ;; 911 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 913 ac_prev=dvidir ;; 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 915 dvidir=$ac_optarg ;; 916 917 -enable-* | --enable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=\$ac_optarg ;; 932 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 935 | --exec | --exe | --ex) 936 ac_prev=exec_prefix ;; 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 939 | --exec=* | --exe=* | --ex=*) 940 exec_prefix=$ac_optarg ;; 941 942 -gas | --gas | --ga | --g) 943 # Obsolete; use --with-gas. 944 with_gas=yes ;; 945 946 -help | --help | --hel | --he | -h) 947 ac_init_help=long ;; 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 949 ac_init_help=recursive ;; 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 951 ac_init_help=short ;; 952 953 -host | --host | --hos | --ho) 954 ac_prev=host_alias ;; 955 -host=* | --host=* | --hos=* | --ho=*) 956 host_alias=$ac_optarg ;; 957 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 959 ac_prev=htmldir ;; 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 961 | --ht=*) 962 htmldir=$ac_optarg ;; 963 964 -includedir | --includedir | --includedi | --included | --include \ 965 | --includ | --inclu | --incl | --inc) 966 ac_prev=includedir ;; 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 968 | --includ=* | --inclu=* | --incl=* | --inc=*) 969 includedir=$ac_optarg ;; 970 971 -infodir | --infodir | --infodi | --infod | --info | --inf) 972 ac_prev=infodir ;; 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 974 infodir=$ac_optarg ;; 975 976 -libdir | --libdir | --libdi | --libd) 977 ac_prev=libdir ;; 978 -libdir=* | --libdir=* | --libdi=* | --libd=*) 979 libdir=$ac_optarg ;; 980 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 982 | --libexe | --libex | --libe) 983 ac_prev=libexecdir ;; 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 985 | --libexe=* | --libex=* | --libe=*) 986 libexecdir=$ac_optarg ;; 987 988 -localedir | --localedir | --localedi | --localed | --locale) 989 ac_prev=localedir ;; 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 991 localedir=$ac_optarg ;; 992 993 -localstatedir | --localstatedir | --localstatedi | --localstated \ 994 | --localstate | --localstat | --localsta | --localst | --locals) 995 ac_prev=localstatedir ;; 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 998 localstatedir=$ac_optarg ;; 999 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1001 ac_prev=mandir ;; 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1003 mandir=$ac_optarg ;; 1004 1005 -nfp | --nfp | --nf) 1006 # Obsolete; use --without-fp. 1007 with_fp=no ;; 1008 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1010 | --no-cr | --no-c | -n) 1011 no_create=yes ;; 1012 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1015 no_recursion=yes ;; 1016 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1019 | --oldin | --oldi | --old | --ol | --o) 1020 ac_prev=oldincludedir ;; 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1024 oldincludedir=$ac_optarg ;; 1025 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1027 ac_prev=prefix ;; 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1029 prefix=$ac_optarg ;; 1030 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1032 | --program-pre | --program-pr | --program-p) 1033 ac_prev=program_prefix ;; 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1036 program_prefix=$ac_optarg ;; 1037 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1039 | --program-suf | --program-su | --program-s) 1040 ac_prev=program_suffix ;; 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1043 program_suffix=$ac_optarg ;; 1044 1045 -program-transform-name | --program-transform-name \ 1046 | --program-transform-nam | --program-transform-na \ 1047 | --program-transform-n | --program-transform- \ 1048 | --program-transform | --program-transfor \ 1049 | --program-transfo | --program-transf \ 1050 | --program-trans | --program-tran \ 1051 | --progr-tra | --program-tr | --program-t) 1052 ac_prev=program_transform_name ;; 1053 -program-transform-name=* | --program-transform-name=* \ 1054 | --program-transform-nam=* | --program-transform-na=* \ 1055 | --program-transform-n=* | --program-transform-=* \ 1056 | --program-transform=* | --program-transfor=* \ 1057 | --program-transfo=* | --program-transf=* \ 1058 | --program-trans=* | --program-tran=* \ 1059 | --progr-tra=* | --program-tr=* | --program-t=*) 1060 program_transform_name=$ac_optarg ;; 1061 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1063 ac_prev=pdfdir ;; 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1065 pdfdir=$ac_optarg ;; 1066 1067 -psdir | --psdir | --psdi | --psd | --ps) 1068 ac_prev=psdir ;; 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1070 psdir=$ac_optarg ;; 1071 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1073 | -silent | --silent | --silen | --sile | --sil) 1074 silent=yes ;; 1075 1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1077 ac_prev=sbindir ;; 1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1079 | --sbi=* | --sb=*) 1080 sbindir=$ac_optarg ;; 1081 1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1084 | --sharedst | --shareds | --shared | --share | --shar \ 1085 | --sha | --sh) 1086 ac_prev=sharedstatedir ;; 1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1090 | --sha=* | --sh=*) 1091 sharedstatedir=$ac_optarg ;; 1092 1093 -site | --site | --sit) 1094 ac_prev=site ;; 1095 -site=* | --site=* | --sit=*) 1096 site=$ac_optarg ;; 1097 1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1099 ac_prev=srcdir ;; 1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1101 srcdir=$ac_optarg ;; 1102 1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1104 | --syscon | --sysco | --sysc | --sys | --sy) 1105 ac_prev=sysconfdir ;; 1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1108 sysconfdir=$ac_optarg ;; 1109 1110 -target | --target | --targe | --targ | --tar | --ta | --t) 1111 ac_prev=target_alias ;; 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1113 target_alias=$ac_optarg ;; 1114 1115 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1116 verbose=yes ;; 1117 1118 -version | --version | --versio | --versi | --vers | -V) 1119 ac_init_version=: ;; 1120 1121 -with-* | --with-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=\$ac_optarg ;; 1136 1137 -without-* | --without-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: $ac_useropt" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=no ;; 1152 1153 --x) 1154 # Obsolete; use --with-x. 1155 with_x=yes ;; 1156 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1158 | --x-incl | --x-inc | --x-in | --x-i) 1159 ac_prev=x_includes ;; 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1162 x_includes=$ac_optarg ;; 1163 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1166 ac_prev=x_libraries ;; 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1169 x_libraries=$ac_optarg ;; 1170 1171 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1172Try \`$0 --help' for more information" 1173 ;; 1174 1175 *=*) 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1177 # Reject names that are not valid shell variable names. 1178 case $ac_envvar in #( 1179 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1181 esac 1182 eval $ac_envvar=\$ac_optarg 1183 export $ac_envvar ;; 1184 1185 *) 1186 # FIXME: should be removed in autoconf 3.0. 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1191 ;; 1192 1193 esac 1194done 1195 1196if test -n "$ac_prev"; then 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1198 as_fn_error $? "missing argument to $ac_option" 1199fi 1200 1201if test -n "$ac_unrecognized_opts"; then 1202 case $enable_option_checking in 1203 no) ;; 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1206 esac 1207fi 1208 1209# Check all directory arguments for consistency. 1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1213 libdir localedir mandir 1214do 1215 eval ac_val=\$$ac_var 1216 # Remove trailing slashes. 1217 case $ac_val in 1218 */ ) 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1220 eval $ac_var=\$ac_val;; 1221 esac 1222 # Be sure to have absolute directory names. 1223 case $ac_val in 1224 [\\/$]* | ?:[\\/]* ) continue;; 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1226 esac 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1228done 1229 1230# There might be people who depend on the old broken behavior: `$host' 1231# used to hold the argument of --host etc. 1232# FIXME: To remove some day. 1233build=$build_alias 1234host=$host_alias 1235target=$target_alias 1236 1237# FIXME: To remove some day. 1238if test "x$host_alias" != x; then 1239 if test "x$build_alias" = x; then 1240 cross_compiling=maybe 1241 elif test "x$build_alias" != "x$host_alias"; then 1242 cross_compiling=yes 1243 fi 1244fi 1245 1246ac_tool_prefix= 1247test -n "$host_alias" && ac_tool_prefix=$host_alias- 1248 1249test "$silent" = yes && exec 6>/dev/null 1250 1251 1252ac_pwd=`pwd` && test -n "$ac_pwd" && 1253ac_ls_di=`ls -di .` && 1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1255 as_fn_error $? "working directory cannot be determined" 1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1257 as_fn_error $? "pwd does not report name of working directory" 1258 1259 1260# Find the source files, if location was not specified. 1261if test -z "$srcdir"; then 1262 ac_srcdir_defaulted=yes 1263 # Try the directory containing this script, then the parent directory. 1264 ac_confdir=`$as_dirname -- "$as_myself" || 1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1266 X"$as_myself" : 'X\(//\)[^/]' \| \ 1267 X"$as_myself" : 'X\(//\)$' \| \ 1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1269$as_echo X"$as_myself" | 1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)[^/].*/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\).*/{ 1283 s//\1/ 1284 q 1285 } 1286 s/.*/./; q'` 1287 srcdir=$ac_confdir 1288 if test ! -r "$srcdir/$ac_unique_file"; then 1289 srcdir=.. 1290 fi 1291else 1292 ac_srcdir_defaulted=no 1293fi 1294if test ! -r "$srcdir/$ac_unique_file"; then 1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1297fi 1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1299ac_abs_confdir=`( 1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1301 pwd)` 1302# When building in place, set srcdir=. 1303if test "$ac_abs_confdir" = "$ac_pwd"; then 1304 srcdir=. 1305fi 1306# Remove unnecessary trailing slashes from srcdir. 1307# Double slashes in file names in object file debugging info 1308# mess up M-x gdb in Emacs. 1309case $srcdir in 1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1311esac 1312for ac_var in $ac_precious_vars; do 1313 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_env_${ac_var}_value=\$${ac_var} 1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1317done 1318 1319# 1320# Report the --help message. 1321# 1322if test "$ac_init_help" = "long"; then 1323 # Omit some internal or obsolete options to make the list less imposing. 1324 # This message is too long to be a string in the A/UX 3.1 sh. 1325 cat <<_ACEOF 1326\`configure' configures xedit 1.2.2 to adapt to many kinds of systems. 1327 1328Usage: $0 [OPTION]... [VAR=VALUE]... 1329 1330To assign environment variables (e.g., CC, CFLAGS...), specify them as 1331VAR=VALUE. See below for descriptions of some of the useful variables. 1332 1333Defaults for the options are specified in brackets. 1334 1335Configuration: 1336 -h, --help display this help and exit 1337 --help=short display options specific to this package 1338 --help=recursive display the short help of all the included packages 1339 -V, --version display version information and exit 1340 -q, --quiet, --silent do not print \`checking ...' messages 1341 --cache-file=FILE cache test results in FILE [disabled] 1342 -C, --config-cache alias for \`--cache-file=config.cache' 1343 -n, --no-create do not create output files 1344 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1345 1346Installation directories: 1347 --prefix=PREFIX install architecture-independent files in PREFIX 1348 [$ac_default_prefix] 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1350 [PREFIX] 1351 1352By default, \`make install' will install all the files in 1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1354an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1355for instance \`--prefix=\$HOME'. 1356 1357For better control, use the options below. 1358 1359Fine tuning of the installation directories: 1360 --bindir=DIR user executables [EPREFIX/bin] 1361 --sbindir=DIR system admin executables [EPREFIX/sbin] 1362 --libexecdir=DIR program executables [EPREFIX/libexec] 1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1366 --libdir=DIR object code libraries [EPREFIX/lib] 1367 --includedir=DIR C header files [PREFIX/include] 1368 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1371 --infodir=DIR info documentation [DATAROOTDIR/info] 1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1373 --mandir=DIR man documentation [DATAROOTDIR/man] 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit] 1375 --htmldir=DIR html documentation [DOCDIR] 1376 --dvidir=DIR dvi documentation [DOCDIR] 1377 --pdfdir=DIR pdf documentation [DOCDIR] 1378 --psdir=DIR ps documentation [DOCDIR] 1379_ACEOF 1380 1381 cat <<\_ACEOF 1382 1383Program names: 1384 --program-prefix=PREFIX prepend PREFIX to installed program names 1385 --program-suffix=SUFFIX append SUFFIX to installed program names 1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1387 1388System types: 1389 --build=BUILD configure for building on BUILD [guessed] 1390 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1391_ACEOF 1392fi 1393 1394if test -n "$ac_init_help"; then 1395 case $ac_init_help in 1396 short | recursive ) echo "Configuration of xedit 1.2.2:";; 1397 esac 1398 cat <<\_ACEOF 1399 1400Optional Features: 1401 --disable-option-checking ignore unrecognized --enable/--with options 1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1404 --enable-silent-rules less verbose build output (undo: "make V=1") 1405 --disable-silent-rules verbose build output (undo: "make V=0") 1406 --enable-dependency-tracking 1407 do not reject slow dependency extractors 1408 --disable-dependency-tracking 1409 speeds up one-time build 1410 --disable-selective-werror 1411 Turn off selective compiler errors. (default: 1412 enabled) 1413 --enable-strict-compilation 1414 Enable all warnings from compiler and make them 1415 errors (default: disabled) 1416 1417Optional Packages: 1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1420 --with-lispdir=PATH Directory to install lisp files (default: 1421 $libdir/X11/xedit/lisp) 1422 --with-appdefaultdir=<pathname> 1423 specify directory for app-defaults files (default is 1424 autodetected) 1425 1426Some influential environment variables: 1427 CC C compiler command 1428 CFLAGS C compiler flags 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1430 nonstandard directory <lib dir> 1431 LIBS libraries to pass to the linker, e.g. -l<library> 1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1433 you have headers in a nonstandard directory <include dir> 1434 CPP C preprocessor 1435 PKG_CONFIG path to pkg-config utility 1436 PKG_CONFIG_PATH 1437 directories to add to pkg-config's search path 1438 PKG_CONFIG_LIBDIR 1439 path overriding pkg-config's built-in search path 1440 PKGDEPS_CFLAGS 1441 C compiler flags for PKGDEPS, overriding pkg-config 1442 PKGDEPS_LIBS 1443 linker flags for PKGDEPS, overriding pkg-config 1444 APPDEFS_CFLAGS 1445 C compiler flags for APPDEFS, overriding pkg-config 1446 APPDEFS_LIBS 1447 linker flags for APPDEFS, overriding pkg-config 1448 1449Use these variables to override the choices made by `configure' or to help 1450it to find libraries and programs with nonstandard names/locations. 1451 1452Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1453_ACEOF 1454ac_status=$? 1455fi 1456 1457if test "$ac_init_help" = "recursive"; then 1458 # If there are subdirs, report their specific --help. 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1460 test -d "$ac_dir" || 1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1462 continue 1463 ac_builddir=. 1464 1465case "$ac_dir" in 1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467*) 1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1469 # A ".." for each directory in $ac_dir_suffix. 1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1471 case $ac_top_builddir_sub in 1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1474 esac ;; 1475esac 1476ac_abs_top_builddir=$ac_pwd 1477ac_abs_builddir=$ac_pwd$ac_dir_suffix 1478# for backward compatibility: 1479ac_top_builddir=$ac_top_build_prefix 1480 1481case $srcdir in 1482 .) # We are building in place. 1483 ac_srcdir=. 1484 ac_top_srcdir=$ac_top_builddir_sub 1485 ac_abs_top_srcdir=$ac_pwd ;; 1486 [\\/]* | ?:[\\/]* ) # Absolute name. 1487 ac_srcdir=$srcdir$ac_dir_suffix; 1488 ac_top_srcdir=$srcdir 1489 ac_abs_top_srcdir=$srcdir ;; 1490 *) # Relative name. 1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1492 ac_top_srcdir=$ac_top_build_prefix$srcdir 1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1494esac 1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1496 1497 cd "$ac_dir" || { ac_status=$?; continue; } 1498 # Check for guested configure. 1499 if test -f "$ac_srcdir/configure.gnu"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1502 elif test -f "$ac_srcdir/configure"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure" --help=recursive 1505 else 1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1507 fi || ac_status=$? 1508 cd "$ac_pwd" || { ac_status=$?; break; } 1509 done 1510fi 1511 1512test -n "$ac_init_help" && exit $ac_status 1513if $ac_init_version; then 1514 cat <<\_ACEOF 1515xedit configure 1.2.2 1516generated by GNU Autoconf 2.69 1517 1518Copyright (C) 2012 Free Software Foundation, Inc. 1519This configure script is free software; the Free Software Foundation 1520gives unlimited permission to copy, distribute and modify it. 1521_ACEOF 1522 exit 1523fi 1524 1525## ------------------------ ## 1526## Autoconf initialization. ## 1527## ------------------------ ## 1528 1529# ac_fn_c_try_compile LINENO 1530# -------------------------- 1531# Try to compile conftest.$ac_ext, and return whether this succeeded. 1532ac_fn_c_try_compile () 1533{ 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1535 rm -f conftest.$ac_objext 1536 if { { ac_try="$ac_compile" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542$as_echo "$ac_try_echo"; } >&5 1543 (eval "$ac_compile") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } && { 1552 test -z "$ac_c_werror_flag" || 1553 test ! -s conftest.err 1554 } && test -s conftest.$ac_objext; then : 1555 ac_retval=0 1556else 1557 $as_echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_c_try_compile 1566 1567# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1568# --------------------------------------------- 1569# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1570# accordingly. 1571ac_fn_c_check_decl () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 as_decl_name=`echo $2|sed 's/ *(.*//'` 1575 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1577$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1578if eval \${$3+:} false; then : 1579 $as_echo_n "(cached) " >&6 1580else 1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1582/* end confdefs.h. */ 1583$4 1584int 1585main () 1586{ 1587#ifndef $as_decl_name 1588#ifdef __cplusplus 1589 (void) $as_decl_use; 1590#else 1591 (void) $as_decl_name; 1592#endif 1593#endif 1594 1595 ; 1596 return 0; 1597} 1598_ACEOF 1599if ac_fn_c_try_compile "$LINENO"; then : 1600 eval "$3=yes" 1601else 1602 eval "$3=no" 1603fi 1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1605fi 1606eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608$as_echo "$ac_res" >&6; } 1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 1611} # ac_fn_c_check_decl 1612 1613# ac_fn_c_try_cpp LINENO 1614# ---------------------- 1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_cpp () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 if { { ac_try="$ac_cpp conftest.$ac_ext" 1620case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623esac 1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625$as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } > conftest.i && { 1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 }; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_cpp 1649 1650# ac_fn_c_try_run LINENO 1651# ---------------------- 1652# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1653# that executables *can* be run. 1654ac_fn_c_try_run () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 if { { ac_try="$ac_link" 1658case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663$as_echo "$ac_try_echo"; } >&5 1664 (eval "$ac_link") 2>&5 1665 ac_status=$? 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1668 { { case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_try") 2>&5 1675 ac_status=$? 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; }; }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: program exited with status $ac_status" >&5 1681 $as_echo "$as_me: failed program was:" >&5 1682sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=$ac_status 1685fi 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_run 1691 1692# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1693# ------------------------------------------------------- 1694# Tests whether HEADER exists and can be compiled using the include files in 1695# INCLUDES, setting the cache variable VAR accordingly. 1696ac_fn_c_check_header_compile () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1700$as_echo_n "checking for $2... " >&6; } 1701if eval \${$3+:} false; then : 1702 $as_echo_n "(cached) " >&6 1703else 1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705/* end confdefs.h. */ 1706$4 1707#include <$2> 1708_ACEOF 1709if ac_fn_c_try_compile "$LINENO"; then : 1710 eval "$3=yes" 1711else 1712 eval "$3=no" 1713fi 1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1715fi 1716eval ac_res=\$$3 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718$as_echo "$ac_res" >&6; } 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721} # ac_fn_c_check_header_compile 1722 1723# ac_fn_c_try_link LINENO 1724# ----------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. 1726ac_fn_c_try_link () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 rm -f conftest.$ac_objext conftest$ac_exeext 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>conftest.err 1738 ac_status=$? 1739 if test -s conftest.err; then 1740 grep -v '^ *+' conftest.err >conftest.er1 1741 cat conftest.er1 >&5 1742 mv -f conftest.er1 conftest.err 1743 fi 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; } && { 1746 test -z "$ac_c_werror_flag" || 1747 test ! -s conftest.err 1748 } && test -s conftest$ac_exeext && { 1749 test "$cross_compiling" = yes || 1750 test -x conftest$ac_exeext 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1761 # interfere with the next link command; also delete a directory that is 1762 # left behind by Apple's compiler. We do this before executing the actions. 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_link 1768 1769# ac_fn_c_check_func LINENO FUNC VAR 1770# ---------------------------------- 1771# Tests whether FUNC exists, setting the cache variable VAR accordingly 1772ac_fn_c_check_func () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776$as_echo_n "checking for $2... " >&6; } 1777if eval \${$3+:} false; then : 1778 $as_echo_n "(cached) " >&6 1779else 1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1784#define $2 innocuous_$2 1785 1786/* System header to define __stub macros and hopefully few prototypes, 1787 which can conflict with char $2 (); below. 1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1789 <limits.h> exists even on freestanding compilers. */ 1790 1791#ifdef __STDC__ 1792# include <limits.h> 1793#else 1794# include <assert.h> 1795#endif 1796 1797#undef $2 1798 1799/* Override any GCC internal prototype to avoid an error. 1800 Use char because int might match the return type of a GCC 1801 builtin and then its argument prototype would still apply. */ 1802#ifdef __cplusplus 1803extern "C" 1804#endif 1805char $2 (); 1806/* The GNU C library defines this for functions which it implements 1807 to always fail with ENOSYS. Some functions are actually named 1808 something starting with __ and the normal name is an alias. */ 1809#if defined __stub_$2 || defined __stub___$2 1810choke me 1811#endif 1812 1813int 1814main () 1815{ 1816return $2 (); 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821if ac_fn_c_try_link "$LINENO"; then : 1822 eval "$3=yes" 1823else 1824 eval "$3=no" 1825fi 1826rm -f core conftest.err conftest.$ac_objext \ 1827 conftest$ac_exeext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_func 1835cat >config.log <<_ACEOF 1836This file contains any messages produced by compilers while 1837running configure, to aid debugging if configure makes a mistake. 1838 1839It was created by xedit $as_me 1.2.2, which was 1840generated by GNU Autoconf 2.69. Invocation command line was 1841 1842 $ $0 $@ 1843 1844_ACEOF 1845exec 5>>config.log 1846{ 1847cat <<_ASUNAME 1848## --------- ## 1849## Platform. ## 1850## --------- ## 1851 1852hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1853uname -m = `(uname -m) 2>/dev/null || echo unknown` 1854uname -r = `(uname -r) 2>/dev/null || echo unknown` 1855uname -s = `(uname -s) 2>/dev/null || echo unknown` 1856uname -v = `(uname -v) 2>/dev/null || echo unknown` 1857 1858/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1859/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1860 1861/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1862/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1863/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1864/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1865/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1866/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1867/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1868 1869_ASUNAME 1870 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 $as_echo "PATH: $as_dir" 1877 done 1878IFS=$as_save_IFS 1879 1880} >&5 1881 1882cat >&5 <<_ACEOF 1883 1884 1885## ----------- ## 1886## Core tests. ## 1887## ----------- ## 1888 1889_ACEOF 1890 1891 1892# Keep a trace of the command line. 1893# Strip out --no-create and --no-recursion so they do not pile up. 1894# Strip out --silent because we don't want to record it for future runs. 1895# Also quote any args containing shell meta-characters. 1896# Make two passes to allow for proper duplicate-argument suppression. 1897ac_configure_args= 1898ac_configure_args0= 1899ac_configure_args1= 1900ac_must_keep_next=false 1901for ac_pass in 1 2 1902do 1903 for ac_arg 1904 do 1905 case $ac_arg in 1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1908 | -silent | --silent | --silen | --sile | --sil) 1909 continue ;; 1910 *\'*) 1911 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1912 esac 1913 case $ac_pass in 1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1915 2) 1916 as_fn_append ac_configure_args1 " '$ac_arg'" 1917 if test $ac_must_keep_next = true; then 1918 ac_must_keep_next=false # Got value, back to normal. 1919 else 1920 case $ac_arg in 1921 *=* | --config-cache | -C | -disable-* | --disable-* \ 1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1924 | -with-* | --with-* | -without-* | --without-* | --x) 1925 case "$ac_configure_args0 " in 1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1927 esac 1928 ;; 1929 -* ) ac_must_keep_next=true ;; 1930 esac 1931 fi 1932 as_fn_append ac_configure_args " '$ac_arg'" 1933 ;; 1934 esac 1935 done 1936done 1937{ ac_configure_args0=; unset ac_configure_args0;} 1938{ ac_configure_args1=; unset ac_configure_args1;} 1939 1940# When interrupted or exit'd, cleanup temporary files, and complete 1941# config.log. We remove comments because anyway the quotes in there 1942# would cause problems or look ugly. 1943# WARNING: Use '\'' to represent an apostrophe within the trap. 1944# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1945trap 'exit_status=$? 1946 # Save into config.log some information that might help in debugging. 1947 { 1948 echo 1949 1950 $as_echo "## ---------------- ## 1951## Cache variables. ## 1952## ---------------- ##" 1953 echo 1954 # The following way of writing the cache mishandles newlines in values, 1955( 1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1957 eval ac_val=\$$ac_var 1958 case $ac_val in #( 1959 *${as_nl}*) 1960 case $ac_var in #( 1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1963 esac 1964 case $ac_var in #( 1965 _ | IFS | as_nl) ;; #( 1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1967 *) { eval $ac_var=; unset $ac_var;} ;; 1968 esac ;; 1969 esac 1970 done 1971 (set) 2>&1 | 1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1973 *${as_nl}ac_space=\ *) 1974 sed -n \ 1975 "s/'\''/'\''\\\\'\'''\''/g; 1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1977 ;; #( 1978 *) 1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1980 ;; 1981 esac | 1982 sort 1983) 1984 echo 1985 1986 $as_echo "## ----------------- ## 1987## Output variables. ## 1988## ----------------- ##" 1989 echo 1990 for ac_var in $ac_subst_vars 1991 do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in 1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995 esac 1996 $as_echo "$ac_var='\''$ac_val'\''" 1997 done | sort 1998 echo 1999 2000 if test -n "$ac_subst_files"; then 2001 $as_echo "## ------------------- ## 2002## File substitutions. ## 2003## ------------------- ##" 2004 echo 2005 for ac_var in $ac_subst_files 2006 do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in 2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2010 esac 2011 $as_echo "$ac_var='\''$ac_val'\''" 2012 done | sort 2013 echo 2014 fi 2015 2016 if test -s confdefs.h; then 2017 $as_echo "## ----------- ## 2018## confdefs.h. ## 2019## ----------- ##" 2020 echo 2021 cat confdefs.h 2022 echo 2023 fi 2024 test "$ac_signal" != 0 && 2025 $as_echo "$as_me: caught signal $ac_signal" 2026 $as_echo "$as_me: exit $exit_status" 2027 } >&5 2028 rm -f core *.core core.conftest.* && 2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2030 exit $exit_status 2031' 0 2032for ac_signal in 1 2 13 15; do 2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2034done 2035ac_signal=0 2036 2037# confdefs.h avoids OS command line length limits that DEFS can exceed. 2038rm -f -r conftest* confdefs.h 2039 2040$as_echo "/* confdefs.h */" > confdefs.h 2041 2042# Predefined preprocessor variables. 2043 2044cat >>confdefs.h <<_ACEOF 2045#define PACKAGE_NAME "$PACKAGE_NAME" 2046_ACEOF 2047 2048cat >>confdefs.h <<_ACEOF 2049#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2050_ACEOF 2051 2052cat >>confdefs.h <<_ACEOF 2053#define PACKAGE_VERSION "$PACKAGE_VERSION" 2054_ACEOF 2055 2056cat >>confdefs.h <<_ACEOF 2057#define PACKAGE_STRING "$PACKAGE_STRING" 2058_ACEOF 2059 2060cat >>confdefs.h <<_ACEOF 2061#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2062_ACEOF 2063 2064cat >>confdefs.h <<_ACEOF 2065#define PACKAGE_URL "$PACKAGE_URL" 2066_ACEOF 2067 2068 2069# Let the site file select an alternate cache file if it wants to. 2070# Prefer an explicitly selected file to automatically selected ones. 2071ac_site_file1=NONE 2072ac_site_file2=NONE 2073if test -n "$CONFIG_SITE"; then 2074 # We do not want a PATH search for config.site. 2075 case $CONFIG_SITE in #(( 2076 -*) ac_site_file1=./$CONFIG_SITE;; 2077 */*) ac_site_file1=$CONFIG_SITE;; 2078 *) ac_site_file1=./$CONFIG_SITE;; 2079 esac 2080elif test "x$prefix" != xNONE; then 2081 ac_site_file1=$prefix/share/config.site 2082 ac_site_file2=$prefix/etc/config.site 2083else 2084 ac_site_file1=$ac_default_prefix/share/config.site 2085 ac_site_file2=$ac_default_prefix/etc/config.site 2086fi 2087for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2088do 2089 test "x$ac_site_file" = xNONE && continue 2090 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2092$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2093 sed 's/^/| /' "$ac_site_file" >&5 2094 . "$ac_site_file" \ 2095 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2097as_fn_error $? "failed to load site script $ac_site_file 2098See \`config.log' for more details" "$LINENO" 5; } 2099 fi 2100done 2101 2102if test -r "$cache_file"; then 2103 # Some versions of bash will fail to source /dev/null (special files 2104 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2105 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2107$as_echo "$as_me: loading cache $cache_file" >&6;} 2108 case $cache_file in 2109 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2110 *) . "./$cache_file";; 2111 esac 2112 fi 2113else 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2115$as_echo "$as_me: creating cache $cache_file" >&6;} 2116 >$cache_file 2117fi 2118 2119# Check that the precious variables saved in the cache have kept the same 2120# value. 2121ac_cache_corrupted=false 2122for ac_var in $ac_precious_vars; do 2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2124 eval ac_new_set=\$ac_env_${ac_var}_set 2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2126 eval ac_new_val=\$ac_env_${ac_var}_value 2127 case $ac_old_set,$ac_new_set in 2128 set,) 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2130$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2131 ac_cache_corrupted=: ;; 2132 ,set) 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2134$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2135 ac_cache_corrupted=: ;; 2136 ,);; 2137 *) 2138 if test "x$ac_old_val" != "x$ac_new_val"; then 2139 # differences in whitespace do not lead to failure. 2140 ac_old_val_w=`echo x $ac_old_val` 2141 ac_new_val_w=`echo x $ac_new_val` 2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2144$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2145 ac_cache_corrupted=: 2146 else 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2148$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2149 eval $ac_var=\$ac_old_val 2150 fi 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2152$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2154$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2155 fi;; 2156 esac 2157 # Pass precious variables to config.status. 2158 if test "$ac_new_set" = set; then 2159 case $ac_new_val in 2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2161 *) ac_arg=$ac_var=$ac_new_val ;; 2162 esac 2163 case " $ac_configure_args " in 2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2166 esac 2167 fi 2168done 2169if $ac_cache_corrupted; then 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2173$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2174 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2175fi 2176## -------------------- ## 2177## Main body of script. ## 2178## -------------------- ## 2179 2180ac_ext=c 2181ac_cpp='$CPP $CPPFLAGS' 2182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2184ac_compiler_gnu=$ac_cv_c_compiler_gnu 2185 2186 2187am__api_version='1.13' 2188 2189ac_aux_dir= 2190for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2191 if test -f "$ac_dir/install-sh"; then 2192 ac_aux_dir=$ac_dir 2193 ac_install_sh="$ac_aux_dir/install-sh -c" 2194 break 2195 elif test -f "$ac_dir/install.sh"; then 2196 ac_aux_dir=$ac_dir 2197 ac_install_sh="$ac_aux_dir/install.sh -c" 2198 break 2199 elif test -f "$ac_dir/shtool"; then 2200 ac_aux_dir=$ac_dir 2201 ac_install_sh="$ac_aux_dir/shtool install -c" 2202 break 2203 fi 2204done 2205if test -z "$ac_aux_dir"; then 2206 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2207fi 2208 2209# These three variables are undocumented and unsupported, 2210# and are intended to be withdrawn in a future Autoconf release. 2211# They can cause serious problems if a builder's source tree is in a directory 2212# whose full name contains unusual characters. 2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2216 2217 2218# Find a good install program. We prefer a C program (faster), 2219# so one script is as good as another. But avoid the broken or 2220# incompatible versions: 2221# SysV /etc/install, /usr/sbin/install 2222# SunOS /usr/etc/install 2223# IRIX /sbin/install 2224# AIX /bin/install 2225# AmigaOS /C/install, which installs bootblocks on floppy discs 2226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2227# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2229# OS/2's system install, which has a completely different semantic 2230# ./install, which can be erroneously created by make from ./install.sh. 2231# Reject install programs that cannot install multiple files. 2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2233$as_echo_n "checking for a BSD-compatible install... " >&6; } 2234if test -z "$INSTALL"; then 2235if ${ac_cv_path_install+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239for as_dir in $PATH 2240do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 # Account for people who put trailing slashes in PATH elements. 2244case $as_dir/ in #(( 2245 ./ | .// | /[cC]/* | \ 2246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2248 /usr/ucb/* ) ;; 2249 *) 2250 # OSF1 and SCO ODT 3.0 have their own names for install. 2251 # Don't use installbsd from OSF since it installs stuff as root 2252 # by default. 2253 for ac_prog in ginstall scoinst install; do 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2256 if test $ac_prog = install && 2257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2258 # AIX install. It has an incompatible calling convention. 2259 : 2260 elif test $ac_prog = install && 2261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2262 # program-specific install script used by HP pwplus--don't use. 2263 : 2264 else 2265 rm -rf conftest.one conftest.two conftest.dir 2266 echo one > conftest.one 2267 echo two > conftest.two 2268 mkdir conftest.dir 2269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2270 test -s conftest.one && test -s conftest.two && 2271 test -s conftest.dir/conftest.one && 2272 test -s conftest.dir/conftest.two 2273 then 2274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2275 break 3 2276 fi 2277 fi 2278 fi 2279 done 2280 done 2281 ;; 2282esac 2283 2284 done 2285IFS=$as_save_IFS 2286 2287rm -rf conftest.one conftest.two conftest.dir 2288 2289fi 2290 if test "${ac_cv_path_install+set}" = set; then 2291 INSTALL=$ac_cv_path_install 2292 else 2293 # As a last resort, use the slow shell script. Don't cache a 2294 # value for INSTALL within a source directory, because that will 2295 # break other packages using the cache if that directory is 2296 # removed, or if the value is a relative name. 2297 INSTALL=$ac_install_sh 2298 fi 2299fi 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2301$as_echo "$INSTALL" >&6; } 2302 2303# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2304# It thinks the first close brace ends the variable substitution. 2305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2306 2307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2308 2309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2310 2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2312$as_echo_n "checking whether build environment is sane... " >&6; } 2313# Reject unsafe characters in $srcdir or the absolute working directory 2314# name. Accept space and tab only in the latter. 2315am_lf=' 2316' 2317case `pwd` in 2318 *[\\\"\#\$\&\'\`$am_lf]*) 2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2320esac 2321case $srcdir in 2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2323 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2324esac 2325 2326# Do 'set' in a subshell so we don't clobber the current shell's 2327# arguments. Must try -L first in case configure is actually a 2328# symlink; some systems play weird games with the mod time of symlinks 2329# (eg FreeBSD returns the mod time of the symlink's containing 2330# directory). 2331if ( 2332 am_has_slept=no 2333 for am_try in 1 2; do 2334 echo "timestamp, slept: $am_has_slept" > conftest.file 2335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2336 if test "$*" = "X"; then 2337 # -L didn't work. 2338 set X `ls -t "$srcdir/configure" conftest.file` 2339 fi 2340 if test "$*" != "X $srcdir/configure conftest.file" \ 2341 && test "$*" != "X conftest.file $srcdir/configure"; then 2342 2343 # If neither matched, then we have a broken ls. This can happen 2344 # if, for instance, CONFIG_SHELL is bash and it inherits a 2345 # broken ls alias from the environment. This has actually 2346 # happened. Such a system could not be considered "sane". 2347 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2348 alias in your environment" "$LINENO" 5 2349 fi 2350 if test "$2" = conftest.file || test $am_try -eq 2; then 2351 break 2352 fi 2353 # Just in case. 2354 sleep 1 2355 am_has_slept=yes 2356 done 2357 test "$2" = conftest.file 2358 ) 2359then 2360 # Ok. 2361 : 2362else 2363 as_fn_error $? "newly created file is older than distributed files! 2364Check your system clock" "$LINENO" 5 2365fi 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2367$as_echo "yes" >&6; } 2368# If we didn't sleep, we still need to ensure time stamps of config.status and 2369# generated files are strictly newer. 2370am_sleep_pid= 2371if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2372 ( sleep 1 ) & 2373 am_sleep_pid=$! 2374fi 2375 2376rm -f conftest.file 2377 2378test "$program_prefix" != NONE && 2379 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2380# Use a double $ so make ignores it. 2381test "$program_suffix" != NONE && 2382 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2383# Double any \ or $. 2384# By default was `s,x,x', remove it if useless. 2385ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2386program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2387 2388# expand $ac_aux_dir to an absolute path 2389am_aux_dir=`cd $ac_aux_dir && pwd` 2390 2391if test x"${MISSING+set}" != xset; then 2392 case $am_aux_dir in 2393 *\ * | *\ *) 2394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2395 *) 2396 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2397 esac 2398fi 2399# Use eval to expand $SHELL 2400if eval "$MISSING --is-lightweight"; then 2401 am_missing_run="$MISSING " 2402else 2403 am_missing_run= 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2405$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2406fi 2407 2408if test x"${install_sh}" != xset; then 2409 case $am_aux_dir in 2410 *\ * | *\ *) 2411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2412 *) 2413 install_sh="\${SHELL} $am_aux_dir/install-sh" 2414 esac 2415fi 2416 2417# Installed binaries are usually stripped using 'strip' when the user 2418# run "make install-strip". However 'strip' might not be the right 2419# tool to use in cross-compilation environments, therefore Automake 2420# will honor the 'STRIP' environment variable to overrule this program. 2421if test "$cross_compiling" != no; then 2422 if test -n "$ac_tool_prefix"; then 2423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2424set dummy ${ac_tool_prefix}strip; ac_word=$2 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2426$as_echo_n "checking for $ac_word... " >&6; } 2427if ${ac_cv_prog_STRIP+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test -n "$STRIP"; then 2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2432else 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2440 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2442 break 2 2443 fi 2444done 2445 done 2446IFS=$as_save_IFS 2447 2448fi 2449fi 2450STRIP=$ac_cv_prog_STRIP 2451if test -n "$STRIP"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2453$as_echo "$STRIP" >&6; } 2454else 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2456$as_echo "no" >&6; } 2457fi 2458 2459 2460fi 2461if test -z "$ac_cv_prog_STRIP"; then 2462 ac_ct_STRIP=$STRIP 2463 # Extract the first word of "strip", so it can be a program name with args. 2464set dummy strip; ac_word=$2 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2466$as_echo_n "checking for $ac_word... " >&6; } 2467if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2468 $as_echo_n "(cached) " >&6 2469else 2470 if test -n "$ac_ct_STRIP"; then 2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2472else 2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2474for as_dir in $PATH 2475do 2476 IFS=$as_save_IFS 2477 test -z "$as_dir" && as_dir=. 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2480 ac_cv_prog_ac_ct_STRIP="strip" 2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2482 break 2 2483 fi 2484done 2485 done 2486IFS=$as_save_IFS 2487 2488fi 2489fi 2490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2491if test -n "$ac_ct_STRIP"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2493$as_echo "$ac_ct_STRIP" >&6; } 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2496$as_echo "no" >&6; } 2497fi 2498 2499 if test "x$ac_ct_STRIP" = x; then 2500 STRIP=":" 2501 else 2502 case $cross_compiling:$ac_tool_warned in 2503yes:) 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2506ac_tool_warned=yes ;; 2507esac 2508 STRIP=$ac_ct_STRIP 2509 fi 2510else 2511 STRIP="$ac_cv_prog_STRIP" 2512fi 2513 2514fi 2515INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2518$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2519if test -z "$MKDIR_P"; then 2520 if ${ac_cv_path_mkdir+:} false; then : 2521 $as_echo_n "(cached) " >&6 2522else 2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_prog in mkdir gmkdir; do 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2532 'mkdir (GNU coreutils) '* | \ 2533 'mkdir (coreutils) '* | \ 2534 'mkdir (fileutils) '4.1*) 2535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2536 break 3;; 2537 esac 2538 done 2539 done 2540 done 2541IFS=$as_save_IFS 2542 2543fi 2544 2545 test -d ./--version && rmdir ./--version 2546 if test "${ac_cv_path_mkdir+set}" = set; then 2547 MKDIR_P="$ac_cv_path_mkdir -p" 2548 else 2549 # As a last resort, use the slow shell script. Don't cache a 2550 # value for MKDIR_P within a source directory, because that will 2551 # break other packages using the cache if that directory is 2552 # removed, or if the value is a relative name. 2553 MKDIR_P="$ac_install_sh -d" 2554 fi 2555fi 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2557$as_echo "$MKDIR_P" >&6; } 2558 2559for ac_prog in gawk mawk nawk awk 2560do 2561 # Extract the first word of "$ac_prog", so it can be a program name with args. 2562set dummy $ac_prog; ac_word=$2 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2564$as_echo_n "checking for $ac_word... " >&6; } 2565if ${ac_cv_prog_AWK+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 if test -n "$AWK"; then 2569 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2570else 2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2578 ac_cv_prog_AWK="$ac_prog" 2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2580 break 2 2581 fi 2582done 2583 done 2584IFS=$as_save_IFS 2585 2586fi 2587fi 2588AWK=$ac_cv_prog_AWK 2589if test -n "$AWK"; then 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2591$as_echo "$AWK" >&6; } 2592else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2594$as_echo "no" >&6; } 2595fi 2596 2597 2598 test -n "$AWK" && break 2599done 2600 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2602$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2603set x ${MAKE-make} 2604ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2605if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 cat >conftest.make <<\_ACEOF 2609SHELL = /bin/sh 2610all: 2611 @echo '@@@%%%=$(MAKE)=@@@%%%' 2612_ACEOF 2613# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2614case `${MAKE-make} -f conftest.make 2>/dev/null` in 2615 *@@@%%%=?*=@@@%%%*) 2616 eval ac_cv_prog_make_${ac_make}_set=yes;; 2617 *) 2618 eval ac_cv_prog_make_${ac_make}_set=no;; 2619esac 2620rm -f conftest.make 2621fi 2622if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2624$as_echo "yes" >&6; } 2625 SET_MAKE= 2626else 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2628$as_echo "no" >&6; } 2629 SET_MAKE="MAKE=${MAKE-make}" 2630fi 2631 2632rm -rf .tst 2>/dev/null 2633mkdir .tst 2>/dev/null 2634if test -d .tst; then 2635 am__leading_dot=. 2636else 2637 am__leading_dot=_ 2638fi 2639rmdir .tst 2>/dev/null 2640 2641# Check whether --enable-silent-rules was given. 2642if test "${enable_silent_rules+set}" = set; then : 2643 enableval=$enable_silent_rules; 2644fi 2645 2646case $enable_silent_rules in # ((( 2647 yes) AM_DEFAULT_VERBOSITY=0;; 2648 no) AM_DEFAULT_VERBOSITY=1;; 2649 *) AM_DEFAULT_VERBOSITY=1;; 2650esac 2651am_make=${MAKE-make} 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2653$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2654if ${am_cv_make_support_nested_variables+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if $as_echo 'TRUE=$(BAR$(V)) 2658BAR0=false 2659BAR1=true 2660V=1 2661am__doit: 2662 @$(TRUE) 2663.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2664 am_cv_make_support_nested_variables=yes 2665else 2666 am_cv_make_support_nested_variables=no 2667fi 2668fi 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2670$as_echo "$am_cv_make_support_nested_variables" >&6; } 2671if test $am_cv_make_support_nested_variables = yes; then 2672 AM_V='$(V)' 2673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2674else 2675 AM_V=$AM_DEFAULT_VERBOSITY 2676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2677fi 2678AM_BACKSLASH='\' 2679 2680if test "`cd $srcdir && pwd`" != "`pwd`"; then 2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2682 # is not polluted with repeated "-I." 2683 am__isrc=' -I$(srcdir)' 2684 # test to see if srcdir already configured 2685 if test -f $srcdir/config.status; then 2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2687 fi 2688fi 2689 2690# test whether we have cygpath 2691if test -z "$CYGPATH_W"; then 2692 if (cygpath --version) >/dev/null 2>/dev/null; then 2693 CYGPATH_W='cygpath -w' 2694 else 2695 CYGPATH_W=echo 2696 fi 2697fi 2698 2699 2700# Define the identity of the package. 2701 PACKAGE='xedit' 2702 VERSION='1.2.2' 2703 2704 2705cat >>confdefs.h <<_ACEOF 2706#define PACKAGE "$PACKAGE" 2707_ACEOF 2708 2709 2710cat >>confdefs.h <<_ACEOF 2711#define VERSION "$VERSION" 2712_ACEOF 2713 2714# Some tools Automake needs. 2715 2716ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2717 2718 2719AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2720 2721 2722AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2723 2724 2725AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2726 2727 2728MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2729 2730# For better backward compatibility. To be removed once Automake 1.9.x 2731# dies out for good. For more background, see: 2732# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2733# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2734mkdir_p='$(MKDIR_P)' 2735 2736# We need awk for the "check" target. The system "awk" is bad on 2737# some platforms. 2738# Always define AMTAR for backward compatibility. Yes, it's still used 2739# in the wild :-( We should find a proper way to deprecate it ... 2740AMTAR='$${TAR-tar}' 2741 2742 2743# We'll loop over all known methods to create a tar archive until one works. 2744_am_tools='gnutar pax cpio none' 2745 2746am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2747 2748 2749 2750 2751 2752 2753 2754# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766DEPDIR="${am__leading_dot}deps" 2767 2768ac_config_commands="$ac_config_commands depfiles" 2769 2770 2771am_make=${MAKE-make} 2772cat > confinc << 'END' 2773am__doit: 2774 @echo this is the am__doit target 2775.PHONY: am__doit 2776END 2777# If we don't find an include directive, just comment out the code. 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2779$as_echo_n "checking for style of include used by $am_make... " >&6; } 2780am__include="#" 2781am__quote= 2782_am_result=none 2783# First try GNU make style include. 2784echo "include confinc" > confmf 2785# Ignore all kinds of additional output from 'make'. 2786case `$am_make -s -f confmf 2> /dev/null` in #( 2787*the\ am__doit\ target*) 2788 am__include=include 2789 am__quote= 2790 _am_result=GNU 2791 ;; 2792esac 2793# Now try BSD make style include. 2794if test "$am__include" = "#"; then 2795 echo '.include "confinc"' > confmf 2796 case `$am_make -s -f confmf 2> /dev/null` in #( 2797 *the\ am__doit\ target*) 2798 am__include=.include 2799 am__quote="\"" 2800 _am_result=BSD 2801 ;; 2802 esac 2803fi 2804 2805 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2807$as_echo "$_am_result" >&6; } 2808rm -f confinc confmf 2809 2810# Check whether --enable-dependency-tracking was given. 2811if test "${enable_dependency_tracking+set}" = set; then : 2812 enableval=$enable_dependency_tracking; 2813fi 2814 2815if test "x$enable_dependency_tracking" != xno; then 2816 am_depcomp="$ac_aux_dir/depcomp" 2817 AMDEPBACKSLASH='\' 2818 am__nodep='_no' 2819fi 2820 if test "x$enable_dependency_tracking" != xno; then 2821 AMDEP_TRUE= 2822 AMDEP_FALSE='#' 2823else 2824 AMDEP_TRUE='#' 2825 AMDEP_FALSE= 2826fi 2827 2828 2829ac_ext=c 2830ac_cpp='$CPP $CPPFLAGS' 2831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2833ac_compiler_gnu=$ac_cv_c_compiler_gnu 2834if test -n "$ac_tool_prefix"; then 2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2836set dummy ${ac_tool_prefix}gcc; ac_word=$2 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if ${ac_cv_prog_CC+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$CC"; then 2843 ac_cv_prog_CC="$CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2852 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857 done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862CC=$ac_cv_prog_CC 2863if test -n "$CC"; then 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2865$as_echo "$CC" >&6; } 2866else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 2872fi 2873if test -z "$ac_cv_prog_CC"; then 2874 ac_ct_CC=$CC 2875 # Extract the first word of "gcc", so it can be a program name with args. 2876set dummy gcc; ac_word=$2 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if ${ac_cv_prog_ac_ct_CC+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$ac_ct_CC"; then 2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_ac_ct_CC="gcc" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902ac_ct_CC=$ac_cv_prog_ac_ct_CC 2903if test -n "$ac_ct_CC"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2905$as_echo "$ac_ct_CC" >&6; } 2906else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 if test "x$ac_ct_CC" = x; then 2912 CC="" 2913 else 2914 case $cross_compiling:$ac_tool_warned in 2915yes:) 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2918ac_tool_warned=yes ;; 2919esac 2920 CC=$ac_ct_CC 2921 fi 2922else 2923 CC="$ac_cv_prog_CC" 2924fi 2925 2926if test -z "$CC"; then 2927 if test -n "$ac_tool_prefix"; then 2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2929set dummy ${ac_tool_prefix}cc; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_CC+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$CC"; then 2936 ac_cv_prog_CC="$CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_CC="${ac_tool_prefix}cc" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955CC=$ac_cv_prog_CC 2956if test -n "$CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2958$as_echo "$CC" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965 fi 2966fi 2967if test -z "$CC"; then 2968 # Extract the first word of "cc", so it can be a program name with args. 2969set dummy cc; ac_word=$2 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971$as_echo_n "checking for $ac_word... " >&6; } 2972if ${ac_cv_prog_CC+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 if test -n "$CC"; then 2976 ac_cv_prog_CC="$CC" # Let the user override the test. 2977else 2978 ac_prog_rejected=no 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2987 ac_prog_rejected=yes 2988 continue 2989 fi 2990 ac_cv_prog_CC="cc" 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995 done 2996IFS=$as_save_IFS 2997 2998if test $ac_prog_rejected = yes; then 2999 # We found a bogon in the path, so make sure we never use it. 3000 set dummy $ac_cv_prog_CC 3001 shift 3002 if test $# != 0; then 3003 # We chose a different compiler from the bogus one. 3004 # However, it has the same basename, so the bogon will be chosen 3005 # first if we set CC to just the basename; use the full file name. 3006 shift 3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3008 fi 3009fi 3010fi 3011fi 3012CC=$ac_cv_prog_CC 3013if test -n "$CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3015$as_echo "$CC" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 3022fi 3023if test -z "$CC"; then 3024 if test -n "$ac_tool_prefix"; then 3025 for ac_prog in cl.exe 3026 do 3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3028set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3030$as_echo_n "checking for $ac_word... " >&6; } 3031if ${ac_cv_prog_CC+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 if test -n "$CC"; then 3035 ac_cv_prog_CC="$CC" # Let the user override the test. 3036else 3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3038for as_dir in $PATH 3039do 3040 IFS=$as_save_IFS 3041 test -z "$as_dir" && as_dir=. 3042 for ac_exec_ext in '' $ac_executable_extensions; do 3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3046 break 2 3047 fi 3048done 3049 done 3050IFS=$as_save_IFS 3051 3052fi 3053fi 3054CC=$ac_cv_prog_CC 3055if test -n "$CC"; then 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3057$as_echo "$CC" >&6; } 3058else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060$as_echo "no" >&6; } 3061fi 3062 3063 3064 test -n "$CC" && break 3065 done 3066fi 3067if test -z "$CC"; then 3068 ac_ct_CC=$CC 3069 for ac_prog in cl.exe 3070do 3071 # Extract the first word of "$ac_prog", so it can be a program name with args. 3072set dummy $ac_prog; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if ${ac_cv_prog_ac_ct_CC+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$ac_ct_CC"; then 3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_ac_ct_CC="$ac_prog" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098ac_ct_CC=$ac_cv_prog_ac_ct_CC 3099if test -n "$ac_ct_CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3101$as_echo "$ac_ct_CC" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 test -n "$ac_ct_CC" && break 3109done 3110 3111 if test "x$ac_ct_CC" = x; then 3112 CC="" 3113 else 3114 case $cross_compiling:$ac_tool_warned in 3115yes:) 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3118ac_tool_warned=yes ;; 3119esac 3120 CC=$ac_ct_CC 3121 fi 3122fi 3123 3124fi 3125 3126 3127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3129as_fn_error $? "no acceptable C compiler found in \$PATH 3130See \`config.log' for more details" "$LINENO" 5; } 3131 3132# Provide some information about the compiler. 3133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3134set X $ac_compile 3135ac_compiler=$2 3136for ac_option in --version -v -V -qversion; do 3137 { { ac_try="$ac_compiler $ac_option >&5" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3145 ac_status=$? 3146 if test -s conftest.err; then 3147 sed '10a\ 3148... rest of stderr output deleted ... 3149 10q' conftest.err >conftest.er1 3150 cat conftest.er1 >&5 3151 fi 3152 rm -f conftest.er1 conftest.err 3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3154 test $ac_status = 0; } 3155done 3156 3157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168ac_clean_files_save=$ac_clean_files 3169ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3170# Try to create an executable without -o first, disregard a.out. 3171# It will help us diagnose broken compilers, and finding out an intuition 3172# of exeext. 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3174$as_echo_n "checking whether the C compiler works... " >&6; } 3175ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3176 3177# The possible output files: 3178ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3179 3180ac_rmfiles= 3181for ac_file in $ac_files 3182do 3183 case $ac_file in 3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3186 esac 3187done 3188rm -f $ac_rmfiles 3189 3190if { { ac_try="$ac_link_default" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196$as_echo "$ac_try_echo"; } >&5 3197 (eval "$ac_link_default") 2>&5 3198 ac_status=$? 3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3200 test $ac_status = 0; }; then : 3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3202# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3203# in a Makefile. We should not override ac_cv_exeext if it was cached, 3204# so that the user can short-circuit this test for compilers unknown to 3205# Autoconf. 3206for ac_file in $ac_files '' 3207do 3208 test -f "$ac_file" || continue 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3211 ;; 3212 [ab].out ) 3213 # We found the default executable, but exeext='' is most 3214 # certainly right. 3215 break;; 3216 *.* ) 3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3218 then :; else 3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3220 fi 3221 # We set ac_cv_exeext here because the later test for it is not 3222 # safe: cross compilers may not add the suffix if given an `-o' 3223 # argument, so we may need to know it at that point already. 3224 # Even if this section looks crufty: it has the advantage of 3225 # actually working. 3226 break;; 3227 * ) 3228 break;; 3229 esac 3230done 3231test "$ac_cv_exeext" = no && ac_cv_exeext= 3232 3233else 3234 ac_file='' 3235fi 3236if test -z "$ac_file"; then : 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238$as_echo "no" >&6; } 3239$as_echo "$as_me: failed program was:" >&5 3240sed 's/^/| /' conftest.$ac_ext >&5 3241 3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error 77 "C compiler cannot create executables 3245See \`config.log' for more details" "$LINENO" 5; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3248$as_echo "yes" >&6; } 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3251$as_echo_n "checking for C compiler default output file name... " >&6; } 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3253$as_echo "$ac_file" >&6; } 3254ac_exeext=$ac_cv_exeext 3255 3256rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3257ac_clean_files=$ac_clean_files_save 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3259$as_echo_n "checking for suffix of executables... " >&6; } 3260if { { ac_try="$ac_link" 3261case "(($ac_try" in 3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3263 *) ac_try_echo=$ac_try;; 3264esac 3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3266$as_echo "$ac_try_echo"; } >&5 3267 (eval "$ac_link") 2>&5 3268 ac_status=$? 3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3270 test $ac_status = 0; }; then : 3271 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3273# work properly (i.e., refer to `conftest.exe'), while it won't with 3274# `rm'. 3275for ac_file in conftest.exe conftest conftest.*; do 3276 test -f "$ac_file" || continue 3277 case $ac_file in 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3280 break;; 3281 * ) break;; 3282 esac 3283done 3284else 3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3287as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3288See \`config.log' for more details" "$LINENO" 5; } 3289fi 3290rm -f conftest conftest$ac_cv_exeext 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3292$as_echo "$ac_cv_exeext" >&6; } 3293 3294rm -f conftest.$ac_ext 3295EXEEXT=$ac_cv_exeext 3296ac_exeext=$EXEEXT 3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299#include <stdio.h> 3300int 3301main () 3302{ 3303FILE *f = fopen ("conftest.out", "w"); 3304 return ferror (f) || fclose (f) != 0; 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310ac_clean_files="$ac_clean_files conftest.out" 3311# Check that the compiler produces executables we can run. If not, either 3312# the compiler is broken, or we cross compile. 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3314$as_echo_n "checking whether we are cross compiling... " >&6; } 3315if test "$cross_compiling" != yes; then 3316 { { ac_try="$ac_link" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_link") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; } 3327 if { ac_try='./conftest$ac_cv_exeext' 3328 { { case "(($ac_try" in 3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3330 *) ac_try_echo=$ac_try;; 3331esac 3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3333$as_echo "$ac_try_echo"; } >&5 3334 (eval "$ac_try") 2>&5 3335 ac_status=$? 3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; }; }; then 3338 cross_compiling=no 3339 else 3340 if test "$cross_compiling" = maybe; then 3341 cross_compiling=yes 3342 else 3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3345as_fn_error $? "cannot run C compiled programs. 3346If you meant to cross compile, use \`--host'. 3347See \`config.log' for more details" "$LINENO" 5; } 3348 fi 3349 fi 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3352$as_echo "$cross_compiling" >&6; } 3353 3354rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3355ac_clean_files=$ac_clean_files_save 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3357$as_echo_n "checking for suffix of object files... " >&6; } 3358if ${ac_cv_objext+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372rm -f conftest.o conftest.obj 3373if { { ac_try="$ac_compile" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3379$as_echo "$ac_try_echo"; } >&5 3380 (eval "$ac_compile") 2>&5 3381 ac_status=$? 3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3383 test $ac_status = 0; }; then : 3384 for ac_file in conftest.o conftest.obj conftest.*; do 3385 test -f "$ac_file" || continue; 3386 case $ac_file in 3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3389 break;; 3390 esac 3391done 3392else 3393 $as_echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error $? "cannot compute suffix of object files: cannot compile 3399See \`config.log' for more details" "$LINENO" 5; } 3400fi 3401rm -f conftest.$ac_cv_objext conftest.$ac_ext 3402fi 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3404$as_echo "$ac_cv_objext" >&6; } 3405OBJEXT=$ac_cv_objext 3406ac_objext=$OBJEXT 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3409if ${ac_cv_c_compiler_gnu+:} false; then : 3410 $as_echo_n "(cached) " >&6 3411else 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main () 3417{ 3418#ifndef __GNUC__ 3419 choke me 3420#endif 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426if ac_fn_c_try_compile "$LINENO"; then : 3427 ac_compiler_gnu=yes 3428else 3429 ac_compiler_gnu=no 3430fi 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432ac_cv_c_compiler_gnu=$ac_compiler_gnu 3433 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3436$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3437if test $ac_compiler_gnu = yes; then 3438 GCC=yes 3439else 3440 GCC= 3441fi 3442ac_test_CFLAGS=${CFLAGS+set} 3443ac_save_CFLAGS=$CFLAGS 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3445$as_echo_n "checking whether $CC accepts -g... " >&6; } 3446if ${ac_cv_prog_cc_g+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 ac_save_c_werror_flag=$ac_c_werror_flag 3450 ac_c_werror_flag=yes 3451 ac_cv_prog_cc_g=no 3452 CFLAGS="-g" 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464if ac_fn_c_try_compile "$LINENO"; then : 3465 ac_cv_prog_cc_g=yes 3466else 3467 CFLAGS="" 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470 3471int 3472main () 3473{ 3474 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479if ac_fn_c_try_compile "$LINENO"; then : 3480 3481else 3482 ac_c_werror_flag=$ac_save_c_werror_flag 3483 CFLAGS="-g" 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495if ac_fn_c_try_compile "$LINENO"; then : 3496 ac_cv_prog_cc_g=yes 3497fi 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3499fi 3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3501fi 3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3503 ac_c_werror_flag=$ac_save_c_werror_flag 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3506$as_echo "$ac_cv_prog_cc_g" >&6; } 3507if test "$ac_test_CFLAGS" = set; then 3508 CFLAGS=$ac_save_CFLAGS 3509elif test $ac_cv_prog_cc_g = yes; then 3510 if test "$GCC" = yes; then 3511 CFLAGS="-g -O2" 3512 else 3513 CFLAGS="-g" 3514 fi 3515else 3516 if test "$GCC" = yes; then 3517 CFLAGS="-O2" 3518 else 3519 CFLAGS= 3520 fi 3521fi 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3524if ${ac_cv_prog_cc_c89+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 ac_cv_prog_cc_c89=no 3528ac_save_CC=$CC 3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531#include <stdarg.h> 3532#include <stdio.h> 3533struct stat; 3534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3535struct buf { int x; }; 3536FILE * (*rcsopen) (struct buf *, struct stat *, int); 3537static char *e (p, i) 3538 char **p; 3539 int i; 3540{ 3541 return p[i]; 3542} 3543static char *f (char * (*g) (char **, int), char **p, ...) 3544{ 3545 char *s; 3546 va_list v; 3547 va_start (v,p); 3548 s = g (p, va_arg (v,int)); 3549 va_end (v); 3550 return s; 3551} 3552 3553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3554 function prototypes and stuff, but not '\xHH' hex character constants. 3555 These don't provoke an error unfortunately, instead are silently treated 3556 as 'x'. The following induces an error, until -std is added to get 3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3558 array size at least. It's necessary to write '\x00'==0 to get something 3559 that's true only with -std. */ 3560int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3561 3562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3563 inside strings and character constants. */ 3564#define FOO(x) 'x' 3565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3566 3567int test (int i, double x); 3568struct s1 {int (*f) (int a);}; 3569struct s2 {int (*f) (double a);}; 3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3571int argc; 3572char **argv; 3573int 3574main () 3575{ 3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3583do 3584 CC="$ac_save_CC $ac_arg" 3585 if ac_fn_c_try_compile "$LINENO"; then : 3586 ac_cv_prog_cc_c89=$ac_arg 3587fi 3588rm -f core conftest.err conftest.$ac_objext 3589 test "x$ac_cv_prog_cc_c89" != "xno" && break 3590done 3591rm -f conftest.$ac_ext 3592CC=$ac_save_CC 3593 3594fi 3595# AC_CACHE_VAL 3596case "x$ac_cv_prog_cc_c89" in 3597 x) 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3599$as_echo "none needed" >&6; } ;; 3600 xno) 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3602$as_echo "unsupported" >&6; } ;; 3603 *) 3604 CC="$CC $ac_cv_prog_cc_c89" 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3607esac 3608if test "x$ac_cv_prog_cc_c89" != xno; then : 3609 3610fi 3611 3612ac_ext=c 3613ac_cpp='$CPP $CPPFLAGS' 3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3616ac_compiler_gnu=$ac_cv_c_compiler_gnu 3617 3618depcc="$CC" am_compiler_list= 3619 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3621$as_echo_n "checking dependency style of $depcc... " >&6; } 3622if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3626 # We make a subdir and do the tests there. Otherwise we can end up 3627 # making bogus files that we don't know about and never remove. For 3628 # instance it was reported that on HP-UX the gcc test will end up 3629 # making a dummy file named 'D' -- because '-MD' means "put the output 3630 # in D". 3631 rm -rf conftest.dir 3632 mkdir conftest.dir 3633 # Copy depcomp to subdir because otherwise we won't find it if we're 3634 # using a relative directory. 3635 cp "$am_depcomp" conftest.dir 3636 cd conftest.dir 3637 # We will build objects and dependencies in a subdirectory because 3638 # it helps to detect inapplicable dependency modes. For instance 3639 # both Tru64's cc and ICC support -MD to output dependencies as a 3640 # side effect of compilation, but ICC will put the dependencies in 3641 # the current directory while Tru64 will put them in the object 3642 # directory. 3643 mkdir sub 3644 3645 am_cv_CC_dependencies_compiler_type=none 3646 if test "$am_compiler_list" = ""; then 3647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3648 fi 3649 am__universal=false 3650 case " $depcc " in #( 3651 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3652 esac 3653 3654 for depmode in $am_compiler_list; do 3655 # Setup a source with many dependencies, because some compilers 3656 # like to wrap large dependency lists on column 80 (with \), and 3657 # we should not choose a depcomp mode which is confused by this. 3658 # 3659 # We need to recreate these files for each test, as the compiler may 3660 # overwrite some of them when testing with obscure command lines. 3661 # This happens at least with the AIX C compiler. 3662 : > sub/conftest.c 3663 for i in 1 2 3 4 5 6; do 3664 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3665 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3666 # Solaris 10 /bin/sh. 3667 echo '/* dummy */' > sub/conftst$i.h 3668 done 3669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3670 3671 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3672 # mode. It turns out that the SunPro C++ compiler does not properly 3673 # handle '-M -o', and we need to detect this. Also, some Intel 3674 # versions had trouble with output in subdirs. 3675 am__obj=sub/conftest.${OBJEXT-o} 3676 am__minus_obj="-o $am__obj" 3677 case $depmode in 3678 gcc) 3679 # This depmode causes a compiler race in universal mode. 3680 test "$am__universal" = false || continue 3681 ;; 3682 nosideeffect) 3683 # After this tag, mechanisms are not by side-effect, so they'll 3684 # only be used when explicitly requested. 3685 if test "x$enable_dependency_tracking" = xyes; then 3686 continue 3687 else 3688 break 3689 fi 3690 ;; 3691 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3692 # This compiler won't grok '-c -o', but also, the minuso test has 3693 # not run yet. These depmodes are late enough in the game, and 3694 # so weak that their functioning should not be impacted. 3695 am__obj=conftest.${OBJEXT-o} 3696 am__minus_obj= 3697 ;; 3698 none) break ;; 3699 esac 3700 if depmode=$depmode \ 3701 source=sub/conftest.c object=$am__obj \ 3702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3703 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3704 >/dev/null 2>conftest.err && 3705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3707 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3709 # icc doesn't choke on unknown options, it will just issue warnings 3710 # or remarks (even with -Werror). So we grep stderr for any message 3711 # that says an option was ignored or not supported. 3712 # When given -MP, icc 7.0 and 7.1 complain thusly: 3713 # icc: Command line warning: ignoring option '-M'; no argument required 3714 # The diagnosis changed in icc 8.0: 3715 # icc: Command line remark: option '-MP' not supported 3716 if (grep 'ignoring option' conftest.err || 3717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3718 am_cv_CC_dependencies_compiler_type=$depmode 3719 break 3720 fi 3721 fi 3722 done 3723 3724 cd .. 3725 rm -rf conftest.dir 3726else 3727 am_cv_CC_dependencies_compiler_type=none 3728fi 3729 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3732$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3734 3735 if 3736 test "x$enable_dependency_tracking" != xno \ 3737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3738 am__fastdepCC_TRUE= 3739 am__fastdepCC_FALSE='#' 3740else 3741 am__fastdepCC_TRUE='#' 3742 am__fastdepCC_FALSE= 3743fi 3744 3745 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3747$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3748if ${ac_cv_prog_cc_c99+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 ac_cv_prog_cc_c99=no 3752ac_save_CC=$CC 3753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755#include <stdarg.h> 3756#include <stdbool.h> 3757#include <stdlib.h> 3758#include <wchar.h> 3759#include <stdio.h> 3760 3761// Check varargs macros. These examples are taken from C99 6.10.3.5. 3762#define debug(...) fprintf (stderr, __VA_ARGS__) 3763#define showlist(...) puts (#__VA_ARGS__) 3764#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3765static void 3766test_varargs_macros (void) 3767{ 3768 int x = 1234; 3769 int y = 5678; 3770 debug ("Flag"); 3771 debug ("X = %d\n", x); 3772 showlist (The first, second, and third items.); 3773 report (x>y, "x is %d but y is %d", x, y); 3774} 3775 3776// Check long long types. 3777#define BIG64 18446744073709551615ull 3778#define BIG32 4294967295ul 3779#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3780#if !BIG_OK 3781 your preprocessor is broken; 3782#endif 3783#if BIG_OK 3784#else 3785 your preprocessor is broken; 3786#endif 3787static long long int bignum = -9223372036854775807LL; 3788static unsigned long long int ubignum = BIG64; 3789 3790struct incomplete_array 3791{ 3792 int datasize; 3793 double data[]; 3794}; 3795 3796struct named_init { 3797 int number; 3798 const wchar_t *name; 3799 double average; 3800}; 3801 3802typedef const char *ccp; 3803 3804static inline int 3805test_restrict (ccp restrict text) 3806{ 3807 // See if C++-style comments work. 3808 // Iterate through items via the restricted pointer. 3809 // Also check for declarations in for loops. 3810 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3811 continue; 3812 return 0; 3813} 3814 3815// Check varargs and va_copy. 3816static void 3817test_varargs (const char *format, ...) 3818{ 3819 va_list args; 3820 va_start (args, format); 3821 va_list args_copy; 3822 va_copy (args_copy, args); 3823 3824 const char *str; 3825 int number; 3826 float fnumber; 3827 3828 while (*format) 3829 { 3830 switch (*format++) 3831 { 3832 case 's': // string 3833 str = va_arg (args_copy, const char *); 3834 break; 3835 case 'd': // int 3836 number = va_arg (args_copy, int); 3837 break; 3838 case 'f': // float 3839 fnumber = va_arg (args_copy, double); 3840 break; 3841 default: 3842 break; 3843 } 3844 } 3845 va_end (args_copy); 3846 va_end (args); 3847} 3848 3849int 3850main () 3851{ 3852 3853 // Check bool. 3854 _Bool success = false; 3855 3856 // Check restrict. 3857 if (test_restrict ("String literal") == 0) 3858 success = true; 3859 char *restrict newvar = "Another string"; 3860 3861 // Check varargs. 3862 test_varargs ("s, d' f .", "string", 65, 34.234); 3863 test_varargs_macros (); 3864 3865 // Check flexible array members. 3866 struct incomplete_array *ia = 3867 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3868 ia->datasize = 10; 3869 for (int i = 0; i < ia->datasize; ++i) 3870 ia->data[i] = i * 1.234; 3871 3872 // Check named initializers. 3873 struct named_init ni = { 3874 .number = 34, 3875 .name = L"Test wide string", 3876 .average = 543.34343, 3877 }; 3878 3879 ni.number = 58; 3880 3881 int dynamic_array[ni.number]; 3882 dynamic_array[ni.number - 1] = 543; 3883 3884 // work around unused variable warnings 3885 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3886 || dynamic_array[ni.number - 1] != 543); 3887 3888 ; 3889 return 0; 3890} 3891_ACEOF 3892for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3893do 3894 CC="$ac_save_CC $ac_arg" 3895 if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_prog_cc_c99=$ac_arg 3897fi 3898rm -f core conftest.err conftest.$ac_objext 3899 test "x$ac_cv_prog_cc_c99" != "xno" && break 3900done 3901rm -f conftest.$ac_ext 3902CC=$ac_save_CC 3903 3904fi 3905# AC_CACHE_VAL 3906case "x$ac_cv_prog_cc_c99" in 3907 x) 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3909$as_echo "none needed" >&6; } ;; 3910 xno) 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3912$as_echo "unsupported" >&6; } ;; 3913 *) 3914 CC="$CC $ac_cv_prog_cc_c99" 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3916$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3917esac 3918if test "x$ac_cv_prog_cc_c99" != xno; then : 3919 3920fi 3921 3922 3923 3924ac_ext=c 3925ac_cpp='$CPP $CPPFLAGS' 3926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3928ac_compiler_gnu=$ac_cv_c_compiler_gnu 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3930$as_echo_n "checking how to run the C preprocessor... " >&6; } 3931# On Suns, sometimes $CPP names a directory. 3932if test -n "$CPP" && test -d "$CPP"; then 3933 CPP= 3934fi 3935if test -z "$CPP"; then 3936 if ${ac_cv_prog_CPP+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 # Double quotes because CPP needs to be expanded 3940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3941 do 3942 ac_preproc_ok=false 3943for ac_c_preproc_warn_flag in '' yes 3944do 3945 # Use a header file that comes with gcc, so configuring glibc 3946 # with a fresh cross-compiler works. 3947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3948 # <limits.h> exists even on freestanding compilers. 3949 # On the NeXT, cc -E runs the code through the compiler's parser, 3950 # not just through cpp. "Syntax error" is here to catch this case. 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953#ifdef __STDC__ 3954# include <limits.h> 3955#else 3956# include <assert.h> 3957#endif 3958 Syntax error 3959_ACEOF 3960if ac_fn_c_try_cpp "$LINENO"; then : 3961 3962else 3963 # Broken: fails on valid input. 3964continue 3965fi 3966rm -f conftest.err conftest.i conftest.$ac_ext 3967 3968 # OK, works on sane cases. Now check whether nonexistent headers 3969 # can be detected and how. 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972#include <ac_nonexistent.h> 3973_ACEOF 3974if ac_fn_c_try_cpp "$LINENO"; then : 3975 # Broken: success on invalid input. 3976continue 3977else 3978 # Passes both tests. 3979ac_preproc_ok=: 3980break 3981fi 3982rm -f conftest.err conftest.i conftest.$ac_ext 3983 3984done 3985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3986rm -f conftest.i conftest.err conftest.$ac_ext 3987if $ac_preproc_ok; then : 3988 break 3989fi 3990 3991 done 3992 ac_cv_prog_CPP=$CPP 3993 3994fi 3995 CPP=$ac_cv_prog_CPP 3996else 3997 ac_cv_prog_CPP=$CPP 3998fi 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4000$as_echo "$CPP" >&6; } 4001ac_preproc_ok=false 4002for ac_c_preproc_warn_flag in '' yes 4003do 4004 # Use a header file that comes with gcc, so configuring glibc 4005 # with a fresh cross-compiler works. 4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4007 # <limits.h> exists even on freestanding compilers. 4008 # On the NeXT, cc -E runs the code through the compiler's parser, 4009 # not just through cpp. "Syntax error" is here to catch this case. 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012#ifdef __STDC__ 4013# include <limits.h> 4014#else 4015# include <assert.h> 4016#endif 4017 Syntax error 4018_ACEOF 4019if ac_fn_c_try_cpp "$LINENO"; then : 4020 4021else 4022 # Broken: fails on valid input. 4023continue 4024fi 4025rm -f conftest.err conftest.i conftest.$ac_ext 4026 4027 # OK, works on sane cases. Now check whether nonexistent headers 4028 # can be detected and how. 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031#include <ac_nonexistent.h> 4032_ACEOF 4033if ac_fn_c_try_cpp "$LINENO"; then : 4034 # Broken: success on invalid input. 4035continue 4036else 4037 # Passes both tests. 4038ac_preproc_ok=: 4039break 4040fi 4041rm -f conftest.err conftest.i conftest.$ac_ext 4042 4043done 4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4045rm -f conftest.i conftest.err conftest.$ac_ext 4046if $ac_preproc_ok; then : 4047 4048else 4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4051as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4052See \`config.log' for more details" "$LINENO" 5; } 4053fi 4054 4055ac_ext=c 4056ac_cpp='$CPP $CPPFLAGS' 4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4059ac_compiler_gnu=$ac_cv_c_compiler_gnu 4060 4061 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4063$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4064if ${ac_cv_path_GREP+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 if test -z "$GREP"; then 4068 ac_path_GREP_found=false 4069 # Loop through the user's path and test for each of PROGNAME-LIST 4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4072do 4073 IFS=$as_save_IFS 4074 test -z "$as_dir" && as_dir=. 4075 for ac_prog in grep ggrep; do 4076 for ac_exec_ext in '' $ac_executable_extensions; do 4077 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4078 as_fn_executable_p "$ac_path_GREP" || continue 4079# Check for GNU ac_path_GREP and select it if it is found. 4080 # Check for GNU $ac_path_GREP 4081case `"$ac_path_GREP" --version 2>&1` in 4082*GNU*) 4083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4084*) 4085 ac_count=0 4086 $as_echo_n 0123456789 >"conftest.in" 4087 while : 4088 do 4089 cat "conftest.in" "conftest.in" >"conftest.tmp" 4090 mv "conftest.tmp" "conftest.in" 4091 cp "conftest.in" "conftest.nl" 4092 $as_echo 'GREP' >> "conftest.nl" 4093 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4095 as_fn_arith $ac_count + 1 && ac_count=$as_val 4096 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4097 # Best one so far, save it but keep looking for a better one 4098 ac_cv_path_GREP="$ac_path_GREP" 4099 ac_path_GREP_max=$ac_count 4100 fi 4101 # 10*(2^10) chars as input seems more than enough 4102 test $ac_count -gt 10 && break 4103 done 4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4105esac 4106 4107 $ac_path_GREP_found && break 3 4108 done 4109 done 4110 done 4111IFS=$as_save_IFS 4112 if test -z "$ac_cv_path_GREP"; then 4113 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4114 fi 4115else 4116 ac_cv_path_GREP=$GREP 4117fi 4118 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4121$as_echo "$ac_cv_path_GREP" >&6; } 4122 GREP="$ac_cv_path_GREP" 4123 4124 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4126$as_echo_n "checking for egrep... " >&6; } 4127if ${ac_cv_path_EGREP+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4131 then ac_cv_path_EGREP="$GREP -E" 4132 else 4133 if test -z "$EGREP"; then 4134 ac_path_EGREP_found=false 4135 # Loop through the user's path and test for each of PROGNAME-LIST 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_prog in egrep; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4144 as_fn_executable_p "$ac_path_EGREP" || continue 4145# Check for GNU ac_path_EGREP and select it if it is found. 4146 # Check for GNU $ac_path_EGREP 4147case `"$ac_path_EGREP" --version 2>&1` in 4148*GNU*) 4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4150*) 4151 ac_count=0 4152 $as_echo_n 0123456789 >"conftest.in" 4153 while : 4154 do 4155 cat "conftest.in" "conftest.in" >"conftest.tmp" 4156 mv "conftest.tmp" "conftest.in" 4157 cp "conftest.in" "conftest.nl" 4158 $as_echo 'EGREP' >> "conftest.nl" 4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4161 as_fn_arith $ac_count + 1 && ac_count=$as_val 4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4163 # Best one so far, save it but keep looking for a better one 4164 ac_cv_path_EGREP="$ac_path_EGREP" 4165 ac_path_EGREP_max=$ac_count 4166 fi 4167 # 10*(2^10) chars as input seems more than enough 4168 test $ac_count -gt 10 && break 4169 done 4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4171esac 4172 4173 $ac_path_EGREP_found && break 3 4174 done 4175 done 4176 done 4177IFS=$as_save_IFS 4178 if test -z "$ac_cv_path_EGREP"; then 4179 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4180 fi 4181else 4182 ac_cv_path_EGREP=$EGREP 4183fi 4184 4185 fi 4186fi 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4188$as_echo "$ac_cv_path_EGREP" >&6; } 4189 EGREP="$ac_cv_path_EGREP" 4190 4191 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4193$as_echo_n "checking for ANSI C header files... " >&6; } 4194if ${ac_cv_header_stdc+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199#include <stdlib.h> 4200#include <stdarg.h> 4201#include <string.h> 4202#include <float.h> 4203 4204int 4205main () 4206{ 4207 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212if ac_fn_c_try_compile "$LINENO"; then : 4213 ac_cv_header_stdc=yes 4214else 4215 ac_cv_header_stdc=no 4216fi 4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4218 4219if test $ac_cv_header_stdc = yes; then 4220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223#include <string.h> 4224 4225_ACEOF 4226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4227 $EGREP "memchr" >/dev/null 2>&1; then : 4228 4229else 4230 ac_cv_header_stdc=no 4231fi 4232rm -f conftest* 4233 4234fi 4235 4236if test $ac_cv_header_stdc = yes; then 4237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#include <stdlib.h> 4241 4242_ACEOF 4243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4244 $EGREP "free" >/dev/null 2>&1; then : 4245 4246else 4247 ac_cv_header_stdc=no 4248fi 4249rm -f conftest* 4250 4251fi 4252 4253if test $ac_cv_header_stdc = yes; then 4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4255 if test "$cross_compiling" = yes; then : 4256 : 4257else 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259/* end confdefs.h. */ 4260#include <ctype.h> 4261#include <stdlib.h> 4262#if ((' ' & 0x0FF) == 0x020) 4263# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4264# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4265#else 4266# define ISLOWER(c) \ 4267 (('a' <= (c) && (c) <= 'i') \ 4268 || ('j' <= (c) && (c) <= 'r') \ 4269 || ('s' <= (c) && (c) <= 'z')) 4270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4271#endif 4272 4273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4274int 4275main () 4276{ 4277 int i; 4278 for (i = 0; i < 256; i++) 4279 if (XOR (islower (i), ISLOWER (i)) 4280 || toupper (i) != TOUPPER (i)) 4281 return 2; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_run "$LINENO"; then : 4286 4287else 4288 ac_cv_header_stdc=no 4289fi 4290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4291 conftest.$ac_objext conftest.beam conftest.$ac_ext 4292fi 4293 4294fi 4295fi 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4297$as_echo "$ac_cv_header_stdc" >&6; } 4298if test $ac_cv_header_stdc = yes; then 4299 4300$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4301 4302fi 4303 4304# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4305for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4306 inttypes.h stdint.h unistd.h 4307do : 4308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4309ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4310" 4311if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4312 cat >>confdefs.h <<_ACEOF 4313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4314_ACEOF 4315 4316fi 4317 4318done 4319 4320 4321 4322 4323 4324 4325ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4326if test "x$ac_cv_have_decl___clang__" = xyes; then : 4327 CLANGCC="yes" 4328else 4329 CLANGCC="no" 4330fi 4331 4332ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4333if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4334 INTELCC="yes" 4335else 4336 INTELCC="no" 4337fi 4338 4339ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4340if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4341 SUNCC="yes" 4342else 4343 SUNCC="no" 4344fi 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4355 if test -n "$ac_tool_prefix"; then 4356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4357set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4359$as_echo_n "checking for $ac_word... " >&6; } 4360if ${ac_cv_path_PKG_CONFIG+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 case $PKG_CONFIG in 4364 [\\/]* | ?:[\\/]*) 4365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4366 ;; 4367 *) 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4369for as_dir in $PATH 4370do 4371 IFS=$as_save_IFS 4372 test -z "$as_dir" && as_dir=. 4373 for ac_exec_ext in '' $ac_executable_extensions; do 4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4377 break 2 4378 fi 4379done 4380 done 4381IFS=$as_save_IFS 4382 4383 ;; 4384esac 4385fi 4386PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4387if test -n "$PKG_CONFIG"; then 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4389$as_echo "$PKG_CONFIG" >&6; } 4390else 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4392$as_echo "no" >&6; } 4393fi 4394 4395 4396fi 4397if test -z "$ac_cv_path_PKG_CONFIG"; then 4398 ac_pt_PKG_CONFIG=$PKG_CONFIG 4399 # Extract the first word of "pkg-config", so it can be a program name with args. 4400set dummy pkg-config; ac_word=$2 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4402$as_echo_n "checking for $ac_word... " >&6; } 4403if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 case $ac_pt_PKG_CONFIG in 4407 [\\/]* | ?:[\\/]*) 4408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4409 ;; 4410 *) 4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4420 break 2 4421 fi 4422done 4423 done 4424IFS=$as_save_IFS 4425 4426 ;; 4427esac 4428fi 4429ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4430if test -n "$ac_pt_PKG_CONFIG"; then 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4432$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4433else 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435$as_echo "no" >&6; } 4436fi 4437 4438 if test "x$ac_pt_PKG_CONFIG" = x; then 4439 PKG_CONFIG="" 4440 else 4441 case $cross_compiling:$ac_tool_warned in 4442yes:) 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4445ac_tool_warned=yes ;; 4446esac 4447 PKG_CONFIG=$ac_pt_PKG_CONFIG 4448 fi 4449else 4450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4451fi 4452 4453fi 4454if test -n "$PKG_CONFIG"; then 4455 _pkg_min_version=0.9.0 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4457$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4460$as_echo "yes" >&6; } 4461 else 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4463$as_echo "no" >&6; } 4464 PKG_CONFIG="" 4465 fi 4466fi 4467# Make sure we can run config.sub. 4468$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4469 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4472$as_echo_n "checking build system type... " >&6; } 4473if ${ac_cv_build+:} false; then : 4474 $as_echo_n "(cached) " >&6 4475else 4476 ac_build_alias=$build_alias 4477test "x$ac_build_alias" = x && 4478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4479test "x$ac_build_alias" = x && 4480 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4481ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4483 4484fi 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4486$as_echo "$ac_cv_build" >&6; } 4487case $ac_cv_build in 4488*-*-*) ;; 4489*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4490esac 4491build=$ac_cv_build 4492ac_save_IFS=$IFS; IFS='-' 4493set x $ac_cv_build 4494shift 4495build_cpu=$1 4496build_vendor=$2 4497shift; shift 4498# Remember, the first character of IFS is used to create $*, 4499# except with old shells: 4500build_os=$* 4501IFS=$ac_save_IFS 4502case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4503 4504 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4506$as_echo_n "checking host system type... " >&6; } 4507if ${ac_cv_host+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 if test "x$host_alias" = x; then 4511 ac_cv_host=$ac_cv_build 4512else 4513 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4515fi 4516 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4519$as_echo "$ac_cv_host" >&6; } 4520case $ac_cv_host in 4521*-*-*) ;; 4522*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4523esac 4524host=$ac_cv_host 4525ac_save_IFS=$IFS; IFS='-' 4526set x $ac_cv_host 4527shift 4528host_cpu=$1 4529host_vendor=$2 4530shift; shift 4531# Remember, the first character of IFS is used to create $*, 4532# except with old shells: 4533host_os=$* 4534IFS=$ac_save_IFS 4535case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4536 4537 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4539$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4540if ${ac_cv_path_SED+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4544 for ac_i in 1 2 3 4 5 6 7; do 4545 ac_script="$ac_script$as_nl$ac_script" 4546 done 4547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4548 { ac_script=; unset ac_script;} 4549 if test -z "$SED"; then 4550 ac_path_SED_found=false 4551 # Loop through the user's path and test for each of PROGNAME-LIST 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_prog in sed gsed; do 4558 for ac_exec_ext in '' $ac_executable_extensions; do 4559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4560 as_fn_executable_p "$ac_path_SED" || continue 4561# Check for GNU ac_path_SED and select it if it is found. 4562 # Check for GNU $ac_path_SED 4563case `"$ac_path_SED" --version 2>&1` in 4564*GNU*) 4565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4566*) 4567 ac_count=0 4568 $as_echo_n 0123456789 >"conftest.in" 4569 while : 4570 do 4571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4572 mv "conftest.tmp" "conftest.in" 4573 cp "conftest.in" "conftest.nl" 4574 $as_echo '' >> "conftest.nl" 4575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4577 as_fn_arith $ac_count + 1 && ac_count=$as_val 4578 if test $ac_count -gt ${ac_path_SED_max-0}; then 4579 # Best one so far, save it but keep looking for a better one 4580 ac_cv_path_SED="$ac_path_SED" 4581 ac_path_SED_max=$ac_count 4582 fi 4583 # 10*(2^10) chars as input seems more than enough 4584 test $ac_count -gt 10 && break 4585 done 4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4587esac 4588 4589 $ac_path_SED_found && break 3 4590 done 4591 done 4592 done 4593IFS=$as_save_IFS 4594 if test -z "$ac_cv_path_SED"; then 4595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4596 fi 4597else 4598 ac_cv_path_SED=$SED 4599fi 4600 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4603$as_echo "$ac_cv_path_SED" >&6; } 4604 SED="$ac_cv_path_SED" 4605 rm -f conftest.sed 4606 4607 4608 4609 4610 4611 4612# Check whether --enable-selective-werror was given. 4613if test "${enable_selective_werror+set}" = set; then : 4614 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4615else 4616 SELECTIVE_WERROR=yes 4617fi 4618 4619 4620 4621 4622 4623# -v is too short to test reliably with XORG_TESTSET_CFLAG 4624if test "x$SUNCC" = "xyes"; then 4625 BASE_CFLAGS="-v" 4626else 4627 BASE_CFLAGS="" 4628fi 4629 4630# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644xorg_testset_save_CFLAGS="$CFLAGS" 4645 4646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655int i; 4656_ACEOF 4657if ac_fn_c_try_compile "$LINENO"; then : 4658 xorg_cv_cc_flag_unknown_warning_option=yes 4659else 4660 xorg_cv_cc_flag_unknown_warning_option=no 4661fi 4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4667 CFLAGS="$xorg_testset_save_CFLAGS" 4668fi 4669 4670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4673 fi 4674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4681/* end confdefs.h. */ 4682int i; 4683_ACEOF 4684if ac_fn_c_try_compile "$LINENO"; then : 4685 xorg_cv_cc_flag_unused_command_line_argument=yes 4686else 4687 xorg_cv_cc_flag_unused_command_line_argument=no 4688fi 4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4694 CFLAGS="$xorg_testset_save_CFLAGS" 4695fi 4696 4697found="no" 4698 4699 if test $found = "no" ; then 4700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4702 fi 4703 4704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4706 fi 4707 4708 CFLAGS="$CFLAGS -Wall" 4709 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4711$as_echo_n "checking if $CC supports -Wall... " >&6; } 4712 cacheid=xorg_cv_cc_flag__Wall 4713 if eval \${$cacheid+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718int i; 4719int 4720main () 4721{ 4722 4723 ; 4724 return 0; 4725} 4726_ACEOF 4727if ac_fn_c_try_link "$LINENO"; then : 4728 eval $cacheid=yes 4729else 4730 eval $cacheid=no 4731fi 4732rm -f core conftest.err conftest.$ac_objext \ 4733 conftest$ac_exeext conftest.$ac_ext 4734fi 4735 4736 4737 CFLAGS="$xorg_testset_save_CFLAGS" 4738 4739 eval supported=\$$cacheid 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4741$as_echo "$supported" >&6; } 4742 if test "$supported" = "yes" ; then 4743 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4744 found="yes" 4745 fi 4746 fi 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762xorg_testset_save_CFLAGS="$CFLAGS" 4763 4764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770else 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773int i; 4774_ACEOF 4775if ac_fn_c_try_compile "$LINENO"; then : 4776 xorg_cv_cc_flag_unknown_warning_option=yes 4777else 4778 xorg_cv_cc_flag_unknown_warning_option=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4785 CFLAGS="$xorg_testset_save_CFLAGS" 4786fi 4787 4788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4791 fi 4792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4796 $as_echo_n "(cached) " >&6 4797else 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800int i; 4801_ACEOF 4802if ac_fn_c_try_compile "$LINENO"; then : 4803 xorg_cv_cc_flag_unused_command_line_argument=yes 4804else 4805 xorg_cv_cc_flag_unused_command_line_argument=no 4806fi 4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4808fi 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4812 CFLAGS="$xorg_testset_save_CFLAGS" 4813fi 4814 4815found="no" 4816 4817 if test $found = "no" ; then 4818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4820 fi 4821 4822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4824 fi 4825 4826 CFLAGS="$CFLAGS -Wpointer-arith" 4827 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4829$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4830 cacheid=xorg_cv_cc_flag__Wpointer_arith 4831 if eval \${$cacheid+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836int i; 4837int 4838main () 4839{ 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845if ac_fn_c_try_link "$LINENO"; then : 4846 eval $cacheid=yes 4847else 4848 eval $cacheid=no 4849fi 4850rm -f core conftest.err conftest.$ac_objext \ 4851 conftest$ac_exeext conftest.$ac_ext 4852fi 4853 4854 4855 CFLAGS="$xorg_testset_save_CFLAGS" 4856 4857 eval supported=\$$cacheid 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4859$as_echo "$supported" >&6; } 4860 if test "$supported" = "yes" ; then 4861 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4862 found="yes" 4863 fi 4864 fi 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880xorg_testset_save_CFLAGS="$CFLAGS" 4881 4882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890/* end confdefs.h. */ 4891int i; 4892_ACEOF 4893if ac_fn_c_try_compile "$LINENO"; then : 4894 xorg_cv_cc_flag_unknown_warning_option=yes 4895else 4896 xorg_cv_cc_flag_unknown_warning_option=no 4897fi 4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4903 CFLAGS="$xorg_testset_save_CFLAGS" 4904fi 4905 4906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4909 fi 4910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917/* end confdefs.h. */ 4918int i; 4919_ACEOF 4920if ac_fn_c_try_compile "$LINENO"; then : 4921 xorg_cv_cc_flag_unused_command_line_argument=yes 4922else 4923 xorg_cv_cc_flag_unused_command_line_argument=no 4924fi 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926fi 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4930 CFLAGS="$xorg_testset_save_CFLAGS" 4931fi 4932 4933found="no" 4934 4935 if test $found = "no" ; then 4936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4938 fi 4939 4940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4942 fi 4943 4944 CFLAGS="$CFLAGS -Wmissing-declarations" 4945 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4947$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4948 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4949 if eval \${$cacheid+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4953/* end confdefs.h. */ 4954int i; 4955int 4956main () 4957{ 4958 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963if ac_fn_c_try_link "$LINENO"; then : 4964 eval $cacheid=yes 4965else 4966 eval $cacheid=no 4967fi 4968rm -f core conftest.err conftest.$ac_objext \ 4969 conftest$ac_exeext conftest.$ac_ext 4970fi 4971 4972 4973 CFLAGS="$xorg_testset_save_CFLAGS" 4974 4975 eval supported=\$$cacheid 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4977$as_echo "$supported" >&6; } 4978 if test "$supported" = "yes" ; then 4979 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4980 found="yes" 4981 fi 4982 fi 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998xorg_testset_save_CFLAGS="$CFLAGS" 4999 5000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009int i; 5010_ACEOF 5011if ac_fn_c_try_compile "$LINENO"; then : 5012 xorg_cv_cc_flag_unknown_warning_option=yes 5013else 5014 xorg_cv_cc_flag_unknown_warning_option=no 5015fi 5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5017fi 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5021 CFLAGS="$xorg_testset_save_CFLAGS" 5022fi 5023 5024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5027 fi 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036int i; 5037_ACEOF 5038if ac_fn_c_try_compile "$LINENO"; then : 5039 xorg_cv_cc_flag_unused_command_line_argument=yes 5040else 5041 xorg_cv_cc_flag_unused_command_line_argument=no 5042fi 5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5048 CFLAGS="$xorg_testset_save_CFLAGS" 5049fi 5050 5051found="no" 5052 5053 if test $found = "no" ; then 5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5056 fi 5057 5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5060 fi 5061 5062 CFLAGS="$CFLAGS -Wformat=2" 5063 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5065$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5066 cacheid=xorg_cv_cc_flag__Wformat_2 5067 if eval \${$cacheid+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072int i; 5073int 5074main () 5075{ 5076 5077 ; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_c_try_link "$LINENO"; then : 5082 eval $cacheid=yes 5083else 5084 eval $cacheid=no 5085fi 5086rm -f core conftest.err conftest.$ac_objext \ 5087 conftest$ac_exeext conftest.$ac_ext 5088fi 5089 5090 5091 CFLAGS="$xorg_testset_save_CFLAGS" 5092 5093 eval supported=\$$cacheid 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5095$as_echo "$supported" >&6; } 5096 if test "$supported" = "yes" ; then 5097 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5098 found="yes" 5099 fi 5100 fi 5101 5102 if test $found = "no" ; then 5103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5105 fi 5106 5107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5109 fi 5110 5111 CFLAGS="$CFLAGS -Wformat" 5112 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5114$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5115 cacheid=xorg_cv_cc_flag__Wformat 5116 if eval \${$cacheid+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122int 5123main () 5124{ 5125 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130if ac_fn_c_try_link "$LINENO"; then : 5131 eval $cacheid=yes 5132else 5133 eval $cacheid=no 5134fi 5135rm -f core conftest.err conftest.$ac_objext \ 5136 conftest$ac_exeext conftest.$ac_ext 5137fi 5138 5139 5140 CFLAGS="$xorg_testset_save_CFLAGS" 5141 5142 eval supported=\$$cacheid 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5144$as_echo "$supported" >&6; } 5145 if test "$supported" = "yes" ; then 5146 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5147 found="yes" 5148 fi 5149 fi 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167xorg_testset_save_CFLAGS="$CFLAGS" 5168 5169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178int i; 5179_ACEOF 5180if ac_fn_c_try_compile "$LINENO"; then : 5181 xorg_cv_cc_flag_unknown_warning_option=yes 5182else 5183 xorg_cv_cc_flag_unknown_warning_option=no 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186fi 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5190 CFLAGS="$xorg_testset_save_CFLAGS" 5191fi 5192 5193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5196 fi 5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205int i; 5206_ACEOF 5207if ac_fn_c_try_compile "$LINENO"; then : 5208 xorg_cv_cc_flag_unused_command_line_argument=yes 5209else 5210 xorg_cv_cc_flag_unused_command_line_argument=no 5211fi 5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5213fi 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5217 CFLAGS="$xorg_testset_save_CFLAGS" 5218fi 5219 5220found="no" 5221 5222 if test $found = "no" ; then 5223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5225 fi 5226 5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5229 fi 5230 5231 CFLAGS="$CFLAGS -Wstrict-prototypes" 5232 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5234$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5235 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5236 if eval \${$cacheid+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241int i; 5242int 5243main () 5244{ 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250if ac_fn_c_try_link "$LINENO"; then : 5251 eval $cacheid=yes 5252else 5253 eval $cacheid=no 5254fi 5255rm -f core conftest.err conftest.$ac_objext \ 5256 conftest$ac_exeext conftest.$ac_ext 5257fi 5258 5259 5260 CFLAGS="$xorg_testset_save_CFLAGS" 5261 5262 eval supported=\$$cacheid 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5264$as_echo "$supported" >&6; } 5265 if test "$supported" = "yes" ; then 5266 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5267 found="yes" 5268 fi 5269 fi 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285xorg_testset_save_CFLAGS="$CFLAGS" 5286 5287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO"; then : 5299 xorg_cv_cc_flag_unknown_warning_option=yes 5300else 5301 xorg_cv_cc_flag_unknown_warning_option=no 5302fi 5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5304fi 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5308 CFLAGS="$xorg_testset_save_CFLAGS" 5309fi 5310 5311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5314 fi 5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323int i; 5324_ACEOF 5325if ac_fn_c_try_compile "$LINENO"; then : 5326 xorg_cv_cc_flag_unused_command_line_argument=yes 5327else 5328 xorg_cv_cc_flag_unused_command_line_argument=no 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5331fi 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5335 CFLAGS="$xorg_testset_save_CFLAGS" 5336fi 5337 5338found="no" 5339 5340 if test $found = "no" ; then 5341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5343 fi 5344 5345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5347 fi 5348 5349 CFLAGS="$CFLAGS -Wmissing-prototypes" 5350 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5352$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5353 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5354 if eval \${$cacheid+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359int i; 5360int 5361main () 5362{ 5363 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368if ac_fn_c_try_link "$LINENO"; then : 5369 eval $cacheid=yes 5370else 5371 eval $cacheid=no 5372fi 5373rm -f core conftest.err conftest.$ac_objext \ 5374 conftest$ac_exeext conftest.$ac_ext 5375fi 5376 5377 5378 CFLAGS="$xorg_testset_save_CFLAGS" 5379 5380 eval supported=\$$cacheid 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5382$as_echo "$supported" >&6; } 5383 if test "$supported" = "yes" ; then 5384 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5385 found="yes" 5386 fi 5387 fi 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403xorg_testset_save_CFLAGS="$CFLAGS" 5404 5405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415_ACEOF 5416if ac_fn_c_try_compile "$LINENO"; then : 5417 xorg_cv_cc_flag_unknown_warning_option=yes 5418else 5419 xorg_cv_cc_flag_unknown_warning_option=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5422fi 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427fi 5428 5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5432 fi 5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5440/* end confdefs.h. */ 5441int i; 5442_ACEOF 5443if ac_fn_c_try_compile "$LINENO"; then : 5444 xorg_cv_cc_flag_unused_command_line_argument=yes 5445else 5446 xorg_cv_cc_flag_unused_command_line_argument=no 5447fi 5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5453 CFLAGS="$xorg_testset_save_CFLAGS" 5454fi 5455 5456found="no" 5457 5458 if test $found = "no" ; then 5459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5461 fi 5462 5463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5465 fi 5466 5467 CFLAGS="$CFLAGS -Wnested-externs" 5468 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5470$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5471 cacheid=xorg_cv_cc_flag__Wnested_externs 5472 if eval \${$cacheid+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477int i; 5478int 5479main () 5480{ 5481 5482 ; 5483 return 0; 5484} 5485_ACEOF 5486if ac_fn_c_try_link "$LINENO"; then : 5487 eval $cacheid=yes 5488else 5489 eval $cacheid=no 5490fi 5491rm -f core conftest.err conftest.$ac_objext \ 5492 conftest$ac_exeext conftest.$ac_ext 5493fi 5494 5495 5496 CFLAGS="$xorg_testset_save_CFLAGS" 5497 5498 eval supported=\$$cacheid 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5500$as_echo "$supported" >&6; } 5501 if test "$supported" = "yes" ; then 5502 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5503 found="yes" 5504 fi 5505 fi 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521xorg_testset_save_CFLAGS="$CFLAGS" 5522 5523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533_ACEOF 5534if ac_fn_c_try_compile "$LINENO"; then : 5535 xorg_cv_cc_flag_unknown_warning_option=yes 5536else 5537 xorg_cv_cc_flag_unknown_warning_option=no 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545fi 5546 5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5550 fi 5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556else 5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5558/* end confdefs.h. */ 5559int i; 5560_ACEOF 5561if ac_fn_c_try_compile "$LINENO"; then : 5562 xorg_cv_cc_flag_unused_command_line_argument=yes 5563else 5564 xorg_cv_cc_flag_unused_command_line_argument=no 5565fi 5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5567fi 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5571 CFLAGS="$xorg_testset_save_CFLAGS" 5572fi 5573 5574found="no" 5575 5576 if test $found = "no" ; then 5577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5579 fi 5580 5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5583 fi 5584 5585 CFLAGS="$CFLAGS -Wbad-function-cast" 5586 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5588$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5589 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5590 if eval \${$cacheid+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596int 5597main () 5598{ 5599 5600 ; 5601 return 0; 5602} 5603_ACEOF 5604if ac_fn_c_try_link "$LINENO"; then : 5605 eval $cacheid=yes 5606else 5607 eval $cacheid=no 5608fi 5609rm -f core conftest.err conftest.$ac_objext \ 5610 conftest$ac_exeext conftest.$ac_ext 5611fi 5612 5613 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615 5616 eval supported=\$$cacheid 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5618$as_echo "$supported" >&6; } 5619 if test "$supported" = "yes" ; then 5620 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5621 found="yes" 5622 fi 5623 fi 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639xorg_testset_save_CFLAGS="$CFLAGS" 5640 5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5649/* end confdefs.h. */ 5650int i; 5651_ACEOF 5652if ac_fn_c_try_compile "$LINENO"; then : 5653 xorg_cv_cc_flag_unknown_warning_option=yes 5654else 5655 xorg_cv_cc_flag_unknown_warning_option=no 5656fi 5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5658fi 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663fi 5664 5665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5668 fi 5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674else 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676/* end confdefs.h. */ 5677int i; 5678_ACEOF 5679if ac_fn_c_try_compile "$LINENO"; then : 5680 xorg_cv_cc_flag_unused_command_line_argument=yes 5681else 5682 xorg_cv_cc_flag_unused_command_line_argument=no 5683fi 5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5685fi 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5689 CFLAGS="$xorg_testset_save_CFLAGS" 5690fi 5691 5692found="no" 5693 5694 if test $found = "no" ; then 5695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5697 fi 5698 5699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5701 fi 5702 5703 CFLAGS="$CFLAGS -Wold-style-definition" 5704 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5706$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5707 cacheid=xorg_cv_cc_flag__Wold_style_definition 5708 if eval \${$cacheid+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713int i; 5714int 5715main () 5716{ 5717 5718 ; 5719 return 0; 5720} 5721_ACEOF 5722if ac_fn_c_try_link "$LINENO"; then : 5723 eval $cacheid=yes 5724else 5725 eval $cacheid=no 5726fi 5727rm -f core conftest.err conftest.$ac_objext \ 5728 conftest$ac_exeext conftest.$ac_ext 5729fi 5730 5731 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5733 5734 eval supported=\$$cacheid 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5736$as_echo "$supported" >&6; } 5737 if test "$supported" = "yes" ; then 5738 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5739 found="yes" 5740 fi 5741 fi 5742 5743 if test $found = "no" ; then 5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5746 fi 5747 5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5750 fi 5751 5752 CFLAGS="$CFLAGS -fd" 5753 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5755$as_echo_n "checking if $CC supports -fd... " >&6; } 5756 cacheid=xorg_cv_cc_flag__fd 5757 if eval \${$cacheid+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763int 5764main () 5765{ 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_c_try_link "$LINENO"; then : 5772 eval $cacheid=yes 5773else 5774 eval $cacheid=no 5775fi 5776rm -f core conftest.err conftest.$ac_objext \ 5777 conftest$ac_exeext conftest.$ac_ext 5778fi 5779 5780 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782 5783 eval supported=\$$cacheid 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5785$as_echo "$supported" >&6; } 5786 if test "$supported" = "yes" ; then 5787 BASE_CFLAGS="$BASE_CFLAGS -fd" 5788 found="yes" 5789 fi 5790 fi 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806xorg_testset_save_CFLAGS="$CFLAGS" 5807 5808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814else 5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5816/* end confdefs.h. */ 5817int i; 5818_ACEOF 5819if ac_fn_c_try_compile "$LINENO"; then : 5820 xorg_cv_cc_flag_unknown_warning_option=yes 5821else 5822 xorg_cv_cc_flag_unknown_warning_option=no 5823fi 5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5825fi 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5829 CFLAGS="$xorg_testset_save_CFLAGS" 5830fi 5831 5832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5835 fi 5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844int i; 5845_ACEOF 5846if ac_fn_c_try_compile "$LINENO"; then : 5847 xorg_cv_cc_flag_unused_command_line_argument=yes 5848else 5849 xorg_cv_cc_flag_unused_command_line_argument=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852fi 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857fi 5858 5859found="no" 5860 5861 if test $found = "no" ; then 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 fi 5869 5870 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5871 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5873$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5874 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5875 if eval \${$cacheid+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881int 5882main () 5883{ 5884 5885 ; 5886 return 0; 5887} 5888_ACEOF 5889if ac_fn_c_try_link "$LINENO"; then : 5890 eval $cacheid=yes 5891else 5892 eval $cacheid=no 5893fi 5894rm -f core conftest.err conftest.$ac_objext \ 5895 conftest$ac_exeext conftest.$ac_ext 5896fi 5897 5898 5899 CFLAGS="$xorg_testset_save_CFLAGS" 5900 5901 eval supported=\$$cacheid 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5903$as_echo "$supported" >&6; } 5904 if test "$supported" = "yes" ; then 5905 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5906 found="yes" 5907 fi 5908 fi 5909 5910 5911 5912 5913 5914# This chunk adds additional warnings that could catch undesired effects. 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928xorg_testset_save_CFLAGS="$CFLAGS" 5929 5930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938/* end confdefs.h. */ 5939int i; 5940_ACEOF 5941if ac_fn_c_try_compile "$LINENO"; then : 5942 xorg_cv_cc_flag_unknown_warning_option=yes 5943else 5944 xorg_cv_cc_flag_unknown_warning_option=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5947fi 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952fi 5953 5954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5957 fi 5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967_ACEOF 5968if ac_fn_c_try_compile "$LINENO"; then : 5969 xorg_cv_cc_flag_unused_command_line_argument=yes 5970else 5971 xorg_cv_cc_flag_unused_command_line_argument=no 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979fi 5980 5981found="no" 5982 5983 if test $found = "no" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 fi 5991 5992 CFLAGS="$CFLAGS -Wunused" 5993 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5995$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5996 cacheid=xorg_cv_cc_flag__Wunused 5997 if eval \${$cacheid+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6001/* end confdefs.h. */ 6002int i; 6003int 6004main () 6005{ 6006 6007 ; 6008 return 0; 6009} 6010_ACEOF 6011if ac_fn_c_try_link "$LINENO"; then : 6012 eval $cacheid=yes 6013else 6014 eval $cacheid=no 6015fi 6016rm -f core conftest.err conftest.$ac_objext \ 6017 conftest$ac_exeext conftest.$ac_ext 6018fi 6019 6020 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022 6023 eval supported=\$$cacheid 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6025$as_echo "$supported" >&6; } 6026 if test "$supported" = "yes" ; then 6027 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6028 found="yes" 6029 fi 6030 fi 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046xorg_testset_save_CFLAGS="$CFLAGS" 6047 6048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057int i; 6058_ACEOF 6059if ac_fn_c_try_compile "$LINENO"; then : 6060 xorg_cv_cc_flag_unknown_warning_option=yes 6061else 6062 xorg_cv_cc_flag_unknown_warning_option=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6065fi 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070fi 6071 6072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075 fi 6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085_ACEOF 6086if ac_fn_c_try_compile "$LINENO"; then : 6087 xorg_cv_cc_flag_unused_command_line_argument=yes 6088else 6089 xorg_cv_cc_flag_unused_command_line_argument=no 6090fi 6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097fi 6098 6099found="no" 6100 6101 if test $found = "no" ; then 6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6104 fi 6105 6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6108 fi 6109 6110 CFLAGS="$CFLAGS -Wuninitialized" 6111 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6113$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6114 cacheid=xorg_cv_cc_flag__Wuninitialized 6115 if eval \${$cacheid+:} false; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121int 6122main () 6123{ 6124 6125 ; 6126 return 0; 6127} 6128_ACEOF 6129if ac_fn_c_try_link "$LINENO"; then : 6130 eval $cacheid=yes 6131else 6132 eval $cacheid=no 6133fi 6134rm -f core conftest.err conftest.$ac_objext \ 6135 conftest$ac_exeext conftest.$ac_ext 6136fi 6137 6138 6139 CFLAGS="$xorg_testset_save_CFLAGS" 6140 6141 eval supported=\$$cacheid 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6143$as_echo "$supported" >&6; } 6144 if test "$supported" = "yes" ; then 6145 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6146 found="yes" 6147 fi 6148 fi 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164xorg_testset_save_CFLAGS="$CFLAGS" 6165 6166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6174/* end confdefs.h. */ 6175int i; 6176_ACEOF 6177if ac_fn_c_try_compile "$LINENO"; then : 6178 xorg_cv_cc_flag_unknown_warning_option=yes 6179else 6180 xorg_cv_cc_flag_unknown_warning_option=no 6181fi 6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6183fi 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6187 CFLAGS="$xorg_testset_save_CFLAGS" 6188fi 6189 6190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6193 fi 6194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202int i; 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO"; then : 6205 xorg_cv_cc_flag_unused_command_line_argument=yes 6206else 6207 xorg_cv_cc_flag_unused_command_line_argument=no 6208fi 6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210fi 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6214 CFLAGS="$xorg_testset_save_CFLAGS" 6215fi 6216 6217found="no" 6218 6219 if test $found = "no" ; then 6220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6222 fi 6223 6224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6226 fi 6227 6228 CFLAGS="$CFLAGS -Wshadow" 6229 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6231$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6232 cacheid=xorg_cv_cc_flag__Wshadow 6233 if eval \${$cacheid+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6237/* end confdefs.h. */ 6238int i; 6239int 6240main () 6241{ 6242 6243 ; 6244 return 0; 6245} 6246_ACEOF 6247if ac_fn_c_try_link "$LINENO"; then : 6248 eval $cacheid=yes 6249else 6250 eval $cacheid=no 6251fi 6252rm -f core conftest.err conftest.$ac_objext \ 6253 conftest$ac_exeext conftest.$ac_ext 6254fi 6255 6256 6257 CFLAGS="$xorg_testset_save_CFLAGS" 6258 6259 eval supported=\$$cacheid 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6261$as_echo "$supported" >&6; } 6262 if test "$supported" = "yes" ; then 6263 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6264 found="yes" 6265 fi 6266 fi 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282xorg_testset_save_CFLAGS="$CFLAGS" 6283 6284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294_ACEOF 6295if ac_fn_c_try_compile "$LINENO"; then : 6296 xorg_cv_cc_flag_unknown_warning_option=yes 6297else 6298 xorg_cv_cc_flag_unknown_warning_option=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306fi 6307 6308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321_ACEOF 6322if ac_fn_c_try_compile "$LINENO"; then : 6323 xorg_cv_cc_flag_unused_command_line_argument=yes 6324else 6325 xorg_cv_cc_flag_unused_command_line_argument=no 6326fi 6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333fi 6334 6335found="no" 6336 6337 if test $found = "no" ; then 6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6340 fi 6341 6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 fi 6345 6346 CFLAGS="$CFLAGS -Wmissing-noreturn" 6347 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6349$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6350 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6351 if eval \${$cacheid+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357int 6358main () 6359{ 6360 6361 ; 6362 return 0; 6363} 6364_ACEOF 6365if ac_fn_c_try_link "$LINENO"; then : 6366 eval $cacheid=yes 6367else 6368 eval $cacheid=no 6369fi 6370rm -f core conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372fi 6373 6374 6375 CFLAGS="$xorg_testset_save_CFLAGS" 6376 6377 eval supported=\$$cacheid 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6379$as_echo "$supported" >&6; } 6380 if test "$supported" = "yes" ; then 6381 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6382 found="yes" 6383 fi 6384 fi 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400xorg_testset_save_CFLAGS="$CFLAGS" 6401 6402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411int i; 6412_ACEOF 6413if ac_fn_c_try_compile "$LINENO"; then : 6414 xorg_cv_cc_flag_unknown_warning_option=yes 6415else 6416 xorg_cv_cc_flag_unknown_warning_option=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424fi 6425 6426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6429 fi 6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438int i; 6439_ACEOF 6440if ac_fn_c_try_compile "$LINENO"; then : 6441 xorg_cv_cc_flag_unused_command_line_argument=yes 6442else 6443 xorg_cv_cc_flag_unused_command_line_argument=no 6444fi 6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6450 CFLAGS="$xorg_testset_save_CFLAGS" 6451fi 6452 6453found="no" 6454 6455 if test $found = "no" ; then 6456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6458 fi 6459 6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6462 fi 6463 6464 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6465 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6467$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6468 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6469 if eval \${$cacheid+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475int 6476main () 6477{ 6478 6479 ; 6480 return 0; 6481} 6482_ACEOF 6483if ac_fn_c_try_link "$LINENO"; then : 6484 eval $cacheid=yes 6485else 6486 eval $cacheid=no 6487fi 6488rm -f core conftest.err conftest.$ac_objext \ 6489 conftest$ac_exeext conftest.$ac_ext 6490fi 6491 6492 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6495 eval supported=\$$cacheid 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497$as_echo "$supported" >&6; } 6498 if test "$supported" = "yes" ; then 6499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6500 found="yes" 6501 fi 6502 fi 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518xorg_testset_save_CFLAGS="$CFLAGS" 6519 6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6528/* end confdefs.h. */ 6529int i; 6530_ACEOF 6531if ac_fn_c_try_compile "$LINENO"; then : 6532 xorg_cv_cc_flag_unknown_warning_option=yes 6533else 6534 xorg_cv_cc_flag_unknown_warning_option=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6537fi 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542fi 6543 6544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 fi 6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553else 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557_ACEOF 6558if ac_fn_c_try_compile "$LINENO"; then : 6559 xorg_cv_cc_flag_unused_command_line_argument=yes 6560else 6561 xorg_cv_cc_flag_unused_command_line_argument=no 6562fi 6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6564fi 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6568 CFLAGS="$xorg_testset_save_CFLAGS" 6569fi 6570 6571found="no" 6572 6573 if test $found = "no" ; then 6574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6576 fi 6577 6578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6580 fi 6581 6582 CFLAGS="$CFLAGS -Wredundant-decls" 6583 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6585$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6586 cacheid=xorg_cv_cc_flag__Wredundant_decls 6587 if eval \${$cacheid+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592int i; 6593int 6594main () 6595{ 6596 6597 ; 6598 return 0; 6599} 6600_ACEOF 6601if ac_fn_c_try_link "$LINENO"; then : 6602 eval $cacheid=yes 6603else 6604 eval $cacheid=no 6605fi 6606rm -f core conftest.err conftest.$ac_objext \ 6607 conftest$ac_exeext conftest.$ac_ext 6608fi 6609 6610 6611 CFLAGS="$xorg_testset_save_CFLAGS" 6612 6613 eval supported=\$$cacheid 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6615$as_echo "$supported" >&6; } 6616 if test "$supported" = "yes" ; then 6617 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6618 found="yes" 6619 fi 6620 fi 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636xorg_testset_save_CFLAGS="$CFLAGS" 6637 6638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648_ACEOF 6649if ac_fn_c_try_compile "$LINENO"; then : 6650 xorg_cv_cc_flag_unknown_warning_option=yes 6651else 6652 xorg_cv_cc_flag_unknown_warning_option=no 6653fi 6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6655fi 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6659 CFLAGS="$xorg_testset_save_CFLAGS" 6660fi 6661 6662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6665 fi 6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675_ACEOF 6676if ac_fn_c_try_compile "$LINENO"; then : 6677 xorg_cv_cc_flag_unused_command_line_argument=yes 6678else 6679 xorg_cv_cc_flag_unused_command_line_argument=no 6680fi 6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6682fi 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6686 CFLAGS="$xorg_testset_save_CFLAGS" 6687fi 6688 6689found="no" 6690 6691 if test $found = "no" ; then 6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 fi 6695 6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 fi 6699 6700 CFLAGS="$CFLAGS -Wlogical-op" 6701 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6703$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6704 cacheid=xorg_cv_cc_flag__Wlogical_op 6705 if eval \${$cacheid+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711int 6712main () 6713{ 6714 6715 ; 6716 return 0; 6717} 6718_ACEOF 6719if ac_fn_c_try_link "$LINENO"; then : 6720 eval $cacheid=yes 6721else 6722 eval $cacheid=no 6723fi 6724rm -f core conftest.err conftest.$ac_objext \ 6725 conftest$ac_exeext conftest.$ac_ext 6726fi 6727 6728 6729 CFLAGS="$xorg_testset_save_CFLAGS" 6730 6731 eval supported=\$$cacheid 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6733$as_echo "$supported" >&6; } 6734 if test "$supported" = "yes" ; then 6735 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6736 found="yes" 6737 fi 6738 fi 6739 6740 6741 6742# These are currently disabled because they are noisy. They will be enabled 6743# in the future once the codebase is sufficiently modernized to silence 6744# them. For now, I don't want them to drown out the other warnings. 6745# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6746# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6747# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6748 6749# Turn some warnings into errors, so we don't accidently get successful builds 6750# when there are problems that should be fixed. 6751 6752if test "x$SELECTIVE_WERROR" = "xyes" ; then 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766xorg_testset_save_CFLAGS="$CFLAGS" 6767 6768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776/* end confdefs.h. */ 6777int i; 6778_ACEOF 6779if ac_fn_c_try_compile "$LINENO"; then : 6780 xorg_cv_cc_flag_unknown_warning_option=yes 6781else 6782 xorg_cv_cc_flag_unknown_warning_option=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790fi 6791 6792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6795 fi 6796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805_ACEOF 6806if ac_fn_c_try_compile "$LINENO"; then : 6807 xorg_cv_cc_flag_unused_command_line_argument=yes 6808else 6809 xorg_cv_cc_flag_unused_command_line_argument=no 6810fi 6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6812fi 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817fi 6818 6819found="no" 6820 6821 if test $found = "no" ; then 6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6824 fi 6825 6826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6828 fi 6829 6830 CFLAGS="$CFLAGS -Werror=implicit" 6831 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6833$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6834 cacheid=xorg_cv_cc_flag__Werror_implicit 6835 if eval \${$cacheid+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840int i; 6841int 6842main () 6843{ 6844 6845 ; 6846 return 0; 6847} 6848_ACEOF 6849if ac_fn_c_try_link "$LINENO"; then : 6850 eval $cacheid=yes 6851else 6852 eval $cacheid=no 6853fi 6854rm -f core conftest.err conftest.$ac_objext \ 6855 conftest$ac_exeext conftest.$ac_ext 6856fi 6857 6858 6859 CFLAGS="$xorg_testset_save_CFLAGS" 6860 6861 eval supported=\$$cacheid 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6863$as_echo "$supported" >&6; } 6864 if test "$supported" = "yes" ; then 6865 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6866 found="yes" 6867 fi 6868 fi 6869 6870 if test $found = "no" ; then 6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6873 fi 6874 6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6877 fi 6878 6879 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6880 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6882$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6883 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6884 if eval \${$cacheid+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889int i; 6890int 6891main () 6892{ 6893 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_link "$LINENO"; then : 6899 eval $cacheid=yes 6900else 6901 eval $cacheid=no 6902fi 6903rm -f core conftest.err conftest.$ac_objext \ 6904 conftest$ac_exeext conftest.$ac_ext 6905fi 6906 6907 6908 CFLAGS="$xorg_testset_save_CFLAGS" 6909 6910 eval supported=\$$cacheid 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6912$as_echo "$supported" >&6; } 6913 if test "$supported" = "yes" ; then 6914 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6915 found="yes" 6916 fi 6917 fi 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933xorg_testset_save_CFLAGS="$CFLAGS" 6934 6935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941else 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944int i; 6945_ACEOF 6946if ac_fn_c_try_compile "$LINENO"; then : 6947 xorg_cv_cc_flag_unknown_warning_option=yes 6948else 6949 xorg_cv_cc_flag_unknown_warning_option=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6952fi 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957fi 6958 6959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6962 fi 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971int i; 6972_ACEOF 6973if ac_fn_c_try_compile "$LINENO"; then : 6974 xorg_cv_cc_flag_unused_command_line_argument=yes 6975else 6976 xorg_cv_cc_flag_unused_command_line_argument=no 6977fi 6978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6979fi 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984fi 6985 6986found="no" 6987 6988 if test $found = "no" ; then 6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 fi 6992 6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6995 fi 6996 6997 CFLAGS="$CFLAGS -Werror=nonnull" 6998 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7000$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7001 cacheid=xorg_cv_cc_flag__Werror_nonnull 7002 if eval \${$cacheid+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007int i; 7008int 7009main () 7010{ 7011 7012 ; 7013 return 0; 7014} 7015_ACEOF 7016if ac_fn_c_try_link "$LINENO"; then : 7017 eval $cacheid=yes 7018else 7019 eval $cacheid=no 7020fi 7021rm -f core conftest.err conftest.$ac_objext \ 7022 conftest$ac_exeext conftest.$ac_ext 7023fi 7024 7025 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027 7028 eval supported=\$$cacheid 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7030$as_echo "$supported" >&6; } 7031 if test "$supported" = "yes" ; then 7032 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7033 found="yes" 7034 fi 7035 fi 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051xorg_testset_save_CFLAGS="$CFLAGS" 7052 7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063_ACEOF 7064if ac_fn_c_try_compile "$LINENO"; then : 7065 xorg_cv_cc_flag_unknown_warning_option=yes 7066else 7067 xorg_cv_cc_flag_unknown_warning_option=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7070fi 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075fi 7076 7077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 fi 7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 xorg_cv_cc_flag_unused_command_line_argument=yes 7093else 7094 xorg_cv_cc_flag_unused_command_line_argument=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104found="no" 7105 7106 if test $found = "no" ; then 7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7113 fi 7114 7115 CFLAGS="$CFLAGS -Werror=init-self" 7116 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7118$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7119 cacheid=xorg_cv_cc_flag__Werror_init_self 7120 if eval \${$cacheid+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125int i; 7126int 7127main () 7128{ 7129 7130 ; 7131 return 0; 7132} 7133_ACEOF 7134if ac_fn_c_try_link "$LINENO"; then : 7135 eval $cacheid=yes 7136else 7137 eval $cacheid=no 7138fi 7139rm -f core conftest.err conftest.$ac_objext \ 7140 conftest$ac_exeext conftest.$ac_ext 7141fi 7142 7143 7144 CFLAGS="$xorg_testset_save_CFLAGS" 7145 7146 eval supported=\$$cacheid 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7148$as_echo "$supported" >&6; } 7149 if test "$supported" = "yes" ; then 7150 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7151 found="yes" 7152 fi 7153 fi 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169xorg_testset_save_CFLAGS="$CFLAGS" 7170 7171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181_ACEOF 7182if ac_fn_c_try_compile "$LINENO"; then : 7183 xorg_cv_cc_flag_unknown_warning_option=yes 7184else 7185 xorg_cv_cc_flag_unknown_warning_option=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193fi 7194 7195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 fi 7199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208_ACEOF 7209if ac_fn_c_try_compile "$LINENO"; then : 7210 xorg_cv_cc_flag_unused_command_line_argument=yes 7211else 7212 xorg_cv_cc_flag_unused_command_line_argument=no 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7215fi 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220fi 7221 7222found="no" 7223 7224 if test $found = "no" ; then 7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7227 fi 7228 7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7231 fi 7232 7233 CFLAGS="$CFLAGS -Werror=main" 7234 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7236$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7237 cacheid=xorg_cv_cc_flag__Werror_main 7238 if eval \${$cacheid+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243int i; 7244int 7245main () 7246{ 7247 7248 ; 7249 return 0; 7250} 7251_ACEOF 7252if ac_fn_c_try_link "$LINENO"; then : 7253 eval $cacheid=yes 7254else 7255 eval $cacheid=no 7256fi 7257rm -f core conftest.err conftest.$ac_objext \ 7258 conftest$ac_exeext conftest.$ac_ext 7259fi 7260 7261 7262 CFLAGS="$xorg_testset_save_CFLAGS" 7263 7264 eval supported=\$$cacheid 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7266$as_echo "$supported" >&6; } 7267 if test "$supported" = "yes" ; then 7268 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7269 found="yes" 7270 fi 7271 fi 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287xorg_testset_save_CFLAGS="$CFLAGS" 7288 7289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298int i; 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO"; then : 7301 xorg_cv_cc_flag_unknown_warning_option=yes 7302else 7303 xorg_cv_cc_flag_unknown_warning_option=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7306fi 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311fi 7312 7313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7316 fi 7317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326_ACEOF 7327if ac_fn_c_try_compile "$LINENO"; then : 7328 xorg_cv_cc_flag_unused_command_line_argument=yes 7329else 7330 xorg_cv_cc_flag_unused_command_line_argument=no 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7333fi 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338fi 7339 7340found="no" 7341 7342 if test $found = "no" ; then 7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7345 fi 7346 7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7349 fi 7350 7351 CFLAGS="$CFLAGS -Werror=missing-braces" 7352 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7354$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7355 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7356 if eval \${$cacheid+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int i; 7362int 7363main () 7364{ 7365 7366 ; 7367 return 0; 7368} 7369_ACEOF 7370if ac_fn_c_try_link "$LINENO"; then : 7371 eval $cacheid=yes 7372else 7373 eval $cacheid=no 7374fi 7375rm -f core conftest.err conftest.$ac_objext \ 7376 conftest$ac_exeext conftest.$ac_ext 7377fi 7378 7379 7380 CFLAGS="$xorg_testset_save_CFLAGS" 7381 7382 eval supported=\$$cacheid 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7384$as_echo "$supported" >&6; } 7385 if test "$supported" = "yes" ; then 7386 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7387 found="yes" 7388 fi 7389 fi 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405xorg_testset_save_CFLAGS="$CFLAGS" 7406 7407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416int i; 7417_ACEOF 7418if ac_fn_c_try_compile "$LINENO"; then : 7419 xorg_cv_cc_flag_unknown_warning_option=yes 7420else 7421 xorg_cv_cc_flag_unknown_warning_option=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7424fi 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429fi 7430 7431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7434 fi 7435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443int i; 7444_ACEOF 7445if ac_fn_c_try_compile "$LINENO"; then : 7446 xorg_cv_cc_flag_unused_command_line_argument=yes 7447else 7448 xorg_cv_cc_flag_unused_command_line_argument=no 7449fi 7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7451fi 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7455 CFLAGS="$xorg_testset_save_CFLAGS" 7456fi 7457 7458found="no" 7459 7460 if test $found = "no" ; then 7461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7463 fi 7464 7465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7467 fi 7468 7469 CFLAGS="$CFLAGS -Werror=sequence-point" 7470 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7472$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7473 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7474 if eval \${$cacheid+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479int i; 7480int 7481main () 7482{ 7483 7484 ; 7485 return 0; 7486} 7487_ACEOF 7488if ac_fn_c_try_link "$LINENO"; then : 7489 eval $cacheid=yes 7490else 7491 eval $cacheid=no 7492fi 7493rm -f core conftest.err conftest.$ac_objext \ 7494 conftest$ac_exeext conftest.$ac_ext 7495fi 7496 7497 7498 CFLAGS="$xorg_testset_save_CFLAGS" 7499 7500 eval supported=\$$cacheid 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7502$as_echo "$supported" >&6; } 7503 if test "$supported" = "yes" ; then 7504 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7505 found="yes" 7506 fi 7507 fi 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523xorg_testset_save_CFLAGS="$CFLAGS" 7524 7525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534int i; 7535_ACEOF 7536if ac_fn_c_try_compile "$LINENO"; then : 7537 xorg_cv_cc_flag_unknown_warning_option=yes 7538else 7539 xorg_cv_cc_flag_unknown_warning_option=no 7540fi 7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7546 CFLAGS="$xorg_testset_save_CFLAGS" 7547fi 7548 7549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7552 fi 7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7560/* end confdefs.h. */ 7561int i; 7562_ACEOF 7563if ac_fn_c_try_compile "$LINENO"; then : 7564 xorg_cv_cc_flag_unused_command_line_argument=yes 7565else 7566 xorg_cv_cc_flag_unused_command_line_argument=no 7567fi 7568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7569fi 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7573 CFLAGS="$xorg_testset_save_CFLAGS" 7574fi 7575 7576found="no" 7577 7578 if test $found = "no" ; then 7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7581 fi 7582 7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7585 fi 7586 7587 CFLAGS="$CFLAGS -Werror=return-type" 7588 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7590$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7591 cacheid=xorg_cv_cc_flag__Werror_return_type 7592 if eval \${$cacheid+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597int i; 7598int 7599main () 7600{ 7601 7602 ; 7603 return 0; 7604} 7605_ACEOF 7606if ac_fn_c_try_link "$LINENO"; then : 7607 eval $cacheid=yes 7608else 7609 eval $cacheid=no 7610fi 7611rm -f core conftest.err conftest.$ac_objext \ 7612 conftest$ac_exeext conftest.$ac_ext 7613fi 7614 7615 7616 CFLAGS="$xorg_testset_save_CFLAGS" 7617 7618 eval supported=\$$cacheid 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7620$as_echo "$supported" >&6; } 7621 if test "$supported" = "yes" ; then 7622 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7623 found="yes" 7624 fi 7625 fi 7626 7627 if test $found = "no" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7634 fi 7635 7636 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7637 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7639$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7640 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7641 if eval \${$cacheid+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646int i; 7647int 7648main () 7649{ 7650 7651 ; 7652 return 0; 7653} 7654_ACEOF 7655if ac_fn_c_try_link "$LINENO"; then : 7656 eval $cacheid=yes 7657else 7658 eval $cacheid=no 7659fi 7660rm -f core conftest.err conftest.$ac_objext \ 7661 conftest$ac_exeext conftest.$ac_ext 7662fi 7663 7664 7665 CFLAGS="$xorg_testset_save_CFLAGS" 7666 7667 eval supported=\$$cacheid 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7669$as_echo "$supported" >&6; } 7670 if test "$supported" = "yes" ; then 7671 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7672 found="yes" 7673 fi 7674 fi 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690xorg_testset_save_CFLAGS="$CFLAGS" 7691 7692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702_ACEOF 7703if ac_fn_c_try_compile "$LINENO"; then : 7704 xorg_cv_cc_flag_unknown_warning_option=yes 7705else 7706 xorg_cv_cc_flag_unknown_warning_option=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714fi 7715 7716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7719 fi 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO"; then : 7731 xorg_cv_cc_flag_unused_command_line_argument=yes 7732else 7733 xorg_cv_cc_flag_unused_command_line_argument=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736fi 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741fi 7742 7743found="no" 7744 7745 if test $found = "no" ; then 7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 fi 7749 7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7752 fi 7753 7754 CFLAGS="$CFLAGS -Werror=trigraphs" 7755 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7757$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7758 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7759 if eval \${$cacheid+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765int 7766main () 7767{ 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_link "$LINENO"; then : 7774 eval $cacheid=yes 7775else 7776 eval $cacheid=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext \ 7779 conftest$ac_exeext conftest.$ac_ext 7780fi 7781 7782 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784 7785 eval supported=\$$cacheid 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7787$as_echo "$supported" >&6; } 7788 if test "$supported" = "yes" ; then 7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7790 found="yes" 7791 fi 7792 fi 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808xorg_testset_save_CFLAGS="$CFLAGS" 7809 7810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO"; then : 7822 xorg_cv_cc_flag_unknown_warning_option=yes 7823else 7824 xorg_cv_cc_flag_unknown_warning_option=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7831 CFLAGS="$xorg_testset_save_CFLAGS" 7832fi 7833 7834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7837 fi 7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO"; then : 7849 xorg_cv_cc_flag_unused_command_line_argument=yes 7850else 7851 xorg_cv_cc_flag_unused_command_line_argument=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861found="no" 7862 7863 if test $found = "no" ; then 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 fi 7867 7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7870 fi 7871 7872 CFLAGS="$CFLAGS -Werror=array-bounds" 7873 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7875$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7876 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7877 if eval \${$cacheid+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883int 7884main () 7885{ 7886 7887 ; 7888 return 0; 7889} 7890_ACEOF 7891if ac_fn_c_try_link "$LINENO"; then : 7892 eval $cacheid=yes 7893else 7894 eval $cacheid=no 7895fi 7896rm -f core conftest.err conftest.$ac_objext \ 7897 conftest$ac_exeext conftest.$ac_ext 7898fi 7899 7900 7901 CFLAGS="$xorg_testset_save_CFLAGS" 7902 7903 eval supported=\$$cacheid 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7905$as_echo "$supported" >&6; } 7906 if test "$supported" = "yes" ; then 7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7908 found="yes" 7909 fi 7910 fi 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926xorg_testset_save_CFLAGS="$CFLAGS" 7927 7928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937int i; 7938_ACEOF 7939if ac_fn_c_try_compile "$LINENO"; then : 7940 xorg_cv_cc_flag_unknown_warning_option=yes 7941else 7942 xorg_cv_cc_flag_unknown_warning_option=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7945fi 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950fi 7951 7952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7955 fi 7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO"; then : 7967 xorg_cv_cc_flag_unused_command_line_argument=yes 7968else 7969 xorg_cv_cc_flag_unused_command_line_argument=no 7970fi 7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977fi 7978 7979found="no" 7980 7981 if test $found = "no" ; then 7982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7984 fi 7985 7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7988 fi 7989 7990 CFLAGS="$CFLAGS -Werror=write-strings" 7991 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7993$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7994 cacheid=xorg_cv_cc_flag__Werror_write_strings 7995 if eval \${$cacheid+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001int 8002main () 8003{ 8004 8005 ; 8006 return 0; 8007} 8008_ACEOF 8009if ac_fn_c_try_link "$LINENO"; then : 8010 eval $cacheid=yes 8011else 8012 eval $cacheid=no 8013fi 8014rm -f core conftest.err conftest.$ac_objext \ 8015 conftest$ac_exeext conftest.$ac_ext 8016fi 8017 8018 8019 CFLAGS="$xorg_testset_save_CFLAGS" 8020 8021 eval supported=\$$cacheid 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8023$as_echo "$supported" >&6; } 8024 if test "$supported" = "yes" ; then 8025 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8026 found="yes" 8027 fi 8028 fi 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044xorg_testset_save_CFLAGS="$CFLAGS" 8045 8046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8051 $as_echo_n "(cached) " >&6 8052else 8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055int i; 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO"; then : 8058 xorg_cv_cc_flag_unknown_warning_option=yes 8059else 8060 xorg_cv_cc_flag_unknown_warning_option=no 8061fi 8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8063fi 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068fi 8069 8070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 fi 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081/* end confdefs.h. */ 8082int i; 8083_ACEOF 8084if ac_fn_c_try_compile "$LINENO"; then : 8085 xorg_cv_cc_flag_unused_command_line_argument=yes 8086else 8087 xorg_cv_cc_flag_unused_command_line_argument=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090fi 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095fi 8096 8097found="no" 8098 8099 if test $found = "no" ; then 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 fi 8103 8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8106 fi 8107 8108 CFLAGS="$CFLAGS -Werror=address" 8109 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8111$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8112 cacheid=xorg_cv_cc_flag__Werror_address 8113 if eval \${$cacheid+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119int 8120main () 8121{ 8122 8123 ; 8124 return 0; 8125} 8126_ACEOF 8127if ac_fn_c_try_link "$LINENO"; then : 8128 eval $cacheid=yes 8129else 8130 eval $cacheid=no 8131fi 8132rm -f core conftest.err conftest.$ac_objext \ 8133 conftest$ac_exeext conftest.$ac_ext 8134fi 8135 8136 8137 CFLAGS="$xorg_testset_save_CFLAGS" 8138 8139 eval supported=\$$cacheid 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8141$as_echo "$supported" >&6; } 8142 if test "$supported" = "yes" ; then 8143 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8144 found="yes" 8145 fi 8146 fi 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162xorg_testset_save_CFLAGS="$CFLAGS" 8163 8164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174_ACEOF 8175if ac_fn_c_try_compile "$LINENO"; then : 8176 xorg_cv_cc_flag_unknown_warning_option=yes 8177else 8178 xorg_cv_cc_flag_unknown_warning_option=no 8179fi 8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8181fi 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8185 CFLAGS="$xorg_testset_save_CFLAGS" 8186fi 8187 8188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8191 fi 8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200int i; 8201_ACEOF 8202if ac_fn_c_try_compile "$LINENO"; then : 8203 xorg_cv_cc_flag_unused_command_line_argument=yes 8204else 8205 xorg_cv_cc_flag_unused_command_line_argument=no 8206fi 8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8208fi 8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8212 CFLAGS="$xorg_testset_save_CFLAGS" 8213fi 8214 8215found="no" 8216 8217 if test $found = "no" ; then 8218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8220 fi 8221 8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8224 fi 8225 8226 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8227 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8229$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8230 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8231 if eval \${$cacheid+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235/* end confdefs.h. */ 8236int i; 8237int 8238main () 8239{ 8240 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245if ac_fn_c_try_link "$LINENO"; then : 8246 eval $cacheid=yes 8247else 8248 eval $cacheid=no 8249fi 8250rm -f core conftest.err conftest.$ac_objext \ 8251 conftest$ac_exeext conftest.$ac_ext 8252fi 8253 8254 8255 CFLAGS="$xorg_testset_save_CFLAGS" 8256 8257 eval supported=\$$cacheid 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8259$as_echo "$supported" >&6; } 8260 if test "$supported" = "yes" ; then 8261 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8262 found="yes" 8263 fi 8264 fi 8265 8266 if test $found = "no" ; then 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 fi 8270 8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273 fi 8274 8275 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8276 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8278$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8279 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8280 if eval \${$cacheid+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284/* end confdefs.h. */ 8285int i; 8286int 8287main () 8288{ 8289 8290 ; 8291 return 0; 8292} 8293_ACEOF 8294if ac_fn_c_try_link "$LINENO"; then : 8295 eval $cacheid=yes 8296else 8297 eval $cacheid=no 8298fi 8299rm -f core conftest.err conftest.$ac_objext \ 8300 conftest$ac_exeext conftest.$ac_ext 8301fi 8302 8303 8304 CFLAGS="$xorg_testset_save_CFLAGS" 8305 8306 eval supported=\$$cacheid 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8308$as_echo "$supported" >&6; } 8309 if test "$supported" = "yes" ; then 8310 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8311 found="yes" 8312 fi 8313 fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329xorg_testset_save_CFLAGS="$CFLAGS" 8330 8331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8336 $as_echo_n "(cached) " >&6 8337else 8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8339/* end confdefs.h. */ 8340int i; 8341_ACEOF 8342if ac_fn_c_try_compile "$LINENO"; then : 8343 xorg_cv_cc_flag_unknown_warning_option=yes 8344else 8345 xorg_cv_cc_flag_unknown_warning_option=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8348fi 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8352 CFLAGS="$xorg_testset_save_CFLAGS" 8353fi 8354 8355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368_ACEOF 8369if ac_fn_c_try_compile "$LINENO"; then : 8370 xorg_cv_cc_flag_unused_command_line_argument=yes 8371else 8372 xorg_cv_cc_flag_unused_command_line_argument=no 8373fi 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380fi 8381 8382found="no" 8383 8384 if test $found = "no" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 fi 8392 8393 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8394 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8396$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8397 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8398 if eval \${$cacheid+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403int i; 8404int 8405main () 8406{ 8407 8408 ; 8409 return 0; 8410} 8411_ACEOF 8412if ac_fn_c_try_link "$LINENO"; then : 8413 eval $cacheid=yes 8414else 8415 eval $cacheid=no 8416fi 8417rm -f core conftest.err conftest.$ac_objext \ 8418 conftest$ac_exeext conftest.$ac_ext 8419fi 8420 8421 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423 8424 eval supported=\$$cacheid 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8426$as_echo "$supported" >&6; } 8427 if test "$supported" = "yes" ; then 8428 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8429 found="yes" 8430 fi 8431 fi 8432 8433 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8434else 8435{ $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 8436$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;} 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450xorg_testset_save_CFLAGS="$CFLAGS" 8451 8452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458else 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461int i; 8462_ACEOF 8463if ac_fn_c_try_compile "$LINENO"; then : 8464 xorg_cv_cc_flag_unknown_warning_option=yes 8465else 8466 xorg_cv_cc_flag_unknown_warning_option=no 8467fi 8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8469fi 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8473 CFLAGS="$xorg_testset_save_CFLAGS" 8474fi 8475 8476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 fi 8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO"; then : 8491 xorg_cv_cc_flag_unused_command_line_argument=yes 8492else 8493 xorg_cv_cc_flag_unused_command_line_argument=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503found="no" 8504 8505 if test $found = "no" ; then 8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 fi 8509 8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8512 fi 8513 8514 CFLAGS="$CFLAGS -Wimplicit" 8515 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8517$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8518 cacheid=xorg_cv_cc_flag__Wimplicit 8519 if eval \${$cacheid+:} false; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523/* end confdefs.h. */ 8524int i; 8525int 8526main () 8527{ 8528 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533if ac_fn_c_try_link "$LINENO"; then : 8534 eval $cacheid=yes 8535else 8536 eval $cacheid=no 8537fi 8538rm -f core conftest.err conftest.$ac_objext \ 8539 conftest$ac_exeext conftest.$ac_ext 8540fi 8541 8542 8543 CFLAGS="$xorg_testset_save_CFLAGS" 8544 8545 eval supported=\$$cacheid 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8547$as_echo "$supported" >&6; } 8548 if test "$supported" = "yes" ; then 8549 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8550 found="yes" 8551 fi 8552 fi 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568xorg_testset_save_CFLAGS="$CFLAGS" 8569 8570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578/* end confdefs.h. */ 8579int i; 8580_ACEOF 8581if ac_fn_c_try_compile "$LINENO"; then : 8582 xorg_cv_cc_flag_unknown_warning_option=yes 8583else 8584 xorg_cv_cc_flag_unknown_warning_option=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8587fi 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592fi 8593 8594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8597 fi 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO"; then : 8609 xorg_cv_cc_flag_unused_command_line_argument=yes 8610else 8611 xorg_cv_cc_flag_unused_command_line_argument=no 8612fi 8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619fi 8620 8621found="no" 8622 8623 if test $found = "no" ; then 8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8626 fi 8627 8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8630 fi 8631 8632 CFLAGS="$CFLAGS -Wnonnull" 8633 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8635$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8636 cacheid=xorg_cv_cc_flag__Wnonnull 8637 if eval \${$cacheid+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642int i; 8643int 8644main () 8645{ 8646 8647 ; 8648 return 0; 8649} 8650_ACEOF 8651if ac_fn_c_try_link "$LINENO"; then : 8652 eval $cacheid=yes 8653else 8654 eval $cacheid=no 8655fi 8656rm -f core conftest.err conftest.$ac_objext \ 8657 conftest$ac_exeext conftest.$ac_ext 8658fi 8659 8660 8661 CFLAGS="$xorg_testset_save_CFLAGS" 8662 8663 eval supported=\$$cacheid 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8665$as_echo "$supported" >&6; } 8666 if test "$supported" = "yes" ; then 8667 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8668 found="yes" 8669 fi 8670 fi 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686xorg_testset_save_CFLAGS="$CFLAGS" 8687 8688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697int i; 8698_ACEOF 8699if ac_fn_c_try_compile "$LINENO"; then : 8700 xorg_cv_cc_flag_unknown_warning_option=yes 8701else 8702 xorg_cv_cc_flag_unknown_warning_option=no 8703fi 8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8705fi 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8709 CFLAGS="$xorg_testset_save_CFLAGS" 8710fi 8711 8712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 fi 8716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721else 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723/* end confdefs.h. */ 8724int i; 8725_ACEOF 8726if ac_fn_c_try_compile "$LINENO"; then : 8727 xorg_cv_cc_flag_unused_command_line_argument=yes 8728else 8729 xorg_cv_cc_flag_unused_command_line_argument=no 8730fi 8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8732fi 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737fi 8738 8739found="no" 8740 8741 if test $found = "no" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8748 fi 8749 8750 CFLAGS="$CFLAGS -Winit-self" 8751 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8753$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8754 cacheid=xorg_cv_cc_flag__Winit_self 8755 if eval \${$cacheid+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757else 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759/* end confdefs.h. */ 8760int i; 8761int 8762main () 8763{ 8764 8765 ; 8766 return 0; 8767} 8768_ACEOF 8769if ac_fn_c_try_link "$LINENO"; then : 8770 eval $cacheid=yes 8771else 8772 eval $cacheid=no 8773fi 8774rm -f core conftest.err conftest.$ac_objext \ 8775 conftest$ac_exeext conftest.$ac_ext 8776fi 8777 8778 8779 CFLAGS="$xorg_testset_save_CFLAGS" 8780 8781 eval supported=\$$cacheid 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8783$as_echo "$supported" >&6; } 8784 if test "$supported" = "yes" ; then 8785 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8786 found="yes" 8787 fi 8788 fi 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804xorg_testset_save_CFLAGS="$CFLAGS" 8805 8806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815int i; 8816_ACEOF 8817if ac_fn_c_try_compile "$LINENO"; then : 8818 xorg_cv_cc_flag_unknown_warning_option=yes 8819else 8820 xorg_cv_cc_flag_unknown_warning_option=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8823fi 8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828fi 8829 8830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8833 fi 8834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843_ACEOF 8844if ac_fn_c_try_compile "$LINENO"; then : 8845 xorg_cv_cc_flag_unused_command_line_argument=yes 8846else 8847 xorg_cv_cc_flag_unused_command_line_argument=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8850fi 8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855fi 8856 8857found="no" 8858 8859 if test $found = "no" ; then 8860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8862 fi 8863 8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8866 fi 8867 8868 CFLAGS="$CFLAGS -Wmain" 8869 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8871$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8872 cacheid=xorg_cv_cc_flag__Wmain 8873 if eval \${$cacheid+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878int i; 8879int 8880main () 8881{ 8882 8883 ; 8884 return 0; 8885} 8886_ACEOF 8887if ac_fn_c_try_link "$LINENO"; then : 8888 eval $cacheid=yes 8889else 8890 eval $cacheid=no 8891fi 8892rm -f core conftest.err conftest.$ac_objext \ 8893 conftest$ac_exeext conftest.$ac_ext 8894fi 8895 8896 8897 CFLAGS="$xorg_testset_save_CFLAGS" 8898 8899 eval supported=\$$cacheid 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8901$as_echo "$supported" >&6; } 8902 if test "$supported" = "yes" ; then 8903 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8904 found="yes" 8905 fi 8906 fi 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922xorg_testset_save_CFLAGS="$CFLAGS" 8923 8924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934_ACEOF 8935if ac_fn_c_try_compile "$LINENO"; then : 8936 xorg_cv_cc_flag_unknown_warning_option=yes 8937else 8938 xorg_cv_cc_flag_unknown_warning_option=no 8939fi 8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8941fi 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8945 CFLAGS="$xorg_testset_save_CFLAGS" 8946fi 8947 8948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8951 fi 8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO"; then : 8963 xorg_cv_cc_flag_unused_command_line_argument=yes 8964else 8965 xorg_cv_cc_flag_unused_command_line_argument=no 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973fi 8974 8975found="no" 8976 8977 if test $found = "no" ; then 8978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8980 fi 8981 8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8984 fi 8985 8986 CFLAGS="$CFLAGS -Wmissing-braces" 8987 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8989$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8990 cacheid=xorg_cv_cc_flag__Wmissing_braces 8991 if eval \${$cacheid+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996int i; 8997int 8998main () 8999{ 9000 9001 ; 9002 return 0; 9003} 9004_ACEOF 9005if ac_fn_c_try_link "$LINENO"; then : 9006 eval $cacheid=yes 9007else 9008 eval $cacheid=no 9009fi 9010rm -f core conftest.err conftest.$ac_objext \ 9011 conftest$ac_exeext conftest.$ac_ext 9012fi 9013 9014 9015 CFLAGS="$xorg_testset_save_CFLAGS" 9016 9017 eval supported=\$$cacheid 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9019$as_echo "$supported" >&6; } 9020 if test "$supported" = "yes" ; then 9021 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9022 found="yes" 9023 fi 9024 fi 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040xorg_testset_save_CFLAGS="$CFLAGS" 9041 9042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051int i; 9052_ACEOF 9053if ac_fn_c_try_compile "$LINENO"; then : 9054 xorg_cv_cc_flag_unknown_warning_option=yes 9055else 9056 xorg_cv_cc_flag_unknown_warning_option=no 9057fi 9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9059fi 9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064fi 9065 9066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9069 fi 9070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079_ACEOF 9080if ac_fn_c_try_compile "$LINENO"; then : 9081 xorg_cv_cc_flag_unused_command_line_argument=yes 9082else 9083 xorg_cv_cc_flag_unused_command_line_argument=no 9084fi 9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086fi 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091fi 9092 9093found="no" 9094 9095 if test $found = "no" ; then 9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9098 fi 9099 9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9102 fi 9103 9104 CFLAGS="$CFLAGS -Wsequence-point" 9105 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9107$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9108 cacheid=xorg_cv_cc_flag__Wsequence_point 9109 if eval \${$cacheid+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113/* end confdefs.h. */ 9114int i; 9115int 9116main () 9117{ 9118 9119 ; 9120 return 0; 9121} 9122_ACEOF 9123if ac_fn_c_try_link "$LINENO"; then : 9124 eval $cacheid=yes 9125else 9126 eval $cacheid=no 9127fi 9128rm -f core conftest.err conftest.$ac_objext \ 9129 conftest$ac_exeext conftest.$ac_ext 9130fi 9131 9132 9133 CFLAGS="$xorg_testset_save_CFLAGS" 9134 9135 eval supported=\$$cacheid 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9137$as_echo "$supported" >&6; } 9138 if test "$supported" = "yes" ; then 9139 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9140 found="yes" 9141 fi 9142 fi 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158xorg_testset_save_CFLAGS="$CFLAGS" 9159 9160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166else 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO"; then : 9172 xorg_cv_cc_flag_unknown_warning_option=yes 9173else 9174 xorg_cv_cc_flag_unknown_warning_option=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9177fi 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182fi 9183 9184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9187 fi 9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196int i; 9197_ACEOF 9198if ac_fn_c_try_compile "$LINENO"; then : 9199 xorg_cv_cc_flag_unused_command_line_argument=yes 9200else 9201 xorg_cv_cc_flag_unused_command_line_argument=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9204fi 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211found="no" 9212 9213 if test $found = "no" ; then 9214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 fi 9217 9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9220 fi 9221 9222 CFLAGS="$CFLAGS -Wreturn-type" 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9225$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9226 cacheid=xorg_cv_cc_flag__Wreturn_type 9227 if eval \${$cacheid+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229else 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233int 9234main () 9235{ 9236 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241if ac_fn_c_try_link "$LINENO"; then : 9242 eval $cacheid=yes 9243else 9244 eval $cacheid=no 9245fi 9246rm -f core conftest.err conftest.$ac_objext \ 9247 conftest$ac_exeext conftest.$ac_ext 9248fi 9249 9250 9251 CFLAGS="$xorg_testset_save_CFLAGS" 9252 9253 eval supported=\$$cacheid 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9255$as_echo "$supported" >&6; } 9256 if test "$supported" = "yes" ; then 9257 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9258 found="yes" 9259 fi 9260 fi 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276xorg_testset_save_CFLAGS="$CFLAGS" 9277 9278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int i; 9288_ACEOF 9289if ac_fn_c_try_compile "$LINENO"; then : 9290 xorg_cv_cc_flag_unknown_warning_option=yes 9291else 9292 xorg_cv_cc_flag_unknown_warning_option=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9295fi 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300fi 9301 9302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9305 fi 9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_cc_flag_unused_command_line_argument=yes 9318else 9319 xorg_cv_cc_flag_unused_command_line_argument=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327fi 9328 9329found="no" 9330 9331 if test $found = "no" ; then 9332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9334 fi 9335 9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9338 fi 9339 9340 CFLAGS="$CFLAGS -Wtrigraphs" 9341 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9343$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9344 cacheid=xorg_cv_cc_flag__Wtrigraphs 9345 if eval \${$cacheid+:} false; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351int 9352main () 9353{ 9354 9355 ; 9356 return 0; 9357} 9358_ACEOF 9359if ac_fn_c_try_link "$LINENO"; then : 9360 eval $cacheid=yes 9361else 9362 eval $cacheid=no 9363fi 9364rm -f core conftest.err conftest.$ac_objext \ 9365 conftest$ac_exeext conftest.$ac_ext 9366fi 9367 9368 9369 CFLAGS="$xorg_testset_save_CFLAGS" 9370 9371 eval supported=\$$cacheid 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9373$as_echo "$supported" >&6; } 9374 if test "$supported" = "yes" ; then 9375 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9376 found="yes" 9377 fi 9378 fi 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394xorg_testset_save_CFLAGS="$CFLAGS" 9395 9396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406_ACEOF 9407if ac_fn_c_try_compile "$LINENO"; then : 9408 xorg_cv_cc_flag_unknown_warning_option=yes 9409else 9410 xorg_cv_cc_flag_unknown_warning_option=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9413fi 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9417 CFLAGS="$xorg_testset_save_CFLAGS" 9418fi 9419 9420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9423 fi 9424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433_ACEOF 9434if ac_fn_c_try_compile "$LINENO"; then : 9435 xorg_cv_cc_flag_unused_command_line_argument=yes 9436else 9437 xorg_cv_cc_flag_unused_command_line_argument=no 9438fi 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445fi 9446 9447found="no" 9448 9449 if test $found = "no" ; then 9450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9452 fi 9453 9454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9456 fi 9457 9458 CFLAGS="$CFLAGS -Warray-bounds" 9459 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9461$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9462 cacheid=xorg_cv_cc_flag__Warray_bounds 9463 if eval \${$cacheid+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468int i; 9469int 9470main () 9471{ 9472 9473 ; 9474 return 0; 9475} 9476_ACEOF 9477if ac_fn_c_try_link "$LINENO"; then : 9478 eval $cacheid=yes 9479else 9480 eval $cacheid=no 9481fi 9482rm -f core conftest.err conftest.$ac_objext \ 9483 conftest$ac_exeext conftest.$ac_ext 9484fi 9485 9486 9487 CFLAGS="$xorg_testset_save_CFLAGS" 9488 9489 eval supported=\$$cacheid 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9491$as_echo "$supported" >&6; } 9492 if test "$supported" = "yes" ; then 9493 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9494 found="yes" 9495 fi 9496 fi 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512xorg_testset_save_CFLAGS="$CFLAGS" 9513 9514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9518if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524_ACEOF 9525if ac_fn_c_try_compile "$LINENO"; then : 9526 xorg_cv_cc_flag_unknown_warning_option=yes 9527else 9528 xorg_cv_cc_flag_unknown_warning_option=no 9529fi 9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9531fi 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9533$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536fi 9537 9538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9541 fi 9542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9544$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9545if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9546 $as_echo_n "(cached) " >&6 9547else 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO"; then : 9553 xorg_cv_cc_flag_unused_command_line_argument=yes 9554else 9555 xorg_cv_cc_flag_unused_command_line_argument=no 9556fi 9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558fi 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9560$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563fi 9564 9565found="no" 9566 9567 if test $found = "no" ; then 9568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9570 fi 9571 9572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9574 fi 9575 9576 CFLAGS="$CFLAGS -Wwrite-strings" 9577 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9579$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9580 cacheid=xorg_cv_cc_flag__Wwrite_strings 9581 if eval \${$cacheid+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586int i; 9587int 9588main () 9589{ 9590 9591 ; 9592 return 0; 9593} 9594_ACEOF 9595if ac_fn_c_try_link "$LINENO"; then : 9596 eval $cacheid=yes 9597else 9598 eval $cacheid=no 9599fi 9600rm -f core conftest.err conftest.$ac_objext \ 9601 conftest$ac_exeext conftest.$ac_ext 9602fi 9603 9604 9605 CFLAGS="$xorg_testset_save_CFLAGS" 9606 9607 eval supported=\$$cacheid 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9609$as_echo "$supported" >&6; } 9610 if test "$supported" = "yes" ; then 9611 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9612 found="yes" 9613 fi 9614 fi 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630xorg_testset_save_CFLAGS="$CFLAGS" 9631 9632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641int i; 9642_ACEOF 9643if ac_fn_c_try_compile "$LINENO"; then : 9644 xorg_cv_cc_flag_unknown_warning_option=yes 9645else 9646 xorg_cv_cc_flag_unknown_warning_option=no 9647fi 9648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9649fi 9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654fi 9655 9656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9659 fi 9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669_ACEOF 9670if ac_fn_c_try_compile "$LINENO"; then : 9671 xorg_cv_cc_flag_unused_command_line_argument=yes 9672else 9673 xorg_cv_cc_flag_unused_command_line_argument=no 9674fi 9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9676fi 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681fi 9682 9683found="no" 9684 9685 if test $found = "no" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 fi 9693 9694 CFLAGS="$CFLAGS -Waddress" 9695 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9697$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9698 cacheid=xorg_cv_cc_flag__Waddress 9699 if eval \${$cacheid+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705int 9706main () 9707{ 9708 9709 ; 9710 return 0; 9711} 9712_ACEOF 9713if ac_fn_c_try_link "$LINENO"; then : 9714 eval $cacheid=yes 9715else 9716 eval $cacheid=no 9717fi 9718rm -f core conftest.err conftest.$ac_objext \ 9719 conftest$ac_exeext conftest.$ac_ext 9720fi 9721 9722 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724 9725 eval supported=\$$cacheid 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9727$as_echo "$supported" >&6; } 9728 if test "$supported" = "yes" ; then 9729 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9730 found="yes" 9731 fi 9732 fi 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748xorg_testset_save_CFLAGS="$CFLAGS" 9749 9750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760_ACEOF 9761if ac_fn_c_try_compile "$LINENO"; then : 9762 xorg_cv_cc_flag_unknown_warning_option=yes 9763else 9764 xorg_cv_cc_flag_unknown_warning_option=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9767fi 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772fi 9773 9774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 fi 9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO"; then : 9789 xorg_cv_cc_flag_unused_command_line_argument=yes 9790else 9791 xorg_cv_cc_flag_unused_command_line_argument=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9794fi 9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799fi 9800 9801found="no" 9802 9803 if test $found = "no" ; then 9804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9806 fi 9807 9808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9810 fi 9811 9812 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9813 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9815$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9816 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9817 if eval \${$cacheid+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9821/* end confdefs.h. */ 9822int i; 9823int 9824main () 9825{ 9826 9827 ; 9828 return 0; 9829} 9830_ACEOF 9831if ac_fn_c_try_link "$LINENO"; then : 9832 eval $cacheid=yes 9833else 9834 eval $cacheid=no 9835fi 9836rm -f core conftest.err conftest.$ac_objext \ 9837 conftest$ac_exeext conftest.$ac_ext 9838fi 9839 9840 9841 CFLAGS="$xorg_testset_save_CFLAGS" 9842 9843 eval supported=\$$cacheid 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9845$as_echo "$supported" >&6; } 9846 if test "$supported" = "yes" ; then 9847 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9848 found="yes" 9849 fi 9850 fi 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866xorg_testset_save_CFLAGS="$CFLAGS" 9867 9868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878_ACEOF 9879if ac_fn_c_try_compile "$LINENO"; then : 9880 xorg_cv_cc_flag_unknown_warning_option=yes 9881else 9882 xorg_cv_cc_flag_unknown_warning_option=no 9883fi 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9885fi 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890fi 9891 9892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9895 fi 9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901else 9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9903/* end confdefs.h. */ 9904int i; 9905_ACEOF 9906if ac_fn_c_try_compile "$LINENO"; then : 9907 xorg_cv_cc_flag_unused_command_line_argument=yes 9908else 9909 xorg_cv_cc_flag_unused_command_line_argument=no 9910fi 9911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9912fi 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917fi 9918 9919found="no" 9920 9921 if test $found = "no" ; then 9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9924 fi 9925 9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9928 fi 9929 9930 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9931 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9933$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9934 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9935 if eval \${$cacheid+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940int i; 9941int 9942main () 9943{ 9944 9945 ; 9946 return 0; 9947} 9948_ACEOF 9949if ac_fn_c_try_link "$LINENO"; then : 9950 eval $cacheid=yes 9951else 9952 eval $cacheid=no 9953fi 9954rm -f core conftest.err conftest.$ac_objext \ 9955 conftest$ac_exeext conftest.$ac_ext 9956fi 9957 9958 9959 CFLAGS="$xorg_testset_save_CFLAGS" 9960 9961 eval supported=\$$cacheid 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9963$as_echo "$supported" >&6; } 9964 if test "$supported" = "yes" ; then 9965 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9966 found="yes" 9967 fi 9968 fi 9969 9970 9971fi 9972 9973 9974 9975 9976 9977 9978 9979 CWARNFLAGS="$BASE_CFLAGS" 9980 if test "x$GCC" = xyes ; then 9981 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9982 fi 9983 9984 9985 9986 9987 9988 9989 9990 9991# Check whether --enable-strict-compilation was given. 9992if test "${enable_strict_compilation+set}" = set; then : 9993 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9994else 9995 STRICT_COMPILE=no 9996fi 9997 9998 9999 10000 10001 10002 10003STRICT_CFLAGS="" 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 -pedantic" 10082 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10084$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10085 cacheid=xorg_cv_cc_flag__pedantic 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 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10117 found="yes" 10118 fi 10119 fi 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135xorg_testset_save_CFLAGS="$CFLAGS" 10136 10137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10145/* end confdefs.h. */ 10146int i; 10147_ACEOF 10148if ac_fn_c_try_compile "$LINENO"; then : 10149 xorg_cv_cc_flag_unknown_warning_option=yes 10150else 10151 xorg_cv_cc_flag_unknown_warning_option=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159fi 10160 10161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 fi 10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10169 $as_echo_n "(cached) " >&6 10170else 10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10172/* end confdefs.h. */ 10173int i; 10174_ACEOF 10175if ac_fn_c_try_compile "$LINENO"; then : 10176 xorg_cv_cc_flag_unused_command_line_argument=yes 10177else 10178 xorg_cv_cc_flag_unused_command_line_argument=no 10179fi 10180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10181fi 10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186fi 10187 10188found="no" 10189 10190 if test $found = "no" ; then 10191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10193 fi 10194 10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10197 fi 10198 10199 CFLAGS="$CFLAGS -Werror" 10200 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10202$as_echo_n "checking if $CC supports -Werror... " >&6; } 10203 cacheid=xorg_cv_cc_flag__Werror 10204 if eval \${$cacheid+:} false; then : 10205 $as_echo_n "(cached) " >&6 10206else 10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209int i; 10210int 10211main () 10212{ 10213 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218if ac_fn_c_try_link "$LINENO"; then : 10219 eval $cacheid=yes 10220else 10221 eval $cacheid=no 10222fi 10223rm -f core conftest.err conftest.$ac_objext \ 10224 conftest$ac_exeext conftest.$ac_ext 10225fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232$as_echo "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10235 found="yes" 10236 fi 10237 fi 10238 10239 if test $found = "no" ; then 10240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 fi 10243 10244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10246 fi 10247 10248 CFLAGS="$CFLAGS -errwarn" 10249 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10251$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10252 cacheid=xorg_cv_cc_flag__errwarn 10253 if eval \${$cacheid+:} false; then : 10254 $as_echo_n "(cached) " >&6 10255else 10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257/* end confdefs.h. */ 10258int i; 10259int 10260main () 10261{ 10262 10263 ; 10264 return 0; 10265} 10266_ACEOF 10267if ac_fn_c_try_link "$LINENO"; then : 10268 eval $cacheid=yes 10269else 10270 eval $cacheid=no 10271fi 10272rm -f core conftest.err conftest.$ac_objext \ 10273 conftest$ac_exeext conftest.$ac_ext 10274fi 10275 10276 10277 CFLAGS="$xorg_testset_save_CFLAGS" 10278 10279 eval supported=\$$cacheid 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10281$as_echo "$supported" >&6; } 10282 if test "$supported" = "yes" ; then 10283 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10284 found="yes" 10285 fi 10286 fi 10287 10288 10289 10290# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10291# activate it with -Werror, so we add it here explicitly. 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305xorg_testset_save_CFLAGS="$CFLAGS" 10306 10307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315/* end confdefs.h. */ 10316int i; 10317_ACEOF 10318if ac_fn_c_try_compile "$LINENO"; then : 10319 xorg_cv_cc_flag_unknown_warning_option=yes 10320else 10321 xorg_cv_cc_flag_unknown_warning_option=no 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10324fi 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10328 CFLAGS="$xorg_testset_save_CFLAGS" 10329fi 10330 10331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int i; 10344_ACEOF 10345if ac_fn_c_try_compile "$LINENO"; then : 10346 xorg_cv_cc_flag_unused_command_line_argument=yes 10347else 10348 xorg_cv_cc_flag_unused_command_line_argument=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10351fi 10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356fi 10357 10358found="no" 10359 10360 if test $found = "no" ; then 10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 fi 10364 10365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367 fi 10368 10369 CFLAGS="$CFLAGS -Werror=attributes" 10370 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10372$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10373 cacheid=xorg_cv_cc_flag__Werror_attributes 10374 if eval \${$cacheid+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379int i; 10380int 10381main () 10382{ 10383 10384 ; 10385 return 0; 10386} 10387_ACEOF 10388if ac_fn_c_try_link "$LINENO"; then : 10389 eval $cacheid=yes 10390else 10391 eval $cacheid=no 10392fi 10393rm -f core conftest.err conftest.$ac_objext \ 10394 conftest$ac_exeext conftest.$ac_ext 10395fi 10396 10397 10398 CFLAGS="$xorg_testset_save_CFLAGS" 10399 10400 eval supported=\$$cacheid 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10402$as_echo "$supported" >&6; } 10403 if test "$supported" = "yes" ; then 10404 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10405 found="yes" 10406 fi 10407 fi 10408 10409 10410 10411if test "x$STRICT_COMPILE" = "xyes"; then 10412 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10413 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10414fi 10415 10416 10417 10418 10419 10420 10421cat >>confdefs.h <<_ACEOF 10422#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10423_ACEOF 10424 10425 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10426 if test "x$PVM" = "x"; then 10427 PVM="0" 10428 fi 10429 10430cat >>confdefs.h <<_ACEOF 10431#define PACKAGE_VERSION_MINOR $PVM 10432_ACEOF 10433 10434 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10435 if test "x$PVP" = "x"; then 10436 PVP="0" 10437 fi 10438 10439cat >>confdefs.h <<_ACEOF 10440#define PACKAGE_VERSION_PATCHLEVEL $PVP 10441_ACEOF 10442 10443 10444 10445CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10446mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10447|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10448echo 'git directory not found: installing possibly empty changelog.' >&2)" 10449 10450 10451 10452 10453macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10454INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10455mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10456|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10457echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10458 10459 10460 10461 10462 10463 10464if test x$APP_MAN_SUFFIX = x ; then 10465 APP_MAN_SUFFIX=1 10466fi 10467if test x$APP_MAN_DIR = x ; then 10468 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10469fi 10470 10471if test x$LIB_MAN_SUFFIX = x ; then 10472 LIB_MAN_SUFFIX=3 10473fi 10474if test x$LIB_MAN_DIR = x ; then 10475 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10476fi 10477 10478if test x$FILE_MAN_SUFFIX = x ; then 10479 case $host_os in 10480 solaris*) FILE_MAN_SUFFIX=4 ;; 10481 *) FILE_MAN_SUFFIX=5 ;; 10482 esac 10483fi 10484if test x$FILE_MAN_DIR = x ; then 10485 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10486fi 10487 10488if test x$MISC_MAN_SUFFIX = x ; then 10489 case $host_os in 10490 solaris*) MISC_MAN_SUFFIX=5 ;; 10491 *) MISC_MAN_SUFFIX=7 ;; 10492 esac 10493fi 10494if test x$MISC_MAN_DIR = x ; then 10495 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10496fi 10497 10498if test x$DRIVER_MAN_SUFFIX = x ; then 10499 case $host_os in 10500 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10501 *) DRIVER_MAN_SUFFIX=4 ;; 10502 esac 10503fi 10504if test x$DRIVER_MAN_DIR = x ; then 10505 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10506fi 10507 10508if test x$ADMIN_MAN_SUFFIX = x ; then 10509 case $host_os in 10510 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10511 *) ADMIN_MAN_SUFFIX=8 ;; 10512 esac 10513fi 10514if test x$ADMIN_MAN_DIR = x ; then 10515 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10516fi 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532XORG_MAN_PAGE="X Version 11" 10533 10534MAN_SUBSTS="\ 10535 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10536 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10537 -e 's|__xservername__|Xorg|g' \ 10538 -e 's|__xconfigfile__|xorg.conf|g' \ 10539 -e 's|__projectroot__|\$(prefix)|g' \ 10540 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10541 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10542 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10543 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10544 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10545 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10546 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10547 10548 10549 10550# Check whether --enable-silent-rules was given. 10551if test "${enable_silent_rules+set}" = set; then : 10552 enableval=$enable_silent_rules; 10553fi 10554 10555case $enable_silent_rules in # ((( 10556 yes) AM_DEFAULT_VERBOSITY=0;; 10557 no) AM_DEFAULT_VERBOSITY=1;; 10558 *) AM_DEFAULT_VERBOSITY=0;; 10559esac 10560am_make=${MAKE-make} 10561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10562$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10563if ${am_cv_make_support_nested_variables+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 if $as_echo 'TRUE=$(BAR$(V)) 10567BAR0=false 10568BAR1=true 10569V=1 10570am__doit: 10571 @$(TRUE) 10572.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10573 am_cv_make_support_nested_variables=yes 10574else 10575 am_cv_make_support_nested_variables=no 10576fi 10577fi 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10579$as_echo "$am_cv_make_support_nested_variables" >&6; } 10580if test $am_cv_make_support_nested_variables = yes; then 10581 AM_V='$(V)' 10582 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10583else 10584 AM_V=$AM_DEFAULT_VERBOSITY 10585 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10586fi 10587AM_BACKSLASH='\' 10588 10589 10590 10591ac_config_headers="$ac_config_headers config.h" 10592 10593 10594if test -n "$ac_tool_prefix"; then 10595 for ac_prog in ar lib "link -lib" 10596 do 10597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10598set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10600$as_echo_n "checking for $ac_word... " >&6; } 10601if ${ac_cv_prog_AR+:} false; then : 10602 $as_echo_n "(cached) " >&6 10603else 10604 if test -n "$AR"; then 10605 ac_cv_prog_AR="$AR" # Let the user override the test. 10606else 10607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10608for as_dir in $PATH 10609do 10610 IFS=$as_save_IFS 10611 test -z "$as_dir" && as_dir=. 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10614 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10616 break 2 10617 fi 10618done 10619 done 10620IFS=$as_save_IFS 10621 10622fi 10623fi 10624AR=$ac_cv_prog_AR 10625if test -n "$AR"; then 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10627$as_echo "$AR" >&6; } 10628else 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10630$as_echo "no" >&6; } 10631fi 10632 10633 10634 test -n "$AR" && break 10635 done 10636fi 10637if test -z "$AR"; then 10638 ac_ct_AR=$AR 10639 for ac_prog in ar lib "link -lib" 10640do 10641 # Extract the first word of "$ac_prog", so it can be a program name with args. 10642set dummy $ac_prog; ac_word=$2 10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10644$as_echo_n "checking for $ac_word... " >&6; } 10645if ${ac_cv_prog_ac_ct_AR+:} false; then : 10646 $as_echo_n "(cached) " >&6 10647else 10648 if test -n "$ac_ct_AR"; then 10649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10650else 10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10652for as_dir in $PATH 10653do 10654 IFS=$as_save_IFS 10655 test -z "$as_dir" && as_dir=. 10656 for ac_exec_ext in '' $ac_executable_extensions; do 10657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10658 ac_cv_prog_ac_ct_AR="$ac_prog" 10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10660 break 2 10661 fi 10662done 10663 done 10664IFS=$as_save_IFS 10665 10666fi 10667fi 10668ac_ct_AR=$ac_cv_prog_ac_ct_AR 10669if test -n "$ac_ct_AR"; then 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10671$as_echo "$ac_ct_AR" >&6; } 10672else 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10674$as_echo "no" >&6; } 10675fi 10676 10677 10678 test -n "$ac_ct_AR" && break 10679done 10680 10681 if test "x$ac_ct_AR" = x; then 10682 AR="false" 10683 else 10684 case $cross_compiling:$ac_tool_warned in 10685yes:) 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10688ac_tool_warned=yes ;; 10689esac 10690 AR=$ac_ct_AR 10691 fi 10692fi 10693 10694: ${AR=ar} 10695 10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 10697$as_echo_n "checking the archiver ($AR) interface... " >&6; } 10698if ${am_cv_ar_interface+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 am_cv_ar_interface=ar 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704int some_variable = 0; 10705_ACEOF 10706if ac_fn_c_try_compile "$LINENO"; then : 10707 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 10708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 10709 (eval $am_ar_try) 2>&5 10710 ac_status=$? 10711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10712 test $ac_status = 0; } 10713 if test "$ac_status" -eq 0; then 10714 am_cv_ar_interface=ar 10715 else 10716 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 10717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 10718 (eval $am_ar_try) 2>&5 10719 ac_status=$? 10720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10721 test $ac_status = 0; } 10722 if test "$ac_status" -eq 0; then 10723 am_cv_ar_interface=lib 10724 else 10725 am_cv_ar_interface=unknown 10726 fi 10727 fi 10728 rm -f conftest.lib libconftest.a 10729 10730fi 10731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10732 10733fi 10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 10735$as_echo "$am_cv_ar_interface" >&6; } 10736 10737case $am_cv_ar_interface in 10738ar) 10739 ;; 10740lib) 10741 # Microsoft lib, so override with the ar-lib wrapper script. 10742 # FIXME: It is wrong to rewrite AR. 10743 # But if we don't then we get into trouble of one sort or another. 10744 # A longer-term fix would be to have automake use am__AR in this case, 10745 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 10746 # similar. 10747 AR="$am_aux_dir/ar-lib $AR" 10748 ;; 10749unknown) 10750 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 10751 ;; 10752esac 10753 10754if test -n "$ac_tool_prefix"; then 10755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10756set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10758$as_echo_n "checking for $ac_word... " >&6; } 10759if ${ac_cv_prog_RANLIB+:} false; then : 10760 $as_echo_n "(cached) " >&6 10761else 10762 if test -n "$RANLIB"; then 10763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10764else 10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10766for as_dir in $PATH 10767do 10768 IFS=$as_save_IFS 10769 test -z "$as_dir" && as_dir=. 10770 for ac_exec_ext in '' $ac_executable_extensions; do 10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10774 break 2 10775 fi 10776done 10777 done 10778IFS=$as_save_IFS 10779 10780fi 10781fi 10782RANLIB=$ac_cv_prog_RANLIB 10783if test -n "$RANLIB"; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10785$as_echo "$RANLIB" >&6; } 10786else 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10788$as_echo "no" >&6; } 10789fi 10790 10791 10792fi 10793if test -z "$ac_cv_prog_RANLIB"; then 10794 ac_ct_RANLIB=$RANLIB 10795 # Extract the first word of "ranlib", so it can be a program name with args. 10796set dummy ranlib; ac_word=$2 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10798$as_echo_n "checking for $ac_word... " >&6; } 10799if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 if test -n "$ac_ct_RANLIB"; then 10803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10804else 10805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10806for as_dir in $PATH 10807do 10808 IFS=$as_save_IFS 10809 test -z "$as_dir" && as_dir=. 10810 for ac_exec_ext in '' $ac_executable_extensions; do 10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10812 ac_cv_prog_ac_ct_RANLIB="ranlib" 10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10814 break 2 10815 fi 10816done 10817 done 10818IFS=$as_save_IFS 10819 10820fi 10821fi 10822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10823if test -n "$ac_ct_RANLIB"; then 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10825$as_echo "$ac_ct_RANLIB" >&6; } 10826else 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10828$as_echo "no" >&6; } 10829fi 10830 10831 if test "x$ac_ct_RANLIB" = x; then 10832 RANLIB=":" 10833 else 10834 case $cross_compiling:$ac_tool_warned in 10835yes:) 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10838ac_tool_warned=yes ;; 10839esac 10840 RANLIB=$ac_ct_RANLIB 10841 fi 10842else 10843 RANLIB="$ac_cv_prog_RANLIB" 10844fi 10845 10846 10847 10848 10849 10850 10851 10852 10853if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10854 if test -n "$ac_tool_prefix"; then 10855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10856set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10858$as_echo_n "checking for $ac_word... " >&6; } 10859if ${ac_cv_path_PKG_CONFIG+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 case $PKG_CONFIG in 10863 [\\/]* | ?:[\\/]*) 10864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10865 ;; 10866 *) 10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10868for as_dir in $PATH 10869do 10870 IFS=$as_save_IFS 10871 test -z "$as_dir" && as_dir=. 10872 for ac_exec_ext in '' $ac_executable_extensions; do 10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10876 break 2 10877 fi 10878done 10879 done 10880IFS=$as_save_IFS 10881 10882 ;; 10883esac 10884fi 10885PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10886if test -n "$PKG_CONFIG"; then 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10888$as_echo "$PKG_CONFIG" >&6; } 10889else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10891$as_echo "no" >&6; } 10892fi 10893 10894 10895fi 10896if test -z "$ac_cv_path_PKG_CONFIG"; then 10897 ac_pt_PKG_CONFIG=$PKG_CONFIG 10898 # Extract the first word of "pkg-config", so it can be a program name with args. 10899set dummy pkg-config; ac_word=$2 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10901$as_echo_n "checking for $ac_word... " >&6; } 10902if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10903 $as_echo_n "(cached) " >&6 10904else 10905 case $ac_pt_PKG_CONFIG in 10906 [\\/]* | ?:[\\/]*) 10907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10908 ;; 10909 *) 10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10911for as_dir in $PATH 10912do 10913 IFS=$as_save_IFS 10914 test -z "$as_dir" && as_dir=. 10915 for ac_exec_ext in '' $ac_executable_extensions; do 10916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10919 break 2 10920 fi 10921done 10922 done 10923IFS=$as_save_IFS 10924 10925 ;; 10926esac 10927fi 10928ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10929if test -n "$ac_pt_PKG_CONFIG"; then 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10931$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10932else 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10934$as_echo "no" >&6; } 10935fi 10936 10937 if test "x$ac_pt_PKG_CONFIG" = x; then 10938 PKG_CONFIG="" 10939 else 10940 case $cross_compiling:$ac_tool_warned in 10941yes:) 10942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10944ac_tool_warned=yes ;; 10945esac 10946 PKG_CONFIG=$ac_pt_PKG_CONFIG 10947 fi 10948else 10949 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10950fi 10951 10952fi 10953if test -n "$PKG_CONFIG"; then 10954 _pkg_min_version=0.9.0 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10956$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10957 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10959$as_echo "yes" >&6; } 10960 else 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10962$as_echo "no" >&6; } 10963 PKG_CONFIG="" 10964 fi 10965fi 10966 10967 10968pkg_failed=no 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5 10970$as_echo_n "checking for PKGDEPS... " >&6; } 10971 10972if test -n "$PKGDEPS_CFLAGS"; then 10973 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS" 10974 elif test -n "$PKG_CONFIG"; then 10975 if test -n "$PKG_CONFIG" && \ 10976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 10977 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 10978 ac_status=$? 10979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10980 test $ac_status = 0; }; then 10981 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 10982 test "x$?" != "x0" && pkg_failed=yes 10983else 10984 pkg_failed=yes 10985fi 10986 else 10987 pkg_failed=untried 10988fi 10989if test -n "$PKGDEPS_LIBS"; then 10990 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS" 10991 elif test -n "$PKG_CONFIG"; then 10992 if test -n "$PKG_CONFIG" && \ 10993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 10994 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 10995 ac_status=$? 10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10997 test $ac_status = 0; }; then 10998 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 10999 test "x$?" != "x0" && pkg_failed=yes 11000else 11001 pkg_failed=yes 11002fi 11003 else 11004 pkg_failed=untried 11005fi 11006 11007 11008 11009if test $pkg_failed = yes; then 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11011$as_echo "no" >&6; } 11012 11013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11014 _pkg_short_errors_supported=yes 11015else 11016 _pkg_short_errors_supported=no 11017fi 11018 if test $_pkg_short_errors_supported = yes; then 11019 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1` 11020 else 11021 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1` 11022 fi 11023 # Put the nasty error message in config.log where it belongs 11024 echo "$PKGDEPS_PKG_ERRORS" >&5 11025 11026 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met: 11027 11028$PKGDEPS_PKG_ERRORS 11029 11030Consider adjusting the PKG_CONFIG_PATH environment variable if you 11031installed software in a non-standard prefix. 11032 11033Alternatively, you may set the environment variables PKGDEPS_CFLAGS 11034and PKGDEPS_LIBS to avoid the need to call pkg-config. 11035See the pkg-config man page for more details." "$LINENO" 5 11036elif test $pkg_failed = untried; then 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11038$as_echo "no" >&6; } 11039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11041as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11042is in your PATH or set the PKG_CONFIG environment variable to the full 11043path to pkg-config. 11044 11045Alternatively, you may set the environment variables PKGDEPS_CFLAGS 11046and PKGDEPS_LIBS to avoid the need to call pkg-config. 11047See the pkg-config man page for more details. 11048 11049To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11050See \`config.log' for more details" "$LINENO" 5; } 11051else 11052 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS 11053 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11055$as_echo "yes" >&6; } 11056 11057fi 11058 11059 11060# Check whether --with-lispdir was given. 11061if test "${with_lispdir+set}" = set; then : 11062 withval=$with_lispdir; lispdir="$withval" 11063else 11064 lispdir=${libdir}/X11/xedit/lisp 11065fi 11066 11067LISPDIR=$lispdir 11068 11069 11070ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default" 11071if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then : 11072 ac_have_decl=1 11073else 11074 ac_have_decl=0 11075fi 11076 11077cat >>confdefs.h <<_ACEOF 11078#define HAVE_DECL__SC_PAGESIZE $ac_have_decl 11079_ACEOF 11080 11081for ac_func in getpagesize 11082do : 11083 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11084if test "x$ac_cv_func_getpagesize" = xyes; then : 11085 cat >>confdefs.h <<_ACEOF 11086#define HAVE_GETPAGESIZE 1 11087_ACEOF 11088 11089fi 11090done 11091 11092 11093ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 11094if test "x$ac_cv_func_realpath" = xyes; then : 11095 11096else 11097 have_realpath=yes 11098fi 11099 11100 if test x$have_realpath = xyes; then 11101 NEED_REALPATH_TRUE= 11102 NEED_REALPATH_FALSE='#' 11103else 11104 NEED_REALPATH_TRUE='#' 11105 NEED_REALPATH_FALSE= 11106fi 11107 11108ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11109if test "x$ac_cv_func_strcasecmp" = xyes; then : 11110 11111else 11112 have_strcasecmp=yes 11113fi 11114 11115 if test x$have_strcasecmp = xyes; then 11116 NEED_STRCASECMP_TRUE= 11117 NEED_STRCASECMP_FALSE='#' 11118else 11119 NEED_STRCASECMP_TRUE='#' 11120 NEED_STRCASECMP_FALSE= 11121fi 11122 11123ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 11124if test "x$ac_cv_func_unsetenv" = xyes; then : 11125 11126else 11127 have_unsetenv=yes 11128fi 11129 11130 if test x$have_unsetenv = xyes; then 11131 NEED_UNSETENV_TRUE= 11132 NEED_UNSETENV_FALSE='#' 11133else 11134 NEED_UNSETENV_TRUE='#' 11135 NEED_UNSETENV_FALSE= 11136fi 11137 11138 11139 11140pkg_failed=no 11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11142$as_echo_n "checking for APPDEFS... " >&6; } 11143 11144if test -n "$APPDEFS_CFLAGS"; then 11145 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11146 elif test -n "$PKG_CONFIG"; then 11147 if test -n "$PKG_CONFIG" && \ 11148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11149 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11150 ac_status=$? 11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11152 test $ac_status = 0; }; then 11153 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11154 test "x$?" != "x0" && pkg_failed=yes 11155else 11156 pkg_failed=yes 11157fi 11158 else 11159 pkg_failed=untried 11160fi 11161if test -n "$APPDEFS_LIBS"; then 11162 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11163 elif test -n "$PKG_CONFIG"; then 11164 if test -n "$PKG_CONFIG" && \ 11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11166 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11167 ac_status=$? 11168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11169 test $ac_status = 0; }; then 11170 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11171 test "x$?" != "x0" && pkg_failed=yes 11172else 11173 pkg_failed=yes 11174fi 11175 else 11176 pkg_failed=untried 11177fi 11178 11179 11180 11181if test $pkg_failed = yes; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11183$as_echo "no" >&6; } 11184 11185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11186 _pkg_short_errors_supported=yes 11187else 11188 _pkg_short_errors_supported=no 11189fi 11190 if test $_pkg_short_errors_supported = yes; then 11191 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11192 else 11193 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11194 fi 11195 # Put the nasty error message in config.log where it belongs 11196 echo "$APPDEFS_PKG_ERRORS" >&5 11197 11198 as_fn_error $? "Package requirements (xt) were not met: 11199 11200$APPDEFS_PKG_ERRORS 11201 11202Consider adjusting the PKG_CONFIG_PATH environment variable if you 11203installed software in a non-standard prefix. 11204 11205Alternatively, you may set the environment variables APPDEFS_CFLAGS 11206and APPDEFS_LIBS to avoid the need to call pkg-config. 11207See the pkg-config man page for more details." "$LINENO" 5 11208elif test $pkg_failed = untried; then 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210$as_echo "no" >&6; } 11211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11213as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11214is in your PATH or set the PKG_CONFIG environment variable to the full 11215path to pkg-config. 11216 11217Alternatively, you may set the environment variables APPDEFS_CFLAGS 11218and APPDEFS_LIBS to avoid the need to call pkg-config. 11219See the pkg-config man page for more details. 11220 11221To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11222See \`config.log' for more details" "$LINENO" 5; } 11223else 11224 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11225 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11227$as_echo "yes" >&6; } 11228 11229fi 11230xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11231 11232# Check whether --with-appdefaultdir was given. 11233if test "${with_appdefaultdir+set}" = set; then : 11234 withval=$with_appdefaultdir; appdefaultdir="$withval" 11235else 11236 appdefaultdir="${xt_appdefaultdir}" 11237fi 11238 11239 11240 11241 11242ac_config_files="$ac_config_files Makefile man/Makefile" 11243 11244cat >confcache <<\_ACEOF 11245# This file is a shell script that caches the results of configure 11246# tests run on this system so they can be shared between configure 11247# scripts and configure runs, see configure's option --config-cache. 11248# It is not useful on other systems. If it contains results you don't 11249# want to keep, you may remove or edit it. 11250# 11251# config.status only pays attention to the cache file if you give it 11252# the --recheck option to rerun configure. 11253# 11254# `ac_cv_env_foo' variables (set or unset) will be overridden when 11255# loading this file, other *unset* `ac_cv_foo' will be assigned the 11256# following values. 11257 11258_ACEOF 11259 11260# The following way of writing the cache mishandles newlines in values, 11261# but we know of no workaround that is simple, portable, and efficient. 11262# So, we kill variables containing newlines. 11263# Ultrix sh set writes to stderr and can't be redirected directly, 11264# and sets the high bit in the cache file unless we assign to the vars. 11265( 11266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11267 eval ac_val=\$$ac_var 11268 case $ac_val in #( 11269 *${as_nl}*) 11270 case $ac_var in #( 11271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11272$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11273 esac 11274 case $ac_var in #( 11275 _ | IFS | as_nl) ;; #( 11276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11277 *) { eval $ac_var=; unset $ac_var;} ;; 11278 esac ;; 11279 esac 11280 done 11281 11282 (set) 2>&1 | 11283 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11284 *${as_nl}ac_space=\ *) 11285 # `set' does not quote correctly, so add quotes: double-quote 11286 # substitution turns \\\\ into \\, and sed turns \\ into \. 11287 sed -n \ 11288 "s/'/'\\\\''/g; 11289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11290 ;; #( 11291 *) 11292 # `set' quotes correctly as required by POSIX, so do not add quotes. 11293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11294 ;; 11295 esac | 11296 sort 11297) | 11298 sed ' 11299 /^ac_cv_env_/b end 11300 t clear 11301 :clear 11302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11303 t end 11304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11305 :end' >>confcache 11306if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11307 if test -w "$cache_file"; then 11308 if test "x$cache_file" != "x/dev/null"; then 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11310$as_echo "$as_me: updating cache $cache_file" >&6;} 11311 if test ! -f "$cache_file" || test -h "$cache_file"; then 11312 cat confcache >"$cache_file" 11313 else 11314 case $cache_file in #( 11315 */* | ?:*) 11316 mv -f confcache "$cache_file"$$ && 11317 mv -f "$cache_file"$$ "$cache_file" ;; #( 11318 *) 11319 mv -f confcache "$cache_file" ;; 11320 esac 11321 fi 11322 fi 11323 else 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11325$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11326 fi 11327fi 11328rm -f confcache 11329 11330test "x$prefix" = xNONE && prefix=$ac_default_prefix 11331# Let make expand exec_prefix. 11332test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11333 11334DEFS=-DHAVE_CONFIG_H 11335 11336ac_libobjs= 11337ac_ltlibobjs= 11338U= 11339for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11340 # 1. Remove the extension, and $U if already installed. 11341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11342 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11344 # will be set to the directory where LIBOBJS objects are built. 11345 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11346 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11347done 11348LIBOBJS=$ac_libobjs 11349 11350LTLIBOBJS=$ac_ltlibobjs 11351 11352 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11354$as_echo_n "checking that generated files are newer than configure... " >&6; } 11355 if test -n "$am_sleep_pid"; then 11356 # Hide warnings about reused PIDs. 11357 wait $am_sleep_pid 2>/dev/null 11358 fi 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11360$as_echo "done" >&6; } 11361 if test -n "$EXEEXT"; then 11362 am__EXEEXT_TRUE= 11363 am__EXEEXT_FALSE='#' 11364else 11365 am__EXEEXT_TRUE='#' 11366 am__EXEEXT_FALSE= 11367fi 11368 11369if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11370 as_fn_error $? "conditional \"AMDEP\" was never defined. 11371Usually this means the macro was only invoked conditionally." "$LINENO" 5 11372fi 11373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11374 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11375Usually this means the macro was only invoked conditionally." "$LINENO" 5 11376fi 11377if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then 11378 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined. 11379Usually this means the macro was only invoked conditionally." "$LINENO" 5 11380fi 11381if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then 11382 as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined. 11383Usually this means the macro was only invoked conditionally." "$LINENO" 5 11384fi 11385if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then 11386 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined. 11387Usually this means the macro was only invoked conditionally." "$LINENO" 5 11388fi 11389 11390: "${CONFIG_STATUS=./config.status}" 11391ac_write_fail=0 11392ac_clean_files_save=$ac_clean_files 11393ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11395$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11396as_write_fail=0 11397cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11398#! $SHELL 11399# Generated by $as_me. 11400# Run this file to recreate the current configuration. 11401# Compiler output produced by configure, useful for debugging 11402# configure, is in config.log if it exists. 11403 11404debug=false 11405ac_cs_recheck=false 11406ac_cs_silent=false 11407 11408SHELL=\${CONFIG_SHELL-$SHELL} 11409export SHELL 11410_ASEOF 11411cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11412## -------------------- ## 11413## M4sh Initialization. ## 11414## -------------------- ## 11415 11416# Be more Bourne compatible 11417DUALCASE=1; export DUALCASE # for MKS sh 11418if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11419 emulate sh 11420 NULLCMD=: 11421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11422 # is contrary to our usage. Disable this feature. 11423 alias -g '${1+"$@"}'='"$@"' 11424 setopt NO_GLOB_SUBST 11425else 11426 case `(set -o) 2>/dev/null` in #( 11427 *posix*) : 11428 set -o posix ;; #( 11429 *) : 11430 ;; 11431esac 11432fi 11433 11434 11435as_nl=' 11436' 11437export as_nl 11438# Printing a long string crashes Solaris 7 /usr/bin/printf. 11439as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11440as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11441as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11442# Prefer a ksh shell builtin over an external printf program on Solaris, 11443# but without wasting forks for bash or zsh. 11444if test -z "$BASH_VERSION$ZSH_VERSION" \ 11445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11446 as_echo='print -r --' 11447 as_echo_n='print -rn --' 11448elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11449 as_echo='printf %s\n' 11450 as_echo_n='printf %s' 11451else 11452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11454 as_echo_n='/usr/ucb/echo -n' 11455 else 11456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11457 as_echo_n_body='eval 11458 arg=$1; 11459 case $arg in #( 11460 *"$as_nl"*) 11461 expr "X$arg" : "X\\(.*\\)$as_nl"; 11462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11463 esac; 11464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11465 ' 11466 export as_echo_n_body 11467 as_echo_n='sh -c $as_echo_n_body as_echo' 11468 fi 11469 export as_echo_body 11470 as_echo='sh -c $as_echo_body as_echo' 11471fi 11472 11473# The user is always right. 11474if test "${PATH_SEPARATOR+set}" != set; then 11475 PATH_SEPARATOR=: 11476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11478 PATH_SEPARATOR=';' 11479 } 11480fi 11481 11482 11483# IFS 11484# We need space, tab and new line, in precisely that order. Quoting is 11485# there to prevent editors from complaining about space-tab. 11486# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11487# splitting by setting IFS to empty value.) 11488IFS=" "" $as_nl" 11489 11490# Find who we are. Look in the path if we contain no directory separator. 11491as_myself= 11492case $0 in #(( 11493 *[\\/]* ) as_myself=$0 ;; 11494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11495for as_dir in $PATH 11496do 11497 IFS=$as_save_IFS 11498 test -z "$as_dir" && as_dir=. 11499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11500 done 11501IFS=$as_save_IFS 11502 11503 ;; 11504esac 11505# We did not find ourselves, most probably we were run as `sh COMMAND' 11506# in which case we are not to be found in the path. 11507if test "x$as_myself" = x; then 11508 as_myself=$0 11509fi 11510if test ! -f "$as_myself"; then 11511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11512 exit 1 11513fi 11514 11515# Unset variables that we do not need and which cause bugs (e.g. in 11516# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11517# suppresses any "Segmentation fault" message there. '((' could 11518# trigger a bug in pdksh 5.2.14. 11519for as_var in BASH_ENV ENV MAIL MAILPATH 11520do eval test x\${$as_var+set} = xset \ 11521 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11522done 11523PS1='$ ' 11524PS2='> ' 11525PS4='+ ' 11526 11527# NLS nuisances. 11528LC_ALL=C 11529export LC_ALL 11530LANGUAGE=C 11531export LANGUAGE 11532 11533# CDPATH. 11534(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11535 11536 11537# as_fn_error STATUS ERROR [LINENO LOG_FD] 11538# ---------------------------------------- 11539# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11540# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11541# script with STATUS, using 1 if that was 0. 11542as_fn_error () 11543{ 11544 as_status=$1; test $as_status -eq 0 && as_status=1 11545 if test "$4"; then 11546 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11547 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11548 fi 11549 $as_echo "$as_me: error: $2" >&2 11550 as_fn_exit $as_status 11551} # as_fn_error 11552 11553 11554# as_fn_set_status STATUS 11555# ----------------------- 11556# Set $? to STATUS, without forking. 11557as_fn_set_status () 11558{ 11559 return $1 11560} # as_fn_set_status 11561 11562# as_fn_exit STATUS 11563# ----------------- 11564# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11565as_fn_exit () 11566{ 11567 set +e 11568 as_fn_set_status $1 11569 exit $1 11570} # as_fn_exit 11571 11572# as_fn_unset VAR 11573# --------------- 11574# Portably unset VAR. 11575as_fn_unset () 11576{ 11577 { eval $1=; unset $1;} 11578} 11579as_unset=as_fn_unset 11580# as_fn_append VAR VALUE 11581# ---------------------- 11582# Append the text in VALUE to the end of the definition contained in VAR. Take 11583# advantage of any shell optimizations that allow amortized linear growth over 11584# repeated appends, instead of the typical quadratic growth present in naive 11585# implementations. 11586if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11587 eval 'as_fn_append () 11588 { 11589 eval $1+=\$2 11590 }' 11591else 11592 as_fn_append () 11593 { 11594 eval $1=\$$1\$2 11595 } 11596fi # as_fn_append 11597 11598# as_fn_arith ARG... 11599# ------------------ 11600# Perform arithmetic evaluation on the ARGs, and store the result in the 11601# global $as_val. Take advantage of shells that can avoid forks. The arguments 11602# must be portable across $(()) and expr. 11603if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11604 eval 'as_fn_arith () 11605 { 11606 as_val=$(( $* )) 11607 }' 11608else 11609 as_fn_arith () 11610 { 11611 as_val=`expr "$@" || test $? -eq 1` 11612 } 11613fi # as_fn_arith 11614 11615 11616if expr a : '\(a\)' >/dev/null 2>&1 && 11617 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11618 as_expr=expr 11619else 11620 as_expr=false 11621fi 11622 11623if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11624 as_basename=basename 11625else 11626 as_basename=false 11627fi 11628 11629if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11630 as_dirname=dirname 11631else 11632 as_dirname=false 11633fi 11634 11635as_me=`$as_basename -- "$0" || 11636$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11637 X"$0" : 'X\(//\)$' \| \ 11638 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11639$as_echo X/"$0" | 11640 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11641 s//\1/ 11642 q 11643 } 11644 /^X\/\(\/\/\)$/{ 11645 s//\1/ 11646 q 11647 } 11648 /^X\/\(\/\).*/{ 11649 s//\1/ 11650 q 11651 } 11652 s/.*/./; q'` 11653 11654# Avoid depending upon Character Ranges. 11655as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11656as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11657as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11658as_cr_digits='0123456789' 11659as_cr_alnum=$as_cr_Letters$as_cr_digits 11660 11661ECHO_C= ECHO_N= ECHO_T= 11662case `echo -n x` in #((((( 11663-n*) 11664 case `echo 'xy\c'` in 11665 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11666 xy) ECHO_C='\c';; 11667 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11668 ECHO_T=' ';; 11669 esac;; 11670*) 11671 ECHO_N='-n';; 11672esac 11673 11674rm -f conf$$ conf$$.exe conf$$.file 11675if test -d conf$$.dir; then 11676 rm -f conf$$.dir/conf$$.file 11677else 11678 rm -f conf$$.dir 11679 mkdir conf$$.dir 2>/dev/null 11680fi 11681if (echo >conf$$.file) 2>/dev/null; then 11682 if ln -s conf$$.file conf$$ 2>/dev/null; then 11683 as_ln_s='ln -s' 11684 # ... but there are two gotchas: 11685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11687 # In both cases, we have to default to `cp -pR'. 11688 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11689 as_ln_s='cp -pR' 11690 elif ln conf$$.file conf$$ 2>/dev/null; then 11691 as_ln_s=ln 11692 else 11693 as_ln_s='cp -pR' 11694 fi 11695else 11696 as_ln_s='cp -pR' 11697fi 11698rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11699rmdir conf$$.dir 2>/dev/null 11700 11701 11702# as_fn_mkdir_p 11703# ------------- 11704# Create "$as_dir" as a directory, including parents if necessary. 11705as_fn_mkdir_p () 11706{ 11707 11708 case $as_dir in #( 11709 -*) as_dir=./$as_dir;; 11710 esac 11711 test -d "$as_dir" || eval $as_mkdir_p || { 11712 as_dirs= 11713 while :; do 11714 case $as_dir in #( 11715 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11716 *) as_qdir=$as_dir;; 11717 esac 11718 as_dirs="'$as_qdir' $as_dirs" 11719 as_dir=`$as_dirname -- "$as_dir" || 11720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11721 X"$as_dir" : 'X\(//\)[^/]' \| \ 11722 X"$as_dir" : 'X\(//\)$' \| \ 11723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11724$as_echo X"$as_dir" | 11725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11726 s//\1/ 11727 q 11728 } 11729 /^X\(\/\/\)[^/].*/{ 11730 s//\1/ 11731 q 11732 } 11733 /^X\(\/\/\)$/{ 11734 s//\1/ 11735 q 11736 } 11737 /^X\(\/\).*/{ 11738 s//\1/ 11739 q 11740 } 11741 s/.*/./; q'` 11742 test -d "$as_dir" && break 11743 done 11744 test -z "$as_dirs" || eval "mkdir $as_dirs" 11745 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11746 11747 11748} # as_fn_mkdir_p 11749if mkdir -p . 2>/dev/null; then 11750 as_mkdir_p='mkdir -p "$as_dir"' 11751else 11752 test -d ./-p && rmdir ./-p 11753 as_mkdir_p=false 11754fi 11755 11756 11757# as_fn_executable_p FILE 11758# ----------------------- 11759# Test if FILE is an executable regular file. 11760as_fn_executable_p () 11761{ 11762 test -f "$1" && test -x "$1" 11763} # as_fn_executable_p 11764as_test_x='test -x' 11765as_executable_p=as_fn_executable_p 11766 11767# Sed expression to map a string onto a valid CPP name. 11768as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11769 11770# Sed expression to map a string onto a valid variable name. 11771as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11772 11773 11774exec 6>&1 11775## ----------------------------------- ## 11776## Main body of $CONFIG_STATUS script. ## 11777## ----------------------------------- ## 11778_ASEOF 11779test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11780 11781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11782# Save the log message, to keep $0 and so on meaningful, and to 11783# report actual input values of CONFIG_FILES etc. instead of their 11784# values after options handling. 11785ac_log=" 11786This file was extended by xedit $as_me 1.2.2, which was 11787generated by GNU Autoconf 2.69. Invocation command line was 11788 11789 CONFIG_FILES = $CONFIG_FILES 11790 CONFIG_HEADERS = $CONFIG_HEADERS 11791 CONFIG_LINKS = $CONFIG_LINKS 11792 CONFIG_COMMANDS = $CONFIG_COMMANDS 11793 $ $0 $@ 11794 11795on `(hostname || uname -n) 2>/dev/null | sed 1q` 11796" 11797 11798_ACEOF 11799 11800case $ac_config_files in *" 11801"*) set x $ac_config_files; shift; ac_config_files=$*;; 11802esac 11803 11804case $ac_config_headers in *" 11805"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11806esac 11807 11808 11809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11810# Files that config.status was made for. 11811config_files="$ac_config_files" 11812config_headers="$ac_config_headers" 11813config_commands="$ac_config_commands" 11814 11815_ACEOF 11816 11817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11818ac_cs_usage="\ 11819\`$as_me' instantiates files and other configuration actions 11820from templates according to the current configuration. Unless the files 11821and actions are specified as TAGs, all are instantiated by default. 11822 11823Usage: $0 [OPTION]... [TAG]... 11824 11825 -h, --help print this help, then exit 11826 -V, --version print version number and configuration settings, then exit 11827 --config print configuration, then exit 11828 -q, --quiet, --silent 11829 do not print progress messages 11830 -d, --debug don't remove temporary files 11831 --recheck update $as_me by reconfiguring in the same conditions 11832 --file=FILE[:TEMPLATE] 11833 instantiate the configuration file FILE 11834 --header=FILE[:TEMPLATE] 11835 instantiate the configuration header FILE 11836 11837Configuration files: 11838$config_files 11839 11840Configuration headers: 11841$config_headers 11842 11843Configuration commands: 11844$config_commands 11845 11846Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11847 11848_ACEOF 11849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11850ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11851ac_cs_version="\\ 11852xedit config.status 1.2.2 11853configured by $0, generated by GNU Autoconf 2.69, 11854 with options \\"\$ac_cs_config\\" 11855 11856Copyright (C) 2012 Free Software Foundation, Inc. 11857This config.status script is free software; the Free Software Foundation 11858gives unlimited permission to copy, distribute and modify it." 11859 11860ac_pwd='$ac_pwd' 11861srcdir='$srcdir' 11862INSTALL='$INSTALL' 11863MKDIR_P='$MKDIR_P' 11864AWK='$AWK' 11865test -n "\$AWK" || AWK=awk 11866_ACEOF 11867 11868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11869# The default lists apply if the user does not specify any file. 11870ac_need_defaults=: 11871while test $# != 0 11872do 11873 case $1 in 11874 --*=?*) 11875 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11877 ac_shift=: 11878 ;; 11879 --*=) 11880 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11881 ac_optarg= 11882 ac_shift=: 11883 ;; 11884 *) 11885 ac_option=$1 11886 ac_optarg=$2 11887 ac_shift=shift 11888 ;; 11889 esac 11890 11891 case $ac_option in 11892 # Handling of the options. 11893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11894 ac_cs_recheck=: ;; 11895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11896 $as_echo "$ac_cs_version"; exit ;; 11897 --config | --confi | --conf | --con | --co | --c ) 11898 $as_echo "$ac_cs_config"; exit ;; 11899 --debug | --debu | --deb | --de | --d | -d ) 11900 debug=: ;; 11901 --file | --fil | --fi | --f ) 11902 $ac_shift 11903 case $ac_optarg in 11904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11905 '') as_fn_error $? "missing file argument" ;; 11906 esac 11907 as_fn_append CONFIG_FILES " '$ac_optarg'" 11908 ac_need_defaults=false;; 11909 --header | --heade | --head | --hea ) 11910 $ac_shift 11911 case $ac_optarg in 11912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11913 esac 11914 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11915 ac_need_defaults=false;; 11916 --he | --h) 11917 # Conflict between --help and --header 11918 as_fn_error $? "ambiguous option: \`$1' 11919Try \`$0 --help' for more information.";; 11920 --help | --hel | -h ) 11921 $as_echo "$ac_cs_usage"; exit ;; 11922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11923 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11924 ac_cs_silent=: ;; 11925 11926 # This is an error. 11927 -*) as_fn_error $? "unrecognized option: \`$1' 11928Try \`$0 --help' for more information." ;; 11929 11930 *) as_fn_append ac_config_targets " $1" 11931 ac_need_defaults=false ;; 11932 11933 esac 11934 shift 11935done 11936 11937ac_configure_extra_args= 11938 11939if $ac_cs_silent; then 11940 exec 6>/dev/null 11941 ac_configure_extra_args="$ac_configure_extra_args --silent" 11942fi 11943 11944_ACEOF 11945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11946if \$ac_cs_recheck; then 11947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11948 shift 11949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11950 CONFIG_SHELL='$SHELL' 11951 export CONFIG_SHELL 11952 exec "\$@" 11953fi 11954 11955_ACEOF 11956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11957exec 5>>config.log 11958{ 11959 echo 11960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11961## Running $as_me. ## 11962_ASBOX 11963 $as_echo "$ac_log" 11964} >&5 11965 11966_ACEOF 11967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11968# 11969# INIT-COMMANDS 11970# 11971AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11972 11973_ACEOF 11974 11975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11976 11977# Handling of arguments. 11978for ac_config_target in $ac_config_targets 11979do 11980 case $ac_config_target in 11981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11982 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11983 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11984 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11985 11986 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11987 esac 11988done 11989 11990 11991# If the user did not use the arguments to specify the items to instantiate, 11992# then the envvar interface is used. Set only those that are not. 11993# We use the long form for the default assignment because of an extremely 11994# bizarre bug on SunOS 4.1.3. 11995if $ac_need_defaults; then 11996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11999fi 12000 12001# Have a temporary directory for convenience. Make it in the build tree 12002# simply because there is no reason against having it here, and in addition, 12003# creating and moving files from /tmp can sometimes cause problems. 12004# Hook for its removal unless debugging. 12005# Note that there is a small window in which the directory will not be cleaned: 12006# after its creation but before its name has been assigned to `$tmp'. 12007$debug || 12008{ 12009 tmp= ac_tmp= 12010 trap 'exit_status=$? 12011 : "${ac_tmp:=$tmp}" 12012 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12013' 0 12014 trap 'as_fn_exit 1' 1 2 13 15 12015} 12016# Create a (secure) tmp directory for tmp files. 12017 12018{ 12019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12020 test -d "$tmp" 12021} || 12022{ 12023 tmp=./conf$$-$RANDOM 12024 (umask 077 && mkdir "$tmp") 12025} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12026ac_tmp=$tmp 12027 12028# Set up the scripts for CONFIG_FILES section. 12029# No need to generate them if there are no CONFIG_FILES. 12030# This happens for instance with `./config.status config.h'. 12031if test -n "$CONFIG_FILES"; then 12032 12033 12034ac_cr=`echo X | tr X '\015'` 12035# On cygwin, bash can eat \r inside `` if the user requested igncr. 12036# But we know of no other shell where ac_cr would be empty at this 12037# point, so we can use a bashism as a fallback. 12038if test "x$ac_cr" = x; then 12039 eval ac_cr=\$\'\\r\' 12040fi 12041ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12042if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12043 ac_cs_awk_cr='\\r' 12044else 12045 ac_cs_awk_cr=$ac_cr 12046fi 12047 12048echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12049_ACEOF 12050 12051 12052{ 12053 echo "cat >conf$$subs.awk <<_ACEOF" && 12054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12055 echo "_ACEOF" 12056} >conf$$subs.sh || 12057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12058ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12059ac_delim='%!_!# ' 12060for ac_last_try in false false false false false :; do 12061 . ./conf$$subs.sh || 12062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12063 12064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12065 if test $ac_delim_n = $ac_delim_num; then 12066 break 12067 elif $ac_last_try; then 12068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12069 else 12070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12071 fi 12072done 12073rm -f conf$$subs.sh 12074 12075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12076cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12077_ACEOF 12078sed -n ' 12079h 12080s/^/S["/; s/!.*/"]=/ 12081p 12082g 12083s/^[^!]*!// 12084:repl 12085t repl 12086s/'"$ac_delim"'$// 12087t delim 12088:nl 12089h 12090s/\(.\{148\}\)..*/\1/ 12091t more1 12092s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12093p 12094n 12095b repl 12096:more1 12097s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12098p 12099g 12100s/.\{148\}// 12101t nl 12102:delim 12103h 12104s/\(.\{148\}\)..*/\1/ 12105t more2 12106s/["\\]/\\&/g; s/^/"/; s/$/"/ 12107p 12108b 12109:more2 12110s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12111p 12112g 12113s/.\{148\}// 12114t delim 12115' <conf$$subs.awk | sed ' 12116/^[^""]/{ 12117 N 12118 s/\n// 12119} 12120' >>$CONFIG_STATUS || ac_write_fail=1 12121rm -f conf$$subs.awk 12122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12123_ACAWK 12124cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12125 for (key in S) S_is_set[key] = 1 12126 FS = "" 12127 12128} 12129{ 12130 line = $ 0 12131 nfields = split(line, field, "@") 12132 substed = 0 12133 len = length(field[1]) 12134 for (i = 2; i < nfields; i++) { 12135 key = field[i] 12136 keylen = length(key) 12137 if (S_is_set[key]) { 12138 value = S[key] 12139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12140 len += length(value) + length(field[++i]) 12141 substed = 1 12142 } else 12143 len += 1 + keylen 12144 } 12145 12146 print line 12147} 12148 12149_ACAWK 12150_ACEOF 12151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12152if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12153 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12154else 12155 cat 12156fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12157 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12158_ACEOF 12159 12160# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12161# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12162# trailing colons and then remove the whole line if VPATH becomes empty 12163# (actually we leave an empty line to preserve line numbers). 12164if test "x$srcdir" = x.; then 12165 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12166h 12167s/// 12168s/^/:/ 12169s/[ ]*$/:/ 12170s/:\$(srcdir):/:/g 12171s/:\${srcdir}:/:/g 12172s/:@srcdir@:/:/g 12173s/^:*// 12174s/:*$// 12175x 12176s/\(=[ ]*\).*/\1/ 12177G 12178s/\n// 12179s/^[^=]*=[ ]*$// 12180}' 12181fi 12182 12183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12184fi # test -n "$CONFIG_FILES" 12185 12186# Set up the scripts for CONFIG_HEADERS section. 12187# No need to generate them if there are no CONFIG_HEADERS. 12188# This happens for instance with `./config.status Makefile'. 12189if test -n "$CONFIG_HEADERS"; then 12190cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12191BEGIN { 12192_ACEOF 12193 12194# Transform confdefs.h into an awk script `defines.awk', embedded as 12195# here-document in config.status, that substitutes the proper values into 12196# config.h.in to produce config.h. 12197 12198# Create a delimiter string that does not exist in confdefs.h, to ease 12199# handling of long lines. 12200ac_delim='%!_!# ' 12201for ac_last_try in false false :; do 12202 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12203 if test -z "$ac_tt"; then 12204 break 12205 elif $ac_last_try; then 12206 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12207 else 12208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12209 fi 12210done 12211 12212# For the awk script, D is an array of macro values keyed by name, 12213# likewise P contains macro parameters if any. Preserve backslash 12214# newline sequences. 12215 12216ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12217sed -n ' 12218s/.\{148\}/&'"$ac_delim"'/g 12219t rset 12220:rset 12221s/^[ ]*#[ ]*define[ ][ ]*/ / 12222t def 12223d 12224:def 12225s/\\$// 12226t bsnl 12227s/["\\]/\\&/g 12228s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12229D["\1"]=" \3"/p 12230s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12231d 12232:bsnl 12233s/["\\]/\\&/g 12234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12235D["\1"]=" \3\\\\\\n"\\/p 12236t cont 12237s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12238t cont 12239d 12240:cont 12241n 12242s/.\{148\}/&'"$ac_delim"'/g 12243t clear 12244:clear 12245s/\\$// 12246t bsnlc 12247s/["\\]/\\&/g; s/^/"/; s/$/"/p 12248d 12249:bsnlc 12250s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12251b cont 12252' <confdefs.h | sed ' 12253s/'"$ac_delim"'/"\\\ 12254"/g' >>$CONFIG_STATUS || ac_write_fail=1 12255 12256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12257 for (key in D) D_is_set[key] = 1 12258 FS = "" 12259} 12260/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12261 line = \$ 0 12262 split(line, arg, " ") 12263 if (arg[1] == "#") { 12264 defundef = arg[2] 12265 mac1 = arg[3] 12266 } else { 12267 defundef = substr(arg[1], 2) 12268 mac1 = arg[2] 12269 } 12270 split(mac1, mac2, "(") #) 12271 macro = mac2[1] 12272 prefix = substr(line, 1, index(line, defundef) - 1) 12273 if (D_is_set[macro]) { 12274 # Preserve the white space surrounding the "#". 12275 print prefix "define", macro P[macro] D[macro] 12276 next 12277 } else { 12278 # Replace #undef with comments. This is necessary, for example, 12279 # in the case of _POSIX_SOURCE, which is predefined and required 12280 # on some systems where configure will not decide to define it. 12281 if (defundef == "undef") { 12282 print "/*", prefix defundef, macro, "*/" 12283 next 12284 } 12285 } 12286} 12287{ print } 12288_ACAWK 12289_ACEOF 12290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12291 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12292fi # test -n "$CONFIG_HEADERS" 12293 12294 12295eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12296shift 12297for ac_tag 12298do 12299 case $ac_tag in 12300 :[FHLC]) ac_mode=$ac_tag; continue;; 12301 esac 12302 case $ac_mode$ac_tag in 12303 :[FHL]*:*);; 12304 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12305 :[FH]-) ac_tag=-:-;; 12306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12307 esac 12308 ac_save_IFS=$IFS 12309 IFS=: 12310 set x $ac_tag 12311 IFS=$ac_save_IFS 12312 shift 12313 ac_file=$1 12314 shift 12315 12316 case $ac_mode in 12317 :L) ac_source=$1;; 12318 :[FH]) 12319 ac_file_inputs= 12320 for ac_f 12321 do 12322 case $ac_f in 12323 -) ac_f="$ac_tmp/stdin";; 12324 *) # Look for the file first in the build tree, then in the source tree 12325 # (if the path is not absolute). The absolute path cannot be DOS-style, 12326 # because $ac_f cannot contain `:'. 12327 test -f "$ac_f" || 12328 case $ac_f in 12329 [\\/$]*) false;; 12330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12331 esac || 12332 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12333 esac 12334 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12335 as_fn_append ac_file_inputs " '$ac_f'" 12336 done 12337 12338 # Let's still pretend it is `configure' which instantiates (i.e., don't 12339 # use $as_me), people would be surprised to read: 12340 # /* config.h. Generated by config.status. */ 12341 configure_input='Generated from '` 12342 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12343 `' by configure.' 12344 if test x"$ac_file" != x-; then 12345 configure_input="$ac_file. $configure_input" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12347$as_echo "$as_me: creating $ac_file" >&6;} 12348 fi 12349 # Neutralize special characters interpreted by sed in replacement strings. 12350 case $configure_input in #( 12351 *\&* | *\|* | *\\* ) 12352 ac_sed_conf_input=`$as_echo "$configure_input" | 12353 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12354 *) ac_sed_conf_input=$configure_input;; 12355 esac 12356 12357 case $ac_tag in 12358 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12360 esac 12361 ;; 12362 esac 12363 12364 ac_dir=`$as_dirname -- "$ac_file" || 12365$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12366 X"$ac_file" : 'X\(//\)[^/]' \| \ 12367 X"$ac_file" : 'X\(//\)$' \| \ 12368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12369$as_echo X"$ac_file" | 12370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12371 s//\1/ 12372 q 12373 } 12374 /^X\(\/\/\)[^/].*/{ 12375 s//\1/ 12376 q 12377 } 12378 /^X\(\/\/\)$/{ 12379 s//\1/ 12380 q 12381 } 12382 /^X\(\/\).*/{ 12383 s//\1/ 12384 q 12385 } 12386 s/.*/./; q'` 12387 as_dir="$ac_dir"; as_fn_mkdir_p 12388 ac_builddir=. 12389 12390case "$ac_dir" in 12391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12392*) 12393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12394 # A ".." for each directory in $ac_dir_suffix. 12395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12396 case $ac_top_builddir_sub in 12397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12399 esac ;; 12400esac 12401ac_abs_top_builddir=$ac_pwd 12402ac_abs_builddir=$ac_pwd$ac_dir_suffix 12403# for backward compatibility: 12404ac_top_builddir=$ac_top_build_prefix 12405 12406case $srcdir in 12407 .) # We are building in place. 12408 ac_srcdir=. 12409 ac_top_srcdir=$ac_top_builddir_sub 12410 ac_abs_top_srcdir=$ac_pwd ;; 12411 [\\/]* | ?:[\\/]* ) # Absolute name. 12412 ac_srcdir=$srcdir$ac_dir_suffix; 12413 ac_top_srcdir=$srcdir 12414 ac_abs_top_srcdir=$srcdir ;; 12415 *) # Relative name. 12416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12417 ac_top_srcdir=$ac_top_build_prefix$srcdir 12418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12419esac 12420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12421 12422 12423 case $ac_mode in 12424 :F) 12425 # 12426 # CONFIG_FILE 12427 # 12428 12429 case $INSTALL in 12430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12432 esac 12433 ac_MKDIR_P=$MKDIR_P 12434 case $MKDIR_P in 12435 [\\/$]* | ?:[\\/]* ) ;; 12436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12437 esac 12438_ACEOF 12439 12440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12441# If the template does not know about datarootdir, expand it. 12442# FIXME: This hack should be removed a few years after 2.60. 12443ac_datarootdir_hack=; ac_datarootdir_seen= 12444ac_sed_dataroot=' 12445/datarootdir/ { 12446 p 12447 q 12448} 12449/@datadir@/p 12450/@docdir@/p 12451/@infodir@/p 12452/@localedir@/p 12453/@mandir@/p' 12454case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12455*datarootdir*) ac_datarootdir_seen=yes;; 12456*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12458$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12459_ACEOF 12460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12461 ac_datarootdir_hack=' 12462 s&@datadir@&$datadir&g 12463 s&@docdir@&$docdir&g 12464 s&@infodir@&$infodir&g 12465 s&@localedir@&$localedir&g 12466 s&@mandir@&$mandir&g 12467 s&\\\${datarootdir}&$datarootdir&g' ;; 12468esac 12469_ACEOF 12470 12471# Neutralize VPATH when `$srcdir' = `.'. 12472# Shell code in configure.ac might set extrasub. 12473# FIXME: do we really want to maintain this feature? 12474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12475ac_sed_extra="$ac_vpsub 12476$extrasub 12477_ACEOF 12478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12479:t 12480/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12481s|@configure_input@|$ac_sed_conf_input|;t t 12482s&@top_builddir@&$ac_top_builddir_sub&;t t 12483s&@top_build_prefix@&$ac_top_build_prefix&;t t 12484s&@srcdir@&$ac_srcdir&;t t 12485s&@abs_srcdir@&$ac_abs_srcdir&;t t 12486s&@top_srcdir@&$ac_top_srcdir&;t t 12487s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12488s&@builddir@&$ac_builddir&;t t 12489s&@abs_builddir@&$ac_abs_builddir&;t t 12490s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12491s&@INSTALL@&$ac_INSTALL&;t t 12492s&@MKDIR_P@&$ac_MKDIR_P&;t t 12493$ac_datarootdir_hack 12494" 12495eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12497 12498test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12501 "$ac_tmp/out"`; test -z "$ac_out"; } && 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12503which seems to be undefined. Please make sure it is defined" >&5 12504$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12505which seems to be undefined. Please make sure it is defined" >&2;} 12506 12507 rm -f "$ac_tmp/stdin" 12508 case $ac_file in 12509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12511 esac \ 12512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12513 ;; 12514 :H) 12515 # 12516 # CONFIG_HEADER 12517 # 12518 if test x"$ac_file" != x-; then 12519 { 12520 $as_echo "/* $configure_input */" \ 12521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12522 } >"$ac_tmp/config.h" \ 12523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12526$as_echo "$as_me: $ac_file is unchanged" >&6;} 12527 else 12528 rm -f "$ac_file" 12529 mv "$ac_tmp/config.h" "$ac_file" \ 12530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12531 fi 12532 else 12533 $as_echo "/* $configure_input */" \ 12534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12535 || as_fn_error $? "could not create -" "$LINENO" 5 12536 fi 12537# Compute "$ac_file"'s index in $config_headers. 12538_am_arg="$ac_file" 12539_am_stamp_count=1 12540for _am_header in $config_headers :; do 12541 case $_am_header in 12542 $_am_arg | $_am_arg:* ) 12543 break ;; 12544 * ) 12545 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12546 esac 12547done 12548echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12549$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12550 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12551 X"$_am_arg" : 'X\(//\)$' \| \ 12552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12553$as_echo X"$_am_arg" | 12554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12555 s//\1/ 12556 q 12557 } 12558 /^X\(\/\/\)[^/].*/{ 12559 s//\1/ 12560 q 12561 } 12562 /^X\(\/\/\)$/{ 12563 s//\1/ 12564 q 12565 } 12566 /^X\(\/\).*/{ 12567 s//\1/ 12568 q 12569 } 12570 s/.*/./; q'`/stamp-h$_am_stamp_count 12571 ;; 12572 12573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12574$as_echo "$as_me: executing $ac_file commands" >&6;} 12575 ;; 12576 esac 12577 12578 12579 case $ac_file$ac_mode in 12580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12581 # Older Autoconf quotes --file arguments for eval, but not when files 12582 # are listed without --file. Let's play safe and only enable the eval 12583 # if we detect the quoting. 12584 case $CONFIG_FILES in 12585 *\'*) eval set x "$CONFIG_FILES" ;; 12586 *) set x $CONFIG_FILES ;; 12587 esac 12588 shift 12589 for mf 12590 do 12591 # Strip MF so we end up with the name of the file. 12592 mf=`echo "$mf" | sed -e 's/:.*$//'` 12593 # Check whether this is an Automake generated Makefile or not. 12594 # We used to match only the files named 'Makefile.in', but 12595 # some people rename them; so instead we look at the file content. 12596 # Grep'ing the first line is not enough: some people post-process 12597 # each Makefile.in and add a new line on top of each file to say so. 12598 # Grep'ing the whole file is not good either: AIX grep has a line 12599 # limit of 2048, but all sed's we know have understand at least 4000. 12600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12601 dirpart=`$as_dirname -- "$mf" || 12602$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12603 X"$mf" : 'X\(//\)[^/]' \| \ 12604 X"$mf" : 'X\(//\)$' \| \ 12605 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12606$as_echo X"$mf" | 12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12608 s//\1/ 12609 q 12610 } 12611 /^X\(\/\/\)[^/].*/{ 12612 s//\1/ 12613 q 12614 } 12615 /^X\(\/\/\)$/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\).*/{ 12620 s//\1/ 12621 q 12622 } 12623 s/.*/./; q'` 12624 else 12625 continue 12626 fi 12627 # Extract the definition of DEPDIR, am__include, and am__quote 12628 # from the Makefile without running 'make'. 12629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12630 test -z "$DEPDIR" && continue 12631 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12632 test -z "$am__include" && continue 12633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12634 # Find all dependency output files, they are included files with 12635 # $(DEPDIR) in their names. We invoke sed twice because it is the 12636 # simplest approach to changing $(DEPDIR) to its actual value in the 12637 # expansion. 12638 for file in `sed -n " 12639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12641 # Make sure the directory exists. 12642 test -f "$dirpart/$file" && continue 12643 fdir=`$as_dirname -- "$file" || 12644$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12645 X"$file" : 'X\(//\)[^/]' \| \ 12646 X"$file" : 'X\(//\)$' \| \ 12647 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12648$as_echo X"$file" | 12649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12650 s//\1/ 12651 q 12652 } 12653 /^X\(\/\/\)[^/].*/{ 12654 s//\1/ 12655 q 12656 } 12657 /^X\(\/\/\)$/{ 12658 s//\1/ 12659 q 12660 } 12661 /^X\(\/\).*/{ 12662 s//\1/ 12663 q 12664 } 12665 s/.*/./; q'` 12666 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12667 # echo "creating $dirpart/$file" 12668 echo '# dummy' > "$dirpart/$file" 12669 done 12670 done 12671} 12672 ;; 12673 12674 esac 12675done # for ac_tag 12676 12677 12678as_fn_exit 0 12679_ACEOF 12680ac_clean_files=$ac_clean_files_save 12681 12682test $ac_write_fail = 0 || 12683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12684 12685 12686# configure is writing to config.log, and then calls config.status. 12687# config.status does its own redirection, appending to config.log. 12688# Unfortunately, on DOS this fails, as config.log is still kept open 12689# by configure, so config.status won't be able to write to it; its 12690# output is simply discarded. So we exec the FD to /dev/null, 12691# effectively closing config.log, so it can be properly (re)opened and 12692# appended to by config.status. When coming back to configure, we 12693# need to make the FD available again. 12694if test "$no_create" != yes; then 12695 ac_cs_success=: 12696 ac_config_status_args= 12697 test "$silent" = yes && 12698 ac_config_status_args="$ac_config_status_args --quiet" 12699 exec 5>/dev/null 12700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12701 exec 5>>config.log 12702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12703 # would make configure fail if this is the last instruction. 12704 $ac_cs_success || as_fn_exit 1 12705fi 12706if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12708$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12709fi 12710 12711