configure revision 31de2854
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xedit 1.2.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xedit' 563PACKAGE_TARNAME='xedit' 564PACKAGE_VERSION='1.2.1' 565PACKAGE_STRING='xedit 1.2.1' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609appdefaultdir 610APPDEFS_LIBS 611APPDEFS_CFLAGS 612NEED_UNSETENV_FALSE 613NEED_UNSETENV_TRUE 614NEED_STRCASECMP_FALSE 615NEED_STRCASECMP_TRUE 616NEED_REALPATH_FALSE 617NEED_REALPATH_TRUE 618LISPDIR 619PKGDEPS_LIBS 620PKGDEPS_CFLAGS 621RANLIB 622AM_BACKSLASH 623AM_DEFAULT_VERBOSITY 624MAN_SUBSTS 625XORG_MAN_PAGE 626ADMIN_MAN_DIR 627DRIVER_MAN_DIR 628MISC_MAN_DIR 629FILE_MAN_DIR 630LIB_MAN_DIR 631APP_MAN_DIR 632ADMIN_MAN_SUFFIX 633DRIVER_MAN_SUFFIX 634MISC_MAN_SUFFIX 635FILE_MAN_SUFFIX 636LIB_MAN_SUFFIX 637APP_MAN_SUFFIX 638SED 639host_os 640host_vendor 641host_cpu 642host 643build_os 644build_vendor 645build_cpu 646build 647INSTALL_CMD 648PKG_CONFIG 649CHANGELOG_CMD 650STRICT_CFLAGS 651CWARNFLAGS 652BASE_CFLAGS 653EGREP 654GREP 655CPP 656am__fastdepCC_FALSE 657am__fastdepCC_TRUE 658CCDEPMODE 659am__nodep 660AMDEPBACKSLASH 661AMDEP_FALSE 662AMDEP_TRUE 663am__quote 664am__include 665DEPDIR 666OBJEXT 667EXEEXT 668ac_ct_CC 669CPPFLAGS 670LDFLAGS 671CFLAGS 672CC 673MAINT 674MAINTAINER_MODE_FALSE 675MAINTAINER_MODE_TRUE 676am__untar 677am__tar 678AMTAR 679am__leading_dot 680SET_MAKE 681AWK 682mkdir_p 683MKDIR_P 684INSTALL_STRIP_PROGRAM 685STRIP 686install_sh 687MAKEINFO 688AUTOHEADER 689AUTOMAKE 690AUTOCONF 691ACLOCAL 692VERSION 693PACKAGE 694CYGPATH_W 695am__isrc 696INSTALL_DATA 697INSTALL_SCRIPT 698INSTALL_PROGRAM 699target_alias 700host_alias 701build_alias 702LIBS 703ECHO_T 704ECHO_N 705ECHO_C 706DEFS 707mandir 708localedir 709libdir 710psdir 711pdfdir 712dvidir 713htmldir 714infodir 715docdir 716oldincludedir 717includedir 718localstatedir 719sharedstatedir 720sysconfdir 721datadir 722datarootdir 723libexecdir 724sbindir 725bindir 726program_transform_name 727prefix 728exec_prefix 729PACKAGE_URL 730PACKAGE_BUGREPORT 731PACKAGE_STRING 732PACKAGE_VERSION 733PACKAGE_TARNAME 734PACKAGE_NAME 735PATH_SEPARATOR 736SHELL' 737ac_subst_files='' 738ac_user_opts=' 739enable_option_checking 740enable_maintainer_mode 741enable_dependency_tracking 742enable_selective_werror 743enable_strict_compilation 744enable_silent_rules 745with_lispdir 746with_appdefaultdir 747' 748 ac_precious_vars='build_alias 749host_alias 750target_alias 751CC 752CFLAGS 753LDFLAGS 754LIBS 755CPPFLAGS 756CPP 757PKG_CONFIG 758PKGDEPS_CFLAGS 759PKGDEPS_LIBS 760APPDEFS_CFLAGS 761APPDEFS_LIBS' 762 763 764# Initialize some variables set by options. 765ac_init_help= 766ac_init_version=false 767ac_unrecognized_opts= 768ac_unrecognized_sep= 769# The variables have the same names as the options, with 770# dashes changed to underlines. 771cache_file=/dev/null 772exec_prefix=NONE 773no_create= 774no_recursion= 775prefix=NONE 776program_prefix=NONE 777program_suffix=NONE 778program_transform_name=s,x,x, 779silent= 780site= 781srcdir= 782verbose= 783x_includes=NONE 784x_libraries=NONE 785 786# Installation directory options. 787# These are left unexpanded so users can "make install exec_prefix=/foo" 788# and all the variables that are supposed to be based on exec_prefix 789# by default will actually change. 790# Use braces instead of parens because sh, perl, etc. also accept them. 791# (The list follows the same order as the GNU Coding Standards.) 792bindir='${exec_prefix}/bin' 793sbindir='${exec_prefix}/sbin' 794libexecdir='${exec_prefix}/libexec' 795datarootdir='${prefix}/share' 796datadir='${datarootdir}' 797sysconfdir='${prefix}/etc' 798sharedstatedir='${prefix}/com' 799localstatedir='${prefix}/var' 800includedir='${prefix}/include' 801oldincludedir='/usr/include' 802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803infodir='${datarootdir}/info' 804htmldir='${docdir}' 805dvidir='${docdir}' 806pdfdir='${docdir}' 807psdir='${docdir}' 808libdir='${exec_prefix}/lib' 809localedir='${datarootdir}/locale' 810mandir='${datarootdir}/man' 811 812ac_prev= 813ac_dashdash= 814for ac_option 815do 816 # If the previous option needs an argument, assign it. 817 if test -n "$ac_prev"; then 818 eval $ac_prev=\$ac_option 819 ac_prev= 820 continue 821 fi 822 823 case $ac_option in 824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 825 *=) ac_optarg= ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 # Accept the important Cygnus configure options, so we can diagnose typos. 830 831 case $ac_dashdash$ac_option in 832 --) 833 ac_dashdash=yes ;; 834 835 -bindir | --bindir | --bindi | --bind | --bin | --bi) 836 ac_prev=bindir ;; 837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 838 bindir=$ac_optarg ;; 839 840 -build | --build | --buil | --bui | --bu) 841 ac_prev=build_alias ;; 842 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 843 build_alias=$ac_optarg ;; 844 845 -cache-file | --cache-file | --cache-fil | --cache-fi \ 846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 847 ac_prev=cache_file ;; 848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 850 cache_file=$ac_optarg ;; 851 852 --config-cache | -C) 853 cache_file=config.cache ;; 854 855 -datadir | --datadir | --datadi | --datad) 856 ac_prev=datadir ;; 857 -datadir=* | --datadir=* | --datadi=* | --datad=*) 858 datadir=$ac_optarg ;; 859 860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 861 | --dataroo | --dataro | --datar) 862 ac_prev=datarootdir ;; 863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 865 datarootdir=$ac_optarg ;; 866 867 -disable-* | --disable-*) 868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 869 # Reject names that are not valid shell variable names. 870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 871 as_fn_error $? "invalid feature name: $ac_useropt" 872 ac_useropt_orig=$ac_useropt 873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 874 case $ac_user_opts in 875 *" 876"enable_$ac_useropt" 877"*) ;; 878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 879 ac_unrecognized_sep=', ';; 880 esac 881 eval enable_$ac_useropt=no ;; 882 883 -docdir | --docdir | --docdi | --doc | --do) 884 ac_prev=docdir ;; 885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 886 docdir=$ac_optarg ;; 887 888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 889 ac_prev=dvidir ;; 890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 891 dvidir=$ac_optarg ;; 892 893 -enable-* | --enable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=\$ac_optarg ;; 908 909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 911 | --exec | --exe | --ex) 912 ac_prev=exec_prefix ;; 913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 915 | --exec=* | --exe=* | --ex=*) 916 exec_prefix=$ac_optarg ;; 917 918 -gas | --gas | --ga | --g) 919 # Obsolete; use --with-gas. 920 with_gas=yes ;; 921 922 -help | --help | --hel | --he | -h) 923 ac_init_help=long ;; 924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 925 ac_init_help=recursive ;; 926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 927 ac_init_help=short ;; 928 929 -host | --host | --hos | --ho) 930 ac_prev=host_alias ;; 931 -host=* | --host=* | --hos=* | --ho=*) 932 host_alias=$ac_optarg ;; 933 934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 935 ac_prev=htmldir ;; 936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 937 | --ht=*) 938 htmldir=$ac_optarg ;; 939 940 -includedir | --includedir | --includedi | --included | --include \ 941 | --includ | --inclu | --incl | --inc) 942 ac_prev=includedir ;; 943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 944 | --includ=* | --inclu=* | --incl=* | --inc=*) 945 includedir=$ac_optarg ;; 946 947 -infodir | --infodir | --infodi | --infod | --info | --inf) 948 ac_prev=infodir ;; 949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 950 infodir=$ac_optarg ;; 951 952 -libdir | --libdir | --libdi | --libd) 953 ac_prev=libdir ;; 954 -libdir=* | --libdir=* | --libdi=* | --libd=*) 955 libdir=$ac_optarg ;; 956 957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 958 | --libexe | --libex | --libe) 959 ac_prev=libexecdir ;; 960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 961 | --libexe=* | --libex=* | --libe=*) 962 libexecdir=$ac_optarg ;; 963 964 -localedir | --localedir | --localedi | --localed | --locale) 965 ac_prev=localedir ;; 966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 967 localedir=$ac_optarg ;; 968 969 -localstatedir | --localstatedir | --localstatedi | --localstated \ 970 | --localstate | --localstat | --localsta | --localst | --locals) 971 ac_prev=localstatedir ;; 972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 974 localstatedir=$ac_optarg ;; 975 976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 977 ac_prev=mandir ;; 978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 979 mandir=$ac_optarg ;; 980 981 -nfp | --nfp | --nf) 982 # Obsolete; use --without-fp. 983 with_fp=no ;; 984 985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 986 | --no-cr | --no-c | -n) 987 no_create=yes ;; 988 989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 991 no_recursion=yes ;; 992 993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 995 | --oldin | --oldi | --old | --ol | --o) 996 ac_prev=oldincludedir ;; 997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1000 oldincludedir=$ac_optarg ;; 1001 1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1003 ac_prev=prefix ;; 1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1005 prefix=$ac_optarg ;; 1006 1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1008 | --program-pre | --program-pr | --program-p) 1009 ac_prev=program_prefix ;; 1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1012 program_prefix=$ac_optarg ;; 1013 1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1015 | --program-suf | --program-su | --program-s) 1016 ac_prev=program_suffix ;; 1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1019 program_suffix=$ac_optarg ;; 1020 1021 -program-transform-name | --program-transform-name \ 1022 | --program-transform-nam | --program-transform-na \ 1023 | --program-transform-n | --program-transform- \ 1024 | --program-transform | --program-transfor \ 1025 | --program-transfo | --program-transf \ 1026 | --program-trans | --program-tran \ 1027 | --progr-tra | --program-tr | --program-t) 1028 ac_prev=program_transform_name ;; 1029 -program-transform-name=* | --program-transform-name=* \ 1030 | --program-transform-nam=* | --program-transform-na=* \ 1031 | --program-transform-n=* | --program-transform-=* \ 1032 | --program-transform=* | --program-transfor=* \ 1033 | --program-transfo=* | --program-transf=* \ 1034 | --program-trans=* | --program-tran=* \ 1035 | --progr-tra=* | --program-tr=* | --program-t=*) 1036 program_transform_name=$ac_optarg ;; 1037 1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1039 ac_prev=pdfdir ;; 1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1041 pdfdir=$ac_optarg ;; 1042 1043 -psdir | --psdir | --psdi | --psd | --ps) 1044 ac_prev=psdir ;; 1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1046 psdir=$ac_optarg ;; 1047 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 silent=yes ;; 1051 1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1053 ac_prev=sbindir ;; 1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1055 | --sbi=* | --sb=*) 1056 sbindir=$ac_optarg ;; 1057 1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1060 | --sharedst | --shareds | --shared | --share | --shar \ 1061 | --sha | --sh) 1062 ac_prev=sharedstatedir ;; 1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1066 | --sha=* | --sh=*) 1067 sharedstatedir=$ac_optarg ;; 1068 1069 -site | --site | --sit) 1070 ac_prev=site ;; 1071 -site=* | --site=* | --sit=*) 1072 site=$ac_optarg ;; 1073 1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1075 ac_prev=srcdir ;; 1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1077 srcdir=$ac_optarg ;; 1078 1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1080 | --syscon | --sysco | --sysc | --sys | --sy) 1081 ac_prev=sysconfdir ;; 1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1084 sysconfdir=$ac_optarg ;; 1085 1086 -target | --target | --targe | --targ | --tar | --ta | --t) 1087 ac_prev=target_alias ;; 1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1089 target_alias=$ac_optarg ;; 1090 1091 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1092 verbose=yes ;; 1093 1094 -version | --version | --versio | --versi | --vers | -V) 1095 ac_init_version=: ;; 1096 1097 -with-* | --with-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=\$ac_optarg ;; 1112 1113 -without-* | --without-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=no ;; 1128 1129 --x) 1130 # Obsolete; use --with-x. 1131 with_x=yes ;; 1132 1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1134 | --x-incl | --x-inc | --x-in | --x-i) 1135 ac_prev=x_includes ;; 1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1138 x_includes=$ac_optarg ;; 1139 1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1142 ac_prev=x_libraries ;; 1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1145 x_libraries=$ac_optarg ;; 1146 1147 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1148Try \`$0 --help' for more information" 1149 ;; 1150 1151 *=*) 1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1153 # Reject names that are not valid shell variable names. 1154 case $ac_envvar in #( 1155 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1157 esac 1158 eval $ac_envvar=\$ac_optarg 1159 export $ac_envvar ;; 1160 1161 *) 1162 # FIXME: should be removed in autoconf 3.0. 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1167 ;; 1168 1169 esac 1170done 1171 1172if test -n "$ac_prev"; then 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1174 as_fn_error $? "missing argument to $ac_option" 1175fi 1176 1177if test -n "$ac_unrecognized_opts"; then 1178 case $enable_option_checking in 1179 no) ;; 1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1182 esac 1183fi 1184 1185# Check all directory arguments for consistency. 1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1187 datadir sysconfdir sharedstatedir localstatedir includedir \ 1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1189 libdir localedir mandir 1190do 1191 eval ac_val=\$$ac_var 1192 # Remove trailing slashes. 1193 case $ac_val in 1194 */ ) 1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1196 eval $ac_var=\$ac_val;; 1197 esac 1198 # Be sure to have absolute directory names. 1199 case $ac_val in 1200 [\\/$]* | ?:[\\/]* ) continue;; 1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1202 esac 1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1204done 1205 1206# There might be people who depend on the old broken behavior: `$host' 1207# used to hold the argument of --host etc. 1208# FIXME: To remove some day. 1209build=$build_alias 1210host=$host_alias 1211target=$target_alias 1212 1213# FIXME: To remove some day. 1214if test "x$host_alias" != x; then 1215 if test "x$build_alias" = x; then 1216 cross_compiling=maybe 1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1218 If a cross compiler is detected then cross compile mode will be used" >&2 1219 elif test "x$build_alias" != "x$host_alias"; then 1220 cross_compiling=yes 1221 fi 1222fi 1223 1224ac_tool_prefix= 1225test -n "$host_alias" && ac_tool_prefix=$host_alias- 1226 1227test "$silent" = yes && exec 6>/dev/null 1228 1229 1230ac_pwd=`pwd` && test -n "$ac_pwd" && 1231ac_ls_di=`ls -di .` && 1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1233 as_fn_error $? "working directory cannot be determined" 1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1235 as_fn_error $? "pwd does not report name of working directory" 1236 1237 1238# Find the source files, if location was not specified. 1239if test -z "$srcdir"; then 1240 ac_srcdir_defaulted=yes 1241 # Try the directory containing this script, then the parent directory. 1242 ac_confdir=`$as_dirname -- "$as_myself" || 1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1244 X"$as_myself" : 'X\(//\)[^/]' \| \ 1245 X"$as_myself" : 'X\(//\)$' \| \ 1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1247$as_echo X"$as_myself" | 1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\/\)[^/].*/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\).*/{ 1261 s//\1/ 1262 q 1263 } 1264 s/.*/./; q'` 1265 srcdir=$ac_confdir 1266 if test ! -r "$srcdir/$ac_unique_file"; then 1267 srcdir=.. 1268 fi 1269else 1270 ac_srcdir_defaulted=no 1271fi 1272if test ! -r "$srcdir/$ac_unique_file"; then 1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1275fi 1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1277ac_abs_confdir=`( 1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1279 pwd)` 1280# When building in place, set srcdir=. 1281if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283fi 1284# Remove unnecessary trailing slashes from srcdir. 1285# Double slashes in file names in object file debugging info 1286# mess up M-x gdb in Emacs. 1287case $srcdir in 1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289esac 1290for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295done 1296 1297# 1298# Report the --help message. 1299# 1300if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304\`configure' configures xedit 1.2.1 to adapt to many kinds of systems. 1305 1306Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311Defaults for the options are specified in brackets. 1312 1313Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking ...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330By default, \`make install' will install all the files in 1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333for instance \`--prefix=\$HOME'. 1334 1335For better control, use the options below. 1336 1337Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --libdir=DIR object code libraries [EPREFIX/lib] 1345 --includedir=DIR C header files [PREFIX/include] 1346 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1349 --infodir=DIR info documentation [DATAROOTDIR/info] 1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1351 --mandir=DIR man documentation [DATAROOTDIR/man] 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit] 1353 --htmldir=DIR html documentation [DOCDIR] 1354 --dvidir=DIR dvi documentation [DOCDIR] 1355 --pdfdir=DIR pdf documentation [DOCDIR] 1356 --psdir=DIR ps documentation [DOCDIR] 1357_ACEOF 1358 1359 cat <<\_ACEOF 1360 1361Program names: 1362 --program-prefix=PREFIX prepend PREFIX to installed program names 1363 --program-suffix=SUFFIX append SUFFIX to installed program names 1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1365 1366System types: 1367 --build=BUILD configure for building on BUILD [guessed] 1368 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1369_ACEOF 1370fi 1371 1372if test -n "$ac_init_help"; then 1373 case $ac_init_help in 1374 short | recursive ) echo "Configuration of xedit 1.2.1:";; 1375 esac 1376 cat <<\_ACEOF 1377 1378Optional Features: 1379 --disable-option-checking ignore unrecognized --enable/--with options 1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1382 --enable-maintainer-mode enable make rules and dependencies not useful 1383 (and sometimes confusing) to the casual installer 1384 --disable-dependency-tracking speeds up one-time build 1385 --enable-dependency-tracking do not reject slow dependency extractors 1386 --disable-selective-werror 1387 Turn off selective compiler errors. (default: 1388 enabled) 1389 --enable-strict-compilation 1390 Enable all warnings from compiler and make them 1391 errors (default: disabled) 1392 --enable-silent-rules less verbose build output (undo: `make V=1') 1393 --disable-silent-rules verbose build output (undo: `make V=0') 1394 1395Optional Packages: 1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1398 --with-lispdir=PATH Directory to install lisp files (default: 1399 $libdir/X11/xedit/lisp) 1400 --with-appdefaultdir=<pathname> 1401 specify directory for app-defaults files (default is 1402 autodetected) 1403 1404Some influential environment variables: 1405 CC C compiler command 1406 CFLAGS C compiler flags 1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1408 nonstandard directory <lib dir> 1409 LIBS libraries to pass to the linker, e.g. -l<library> 1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1411 you have headers in a nonstandard directory <include dir> 1412 CPP C preprocessor 1413 PKG_CONFIG path to pkg-config utility 1414 PKGDEPS_CFLAGS 1415 C compiler flags for PKGDEPS, overriding pkg-config 1416 PKGDEPS_LIBS 1417 linker flags for PKGDEPS, overriding pkg-config 1418 APPDEFS_CFLAGS 1419 C compiler flags for APPDEFS, overriding pkg-config 1420 APPDEFS_LIBS 1421 linker flags for APPDEFS, overriding pkg-config 1422 1423Use these variables to override the choices made by `configure' or to help 1424it to find libraries and programs with nonstandard names/locations. 1425 1426Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1427_ACEOF 1428ac_status=$? 1429fi 1430 1431if test "$ac_init_help" = "recursive"; then 1432 # If there are subdirs, report their specific --help. 1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1434 test -d "$ac_dir" || 1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1436 continue 1437 ac_builddir=. 1438 1439case "$ac_dir" in 1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441*) 1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1443 # A ".." for each directory in $ac_dir_suffix. 1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1445 case $ac_top_builddir_sub in 1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1448 esac ;; 1449esac 1450ac_abs_top_builddir=$ac_pwd 1451ac_abs_builddir=$ac_pwd$ac_dir_suffix 1452# for backward compatibility: 1453ac_top_builddir=$ac_top_build_prefix 1454 1455case $srcdir in 1456 .) # We are building in place. 1457 ac_srcdir=. 1458 ac_top_srcdir=$ac_top_builddir_sub 1459 ac_abs_top_srcdir=$ac_pwd ;; 1460 [\\/]* | ?:[\\/]* ) # Absolute name. 1461 ac_srcdir=$srcdir$ac_dir_suffix; 1462 ac_top_srcdir=$srcdir 1463 ac_abs_top_srcdir=$srcdir ;; 1464 *) # Relative name. 1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1466 ac_top_srcdir=$ac_top_build_prefix$srcdir 1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1468esac 1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1470 1471 cd "$ac_dir" || { ac_status=$?; continue; } 1472 # Check for guested configure. 1473 if test -f "$ac_srcdir/configure.gnu"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1476 elif test -f "$ac_srcdir/configure"; then 1477 echo && 1478 $SHELL "$ac_srcdir/configure" --help=recursive 1479 else 1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1481 fi || ac_status=$? 1482 cd "$ac_pwd" || { ac_status=$?; break; } 1483 done 1484fi 1485 1486test -n "$ac_init_help" && exit $ac_status 1487if $ac_init_version; then 1488 cat <<\_ACEOF 1489xedit configure 1.2.1 1490generated by GNU Autoconf 2.68 1491 1492Copyright (C) 2010 Free Software Foundation, Inc. 1493This configure script is free software; the Free Software Foundation 1494gives unlimited permission to copy, distribute and modify it. 1495_ACEOF 1496 exit 1497fi 1498 1499## ------------------------ ## 1500## Autoconf initialization. ## 1501## ------------------------ ## 1502 1503# ac_fn_c_try_compile LINENO 1504# -------------------------- 1505# Try to compile conftest.$ac_ext, and return whether this succeeded. 1506ac_fn_c_try_compile () 1507{ 1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1509 rm -f conftest.$ac_objext 1510 if { { ac_try="$ac_compile" 1511case "(($ac_try" in 1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1513 *) ac_try_echo=$ac_try;; 1514esac 1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1516$as_echo "$ac_try_echo"; } >&5 1517 (eval "$ac_compile") 2>conftest.err 1518 ac_status=$? 1519 if test -s conftest.err; then 1520 grep -v '^ *+' conftest.err >conftest.er1 1521 cat conftest.er1 >&5 1522 mv -f conftest.er1 conftest.err 1523 fi 1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1525 test $ac_status = 0; } && { 1526 test -z "$ac_c_werror_flag" || 1527 test ! -s conftest.err 1528 } && test -s conftest.$ac_objext; then : 1529 ac_retval=0 1530else 1531 $as_echo "$as_me: failed program was:" >&5 1532sed 's/^/| /' conftest.$ac_ext >&5 1533 1534 ac_retval=1 1535fi 1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1537 as_fn_set_status $ac_retval 1538 1539} # ac_fn_c_try_compile 1540 1541# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1542# --------------------------------------------- 1543# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1544# accordingly. 1545ac_fn_c_check_decl () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 as_decl_name=`echo $2|sed 's/ *(.*//'` 1549 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1551$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1552if eval \${$3+:} false; then : 1553 $as_echo_n "(cached) " >&6 1554else 1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1556/* end confdefs.h. */ 1557$4 1558int 1559main () 1560{ 1561#ifndef $as_decl_name 1562#ifdef __cplusplus 1563 (void) $as_decl_use; 1564#else 1565 (void) $as_decl_name; 1566#endif 1567#endif 1568 1569 ; 1570 return 0; 1571} 1572_ACEOF 1573if ac_fn_c_try_compile "$LINENO"; then : 1574 eval "$3=yes" 1575else 1576 eval "$3=no" 1577fi 1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1579fi 1580eval ac_res=\$$3 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1582$as_echo "$ac_res" >&6; } 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 1585} # ac_fn_c_check_decl 1586 1587# ac_fn_c_try_cpp LINENO 1588# ---------------------- 1589# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_cpp () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 if { { ac_try="$ac_cpp conftest.$ac_ext" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } > conftest.i && { 1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 }; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_cpp 1623 1624# ac_fn_c_try_run LINENO 1625# ---------------------- 1626# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1627# that executables *can* be run. 1628ac_fn_c_try_run () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 if { { ac_try="$ac_link" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_link") 2>&5 1639 ac_status=$? 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1642 { { case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_try") 2>&5 1649 ac_status=$? 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; }; }; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: program exited with status $ac_status" >&5 1655 $as_echo "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=$ac_status 1659fi 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_run 1665 1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1667# ------------------------------------------------------- 1668# Tests whether HEADER exists and can be compiled using the include files in 1669# INCLUDES, setting the cache variable VAR accordingly. 1670ac_fn_c_check_header_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681#include <$2> 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_link LINENO 1698# ----------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_link () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 rm -f conftest.$ac_objext conftest$ac_exeext 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } && { 1720 test -z "$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 } && test -s conftest$ac_exeext && { 1723 test "$cross_compiling" = yes || 1724 $as_test_x conftest$ac_exeext 1725 }; then : 1726 ac_retval=0 1727else 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=1 1732fi 1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1735 # interfere with the next link command; also delete a directory that is 1736 # left behind by Apple's compiler. We do this before executing the actions. 1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_link 1742 1743# ac_fn_c_check_func LINENO FUNC VAR 1744# ---------------------------------- 1745# Tests whether FUNC exists, setting the cache variable VAR accordingly 1746ac_fn_c_check_func () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753else 1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1758#define $2 innocuous_$2 1759 1760/* System header to define __stub macros and hopefully few prototypes, 1761 which can conflict with char $2 (); below. 1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1763 <limits.h> exists even on freestanding compilers. */ 1764 1765#ifdef __STDC__ 1766# include <limits.h> 1767#else 1768# include <assert.h> 1769#endif 1770 1771#undef $2 1772 1773/* Override any GCC internal prototype to avoid an error. 1774 Use char because int might match the return type of a GCC 1775 builtin and then its argument prototype would still apply. */ 1776#ifdef __cplusplus 1777extern "C" 1778#endif 1779char $2 (); 1780/* The GNU C library defines this for functions which it implements 1781 to always fail with ENOSYS. Some functions are actually named 1782 something starting with __ and the normal name is an alias. */ 1783#if defined __stub_$2 || defined __stub___$2 1784choke me 1785#endif 1786 1787int 1788main () 1789{ 1790return $2 (); 1791 ; 1792 return 0; 1793} 1794_ACEOF 1795if ac_fn_c_try_link "$LINENO"; then : 1796 eval "$3=yes" 1797else 1798 eval "$3=no" 1799fi 1800rm -f core conftest.err conftest.$ac_objext \ 1801 conftest$ac_exeext conftest.$ac_ext 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 1808} # ac_fn_c_check_func 1809cat >config.log <<_ACEOF 1810This file contains any messages produced by compilers while 1811running configure, to aid debugging if configure makes a mistake. 1812 1813It was created by xedit $as_me 1.2.1, which was 1814generated by GNU Autoconf 2.68. Invocation command line was 1815 1816 $ $0 $@ 1817 1818_ACEOF 1819exec 5>>config.log 1820{ 1821cat <<_ASUNAME 1822## --------- ## 1823## Platform. ## 1824## --------- ## 1825 1826hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1827uname -m = `(uname -m) 2>/dev/null || echo unknown` 1828uname -r = `(uname -r) 2>/dev/null || echo unknown` 1829uname -s = `(uname -s) 2>/dev/null || echo unknown` 1830uname -v = `(uname -v) 2>/dev/null || echo unknown` 1831 1832/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1833/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1834 1835/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1836/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1837/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1838/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1839/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1840/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1841/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1842 1843_ASUNAME 1844 1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846for as_dir in $PATH 1847do 1848 IFS=$as_save_IFS 1849 test -z "$as_dir" && as_dir=. 1850 $as_echo "PATH: $as_dir" 1851 done 1852IFS=$as_save_IFS 1853 1854} >&5 1855 1856cat >&5 <<_ACEOF 1857 1858 1859## ----------- ## 1860## Core tests. ## 1861## ----------- ## 1862 1863_ACEOF 1864 1865 1866# Keep a trace of the command line. 1867# Strip out --no-create and --no-recursion so they do not pile up. 1868# Strip out --silent because we don't want to record it for future runs. 1869# Also quote any args containing shell meta-characters. 1870# Make two passes to allow for proper duplicate-argument suppression. 1871ac_configure_args= 1872ac_configure_args0= 1873ac_configure_args1= 1874ac_must_keep_next=false 1875for ac_pass in 1 2 1876do 1877 for ac_arg 1878 do 1879 case $ac_arg in 1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1882 | -silent | --silent | --silen | --sile | --sil) 1883 continue ;; 1884 *\'*) 1885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1886 esac 1887 case $ac_pass in 1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1889 2) 1890 as_fn_append ac_configure_args1 " '$ac_arg'" 1891 if test $ac_must_keep_next = true; then 1892 ac_must_keep_next=false # Got value, back to normal. 1893 else 1894 case $ac_arg in 1895 *=* | --config-cache | -C | -disable-* | --disable-* \ 1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1898 | -with-* | --with-* | -without-* | --without-* | --x) 1899 case "$ac_configure_args0 " in 1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1901 esac 1902 ;; 1903 -* ) ac_must_keep_next=true ;; 1904 esac 1905 fi 1906 as_fn_append ac_configure_args " '$ac_arg'" 1907 ;; 1908 esac 1909 done 1910done 1911{ ac_configure_args0=; unset ac_configure_args0;} 1912{ ac_configure_args1=; unset ac_configure_args1;} 1913 1914# When interrupted or exit'd, cleanup temporary files, and complete 1915# config.log. We remove comments because anyway the quotes in there 1916# would cause problems or look ugly. 1917# WARNING: Use '\'' to represent an apostrophe within the trap. 1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1919trap 'exit_status=$? 1920 # Save into config.log some information that might help in debugging. 1921 { 1922 echo 1923 1924 $as_echo "## ---------------- ## 1925## Cache variables. ## 1926## ---------------- ##" 1927 echo 1928 # The following way of writing the cache mishandles newlines in values, 1929( 1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1931 eval ac_val=\$$ac_var 1932 case $ac_val in #( 1933 *${as_nl}*) 1934 case $ac_var in #( 1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1937 esac 1938 case $ac_var in #( 1939 _ | IFS | as_nl) ;; #( 1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1941 *) { eval $ac_var=; unset $ac_var;} ;; 1942 esac ;; 1943 esac 1944 done 1945 (set) 2>&1 | 1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1947 *${as_nl}ac_space=\ *) 1948 sed -n \ 1949 "s/'\''/'\''\\\\'\'''\''/g; 1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1951 ;; #( 1952 *) 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1954 ;; 1955 esac | 1956 sort 1957) 1958 echo 1959 1960 $as_echo "## ----------------- ## 1961## Output variables. ## 1962## ----------------- ##" 1963 echo 1964 for ac_var in $ac_subst_vars 1965 do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in 1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1969 esac 1970 $as_echo "$ac_var='\''$ac_val'\''" 1971 done | sort 1972 echo 1973 1974 if test -n "$ac_subst_files"; then 1975 $as_echo "## ------------------- ## 1976## File substitutions. ## 1977## ------------------- ##" 1978 echo 1979 for ac_var in $ac_subst_files 1980 do 1981 eval ac_val=\$$ac_var 1982 case $ac_val in 1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1984 esac 1985 $as_echo "$ac_var='\''$ac_val'\''" 1986 done | sort 1987 echo 1988 fi 1989 1990 if test -s confdefs.h; then 1991 $as_echo "## ----------- ## 1992## confdefs.h. ## 1993## ----------- ##" 1994 echo 1995 cat confdefs.h 1996 echo 1997 fi 1998 test "$ac_signal" != 0 && 1999 $as_echo "$as_me: caught signal $ac_signal" 2000 $as_echo "$as_me: exit $exit_status" 2001 } >&5 2002 rm -f core *.core core.conftest.* && 2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2004 exit $exit_status 2005' 0 2006for ac_signal in 1 2 13 15; do 2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2008done 2009ac_signal=0 2010 2011# confdefs.h avoids OS command line length limits that DEFS can exceed. 2012rm -f -r conftest* confdefs.h 2013 2014$as_echo "/* confdefs.h */" > confdefs.h 2015 2016# Predefined preprocessor variables. 2017 2018cat >>confdefs.h <<_ACEOF 2019#define PACKAGE_NAME "$PACKAGE_NAME" 2020_ACEOF 2021 2022cat >>confdefs.h <<_ACEOF 2023#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2024_ACEOF 2025 2026cat >>confdefs.h <<_ACEOF 2027#define PACKAGE_VERSION "$PACKAGE_VERSION" 2028_ACEOF 2029 2030cat >>confdefs.h <<_ACEOF 2031#define PACKAGE_STRING "$PACKAGE_STRING" 2032_ACEOF 2033 2034cat >>confdefs.h <<_ACEOF 2035#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2036_ACEOF 2037 2038cat >>confdefs.h <<_ACEOF 2039#define PACKAGE_URL "$PACKAGE_URL" 2040_ACEOF 2041 2042 2043# Let the site file select an alternate cache file if it wants to. 2044# Prefer an explicitly selected file to automatically selected ones. 2045ac_site_file1=NONE 2046ac_site_file2=NONE 2047if test -n "$CONFIG_SITE"; then 2048 # We do not want a PATH search for config.site. 2049 case $CONFIG_SITE in #(( 2050 -*) ac_site_file1=./$CONFIG_SITE;; 2051 */*) ac_site_file1=$CONFIG_SITE;; 2052 *) ac_site_file1=./$CONFIG_SITE;; 2053 esac 2054elif test "x$prefix" != xNONE; then 2055 ac_site_file1=$prefix/share/config.site 2056 ac_site_file2=$prefix/etc/config.site 2057else 2058 ac_site_file1=$ac_default_prefix/share/config.site 2059 ac_site_file2=$ac_default_prefix/etc/config.site 2060fi 2061for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2062do 2063 test "x$ac_site_file" = xNONE && continue 2064 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2066$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2067 sed 's/^/| /' "$ac_site_file" >&5 2068 . "$ac_site_file" \ 2069 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2071as_fn_error $? "failed to load site script $ac_site_file 2072See \`config.log' for more details" "$LINENO" 5; } 2073 fi 2074done 2075 2076if test -r "$cache_file"; then 2077 # Some versions of bash will fail to source /dev/null (special files 2078 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2079 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2081$as_echo "$as_me: loading cache $cache_file" >&6;} 2082 case $cache_file in 2083 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2084 *) . "./$cache_file";; 2085 esac 2086 fi 2087else 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2089$as_echo "$as_me: creating cache $cache_file" >&6;} 2090 >$cache_file 2091fi 2092 2093# Check that the precious variables saved in the cache have kept the same 2094# value. 2095ac_cache_corrupted=false 2096for ac_var in $ac_precious_vars; do 2097 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2098 eval ac_new_set=\$ac_env_${ac_var}_set 2099 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2100 eval ac_new_val=\$ac_env_${ac_var}_value 2101 case $ac_old_set,$ac_new_set in 2102 set,) 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2104$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2105 ac_cache_corrupted=: ;; 2106 ,set) 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2108$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2109 ac_cache_corrupted=: ;; 2110 ,);; 2111 *) 2112 if test "x$ac_old_val" != "x$ac_new_val"; then 2113 # differences in whitespace do not lead to failure. 2114 ac_old_val_w=`echo x $ac_old_val` 2115 ac_new_val_w=`echo x $ac_new_val` 2116 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2118$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2119 ac_cache_corrupted=: 2120 else 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2122$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2123 eval $ac_var=\$ac_old_val 2124 fi 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2126$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2128$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2129 fi;; 2130 esac 2131 # Pass precious variables to config.status. 2132 if test "$ac_new_set" = set; then 2133 case $ac_new_val in 2134 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2135 *) ac_arg=$ac_var=$ac_new_val ;; 2136 esac 2137 case " $ac_configure_args " in 2138 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2139 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2140 esac 2141 fi 2142done 2143if $ac_cache_corrupted; then 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2147$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2148 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2149fi 2150## -------------------- ## 2151## Main body of script. ## 2152## -------------------- ## 2153 2154ac_ext=c 2155ac_cpp='$CPP $CPPFLAGS' 2156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2158ac_compiler_gnu=$ac_cv_c_compiler_gnu 2159 2160 2161am__api_version='1.11' 2162 2163ac_aux_dir= 2164for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2165 if test -f "$ac_dir/install-sh"; then 2166 ac_aux_dir=$ac_dir 2167 ac_install_sh="$ac_aux_dir/install-sh -c" 2168 break 2169 elif test -f "$ac_dir/install.sh"; then 2170 ac_aux_dir=$ac_dir 2171 ac_install_sh="$ac_aux_dir/install.sh -c" 2172 break 2173 elif test -f "$ac_dir/shtool"; then 2174 ac_aux_dir=$ac_dir 2175 ac_install_sh="$ac_aux_dir/shtool install -c" 2176 break 2177 fi 2178done 2179if test -z "$ac_aux_dir"; then 2180 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2181fi 2182 2183# These three variables are undocumented and unsupported, 2184# and are intended to be withdrawn in a future Autoconf release. 2185# They can cause serious problems if a builder's source tree is in a directory 2186# whose full name contains unusual characters. 2187ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2188ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2189ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2190 2191 2192# Find a good install program. We prefer a C program (faster), 2193# so one script is as good as another. But avoid the broken or 2194# incompatible versions: 2195# SysV /etc/install, /usr/sbin/install 2196# SunOS /usr/etc/install 2197# IRIX /sbin/install 2198# AIX /bin/install 2199# AmigaOS /C/install, which installs bootblocks on floppy discs 2200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2201# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2203# OS/2's system install, which has a completely different semantic 2204# ./install, which can be erroneously created by make from ./install.sh. 2205# Reject install programs that cannot install multiple files. 2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2207$as_echo_n "checking for a BSD-compatible install... " >&6; } 2208if test -z "$INSTALL"; then 2209if ${ac_cv_path_install+:} false; then : 2210 $as_echo_n "(cached) " >&6 2211else 2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2213for as_dir in $PATH 2214do 2215 IFS=$as_save_IFS 2216 test -z "$as_dir" && as_dir=. 2217 # Account for people who put trailing slashes in PATH elements. 2218case $as_dir/ in #(( 2219 ./ | .// | /[cC]/* | \ 2220 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2221 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2222 /usr/ucb/* ) ;; 2223 *) 2224 # OSF1 and SCO ODT 3.0 have their own names for install. 2225 # Don't use installbsd from OSF since it installs stuff as root 2226 # by default. 2227 for ac_prog in ginstall scoinst install; do 2228 for ac_exec_ext in '' $ac_executable_extensions; do 2229 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2230 if test $ac_prog = install && 2231 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2232 # AIX install. It has an incompatible calling convention. 2233 : 2234 elif test $ac_prog = install && 2235 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2236 # program-specific install script used by HP pwplus--don't use. 2237 : 2238 else 2239 rm -rf conftest.one conftest.two conftest.dir 2240 echo one > conftest.one 2241 echo two > conftest.two 2242 mkdir conftest.dir 2243 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2244 test -s conftest.one && test -s conftest.two && 2245 test -s conftest.dir/conftest.one && 2246 test -s conftest.dir/conftest.two 2247 then 2248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2249 break 3 2250 fi 2251 fi 2252 fi 2253 done 2254 done 2255 ;; 2256esac 2257 2258 done 2259IFS=$as_save_IFS 2260 2261rm -rf conftest.one conftest.two conftest.dir 2262 2263fi 2264 if test "${ac_cv_path_install+set}" = set; then 2265 INSTALL=$ac_cv_path_install 2266 else 2267 # As a last resort, use the slow shell script. Don't cache a 2268 # value for INSTALL within a source directory, because that will 2269 # break other packages using the cache if that directory is 2270 # removed, or if the value is a relative name. 2271 INSTALL=$ac_install_sh 2272 fi 2273fi 2274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2275$as_echo "$INSTALL" >&6; } 2276 2277# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2278# It thinks the first close brace ends the variable substitution. 2279test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2280 2281test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2282 2283test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2284 2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2286$as_echo_n "checking whether build environment is sane... " >&6; } 2287# Just in case 2288sleep 1 2289echo timestamp > conftest.file 2290# Reject unsafe characters in $srcdir or the absolute working directory 2291# name. Accept space and tab only in the latter. 2292am_lf=' 2293' 2294case `pwd` in 2295 *[\\\"\#\$\&\'\`$am_lf]*) 2296 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2297esac 2298case $srcdir in 2299 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2300 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2301esac 2302 2303# Do `set' in a subshell so we don't clobber the current shell's 2304# arguments. Must try -L first in case configure is actually a 2305# symlink; some systems play weird games with the mod time of symlinks 2306# (eg FreeBSD returns the mod time of the symlink's containing 2307# directory). 2308if ( 2309 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2310 if test "$*" = "X"; then 2311 # -L didn't work. 2312 set X `ls -t "$srcdir/configure" conftest.file` 2313 fi 2314 rm -f conftest.file 2315 if test "$*" != "X $srcdir/configure conftest.file" \ 2316 && test "$*" != "X conftest.file $srcdir/configure"; then 2317 2318 # If neither matched, then we have a broken ls. This can happen 2319 # if, for instance, CONFIG_SHELL is bash and it inherits a 2320 # broken ls alias from the environment. This has actually 2321 # happened. Such a system could not be considered "sane". 2322 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2323alias in your environment" "$LINENO" 5 2324 fi 2325 2326 test "$2" = conftest.file 2327 ) 2328then 2329 # Ok. 2330 : 2331else 2332 as_fn_error $? "newly created file is older than distributed files! 2333Check your system clock" "$LINENO" 5 2334fi 2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2336$as_echo "yes" >&6; } 2337test "$program_prefix" != NONE && 2338 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2339# Use a double $ so make ignores it. 2340test "$program_suffix" != NONE && 2341 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2342# Double any \ or $. 2343# By default was `s,x,x', remove it if useless. 2344ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2345program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2346 2347# expand $ac_aux_dir to an absolute path 2348am_aux_dir=`cd $ac_aux_dir && pwd` 2349 2350if test x"${MISSING+set}" != xset; then 2351 case $am_aux_dir in 2352 *\ * | *\ *) 2353 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2354 *) 2355 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2356 esac 2357fi 2358# Use eval to expand $SHELL 2359if eval "$MISSING --run true"; then 2360 am_missing_run="$MISSING --run " 2361else 2362 am_missing_run= 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2364$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2365fi 2366 2367if test x"${install_sh}" != xset; then 2368 case $am_aux_dir in 2369 *\ * | *\ *) 2370 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2371 *) 2372 install_sh="\${SHELL} $am_aux_dir/install-sh" 2373 esac 2374fi 2375 2376# Installed binaries are usually stripped using `strip' when the user 2377# run `make install-strip'. However `strip' might not be the right 2378# tool to use in cross-compilation environments, therefore Automake 2379# will honor the `STRIP' environment variable to overrule this program. 2380if test "$cross_compiling" != no; then 2381 if test -n "$ac_tool_prefix"; then 2382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2383set dummy ${ac_tool_prefix}strip; ac_word=$2 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2385$as_echo_n "checking for $ac_word... " >&6; } 2386if ${ac_cv_prog_STRIP+:} false; then : 2387 $as_echo_n "(cached) " >&6 2388else 2389 if test -n "$STRIP"; then 2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404 done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409STRIP=$ac_cv_prog_STRIP 2410if test -n "$STRIP"; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2412$as_echo "$STRIP" >&6; } 2413else 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2415$as_echo "no" >&6; } 2416fi 2417 2418 2419fi 2420if test -z "$ac_cv_prog_STRIP"; then 2421 ac_ct_STRIP=$STRIP 2422 # Extract the first word of "strip", so it can be a program name with args. 2423set dummy strip; ac_word=$2 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2425$as_echo_n "checking for $ac_word... " >&6; } 2426if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 if test -n "$ac_ct_STRIP"; then 2430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 ac_cv_prog_ac_ct_STRIP="strip" 2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444 done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2450if test -n "$ac_ct_STRIP"; then 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2452$as_echo "$ac_ct_STRIP" >&6; } 2453else 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2455$as_echo "no" >&6; } 2456fi 2457 2458 if test "x$ac_ct_STRIP" = x; then 2459 STRIP=":" 2460 else 2461 case $cross_compiling:$ac_tool_warned in 2462yes:) 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2465ac_tool_warned=yes ;; 2466esac 2467 STRIP=$ac_ct_STRIP 2468 fi 2469else 2470 STRIP="$ac_cv_prog_STRIP" 2471fi 2472 2473fi 2474INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2475 2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2477$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2478if test -z "$MKDIR_P"; then 2479 if ${ac_cv_path_mkdir+:} false; then : 2480 $as_echo_n "(cached) " >&6 2481else 2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_prog in mkdir gmkdir; do 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2490 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2491 'mkdir (GNU coreutils) '* | \ 2492 'mkdir (coreutils) '* | \ 2493 'mkdir (fileutils) '4.1*) 2494 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2495 break 3;; 2496 esac 2497 done 2498 done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503 2504 test -d ./--version && rmdir ./--version 2505 if test "${ac_cv_path_mkdir+set}" = set; then 2506 MKDIR_P="$ac_cv_path_mkdir -p" 2507 else 2508 # As a last resort, use the slow shell script. Don't cache a 2509 # value for MKDIR_P within a source directory, because that will 2510 # break other packages using the cache if that directory is 2511 # removed, or if the value is a relative name. 2512 MKDIR_P="$ac_install_sh -d" 2513 fi 2514fi 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2516$as_echo "$MKDIR_P" >&6; } 2517 2518mkdir_p="$MKDIR_P" 2519case $mkdir_p in 2520 [\\/$]* | ?:[\\/]*) ;; 2521 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2522esac 2523 2524for ac_prog in gawk mawk nawk awk 2525do 2526 # Extract the first word of "$ac_prog", so it can be a program name with args. 2527set dummy $ac_prog; ac_word=$2 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2529$as_echo_n "checking for $ac_word... " >&6; } 2530if ${ac_cv_prog_AWK+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 if test -n "$AWK"; then 2534 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_AWK="$ac_prog" 2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548 done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553AWK=$ac_cv_prog_AWK 2554if test -n "$AWK"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2556$as_echo "$AWK" >&6; } 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2559$as_echo "no" >&6; } 2560fi 2561 2562 2563 test -n "$AWK" && break 2564done 2565 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2567$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2568set x ${MAKE-make} 2569ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2570if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 cat >conftest.make <<\_ACEOF 2574SHELL = /bin/sh 2575all: 2576 @echo '@@@%%%=$(MAKE)=@@@%%%' 2577_ACEOF 2578# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2579case `${MAKE-make} -f conftest.make 2>/dev/null` in 2580 *@@@%%%=?*=@@@%%%*) 2581 eval ac_cv_prog_make_${ac_make}_set=yes;; 2582 *) 2583 eval ac_cv_prog_make_${ac_make}_set=no;; 2584esac 2585rm -f conftest.make 2586fi 2587if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2589$as_echo "yes" >&6; } 2590 SET_MAKE= 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594 SET_MAKE="MAKE=${MAKE-make}" 2595fi 2596 2597rm -rf .tst 2>/dev/null 2598mkdir .tst 2>/dev/null 2599if test -d .tst; then 2600 am__leading_dot=. 2601else 2602 am__leading_dot=_ 2603fi 2604rmdir .tst 2>/dev/null 2605 2606if test "`cd $srcdir && pwd`" != "`pwd`"; then 2607 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2608 # is not polluted with repeated "-I." 2609 am__isrc=' -I$(srcdir)' 2610 # test to see if srcdir already configured 2611 if test -f $srcdir/config.status; then 2612 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2613 fi 2614fi 2615 2616# test whether we have cygpath 2617if test -z "$CYGPATH_W"; then 2618 if (cygpath --version) >/dev/null 2>/dev/null; then 2619 CYGPATH_W='cygpath -w' 2620 else 2621 CYGPATH_W=echo 2622 fi 2623fi 2624 2625 2626# Define the identity of the package. 2627 PACKAGE='xedit' 2628 VERSION='1.2.1' 2629 2630 2631cat >>confdefs.h <<_ACEOF 2632#define PACKAGE "$PACKAGE" 2633_ACEOF 2634 2635 2636cat >>confdefs.h <<_ACEOF 2637#define VERSION "$VERSION" 2638_ACEOF 2639 2640# Some tools Automake needs. 2641 2642ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2643 2644 2645AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2646 2647 2648AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2649 2650 2651AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2652 2653 2654MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2655 2656# We need awk for the "check" target. The system "awk" is bad on 2657# some platforms. 2658# Always define AMTAR for backward compatibility. 2659 2660AMTAR=${AMTAR-"${am_missing_run}tar"} 2661 2662am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2663 2664 2665 2666 2667 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2670$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2671 # Check whether --enable-maintainer-mode was given. 2672if test "${enable_maintainer_mode+set}" = set; then : 2673 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2674else 2675 USE_MAINTAINER_MODE=no 2676fi 2677 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2679$as_echo "$USE_MAINTAINER_MODE" >&6; } 2680 if test $USE_MAINTAINER_MODE = yes; then 2681 MAINTAINER_MODE_TRUE= 2682 MAINTAINER_MODE_FALSE='#' 2683else 2684 MAINTAINER_MODE_TRUE='#' 2685 MAINTAINER_MODE_FALSE= 2686fi 2687 2688 MAINT=$MAINTAINER_MODE_TRUE 2689 2690 2691 2692# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704DEPDIR="${am__leading_dot}deps" 2705 2706ac_config_commands="$ac_config_commands depfiles" 2707 2708 2709am_make=${MAKE-make} 2710cat > confinc << 'END' 2711am__doit: 2712 @echo this is the am__doit target 2713.PHONY: am__doit 2714END 2715# If we don't find an include directive, just comment out the code. 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2717$as_echo_n "checking for style of include used by $am_make... " >&6; } 2718am__include="#" 2719am__quote= 2720_am_result=none 2721# First try GNU make style include. 2722echo "include confinc" > confmf 2723# Ignore all kinds of additional output from `make'. 2724case `$am_make -s -f confmf 2> /dev/null` in #( 2725*the\ am__doit\ target*) 2726 am__include=include 2727 am__quote= 2728 _am_result=GNU 2729 ;; 2730esac 2731# Now try BSD make style include. 2732if test "$am__include" = "#"; then 2733 echo '.include "confinc"' > confmf 2734 case `$am_make -s -f confmf 2> /dev/null` in #( 2735 *the\ am__doit\ target*) 2736 am__include=.include 2737 am__quote="\"" 2738 _am_result=BSD 2739 ;; 2740 esac 2741fi 2742 2743 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2745$as_echo "$_am_result" >&6; } 2746rm -f confinc confmf 2747 2748# Check whether --enable-dependency-tracking was given. 2749if test "${enable_dependency_tracking+set}" = set; then : 2750 enableval=$enable_dependency_tracking; 2751fi 2752 2753if test "x$enable_dependency_tracking" != xno; then 2754 am_depcomp="$ac_aux_dir/depcomp" 2755 AMDEPBACKSLASH='\' 2756 am__nodep='_no' 2757fi 2758 if test "x$enable_dependency_tracking" != xno; then 2759 AMDEP_TRUE= 2760 AMDEP_FALSE='#' 2761else 2762 AMDEP_TRUE='#' 2763 AMDEP_FALSE= 2764fi 2765 2766 2767ac_ext=c 2768ac_cpp='$CPP $CPPFLAGS' 2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2771ac_compiler_gnu=$ac_cv_c_compiler_gnu 2772if test -n "$ac_tool_prefix"; then 2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2774set dummy ${ac_tool_prefix}gcc; ac_word=$2 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776$as_echo_n "checking for $ac_word... " >&6; } 2777if ${ac_cv_prog_CC+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test -n "$CC"; then 2781 ac_cv_prog_CC="$CC" # Let the user override the test. 2782else 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2790 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800CC=$ac_cv_prog_CC 2801if test -n "$CC"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2803$as_echo "$CC" >&6; } 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807fi 2808 2809 2810fi 2811if test -z "$ac_cv_prog_CC"; then 2812 ac_ct_CC=$CC 2813 # Extract the first word of "gcc", so it can be a program name with args. 2814set dummy gcc; ac_word=$2 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816$as_echo_n "checking for $ac_word... " >&6; } 2817if ${ac_cv_prog_ac_ct_CC+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819else 2820 if test -n "$ac_ct_CC"; then 2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2830 ac_cv_prog_ac_ct_CC="gcc" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840ac_ct_CC=$ac_cv_prog_ac_ct_CC 2841if test -n "$ac_ct_CC"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2843$as_echo "$ac_ct_CC" >&6; } 2844else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846$as_echo "no" >&6; } 2847fi 2848 2849 if test "x$ac_ct_CC" = x; then 2850 CC="" 2851 else 2852 case $cross_compiling:$ac_tool_warned in 2853yes:) 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2856ac_tool_warned=yes ;; 2857esac 2858 CC=$ac_ct_CC 2859 fi 2860else 2861 CC="$ac_cv_prog_CC" 2862fi 2863 2864if test -z "$CC"; then 2865 if test -n "$ac_tool_prefix"; then 2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2867set dummy ${ac_tool_prefix}cc; ac_word=$2 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if ${ac_cv_prog_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$CC"; then 2874 ac_cv_prog_CC="$CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2883 ac_cv_prog_CC="${ac_tool_prefix}cc" 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893CC=$ac_cv_prog_CC 2894if test -n "$CC"; then 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2896$as_echo "$CC" >&6; } 2897else 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899$as_echo "no" >&6; } 2900fi 2901 2902 2903 fi 2904fi 2905if test -z "$CC"; then 2906 # Extract the first word of "cc", so it can be a program name with args. 2907set dummy cc; ac_word=$2 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909$as_echo_n "checking for $ac_word... " >&6; } 2910if ${ac_cv_prog_CC+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916 ac_prog_rejected=no 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2925 ac_prog_rejected=yes 2926 continue 2927 fi 2928 ac_cv_prog_CC="cc" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936if test $ac_prog_rejected = yes; then 2937 # We found a bogon in the path, so make sure we never use it. 2938 set dummy $ac_cv_prog_CC 2939 shift 2940 if test $# != 0; then 2941 # We chose a different compiler from the bogus one. 2942 # However, it has the same basename, so the bogon will be chosen 2943 # first if we set CC to just the basename; use the full file name. 2944 shift 2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2946 fi 2947fi 2948fi 2949fi 2950CC=$ac_cv_prog_CC 2951if test -n "$CC"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2953$as_echo "$CC" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 2960fi 2961if test -z "$CC"; then 2962 if test -n "$ac_tool_prefix"; then 2963 for ac_prog in cl.exe 2964 do 2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2966set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968$as_echo_n "checking for $ac_word... " >&6; } 2969if ${ac_cv_prog_CC+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 if test -n "$CC"; then 2973 ac_cv_prog_CC="$CC" # Let the user override the test. 2974else 2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2984 break 2 2985 fi 2986done 2987 done 2988IFS=$as_save_IFS 2989 2990fi 2991fi 2992CC=$ac_cv_prog_CC 2993if test -n "$CC"; then 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2995$as_echo "$CC" >&6; } 2996else 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2998$as_echo "no" >&6; } 2999fi 3000 3001 3002 test -n "$CC" && break 3003 done 3004fi 3005if test -z "$CC"; then 3006 ac_ct_CC=$CC 3007 for ac_prog in cl.exe 3008do 3009 # Extract the first word of "$ac_prog", so it can be a program name with args. 3010set dummy $ac_prog; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_ac_ct_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$ac_ct_CC"; then 3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3026 ac_cv_prog_ac_ct_CC="$ac_prog" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036ac_ct_CC=$ac_cv_prog_ac_ct_CC 3037if test -n "$ac_ct_CC"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3039$as_echo "$ac_ct_CC" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046 test -n "$ac_ct_CC" && break 3047done 3048 3049 if test "x$ac_ct_CC" = x; then 3050 CC="" 3051 else 3052 case $cross_compiling:$ac_tool_warned in 3053yes:) 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3056ac_tool_warned=yes ;; 3057esac 3058 CC=$ac_ct_CC 3059 fi 3060fi 3061 3062fi 3063 3064 3065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3067as_fn_error $? "no acceptable C compiler found in \$PATH 3068See \`config.log' for more details" "$LINENO" 5; } 3069 3070# Provide some information about the compiler. 3071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3072set X $ac_compile 3073ac_compiler=$2 3074for ac_option in --version -v -V -qversion; do 3075 { { ac_try="$ac_compiler $ac_option >&5" 3076case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079esac 3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3081$as_echo "$ac_try_echo"; } >&5 3082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3083 ac_status=$? 3084 if test -s conftest.err; then 3085 sed '10a\ 3086... rest of stderr output deleted ... 3087 10q' conftest.err >conftest.er1 3088 cat conftest.er1 >&5 3089 fi 3090 rm -f conftest.er1 conftest.err 3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3092 test $ac_status = 0; } 3093done 3094 3095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3096/* end confdefs.h. */ 3097 3098int 3099main () 3100{ 3101 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106ac_clean_files_save=$ac_clean_files 3107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3108# Try to create an executable without -o first, disregard a.out. 3109# It will help us diagnose broken compilers, and finding out an intuition 3110# of exeext. 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3112$as_echo_n "checking whether the C compiler works... " >&6; } 3113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3114 3115# The possible output files: 3116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3117 3118ac_rmfiles= 3119for ac_file in $ac_files 3120do 3121 case $ac_file in 3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3123 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3124 esac 3125done 3126rm -f $ac_rmfiles 3127 3128if { { ac_try="$ac_link_default" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3134$as_echo "$ac_try_echo"; } >&5 3135 (eval "$ac_link_default") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3138 test $ac_status = 0; }; then : 3139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3141# in a Makefile. We should not override ac_cv_exeext if it was cached, 3142# so that the user can short-circuit this test for compilers unknown to 3143# Autoconf. 3144for ac_file in $ac_files '' 3145do 3146 test -f "$ac_file" || continue 3147 case $ac_file in 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3149 ;; 3150 [ab].out ) 3151 # We found the default executable, but exeext='' is most 3152 # certainly right. 3153 break;; 3154 *.* ) 3155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3156 then :; else 3157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3158 fi 3159 # We set ac_cv_exeext here because the later test for it is not 3160 # safe: cross compilers may not add the suffix if given an `-o' 3161 # argument, so we may need to know it at that point already. 3162 # Even if this section looks crufty: it has the advantage of 3163 # actually working. 3164 break;; 3165 * ) 3166 break;; 3167 esac 3168done 3169test "$ac_cv_exeext" = no && ac_cv_exeext= 3170 3171else 3172 ac_file='' 3173fi 3174if test -z "$ac_file"; then : 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176$as_echo "no" >&6; } 3177$as_echo "$as_me: failed program was:" >&5 3178sed 's/^/| /' conftest.$ac_ext >&5 3179 3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182as_fn_error 77 "C compiler cannot create executables 3183See \`config.log' for more details" "$LINENO" 5; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3186$as_echo "yes" >&6; } 3187fi 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3189$as_echo_n "checking for C compiler default output file name... " >&6; } 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3191$as_echo "$ac_file" >&6; } 3192ac_exeext=$ac_cv_exeext 3193 3194rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3195ac_clean_files=$ac_clean_files_save 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3197$as_echo_n "checking for suffix of executables... " >&6; } 3198if { { ac_try="$ac_link" 3199case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204$as_echo "$ac_try_echo"; } >&5 3205 (eval "$ac_link") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; }; then : 3209 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3210# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3211# work properly (i.e., refer to `conftest.exe'), while it won't with 3212# `rm'. 3213for ac_file in conftest.exe conftest conftest.*; do 3214 test -f "$ac_file" || continue 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3218 break;; 3219 * ) break;; 3220 esac 3221done 3222else 3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3225as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3226See \`config.log' for more details" "$LINENO" 5; } 3227fi 3228rm -f conftest conftest$ac_cv_exeext 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3230$as_echo "$ac_cv_exeext" >&6; } 3231 3232rm -f conftest.$ac_ext 3233EXEEXT=$ac_cv_exeext 3234ac_exeext=$EXEEXT 3235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236/* end confdefs.h. */ 3237#include <stdio.h> 3238int 3239main () 3240{ 3241FILE *f = fopen ("conftest.out", "w"); 3242 return ferror (f) || fclose (f) != 0; 3243 3244 ; 3245 return 0; 3246} 3247_ACEOF 3248ac_clean_files="$ac_clean_files conftest.out" 3249# Check that the compiler produces executables we can run. If not, either 3250# the compiler is broken, or we cross compile. 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3252$as_echo_n "checking whether we are cross compiling... " >&6; } 3253if test "$cross_compiling" != yes; then 3254 { { ac_try="$ac_link" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260$as_echo "$ac_try_echo"; } >&5 3261 (eval "$ac_link") 2>&5 3262 ac_status=$? 3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; } 3265 if { ac_try='./conftest$ac_cv_exeext' 3266 { { case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269esac 3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3271$as_echo "$ac_try_echo"; } >&5 3272 (eval "$ac_try") 2>&5 3273 ac_status=$? 3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3275 test $ac_status = 0; }; }; then 3276 cross_compiling=no 3277 else 3278 if test "$cross_compiling" = maybe; then 3279 cross_compiling=yes 3280 else 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "cannot run C compiled programs. 3284If you meant to cross compile, use \`--host'. 3285See \`config.log' for more details" "$LINENO" 5; } 3286 fi 3287 fi 3288fi 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3290$as_echo "$cross_compiling" >&6; } 3291 3292rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3293ac_clean_files=$ac_clean_files_save 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3295$as_echo_n "checking for suffix of object files... " >&6; } 3296if ${ac_cv_objext+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301 3302int 3303main () 3304{ 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310rm -f conftest.o conftest.obj 3311if { { ac_try="$ac_compile" 3312case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315esac 3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317$as_echo "$ac_try_echo"; } >&5 3318 (eval "$ac_compile") 2>&5 3319 ac_status=$? 3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3321 test $ac_status = 0; }; then : 3322 for ac_file in conftest.o conftest.obj conftest.*; do 3323 test -f "$ac_file" || continue; 3324 case $ac_file in 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3327 break;; 3328 esac 3329done 3330else 3331 $as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336as_fn_error $? "cannot compute suffix of object files: cannot compile 3337See \`config.log' for more details" "$LINENO" 5; } 3338fi 3339rm -f conftest.$ac_cv_objext conftest.$ac_ext 3340fi 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3342$as_echo "$ac_cv_objext" >&6; } 3343OBJEXT=$ac_cv_objext 3344ac_objext=$OBJEXT 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3346$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3347if ${ac_cv_c_compiler_gnu+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356#ifndef __GNUC__ 3357 choke me 3358#endif 3359 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364if ac_fn_c_try_compile "$LINENO"; then : 3365 ac_compiler_gnu=yes 3366else 3367 ac_compiler_gnu=no 3368fi 3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3370ac_cv_c_compiler_gnu=$ac_compiler_gnu 3371 3372fi 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3374$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3375if test $ac_compiler_gnu = yes; then 3376 GCC=yes 3377else 3378 GCC= 3379fi 3380ac_test_CFLAGS=${CFLAGS+set} 3381ac_save_CFLAGS=$CFLAGS 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3383$as_echo_n "checking whether $CC accepts -g... " >&6; } 3384if ${ac_cv_prog_cc_g+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 ac_save_c_werror_flag=$ac_c_werror_flag 3388 ac_c_werror_flag=yes 3389 ac_cv_prog_cc_g=no 3390 CFLAGS="-g" 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393 3394int 3395main () 3396{ 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402if ac_fn_c_try_compile "$LINENO"; then : 3403 ac_cv_prog_cc_g=yes 3404else 3405 CFLAGS="" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO"; then : 3418 3419else 3420 ac_c_werror_flag=$ac_save_c_werror_flag 3421 CFLAGS="-g" 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424 3425int 3426main () 3427{ 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433if ac_fn_c_try_compile "$LINENO"; then : 3434 ac_cv_prog_cc_g=yes 3435fi 3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3437fi 3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3439fi 3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3444$as_echo "$ac_cv_prog_cc_g" >&6; } 3445if test "$ac_test_CFLAGS" = set; then 3446 CFLAGS=$ac_save_CFLAGS 3447elif test $ac_cv_prog_cc_g = yes; then 3448 if test "$GCC" = yes; then 3449 CFLAGS="-g -O2" 3450 else 3451 CFLAGS="-g" 3452 fi 3453else 3454 if test "$GCC" = yes; then 3455 CFLAGS="-O2" 3456 else 3457 CFLAGS= 3458 fi 3459fi 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3461$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3462if ${ac_cv_prog_cc_c89+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 ac_cv_prog_cc_c89=no 3466ac_save_CC=$CC 3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468/* end confdefs.h. */ 3469#include <stdarg.h> 3470#include <stdio.h> 3471#include <sys/types.h> 3472#include <sys/stat.h> 3473/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3474struct buf { int x; }; 3475FILE * (*rcsopen) (struct buf *, struct stat *, int); 3476static char *e (p, i) 3477 char **p; 3478 int i; 3479{ 3480 return p[i]; 3481} 3482static char *f (char * (*g) (char **, int), char **p, ...) 3483{ 3484 char *s; 3485 va_list v; 3486 va_start (v,p); 3487 s = g (p, va_arg (v,int)); 3488 va_end (v); 3489 return s; 3490} 3491 3492/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3493 function prototypes and stuff, but not '\xHH' hex character constants. 3494 These don't provoke an error unfortunately, instead are silently treated 3495 as 'x'. The following induces an error, until -std is added to get 3496 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3497 array size at least. It's necessary to write '\x00'==0 to get something 3498 that's true only with -std. */ 3499int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3500 3501/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3502 inside strings and character constants. */ 3503#define FOO(x) 'x' 3504int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3505 3506int test (int i, double x); 3507struct s1 {int (*f) (int a);}; 3508struct s2 {int (*f) (double a);}; 3509int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3510int argc; 3511char **argv; 3512int 3513main () 3514{ 3515return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3521 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3522do 3523 CC="$ac_save_CC $ac_arg" 3524 if ac_fn_c_try_compile "$LINENO"; then : 3525 ac_cv_prog_cc_c89=$ac_arg 3526fi 3527rm -f core conftest.err conftest.$ac_objext 3528 test "x$ac_cv_prog_cc_c89" != "xno" && break 3529done 3530rm -f conftest.$ac_ext 3531CC=$ac_save_CC 3532 3533fi 3534# AC_CACHE_VAL 3535case "x$ac_cv_prog_cc_c89" in 3536 x) 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3538$as_echo "none needed" >&6; } ;; 3539 xno) 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3541$as_echo "unsupported" >&6; } ;; 3542 *) 3543 CC="$CC $ac_cv_prog_cc_c89" 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3545$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3546esac 3547if test "x$ac_cv_prog_cc_c89" != xno; then : 3548 3549fi 3550 3551ac_ext=c 3552ac_cpp='$CPP $CPPFLAGS' 3553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3555ac_compiler_gnu=$ac_cv_c_compiler_gnu 3556 3557depcc="$CC" am_compiler_list= 3558 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3560$as_echo_n "checking dependency style of $depcc... " >&6; } 3561if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3562 $as_echo_n "(cached) " >&6 3563else 3564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3565 # We make a subdir and do the tests there. Otherwise we can end up 3566 # making bogus files that we don't know about and never remove. For 3567 # instance it was reported that on HP-UX the gcc test will end up 3568 # making a dummy file named `D' -- because `-MD' means `put the output 3569 # in D'. 3570 rm -rf conftest.dir 3571 mkdir conftest.dir 3572 # Copy depcomp to subdir because otherwise we won't find it if we're 3573 # using a relative directory. 3574 cp "$am_depcomp" conftest.dir 3575 cd conftest.dir 3576 # We will build objects and dependencies in a subdirectory because 3577 # it helps to detect inapplicable dependency modes. For instance 3578 # both Tru64's cc and ICC support -MD to output dependencies as a 3579 # side effect of compilation, but ICC will put the dependencies in 3580 # the current directory while Tru64 will put them in the object 3581 # directory. 3582 mkdir sub 3583 3584 am_cv_CC_dependencies_compiler_type=none 3585 if test "$am_compiler_list" = ""; then 3586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3587 fi 3588 am__universal=false 3589 case " $depcc " in #( 3590 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3591 esac 3592 3593 for depmode in $am_compiler_list; do 3594 # Setup a source with many dependencies, because some compilers 3595 # like to wrap large dependency lists on column 80 (with \), and 3596 # we should not choose a depcomp mode which is confused by this. 3597 # 3598 # We need to recreate these files for each test, as the compiler may 3599 # overwrite some of them when testing with obscure command lines. 3600 # This happens at least with the AIX C compiler. 3601 : > sub/conftest.c 3602 for i in 1 2 3 4 5 6; do 3603 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3604 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3605 # Solaris 8's {/usr,}/bin/sh. 3606 touch sub/conftst$i.h 3607 done 3608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3609 3610 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3611 # mode. It turns out that the SunPro C++ compiler does not properly 3612 # handle `-M -o', and we need to detect this. Also, some Intel 3613 # versions had trouble with output in subdirs 3614 am__obj=sub/conftest.${OBJEXT-o} 3615 am__minus_obj="-o $am__obj" 3616 case $depmode in 3617 gcc) 3618 # This depmode causes a compiler race in universal mode. 3619 test "$am__universal" = false || continue 3620 ;; 3621 nosideeffect) 3622 # after this tag, mechanisms are not by side-effect, so they'll 3623 # only be used when explicitly requested 3624 if test "x$enable_dependency_tracking" = xyes; then 3625 continue 3626 else 3627 break 3628 fi 3629 ;; 3630 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3631 # This compiler won't grok `-c -o', but also, the minuso test has 3632 # not run yet. These depmodes are late enough in the game, and 3633 # so weak that their functioning should not be impacted. 3634 am__obj=conftest.${OBJEXT-o} 3635 am__minus_obj= 3636 ;; 3637 none) break ;; 3638 esac 3639 if depmode=$depmode \ 3640 source=sub/conftest.c object=$am__obj \ 3641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3643 >/dev/null 2>conftest.err && 3644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3648 # icc doesn't choke on unknown options, it will just issue warnings 3649 # or remarks (even with -Werror). So we grep stderr for any message 3650 # that says an option was ignored or not supported. 3651 # When given -MP, icc 7.0 and 7.1 complain thusly: 3652 # icc: Command line warning: ignoring option '-M'; no argument required 3653 # The diagnosis changed in icc 8.0: 3654 # icc: Command line remark: option '-MP' not supported 3655 if (grep 'ignoring option' conftest.err || 3656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3657 am_cv_CC_dependencies_compiler_type=$depmode 3658 break 3659 fi 3660 fi 3661 done 3662 3663 cd .. 3664 rm -rf conftest.dir 3665else 3666 am_cv_CC_dependencies_compiler_type=none 3667fi 3668 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3671$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3672CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3673 3674 if 3675 test "x$enable_dependency_tracking" != xno \ 3676 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3677 am__fastdepCC_TRUE= 3678 am__fastdepCC_FALSE='#' 3679else 3680 am__fastdepCC_TRUE='#' 3681 am__fastdepCC_FALSE= 3682fi 3683 3684 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3686$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3687if ${ac_cv_prog_cc_c99+:} false; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 ac_cv_prog_cc_c99=no 3691ac_save_CC=$CC 3692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694#include <stdarg.h> 3695#include <stdbool.h> 3696#include <stdlib.h> 3697#include <wchar.h> 3698#include <stdio.h> 3699 3700// Check varargs macros. These examples are taken from C99 6.10.3.5. 3701#define debug(...) fprintf (stderr, __VA_ARGS__) 3702#define showlist(...) puts (#__VA_ARGS__) 3703#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3704static void 3705test_varargs_macros (void) 3706{ 3707 int x = 1234; 3708 int y = 5678; 3709 debug ("Flag"); 3710 debug ("X = %d\n", x); 3711 showlist (The first, second, and third items.); 3712 report (x>y, "x is %d but y is %d", x, y); 3713} 3714 3715// Check long long types. 3716#define BIG64 18446744073709551615ull 3717#define BIG32 4294967295ul 3718#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3719#if !BIG_OK 3720 your preprocessor is broken; 3721#endif 3722#if BIG_OK 3723#else 3724 your preprocessor is broken; 3725#endif 3726static long long int bignum = -9223372036854775807LL; 3727static unsigned long long int ubignum = BIG64; 3728 3729struct incomplete_array 3730{ 3731 int datasize; 3732 double data[]; 3733}; 3734 3735struct named_init { 3736 int number; 3737 const wchar_t *name; 3738 double average; 3739}; 3740 3741typedef const char *ccp; 3742 3743static inline int 3744test_restrict (ccp restrict text) 3745{ 3746 // See if C++-style comments work. 3747 // Iterate through items via the restricted pointer. 3748 // Also check for declarations in for loops. 3749 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3750 continue; 3751 return 0; 3752} 3753 3754// Check varargs and va_copy. 3755static void 3756test_varargs (const char *format, ...) 3757{ 3758 va_list args; 3759 va_start (args, format); 3760 va_list args_copy; 3761 va_copy (args_copy, args); 3762 3763 const char *str; 3764 int number; 3765 float fnumber; 3766 3767 while (*format) 3768 { 3769 switch (*format++) 3770 { 3771 case 's': // string 3772 str = va_arg (args_copy, const char *); 3773 break; 3774 case 'd': // int 3775 number = va_arg (args_copy, int); 3776 break; 3777 case 'f': // float 3778 fnumber = va_arg (args_copy, double); 3779 break; 3780 default: 3781 break; 3782 } 3783 } 3784 va_end (args_copy); 3785 va_end (args); 3786} 3787 3788int 3789main () 3790{ 3791 3792 // Check bool. 3793 _Bool success = false; 3794 3795 // Check restrict. 3796 if (test_restrict ("String literal") == 0) 3797 success = true; 3798 char *restrict newvar = "Another string"; 3799 3800 // Check varargs. 3801 test_varargs ("s, d' f .", "string", 65, 34.234); 3802 test_varargs_macros (); 3803 3804 // Check flexible array members. 3805 struct incomplete_array *ia = 3806 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3807 ia->datasize = 10; 3808 for (int i = 0; i < ia->datasize; ++i) 3809 ia->data[i] = i * 1.234; 3810 3811 // Check named initializers. 3812 struct named_init ni = { 3813 .number = 34, 3814 .name = L"Test wide string", 3815 .average = 543.34343, 3816 }; 3817 3818 ni.number = 58; 3819 3820 int dynamic_array[ni.number]; 3821 dynamic_array[ni.number - 1] = 543; 3822 3823 // work around unused variable warnings 3824 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3825 || dynamic_array[ni.number - 1] != 543); 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3832do 3833 CC="$ac_save_CC $ac_arg" 3834 if ac_fn_c_try_compile "$LINENO"; then : 3835 ac_cv_prog_cc_c99=$ac_arg 3836fi 3837rm -f core conftest.err conftest.$ac_objext 3838 test "x$ac_cv_prog_cc_c99" != "xno" && break 3839done 3840rm -f conftest.$ac_ext 3841CC=$ac_save_CC 3842 3843fi 3844# AC_CACHE_VAL 3845case "x$ac_cv_prog_cc_c99" in 3846 x) 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3848$as_echo "none needed" >&6; } ;; 3849 xno) 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3851$as_echo "unsupported" >&6; } ;; 3852 *) 3853 CC="$CC $ac_cv_prog_cc_c99" 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3855$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3856esac 3857if test "x$ac_cv_prog_cc_c99" != xno; then : 3858 3859fi 3860 3861 3862 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3869$as_echo_n "checking how to run the C preprocessor... " >&6; } 3870# On Suns, sometimes $CPP names a directory. 3871if test -n "$CPP" && test -d "$CPP"; then 3872 CPP= 3873fi 3874if test -z "$CPP"; then 3875 if ${ac_cv_prog_CPP+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 # Double quotes because CPP needs to be expanded 3879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3880 do 3881 ac_preproc_ok=false 3882for ac_c_preproc_warn_flag in '' yes 3883do 3884 # Use a header file that comes with gcc, so configuring glibc 3885 # with a fresh cross-compiler works. 3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3887 # <limits.h> exists even on freestanding compilers. 3888 # On the NeXT, cc -E runs the code through the compiler's parser, 3889 # not just through cpp. "Syntax error" is here to catch this case. 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892#ifdef __STDC__ 3893# include <limits.h> 3894#else 3895# include <assert.h> 3896#endif 3897 Syntax error 3898_ACEOF 3899if ac_fn_c_try_cpp "$LINENO"; then : 3900 3901else 3902 # Broken: fails on valid input. 3903continue 3904fi 3905rm -f conftest.err conftest.i conftest.$ac_ext 3906 3907 # OK, works on sane cases. Now check whether nonexistent headers 3908 # can be detected and how. 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911#include <ac_nonexistent.h> 3912_ACEOF 3913if ac_fn_c_try_cpp "$LINENO"; then : 3914 # Broken: success on invalid input. 3915continue 3916else 3917 # Passes both tests. 3918ac_preproc_ok=: 3919break 3920fi 3921rm -f conftest.err conftest.i conftest.$ac_ext 3922 3923done 3924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3925rm -f conftest.i conftest.err conftest.$ac_ext 3926if $ac_preproc_ok; then : 3927 break 3928fi 3929 3930 done 3931 ac_cv_prog_CPP=$CPP 3932 3933fi 3934 CPP=$ac_cv_prog_CPP 3935else 3936 ac_cv_prog_CPP=$CPP 3937fi 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3939$as_echo "$CPP" >&6; } 3940ac_preproc_ok=false 3941for ac_c_preproc_warn_flag in '' yes 3942do 3943 # Use a header file that comes with gcc, so configuring glibc 3944 # with a fresh cross-compiler works. 3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3946 # <limits.h> exists even on freestanding compilers. 3947 # On the NeXT, cc -E runs the code through the compiler's parser, 3948 # not just through cpp. "Syntax error" is here to catch this case. 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951#ifdef __STDC__ 3952# include <limits.h> 3953#else 3954# include <assert.h> 3955#endif 3956 Syntax error 3957_ACEOF 3958if ac_fn_c_try_cpp "$LINENO"; then : 3959 3960else 3961 # Broken: fails on valid input. 3962continue 3963fi 3964rm -f conftest.err conftest.i conftest.$ac_ext 3965 3966 # OK, works on sane cases. Now check whether nonexistent headers 3967 # can be detected and how. 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970#include <ac_nonexistent.h> 3971_ACEOF 3972if ac_fn_c_try_cpp "$LINENO"; then : 3973 # Broken: success on invalid input. 3974continue 3975else 3976 # Passes both tests. 3977ac_preproc_ok=: 3978break 3979fi 3980rm -f conftest.err conftest.i conftest.$ac_ext 3981 3982done 3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3984rm -f conftest.i conftest.err conftest.$ac_ext 3985if $ac_preproc_ok; then : 3986 3987else 3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3990as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3991See \`config.log' for more details" "$LINENO" 5; } 3992fi 3993 3994ac_ext=c 3995ac_cpp='$CPP $CPPFLAGS' 3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3998ac_compiler_gnu=$ac_cv_c_compiler_gnu 3999 4000 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4002$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4003if ${ac_cv_path_GREP+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 if test -z "$GREP"; then 4007 ac_path_GREP_found=false 4008 # Loop through the user's path and test for each of PROGNAME-LIST 4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4011do 4012 IFS=$as_save_IFS 4013 test -z "$as_dir" && as_dir=. 4014 for ac_prog in grep ggrep; do 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4017 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4018# Check for GNU ac_path_GREP and select it if it is found. 4019 # Check for GNU $ac_path_GREP 4020case `"$ac_path_GREP" --version 2>&1` in 4021*GNU*) 4022 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4023*) 4024 ac_count=0 4025 $as_echo_n 0123456789 >"conftest.in" 4026 while : 4027 do 4028 cat "conftest.in" "conftest.in" >"conftest.tmp" 4029 mv "conftest.tmp" "conftest.in" 4030 cp "conftest.in" "conftest.nl" 4031 $as_echo 'GREP' >> "conftest.nl" 4032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4034 as_fn_arith $ac_count + 1 && ac_count=$as_val 4035 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4036 # Best one so far, save it but keep looking for a better one 4037 ac_cv_path_GREP="$ac_path_GREP" 4038 ac_path_GREP_max=$ac_count 4039 fi 4040 # 10*(2^10) chars as input seems more than enough 4041 test $ac_count -gt 10 && break 4042 done 4043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4044esac 4045 4046 $ac_path_GREP_found && break 3 4047 done 4048 done 4049 done 4050IFS=$as_save_IFS 4051 if test -z "$ac_cv_path_GREP"; then 4052 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4053 fi 4054else 4055 ac_cv_path_GREP=$GREP 4056fi 4057 4058fi 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4060$as_echo "$ac_cv_path_GREP" >&6; } 4061 GREP="$ac_cv_path_GREP" 4062 4063 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4065$as_echo_n "checking for egrep... " >&6; } 4066if ${ac_cv_path_EGREP+:} false; then : 4067 $as_echo_n "(cached) " >&6 4068else 4069 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4070 then ac_cv_path_EGREP="$GREP -E" 4071 else 4072 if test -z "$EGREP"; then 4073 ac_path_EGREP_found=false 4074 # Loop through the user's path and test for each of PROGNAME-LIST 4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4077do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_prog in egrep; do 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4083 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4084# Check for GNU ac_path_EGREP and select it if it is found. 4085 # Check for GNU $ac_path_EGREP 4086case `"$ac_path_EGREP" --version 2>&1` in 4087*GNU*) 4088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4089*) 4090 ac_count=0 4091 $as_echo_n 0123456789 >"conftest.in" 4092 while : 4093 do 4094 cat "conftest.in" "conftest.in" >"conftest.tmp" 4095 mv "conftest.tmp" "conftest.in" 4096 cp "conftest.in" "conftest.nl" 4097 $as_echo 'EGREP' >> "conftest.nl" 4098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4100 as_fn_arith $ac_count + 1 && ac_count=$as_val 4101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4102 # Best one so far, save it but keep looking for a better one 4103 ac_cv_path_EGREP="$ac_path_EGREP" 4104 ac_path_EGREP_max=$ac_count 4105 fi 4106 # 10*(2^10) chars as input seems more than enough 4107 test $ac_count -gt 10 && break 4108 done 4109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4110esac 4111 4112 $ac_path_EGREP_found && break 3 4113 done 4114 done 4115 done 4116IFS=$as_save_IFS 4117 if test -z "$ac_cv_path_EGREP"; then 4118 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4119 fi 4120else 4121 ac_cv_path_EGREP=$EGREP 4122fi 4123 4124 fi 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4127$as_echo "$ac_cv_path_EGREP" >&6; } 4128 EGREP="$ac_cv_path_EGREP" 4129 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4132$as_echo_n "checking for ANSI C header files... " >&6; } 4133if ${ac_cv_header_stdc+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138#include <stdlib.h> 4139#include <stdarg.h> 4140#include <string.h> 4141#include <float.h> 4142 4143int 4144main () 4145{ 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151if ac_fn_c_try_compile "$LINENO"; then : 4152 ac_cv_header_stdc=yes 4153else 4154 ac_cv_header_stdc=no 4155fi 4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4157 4158if test $ac_cv_header_stdc = yes; then 4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162#include <string.h> 4163 4164_ACEOF 4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4166 $EGREP "memchr" >/dev/null 2>&1; then : 4167 4168else 4169 ac_cv_header_stdc=no 4170fi 4171rm -f conftest* 4172 4173fi 4174 4175if test $ac_cv_header_stdc = yes; then 4176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178/* end confdefs.h. */ 4179#include <stdlib.h> 4180 4181_ACEOF 4182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4183 $EGREP "free" >/dev/null 2>&1; then : 4184 4185else 4186 ac_cv_header_stdc=no 4187fi 4188rm -f conftest* 4189 4190fi 4191 4192if test $ac_cv_header_stdc = yes; then 4193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4194 if test "$cross_compiling" = yes; then : 4195 : 4196else 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199#include <ctype.h> 4200#include <stdlib.h> 4201#if ((' ' & 0x0FF) == 0x020) 4202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4204#else 4205# define ISLOWER(c) \ 4206 (('a' <= (c) && (c) <= 'i') \ 4207 || ('j' <= (c) && (c) <= 'r') \ 4208 || ('s' <= (c) && (c) <= 'z')) 4209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4210#endif 4211 4212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4213int 4214main () 4215{ 4216 int i; 4217 for (i = 0; i < 256; i++) 4218 if (XOR (islower (i), ISLOWER (i)) 4219 || toupper (i) != TOUPPER (i)) 4220 return 2; 4221 return 0; 4222} 4223_ACEOF 4224if ac_fn_c_try_run "$LINENO"; then : 4225 4226else 4227 ac_cv_header_stdc=no 4228fi 4229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4230 conftest.$ac_objext conftest.beam conftest.$ac_ext 4231fi 4232 4233fi 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4236$as_echo "$ac_cv_header_stdc" >&6; } 4237if test $ac_cv_header_stdc = yes; then 4238 4239$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4240 4241fi 4242 4243# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4245 inttypes.h stdint.h unistd.h 4246do : 4247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4248ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4249" 4250if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4251 cat >>confdefs.h <<_ACEOF 4252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4253_ACEOF 4254 4255fi 4256 4257done 4258 4259 4260 4261 4262 4263 4264ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4265if test "x$ac_cv_have_decl___clang__" = xyes; then : 4266 CLANGCC="yes" 4267else 4268 CLANGCC="no" 4269fi 4270 4271ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4272if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4273 INTELCC="yes" 4274else 4275 INTELCC="no" 4276fi 4277 4278ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4279if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4280 SUNCC="yes" 4281else 4282 SUNCC="no" 4283fi 4284 4285 4286 4287 4288if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4289 if test -n "$ac_tool_prefix"; then 4290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4291set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4293$as_echo_n "checking for $ac_word... " >&6; } 4294if ${ac_cv_path_PKG_CONFIG+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 case $PKG_CONFIG in 4298 [\\/]* | ?:[\\/]*) 4299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4300 ;; 4301 *) 4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303for as_dir in $PATH 4304do 4305 IFS=$as_save_IFS 4306 test -z "$as_dir" && as_dir=. 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4311 break 2 4312 fi 4313done 4314 done 4315IFS=$as_save_IFS 4316 4317 ;; 4318esac 4319fi 4320PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4321if test -n "$PKG_CONFIG"; then 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4323$as_echo "$PKG_CONFIG" >&6; } 4324else 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326$as_echo "no" >&6; } 4327fi 4328 4329 4330fi 4331if test -z "$ac_cv_path_PKG_CONFIG"; then 4332 ac_pt_PKG_CONFIG=$PKG_CONFIG 4333 # Extract the first word of "pkg-config", so it can be a program name with args. 4334set dummy pkg-config; ac_word=$2 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4336$as_echo_n "checking for $ac_word... " >&6; } 4337if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 case $ac_pt_PKG_CONFIG in 4341 [\\/]* | ?:[\\/]*) 4342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4343 ;; 4344 *) 4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4346for as_dir in $PATH 4347do 4348 IFS=$as_save_IFS 4349 test -z "$as_dir" && as_dir=. 4350 for ac_exec_ext in '' $ac_executable_extensions; do 4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4354 break 2 4355 fi 4356done 4357 done 4358IFS=$as_save_IFS 4359 4360 ;; 4361esac 4362fi 4363ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4364if test -n "$ac_pt_PKG_CONFIG"; then 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4366$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4367else 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4369$as_echo "no" >&6; } 4370fi 4371 4372 if test "x$ac_pt_PKG_CONFIG" = x; then 4373 PKG_CONFIG="" 4374 else 4375 case $cross_compiling:$ac_tool_warned in 4376yes:) 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4379ac_tool_warned=yes ;; 4380esac 4381 PKG_CONFIG=$ac_pt_PKG_CONFIG 4382 fi 4383else 4384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4385fi 4386 4387fi 4388if test -n "$PKG_CONFIG"; then 4389 _pkg_min_version=0.9.0 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4391$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4394$as_echo "yes" >&6; } 4395 else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397$as_echo "no" >&6; } 4398 PKG_CONFIG="" 4399 fi 4400 4401fi 4402# Make sure we can run config.sub. 4403$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4405 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4407$as_echo_n "checking build system type... " >&6; } 4408if ${ac_cv_build+:} false; then : 4409 $as_echo_n "(cached) " >&6 4410else 4411 ac_build_alias=$build_alias 4412test "x$ac_build_alias" = x && 4413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4414test "x$ac_build_alias" = x && 4415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4416ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4418 4419fi 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4421$as_echo "$ac_cv_build" >&6; } 4422case $ac_cv_build in 4423*-*-*) ;; 4424*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4425esac 4426build=$ac_cv_build 4427ac_save_IFS=$IFS; IFS='-' 4428set x $ac_cv_build 4429shift 4430build_cpu=$1 4431build_vendor=$2 4432shift; shift 4433# Remember, the first character of IFS is used to create $*, 4434# except with old shells: 4435build_os=$* 4436IFS=$ac_save_IFS 4437case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4438 4439 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4441$as_echo_n "checking host system type... " >&6; } 4442if ${ac_cv_host+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 if test "x$host_alias" = x; then 4446 ac_cv_host=$ac_cv_build 4447else 4448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4450fi 4451 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4454$as_echo "$ac_cv_host" >&6; } 4455case $ac_cv_host in 4456*-*-*) ;; 4457*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4458esac 4459host=$ac_cv_host 4460ac_save_IFS=$IFS; IFS='-' 4461set x $ac_cv_host 4462shift 4463host_cpu=$1 4464host_vendor=$2 4465shift; shift 4466# Remember, the first character of IFS is used to create $*, 4467# except with old shells: 4468host_os=$* 4469IFS=$ac_save_IFS 4470case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4471 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4474$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4475if ${ac_cv_path_SED+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4479 for ac_i in 1 2 3 4 5 6 7; do 4480 ac_script="$ac_script$as_nl$ac_script" 4481 done 4482 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4483 { ac_script=; unset ac_script;} 4484 if test -z "$SED"; then 4485 ac_path_SED_found=false 4486 # Loop through the user's path and test for each of PROGNAME-LIST 4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_prog in sed gsed; do 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4495 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4496# Check for GNU ac_path_SED and select it if it is found. 4497 # Check for GNU $ac_path_SED 4498case `"$ac_path_SED" --version 2>&1` in 4499*GNU*) 4500 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4501*) 4502 ac_count=0 4503 $as_echo_n 0123456789 >"conftest.in" 4504 while : 4505 do 4506 cat "conftest.in" "conftest.in" >"conftest.tmp" 4507 mv "conftest.tmp" "conftest.in" 4508 cp "conftest.in" "conftest.nl" 4509 $as_echo '' >> "conftest.nl" 4510 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4512 as_fn_arith $ac_count + 1 && ac_count=$as_val 4513 if test $ac_count -gt ${ac_path_SED_max-0}; then 4514 # Best one so far, save it but keep looking for a better one 4515 ac_cv_path_SED="$ac_path_SED" 4516 ac_path_SED_max=$ac_count 4517 fi 4518 # 10*(2^10) chars as input seems more than enough 4519 test $ac_count -gt 10 && break 4520 done 4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4522esac 4523 4524 $ac_path_SED_found && break 3 4525 done 4526 done 4527 done 4528IFS=$as_save_IFS 4529 if test -z "$ac_cv_path_SED"; then 4530 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4531 fi 4532else 4533 ac_cv_path_SED=$SED 4534fi 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4538$as_echo "$ac_cv_path_SED" >&6; } 4539 SED="$ac_cv_path_SED" 4540 rm -f conftest.sed 4541 4542 4543 4544 4545 4546 4547# Check whether --enable-selective-werror was given. 4548if test "${enable_selective_werror+set}" = set; then : 4549 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4550else 4551 SELECTIVE_WERROR=yes 4552fi 4553 4554 4555 4556 4557 4558# -v is too short to test reliably with XORG_TESTSET_CFLAG 4559if test "x$SUNCC" = "xyes"; then 4560 BASE_CFLAGS="-v" 4561else 4562 BASE_CFLAGS="" 4563fi 4564 4565# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579xorg_testset_save_CFLAGS="$CFLAGS" 4580 4581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590int i; 4591_ACEOF 4592if ac_fn_c_try_compile "$LINENO"; then : 4593 xorg_cv_cc_flag_unknown_warning_option=yes 4594else 4595 xorg_cv_cc_flag_unknown_warning_option=no 4596fi 4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4602 CFLAGS="$xorg_testset_save_CFLAGS" 4603fi 4604 4605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4608 fi 4609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617int i; 4618_ACEOF 4619if ac_fn_c_try_compile "$LINENO"; then : 4620 xorg_cv_cc_flag_unused_command_line_argument=yes 4621else 4622 xorg_cv_cc_flag_unused_command_line_argument=no 4623fi 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4625fi 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4629 CFLAGS="$xorg_testset_save_CFLAGS" 4630fi 4631 4632found="no" 4633 4634 if test $found = "no" ; then 4635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4637 fi 4638 4639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4641 fi 4642 4643 CFLAGS="$CFLAGS -Wall" 4644 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4646$as_echo_n "checking if $CC supports -Wall... " >&6; } 4647 cacheid=xorg_cv_cc_flag__Wall 4648 if eval \${$cacheid+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653int i; 4654int 4655main () 4656{ 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_link "$LINENO"; then : 4663 eval $cacheid=yes 4664else 4665 eval $cacheid=no 4666fi 4667rm -f core conftest.err conftest.$ac_objext \ 4668 conftest$ac_exeext conftest.$ac_ext 4669fi 4670 4671 4672 CFLAGS="$xorg_testset_save_CFLAGS" 4673 4674 eval supported=\$$cacheid 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4676$as_echo "$supported" >&6; } 4677 if test "$supported" = "yes" ; then 4678 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4679 found="yes" 4680 fi 4681 fi 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697xorg_testset_save_CFLAGS="$CFLAGS" 4698 4699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708int i; 4709_ACEOF 4710if ac_fn_c_try_compile "$LINENO"; then : 4711 xorg_cv_cc_flag_unknown_warning_option=yes 4712else 4713 xorg_cv_cc_flag_unknown_warning_option=no 4714fi 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4716fi 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4720 CFLAGS="$xorg_testset_save_CFLAGS" 4721fi 4722 4723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4726 fi 4727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4734/* end confdefs.h. */ 4735int i; 4736_ACEOF 4737if ac_fn_c_try_compile "$LINENO"; then : 4738 xorg_cv_cc_flag_unused_command_line_argument=yes 4739else 4740 xorg_cv_cc_flag_unused_command_line_argument=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4747 CFLAGS="$xorg_testset_save_CFLAGS" 4748fi 4749 4750found="no" 4751 4752 if test $found = "no" ; then 4753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4755 fi 4756 4757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4759 fi 4760 4761 CFLAGS="$CFLAGS -Wpointer-arith" 4762 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4764$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4765 cacheid=xorg_cv_cc_flag__Wpointer_arith 4766 if eval \${$cacheid+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771int i; 4772int 4773main () 4774{ 4775 4776 ; 4777 return 0; 4778} 4779_ACEOF 4780if ac_fn_c_try_link "$LINENO"; then : 4781 eval $cacheid=yes 4782else 4783 eval $cacheid=no 4784fi 4785rm -f core conftest.err conftest.$ac_objext \ 4786 conftest$ac_exeext conftest.$ac_ext 4787fi 4788 4789 4790 CFLAGS="$xorg_testset_save_CFLAGS" 4791 4792 eval supported=\$$cacheid 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4794$as_echo "$supported" >&6; } 4795 if test "$supported" = "yes" ; then 4796 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4797 found="yes" 4798 fi 4799 fi 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815xorg_testset_save_CFLAGS="$CFLAGS" 4816 4817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826int i; 4827_ACEOF 4828if ac_fn_c_try_compile "$LINENO"; then : 4829 xorg_cv_cc_flag_unknown_warning_option=yes 4830else 4831 xorg_cv_cc_flag_unknown_warning_option=no 4832fi 4833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4838 CFLAGS="$xorg_testset_save_CFLAGS" 4839fi 4840 4841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4844 fi 4845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853int i; 4854_ACEOF 4855if ac_fn_c_try_compile "$LINENO"; then : 4856 xorg_cv_cc_flag_unused_command_line_argument=yes 4857else 4858 xorg_cv_cc_flag_unused_command_line_argument=no 4859fi 4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4861fi 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4865 CFLAGS="$xorg_testset_save_CFLAGS" 4866fi 4867 4868found="no" 4869 4870 if test $found = "no" ; then 4871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4873 fi 4874 4875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4877 fi 4878 4879 CFLAGS="$CFLAGS -Wmissing-declarations" 4880 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4882$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4883 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4884 if eval \${$cacheid+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888/* end confdefs.h. */ 4889int i; 4890int 4891main () 4892{ 4893 4894 ; 4895 return 0; 4896} 4897_ACEOF 4898if ac_fn_c_try_link "$LINENO"; then : 4899 eval $cacheid=yes 4900else 4901 eval $cacheid=no 4902fi 4903rm -f core conftest.err conftest.$ac_objext \ 4904 conftest$ac_exeext conftest.$ac_ext 4905fi 4906 4907 4908 CFLAGS="$xorg_testset_save_CFLAGS" 4909 4910 eval supported=\$$cacheid 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4912$as_echo "$supported" >&6; } 4913 if test "$supported" = "yes" ; then 4914 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4915 found="yes" 4916 fi 4917 fi 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933xorg_testset_save_CFLAGS="$CFLAGS" 4934 4935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944int i; 4945_ACEOF 4946if ac_fn_c_try_compile "$LINENO"; then : 4947 xorg_cv_cc_flag_unknown_warning_option=yes 4948else 4949 xorg_cv_cc_flag_unknown_warning_option=no 4950fi 4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4956 CFLAGS="$xorg_testset_save_CFLAGS" 4957fi 4958 4959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4962 fi 4963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971int i; 4972_ACEOF 4973if ac_fn_c_try_compile "$LINENO"; then : 4974 xorg_cv_cc_flag_unused_command_line_argument=yes 4975else 4976 xorg_cv_cc_flag_unused_command_line_argument=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4983 CFLAGS="$xorg_testset_save_CFLAGS" 4984fi 4985 4986found="no" 4987 4988 if test $found = "no" ; then 4989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4991 fi 4992 4993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4995 fi 4996 4997 CFLAGS="$CFLAGS -Wformat=2" 4998 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5000$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5001 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5002 if eval \${$cacheid+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007int i; 5008int 5009main () 5010{ 5011 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_c_try_link "$LINENO"; then : 5017 eval $cacheid=yes 5018else 5019 eval $cacheid=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext \ 5022 conftest$ac_exeext conftest.$ac_ext 5023fi 5024 5025 5026 CFLAGS="$xorg_testset_save_CFLAGS" 5027 5028 eval supported=\$$cacheid 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5030$as_echo "$supported" >&6; } 5031 if test "$supported" = "yes" ; then 5032 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5033 found="yes" 5034 fi 5035 fi 5036 5037 if test $found = "no" ; then 5038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 fi 5041 5042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5044 fi 5045 5046 CFLAGS="$CFLAGS -Wformat" 5047 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5049$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5050 cacheid=xorg_cv_cc_flag__Wformat 5051 if eval \${$cacheid+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053else 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056int i; 5057int 5058main () 5059{ 5060 5061 ; 5062 return 0; 5063} 5064_ACEOF 5065if ac_fn_c_try_link "$LINENO"; then : 5066 eval $cacheid=yes 5067else 5068 eval $cacheid=no 5069fi 5070rm -f core conftest.err conftest.$ac_objext \ 5071 conftest$ac_exeext conftest.$ac_ext 5072fi 5073 5074 5075 CFLAGS="$xorg_testset_save_CFLAGS" 5076 5077 eval supported=\$$cacheid 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5079$as_echo "$supported" >&6; } 5080 if test "$supported" = "yes" ; then 5081 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5082 found="yes" 5083 fi 5084 fi 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102xorg_testset_save_CFLAGS="$CFLAGS" 5103 5104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO"; then : 5116 xorg_cv_cc_flag_unknown_warning_option=yes 5117else 5118 xorg_cv_cc_flag_unknown_warning_option=no 5119fi 5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5125 CFLAGS="$xorg_testset_save_CFLAGS" 5126fi 5127 5128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 fi 5132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO"; then : 5143 xorg_cv_cc_flag_unused_command_line_argument=yes 5144else 5145 xorg_cv_cc_flag_unused_command_line_argument=no 5146fi 5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5148fi 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153fi 5154 5155found="no" 5156 5157 if test $found = "no" ; then 5158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 5162 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5164 fi 5165 5166 CFLAGS="$CFLAGS -Wstrict-prototypes" 5167 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5169$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5170 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5171 if eval \${$cacheid+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185if ac_fn_c_try_link "$LINENO"; then : 5186 eval $cacheid=yes 5187else 5188 eval $cacheid=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext \ 5191 conftest$ac_exeext conftest.$ac_ext 5192fi 5193 5194 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196 5197 eval supported=\$$cacheid 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5199$as_echo "$supported" >&6; } 5200 if test "$supported" = "yes" ; then 5201 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5202 found="yes" 5203 fi 5204 fi 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220xorg_testset_save_CFLAGS="$CFLAGS" 5221 5222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5230/* end confdefs.h. */ 5231int i; 5232_ACEOF 5233if ac_fn_c_try_compile "$LINENO"; then : 5234 xorg_cv_cc_flag_unknown_warning_option=yes 5235else 5236 xorg_cv_cc_flag_unknown_warning_option=no 5237fi 5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5239fi 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5243 CFLAGS="$xorg_testset_save_CFLAGS" 5244fi 5245 5246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 fi 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258int i; 5259_ACEOF 5260if ac_fn_c_try_compile "$LINENO"; then : 5261 xorg_cv_cc_flag_unused_command_line_argument=yes 5262else 5263 xorg_cv_cc_flag_unused_command_line_argument=no 5264fi 5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5266fi 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5270 CFLAGS="$xorg_testset_save_CFLAGS" 5271fi 5272 5273found="no" 5274 5275 if test $found = "no" ; then 5276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 5280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5282 fi 5283 5284 CFLAGS="$CFLAGS -Wmissing-prototypes" 5285 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5287$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5288 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5289 if eval \${$cacheid+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295int 5296main () 5297{ 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_c_try_link "$LINENO"; then : 5304 eval $cacheid=yes 5305else 5306 eval $cacheid=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext \ 5309 conftest$ac_exeext conftest.$ac_ext 5310fi 5311 5312 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314 5315 eval supported=\$$cacheid 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5317$as_echo "$supported" >&6; } 5318 if test "$supported" = "yes" ; then 5319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5320 found="yes" 5321 fi 5322 fi 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338xorg_testset_save_CFLAGS="$CFLAGS" 5339 5340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349int i; 5350_ACEOF 5351if ac_fn_c_try_compile "$LINENO"; then : 5352 xorg_cv_cc_flag_unknown_warning_option=yes 5353else 5354 xorg_cv_cc_flag_unknown_warning_option=no 5355fi 5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5357fi 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5361 CFLAGS="$xorg_testset_save_CFLAGS" 5362fi 5363 5364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5367 fi 5368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376int i; 5377_ACEOF 5378if ac_fn_c_try_compile "$LINENO"; then : 5379 xorg_cv_cc_flag_unused_command_line_argument=yes 5380else 5381 xorg_cv_cc_flag_unused_command_line_argument=no 5382fi 5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5384fi 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5388 CFLAGS="$xorg_testset_save_CFLAGS" 5389fi 5390 5391found="no" 5392 5393 if test $found = "no" ; then 5394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5396 fi 5397 5398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5400 fi 5401 5402 CFLAGS="$CFLAGS -Wnested-externs" 5403 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5405$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5406 cacheid=xorg_cv_cc_flag__Wnested_externs 5407 if eval \${$cacheid+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412int i; 5413int 5414main () 5415{ 5416 5417 ; 5418 return 0; 5419} 5420_ACEOF 5421if ac_fn_c_try_link "$LINENO"; then : 5422 eval $cacheid=yes 5423else 5424 eval $cacheid=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext \ 5427 conftest$ac_exeext conftest.$ac_ext 5428fi 5429 5430 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432 5433 eval supported=\$$cacheid 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5435$as_echo "$supported" >&6; } 5436 if test "$supported" = "yes" ; then 5437 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5438 found="yes" 5439 fi 5440 fi 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456xorg_testset_save_CFLAGS="$CFLAGS" 5457 5458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5463 $as_echo_n "(cached) " >&6 5464else 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467int i; 5468_ACEOF 5469if ac_fn_c_try_compile "$LINENO"; then : 5470 xorg_cv_cc_flag_unknown_warning_option=yes 5471else 5472 xorg_cv_cc_flag_unknown_warning_option=no 5473fi 5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5475fi 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5479 CFLAGS="$xorg_testset_save_CFLAGS" 5480fi 5481 5482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5485 fi 5486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5493/* end confdefs.h. */ 5494int i; 5495_ACEOF 5496if ac_fn_c_try_compile "$LINENO"; then : 5497 xorg_cv_cc_flag_unused_command_line_argument=yes 5498else 5499 xorg_cv_cc_flag_unused_command_line_argument=no 5500fi 5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5502fi 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5506 CFLAGS="$xorg_testset_save_CFLAGS" 5507fi 5508 5509found="no" 5510 5511 if test $found = "no" ; then 5512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 fi 5515 5516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5518 fi 5519 5520 CFLAGS="$CFLAGS -Wbad-function-cast" 5521 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5523$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5524 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5525 if eval \${$cacheid+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530int i; 5531int 5532main () 5533{ 5534 5535 ; 5536 return 0; 5537} 5538_ACEOF 5539if ac_fn_c_try_link "$LINENO"; then : 5540 eval $cacheid=yes 5541else 5542 eval $cacheid=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext \ 5545 conftest$ac_exeext conftest.$ac_ext 5546fi 5547 5548 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550 5551 eval supported=\$$cacheid 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5553$as_echo "$supported" >&6; } 5554 if test "$supported" = "yes" ; then 5555 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5556 found="yes" 5557 fi 5558 fi 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574xorg_testset_save_CFLAGS="$CFLAGS" 5575 5576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585int i; 5586_ACEOF 5587if ac_fn_c_try_compile "$LINENO"; then : 5588 xorg_cv_cc_flag_unknown_warning_option=yes 5589else 5590 xorg_cv_cc_flag_unknown_warning_option=no 5591fi 5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5593fi 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5597 CFLAGS="$xorg_testset_save_CFLAGS" 5598fi 5599 5600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5603 fi 5604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5611/* end confdefs.h. */ 5612int i; 5613_ACEOF 5614if ac_fn_c_try_compile "$LINENO"; then : 5615 xorg_cv_cc_flag_unused_command_line_argument=yes 5616else 5617 xorg_cv_cc_flag_unused_command_line_argument=no 5618fi 5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5624 CFLAGS="$xorg_testset_save_CFLAGS" 5625fi 5626 5627found="no" 5628 5629 if test $found = "no" ; then 5630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5632 fi 5633 5634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5636 fi 5637 5638 CFLAGS="$CFLAGS -Wold-style-definition" 5639 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5641$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5642 cacheid=xorg_cv_cc_flag__Wold_style_definition 5643 if eval \${$cacheid+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649int 5650main () 5651{ 5652 5653 ; 5654 return 0; 5655} 5656_ACEOF 5657if ac_fn_c_try_link "$LINENO"; then : 5658 eval $cacheid=yes 5659else 5660 eval $cacheid=no 5661fi 5662rm -f core conftest.err conftest.$ac_objext \ 5663 conftest$ac_exeext conftest.$ac_ext 5664fi 5665 5666 5667 CFLAGS="$xorg_testset_save_CFLAGS" 5668 5669 eval supported=\$$cacheid 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5671$as_echo "$supported" >&6; } 5672 if test "$supported" = "yes" ; then 5673 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5674 found="yes" 5675 fi 5676 fi 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692xorg_testset_save_CFLAGS="$CFLAGS" 5693 5694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703int i; 5704_ACEOF 5705if ac_fn_c_try_compile "$LINENO"; then : 5706 xorg_cv_cc_flag_unknown_warning_option=yes 5707else 5708 xorg_cv_cc_flag_unknown_warning_option=no 5709fi 5710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5711fi 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5715 CFLAGS="$xorg_testset_save_CFLAGS" 5716fi 5717 5718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5721 fi 5722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5729/* end confdefs.h. */ 5730int i; 5731_ACEOF 5732if ac_fn_c_try_compile "$LINENO"; then : 5733 xorg_cv_cc_flag_unused_command_line_argument=yes 5734else 5735 xorg_cv_cc_flag_unused_command_line_argument=no 5736fi 5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5738fi 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5742 CFLAGS="$xorg_testset_save_CFLAGS" 5743fi 5744 5745found="no" 5746 5747 if test $found = "no" ; then 5748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 fi 5751 5752 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5754 fi 5755 5756 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5757 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5759$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5760 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5761 if eval \${$cacheid+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5765/* end confdefs.h. */ 5766int i; 5767int 5768main () 5769{ 5770 5771 ; 5772 return 0; 5773} 5774_ACEOF 5775if ac_fn_c_try_link "$LINENO"; then : 5776 eval $cacheid=yes 5777else 5778 eval $cacheid=no 5779fi 5780rm -f core conftest.err conftest.$ac_objext \ 5781 conftest$ac_exeext conftest.$ac_ext 5782fi 5783 5784 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786 5787 eval supported=\$$cacheid 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5789$as_echo "$supported" >&6; } 5790 if test "$supported" = "yes" ; then 5791 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5792 found="yes" 5793 fi 5794 fi 5795 5796 5797 5798 5799 5800# This chunk adds additional warnings that could catch undesired effects. 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unknown_warning_option=yes 5829else 5830 xorg_cv_cc_flag_unknown_warning_option=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 fi 5844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unused_command_line_argument=yes 5856else 5857 xorg_cv_cc_flag_unused_command_line_argument=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wunused" 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5881$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wunused 5883 if eval \${$cacheid+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888int i; 5889int 5890main () 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897if ac_fn_c_try_link "$LINENO"; then : 5898 eval $cacheid=yes 5899else 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911$as_echo "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932xorg_testset_save_CFLAGS="$CFLAGS" 5933 5934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5942/* end confdefs.h. */ 5943int i; 5944_ACEOF 5945if ac_fn_c_try_compile "$LINENO"; then : 5946 xorg_cv_cc_flag_unknown_warning_option=yes 5947else 5948 xorg_cv_cc_flag_unknown_warning_option=no 5949fi 5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5951fi 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5955 CFLAGS="$xorg_testset_save_CFLAGS" 5956fi 5957 5958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 fi 5962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970int i; 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO"; then : 5973 xorg_cv_cc_flag_unused_command_line_argument=yes 5974else 5975 xorg_cv_cc_flag_unused_command_line_argument=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985found="no" 5986 5987 if test $found = "no" ; then 5988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 5992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 fi 5995 5996 CFLAGS="$CFLAGS -Wuninitialized" 5997 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5999$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6000 cacheid=xorg_cv_cc_flag__Wuninitialized 6001 if eval \${$cacheid+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006int i; 6007int 6008main () 6009{ 6010 6011 ; 6012 return 0; 6013} 6014_ACEOF 6015if ac_fn_c_try_link "$LINENO"; then : 6016 eval $cacheid=yes 6017else 6018 eval $cacheid=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext \ 6021 conftest$ac_exeext conftest.$ac_ext 6022fi 6023 6024 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026 6027 eval supported=\$$cacheid 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6029$as_echo "$supported" >&6; } 6030 if test "$supported" = "yes" ; then 6031 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6032 found="yes" 6033 fi 6034 fi 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050xorg_testset_save_CFLAGS="$CFLAGS" 6051 6052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO"; then : 6064 xorg_cv_cc_flag_unknown_warning_option=yes 6065else 6066 xorg_cv_cc_flag_unknown_warning_option=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6069fi 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088int i; 6089_ACEOF 6090if ac_fn_c_try_compile "$LINENO"; then : 6091 xorg_cv_cc_flag_unused_command_line_argument=yes 6092else 6093 xorg_cv_cc_flag_unused_command_line_argument=no 6094fi 6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101fi 6102 6103found="no" 6104 6105 if test $found = "no" ; then 6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6108 fi 6109 6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 fi 6113 6114 CFLAGS="$CFLAGS -Wshadow" 6115 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6117$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6118 cacheid=xorg_cv_cc_flag__Wshadow 6119 if eval \${$cacheid+:} false; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123/* end confdefs.h. */ 6124int i; 6125int 6126main () 6127{ 6128 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133if ac_fn_c_try_link "$LINENO"; then : 6134 eval $cacheid=yes 6135else 6136 eval $cacheid=no 6137fi 6138rm -f core conftest.err conftest.$ac_objext \ 6139 conftest$ac_exeext conftest.$ac_ext 6140fi 6141 6142 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144 6145 eval supported=\$$cacheid 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6147$as_echo "$supported" >&6; } 6148 if test "$supported" = "yes" ; then 6149 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6150 found="yes" 6151 fi 6152 fi 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168xorg_testset_save_CFLAGS="$CFLAGS" 6169 6170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6178/* end confdefs.h. */ 6179int i; 6180_ACEOF 6181if ac_fn_c_try_compile "$LINENO"; then : 6182 xorg_cv_cc_flag_unknown_warning_option=yes 6183else 6184 xorg_cv_cc_flag_unknown_warning_option=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6187fi 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192fi 6193 6194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 fi 6198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205/* end confdefs.h. */ 6206int i; 6207_ACEOF 6208if ac_fn_c_try_compile "$LINENO"; then : 6209 xorg_cv_cc_flag_unused_command_line_argument=yes 6210else 6211 xorg_cv_cc_flag_unused_command_line_argument=no 6212fi 6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6214fi 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6218 CFLAGS="$xorg_testset_save_CFLAGS" 6219fi 6220 6221found="no" 6222 6223 if test $found = "no" ; then 6224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6226 fi 6227 6228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6230 fi 6231 6232 CFLAGS="$CFLAGS -Wcast-qual" 6233 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6235$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6236 cacheid=xorg_cv_cc_flag__Wcast_qual 6237 if eval \${$cacheid+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241/* end confdefs.h. */ 6242int i; 6243int 6244main () 6245{ 6246 6247 ; 6248 return 0; 6249} 6250_ACEOF 6251if ac_fn_c_try_link "$LINENO"; then : 6252 eval $cacheid=yes 6253else 6254 eval $cacheid=no 6255fi 6256rm -f core conftest.err conftest.$ac_objext \ 6257 conftest$ac_exeext conftest.$ac_ext 6258fi 6259 6260 6261 CFLAGS="$xorg_testset_save_CFLAGS" 6262 6263 eval supported=\$$cacheid 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6265$as_echo "$supported" >&6; } 6266 if test "$supported" = "yes" ; then 6267 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6268 found="yes" 6269 fi 6270 fi 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286xorg_testset_save_CFLAGS="$CFLAGS" 6287 6288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297int i; 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO"; then : 6300 xorg_cv_cc_flag_unknown_warning_option=yes 6301else 6302 xorg_cv_cc_flag_unknown_warning_option=no 6303fi 6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6305fi 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6309 CFLAGS="$xorg_testset_save_CFLAGS" 6310fi 6311 6312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 fi 6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324int i; 6325_ACEOF 6326if ac_fn_c_try_compile "$LINENO"; then : 6327 xorg_cv_cc_flag_unused_command_line_argument=yes 6328else 6329 xorg_cv_cc_flag_unused_command_line_argument=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337fi 6338 6339found="no" 6340 6341 if test $found = "no" ; then 6342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6344 fi 6345 6346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6348 fi 6349 6350 CFLAGS="$CFLAGS -Wmissing-noreturn" 6351 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6353$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6354 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6355 if eval \${$cacheid+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360int i; 6361int 6362main () 6363{ 6364 6365 ; 6366 return 0; 6367} 6368_ACEOF 6369if ac_fn_c_try_link "$LINENO"; then : 6370 eval $cacheid=yes 6371else 6372 eval $cacheid=no 6373fi 6374rm -f core conftest.err conftest.$ac_objext \ 6375 conftest$ac_exeext conftest.$ac_ext 6376fi 6377 6378 6379 CFLAGS="$xorg_testset_save_CFLAGS" 6380 6381 eval supported=\$$cacheid 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6383$as_echo "$supported" >&6; } 6384 if test "$supported" = "yes" ; then 6385 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6386 found="yes" 6387 fi 6388 fi 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404xorg_testset_save_CFLAGS="$CFLAGS" 6405 6406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414/* end confdefs.h. */ 6415int i; 6416_ACEOF 6417if ac_fn_c_try_compile "$LINENO"; then : 6418 xorg_cv_cc_flag_unknown_warning_option=yes 6419else 6420 xorg_cv_cc_flag_unknown_warning_option=no 6421fi 6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6423fi 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6427 CFLAGS="$xorg_testset_save_CFLAGS" 6428fi 6429 6430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6433 fi 6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443_ACEOF 6444if ac_fn_c_try_compile "$LINENO"; then : 6445 xorg_cv_cc_flag_unused_command_line_argument=yes 6446else 6447 xorg_cv_cc_flag_unused_command_line_argument=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6450fi 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455fi 6456 6457found="no" 6458 6459 if test $found = "no" ; then 6460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 6464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 fi 6467 6468 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6469 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6471$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6472 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6473 if eval \${$cacheid+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6477/* end confdefs.h. */ 6478int i; 6479int 6480main () 6481{ 6482 6483 ; 6484 return 0; 6485} 6486_ACEOF 6487if ac_fn_c_try_link "$LINENO"; then : 6488 eval $cacheid=yes 6489else 6490 eval $cacheid=no 6491fi 6492rm -f core conftest.err conftest.$ac_objext \ 6493 conftest$ac_exeext conftest.$ac_ext 6494fi 6495 6496 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498 6499 eval supported=\$$cacheid 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6501$as_echo "$supported" >&6; } 6502 if test "$supported" = "yes" ; then 6503 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6504 found="yes" 6505 fi 6506 fi 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522xorg_testset_save_CFLAGS="$CFLAGS" 6523 6524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533int i; 6534_ACEOF 6535if ac_fn_c_try_compile "$LINENO"; then : 6536 xorg_cv_cc_flag_unknown_warning_option=yes 6537else 6538 xorg_cv_cc_flag_unknown_warning_option=no 6539fi 6540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546fi 6547 6548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO"; then : 6563 xorg_cv_cc_flag_unused_command_line_argument=yes 6564else 6565 xorg_cv_cc_flag_unused_command_line_argument=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575found="no" 6576 6577 if test $found = "no" ; then 6578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6580 fi 6581 6582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6584 fi 6585 6586 CFLAGS="$CFLAGS -Wredundant-decls" 6587 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6589$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6590 cacheid=xorg_cv_cc_flag__Wredundant_decls 6591 if eval \${$cacheid+:} false; then : 6592 $as_echo_n "(cached) " >&6 6593else 6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596int i; 6597int 6598main () 6599{ 6600 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605if ac_fn_c_try_link "$LINENO"; then : 6606 eval $cacheid=yes 6607else 6608 eval $cacheid=no 6609fi 6610rm -f core conftest.err conftest.$ac_objext \ 6611 conftest$ac_exeext conftest.$ac_ext 6612fi 6613 6614 6615 CFLAGS="$xorg_testset_save_CFLAGS" 6616 6617 eval supported=\$$cacheid 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6619$as_echo "$supported" >&6; } 6620 if test "$supported" = "yes" ; then 6621 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6622 found="yes" 6623 fi 6624 fi 6625 6626 6627 6628# These are currently disabled because they are noisy. They will be enabled 6629# in the future once the codebase is sufficiently modernized to silence 6630# them. For now, I don't want them to drown out the other warnings. 6631# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6632# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6633# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6634 6635# Turn some warnings into errors, so we don't accidently get successful builds 6636# when there are problems that should be fixed. 6637 6638if test "x$SELECTIVE_WERROR" = "xyes" ; then 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652xorg_testset_save_CFLAGS="$CFLAGS" 6653 6654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664_ACEOF 6665if ac_fn_c_try_compile "$LINENO"; then : 6666 xorg_cv_cc_flag_unknown_warning_option=yes 6667else 6668 xorg_cv_cc_flag_unknown_warning_option=no 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6671fi 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6689/* end confdefs.h. */ 6690int i; 6691_ACEOF 6692if ac_fn_c_try_compile "$LINENO"; then : 6693 xorg_cv_cc_flag_unused_command_line_argument=yes 6694else 6695 xorg_cv_cc_flag_unused_command_line_argument=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703fi 6704 6705found="no" 6706 6707 if test $found = "no" ; then 6708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6710 fi 6711 6712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6714 fi 6715 6716 CFLAGS="$CFLAGS -Werror=implicit" 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6719$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6720 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6721 if eval \${$cacheid+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726int i; 6727int 6728main () 6729{ 6730 6731 ; 6732 return 0; 6733} 6734_ACEOF 6735if ac_fn_c_try_link "$LINENO"; then : 6736 eval $cacheid=yes 6737else 6738 eval $cacheid=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext \ 6741 conftest$ac_exeext conftest.$ac_ext 6742fi 6743 6744 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746 6747 eval supported=\$$cacheid 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6749$as_echo "$supported" >&6; } 6750 if test "$supported" = "yes" ; then 6751 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6752 found="yes" 6753 fi 6754 fi 6755 6756 if test $found = "no" ; then 6757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6759 fi 6760 6761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6763 fi 6764 6765 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6766 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6768$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6769 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6770 if eval \${$cacheid+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774/* end confdefs.h. */ 6775int i; 6776int 6777main () 6778{ 6779 6780 ; 6781 return 0; 6782} 6783_ACEOF 6784if ac_fn_c_try_link "$LINENO"; then : 6785 eval $cacheid=yes 6786else 6787 eval $cacheid=no 6788fi 6789rm -f core conftest.err conftest.$ac_objext \ 6790 conftest$ac_exeext conftest.$ac_ext 6791fi 6792 6793 6794 CFLAGS="$xorg_testset_save_CFLAGS" 6795 6796 eval supported=\$$cacheid 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6798$as_echo "$supported" >&6; } 6799 if test "$supported" = "yes" ; then 6800 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6801 found="yes" 6802 fi 6803 fi 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819xorg_testset_save_CFLAGS="$CFLAGS" 6820 6821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829/* end confdefs.h. */ 6830int i; 6831_ACEOF 6832if ac_fn_c_try_compile "$LINENO"; then : 6833 xorg_cv_cc_flag_unknown_warning_option=yes 6834else 6835 xorg_cv_cc_flag_unknown_warning_option=no 6836fi 6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843fi 6844 6845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 fi 6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856/* end confdefs.h. */ 6857int i; 6858_ACEOF 6859if ac_fn_c_try_compile "$LINENO"; then : 6860 xorg_cv_cc_flag_unused_command_line_argument=yes 6861else 6862 xorg_cv_cc_flag_unused_command_line_argument=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6865fi 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870fi 6871 6872found="no" 6873 6874 if test $found = "no" ; then 6875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 6879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6881 fi 6882 6883 CFLAGS="$CFLAGS -Werror=nonnull" 6884 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6886$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6887 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6888 if eval \${$cacheid+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893int i; 6894int 6895main () 6896{ 6897 6898 ; 6899 return 0; 6900} 6901_ACEOF 6902if ac_fn_c_try_link "$LINENO"; then : 6903 eval $cacheid=yes 6904else 6905 eval $cacheid=no 6906fi 6907rm -f core conftest.err conftest.$ac_objext \ 6908 conftest$ac_exeext conftest.$ac_ext 6909fi 6910 6911 6912 CFLAGS="$xorg_testset_save_CFLAGS" 6913 6914 eval supported=\$$cacheid 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6916$as_echo "$supported" >&6; } 6917 if test "$supported" = "yes" ; then 6918 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6919 found="yes" 6920 fi 6921 fi 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937xorg_testset_save_CFLAGS="$CFLAGS" 6938 6939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948int i; 6949_ACEOF 6950if ac_fn_c_try_compile "$LINENO"; then : 6951 xorg_cv_cc_flag_unknown_warning_option=yes 6952else 6953 xorg_cv_cc_flag_unknown_warning_option=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6956fi 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961fi 6962 6963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 fi 6967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO"; then : 6978 xorg_cv_cc_flag_unused_command_line_argument=yes 6979else 6980 xorg_cv_cc_flag_unused_command_line_argument=no 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983fi 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6987 CFLAGS="$xorg_testset_save_CFLAGS" 6988fi 6989 6990found="no" 6991 6992 if test $found = "no" ; then 6993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 fi 6996 6997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6999 fi 7000 7001 CFLAGS="$CFLAGS -Werror=init-self" 7002 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7004$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7005 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7006 if eval \${$cacheid+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011int i; 7012int 7013main () 7014{ 7015 7016 ; 7017 return 0; 7018} 7019_ACEOF 7020if ac_fn_c_try_link "$LINENO"; then : 7021 eval $cacheid=yes 7022else 7023 eval $cacheid=no 7024fi 7025rm -f core conftest.err conftest.$ac_objext \ 7026 conftest$ac_exeext conftest.$ac_ext 7027fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034$as_echo "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055xorg_testset_save_CFLAGS="$CFLAGS" 7056 7057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7065/* end confdefs.h. */ 7066int i; 7067_ACEOF 7068if ac_fn_c_try_compile "$LINENO"; then : 7069 xorg_cv_cc_flag_unknown_warning_option=yes 7070else 7071 xorg_cv_cc_flag_unknown_warning_option=no 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079fi 7080 7081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 fi 7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int i; 7094_ACEOF 7095if ac_fn_c_try_compile "$LINENO"; then : 7096 xorg_cv_cc_flag_unused_command_line_argument=yes 7097else 7098 xorg_cv_cc_flag_unused_command_line_argument=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7101fi 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106fi 7107 7108found="no" 7109 7110 if test $found = "no" ; then 7111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 fi 7114 7115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7117 fi 7118 7119 CFLAGS="$CFLAGS -Werror=main" 7120 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7122$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7123 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7124 if eval \${$cacheid+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128/* end confdefs.h. */ 7129int i; 7130int 7131main () 7132{ 7133 7134 ; 7135 return 0; 7136} 7137_ACEOF 7138if ac_fn_c_try_link "$LINENO"; then : 7139 eval $cacheid=yes 7140else 7141 eval $cacheid=no 7142fi 7143rm -f core conftest.err conftest.$ac_objext \ 7144 conftest$ac_exeext conftest.$ac_ext 7145fi 7146 7147 7148 CFLAGS="$xorg_testset_save_CFLAGS" 7149 7150 eval supported=\$$cacheid 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7152$as_echo "$supported" >&6; } 7153 if test "$supported" = "yes" ; then 7154 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7155 found="yes" 7156 fi 7157 fi 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173xorg_testset_save_CFLAGS="$CFLAGS" 7174 7175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183/* end confdefs.h. */ 7184int i; 7185_ACEOF 7186if ac_fn_c_try_compile "$LINENO"; then : 7187 xorg_cv_cc_flag_unknown_warning_option=yes 7188else 7189 xorg_cv_cc_flag_unknown_warning_option=no 7190fi 7191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7192fi 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197fi 7198 7199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 fi 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210/* end confdefs.h. */ 7211int i; 7212_ACEOF 7213if ac_fn_c_try_compile "$LINENO"; then : 7214 xorg_cv_cc_flag_unused_command_line_argument=yes 7215else 7216 xorg_cv_cc_flag_unused_command_line_argument=no 7217fi 7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7223 CFLAGS="$xorg_testset_save_CFLAGS" 7224fi 7225 7226found="no" 7227 7228 if test $found = "no" ; then 7229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7231 fi 7232 7233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7235 fi 7236 7237 CFLAGS="$CFLAGS -Werror=missing-braces" 7238 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7240$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7241 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7242 if eval \${$cacheid+:} false; then : 7243 $as_echo_n "(cached) " >&6 7244else 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247int i; 7248int 7249main () 7250{ 7251 7252 ; 7253 return 0; 7254} 7255_ACEOF 7256if ac_fn_c_try_link "$LINENO"; then : 7257 eval $cacheid=yes 7258else 7259 eval $cacheid=no 7260fi 7261rm -f core conftest.err conftest.$ac_objext \ 7262 conftest$ac_exeext conftest.$ac_ext 7263fi 7264 7265 7266 CFLAGS="$xorg_testset_save_CFLAGS" 7267 7268 eval supported=\$$cacheid 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7270$as_echo "$supported" >&6; } 7271 if test "$supported" = "yes" ; then 7272 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7273 found="yes" 7274 fi 7275 fi 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291xorg_testset_save_CFLAGS="$CFLAGS" 7292 7293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301/* end confdefs.h. */ 7302int i; 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO"; then : 7305 xorg_cv_cc_flag_unknown_warning_option=yes 7306else 7307 xorg_cv_cc_flag_unknown_warning_option=no 7308fi 7309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7310fi 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7314 CFLAGS="$xorg_testset_save_CFLAGS" 7315fi 7316 7317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7320 fi 7321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330_ACEOF 7331if ac_fn_c_try_compile "$LINENO"; then : 7332 xorg_cv_cc_flag_unused_command_line_argument=yes 7333else 7334 xorg_cv_cc_flag_unused_command_line_argument=no 7335fi 7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7337fi 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342fi 7343 7344found="no" 7345 7346 if test $found = "no" ; then 7347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7349 fi 7350 7351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7353 fi 7354 7355 CFLAGS="$CFLAGS -Werror=sequence-point" 7356 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7358$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7359 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7360 if eval \${$cacheid+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365int i; 7366int 7367main () 7368{ 7369 7370 ; 7371 return 0; 7372} 7373_ACEOF 7374if ac_fn_c_try_link "$LINENO"; then : 7375 eval $cacheid=yes 7376else 7377 eval $cacheid=no 7378fi 7379rm -f core conftest.err conftest.$ac_objext \ 7380 conftest$ac_exeext conftest.$ac_ext 7381fi 7382 7383 7384 CFLAGS="$xorg_testset_save_CFLAGS" 7385 7386 eval supported=\$$cacheid 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7388$as_echo "$supported" >&6; } 7389 if test "$supported" = "yes" ; then 7390 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7391 found="yes" 7392 fi 7393 fi 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409xorg_testset_save_CFLAGS="$CFLAGS" 7410 7411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420int i; 7421_ACEOF 7422if ac_fn_c_try_compile "$LINENO"; then : 7423 xorg_cv_cc_flag_unknown_warning_option=yes 7424else 7425 xorg_cv_cc_flag_unknown_warning_option=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7432 CFLAGS="$xorg_testset_save_CFLAGS" 7433fi 7434 7435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7438 fi 7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447int i; 7448_ACEOF 7449if ac_fn_c_try_compile "$LINENO"; then : 7450 xorg_cv_cc_flag_unused_command_line_argument=yes 7451else 7452 xorg_cv_cc_flag_unused_command_line_argument=no 7453fi 7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7459 CFLAGS="$xorg_testset_save_CFLAGS" 7460fi 7461 7462found="no" 7463 7464 if test $found = "no" ; then 7465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7467 fi 7468 7469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7471 fi 7472 7473 CFLAGS="$CFLAGS -Werror=return-type" 7474 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7476$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7477 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7478 if eval \${$cacheid+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7482/* end confdefs.h. */ 7483int i; 7484int 7485main () 7486{ 7487 7488 ; 7489 return 0; 7490} 7491_ACEOF 7492if ac_fn_c_try_link "$LINENO"; then : 7493 eval $cacheid=yes 7494else 7495 eval $cacheid=no 7496fi 7497rm -f core conftest.err conftest.$ac_objext \ 7498 conftest$ac_exeext conftest.$ac_ext 7499fi 7500 7501 7502 CFLAGS="$xorg_testset_save_CFLAGS" 7503 7504 eval supported=\$$cacheid 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7506$as_echo "$supported" >&6; } 7507 if test "$supported" = "yes" ; then 7508 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7509 found="yes" 7510 fi 7511 fi 7512 7513 if test $found = "no" ; then 7514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7516 fi 7517 7518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7520 fi 7521 7522 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7523 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7525$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7526 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7527 if eval \${$cacheid+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531/* end confdefs.h. */ 7532int i; 7533int 7534main () 7535{ 7536 7537 ; 7538 return 0; 7539} 7540_ACEOF 7541if ac_fn_c_try_link "$LINENO"; then : 7542 eval $cacheid=yes 7543else 7544 eval $cacheid=no 7545fi 7546rm -f core conftest.err conftest.$ac_objext \ 7547 conftest$ac_exeext conftest.$ac_ext 7548fi 7549 7550 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552 7553 eval supported=\$$cacheid 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7555$as_echo "$supported" >&6; } 7556 if test "$supported" = "yes" ; then 7557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7558 found="yes" 7559 fi 7560 fi 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576xorg_testset_save_CFLAGS="$CFLAGS" 7577 7578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7586/* end confdefs.h. */ 7587int i; 7588_ACEOF 7589if ac_fn_c_try_compile "$LINENO"; then : 7590 xorg_cv_cc_flag_unknown_warning_option=yes 7591else 7592 xorg_cv_cc_flag_unknown_warning_option=no 7593fi 7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7595fi 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7599 CFLAGS="$xorg_testset_save_CFLAGS" 7600fi 7601 7602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7605 fi 7606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614int i; 7615_ACEOF 7616if ac_fn_c_try_compile "$LINENO"; then : 7617 xorg_cv_cc_flag_unused_command_line_argument=yes 7618else 7619 xorg_cv_cc_flag_unused_command_line_argument=no 7620fi 7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7626 CFLAGS="$xorg_testset_save_CFLAGS" 7627fi 7628 7629found="no" 7630 7631 if test $found = "no" ; then 7632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 fi 7635 7636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7638 fi 7639 7640 CFLAGS="$CFLAGS -Werror=trigraphs" 7641 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7643$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7644 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7645 if eval \${$cacheid+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649/* end confdefs.h. */ 7650int i; 7651int 7652main () 7653{ 7654 7655 ; 7656 return 0; 7657} 7658_ACEOF 7659if ac_fn_c_try_link "$LINENO"; then : 7660 eval $cacheid=yes 7661else 7662 eval $cacheid=no 7663fi 7664rm -f core conftest.err conftest.$ac_objext \ 7665 conftest$ac_exeext conftest.$ac_ext 7666fi 7667 7668 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7670 7671 eval supported=\$$cacheid 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7673$as_echo "$supported" >&6; } 7674 if test "$supported" = "yes" ; then 7675 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7676 found="yes" 7677 fi 7678 fi 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694xorg_testset_save_CFLAGS="$CFLAGS" 7695 7696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7701 $as_echo_n "(cached) " >&6 7702else 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705int i; 7706_ACEOF 7707if ac_fn_c_try_compile "$LINENO"; then : 7708 xorg_cv_cc_flag_unknown_warning_option=yes 7709else 7710 xorg_cv_cc_flag_unknown_warning_option=no 7711fi 7712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7713fi 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7717 CFLAGS="$xorg_testset_save_CFLAGS" 7718fi 7719 7720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7723 fi 7724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7731/* end confdefs.h. */ 7732int i; 7733_ACEOF 7734if ac_fn_c_try_compile "$LINENO"; then : 7735 xorg_cv_cc_flag_unused_command_line_argument=yes 7736else 7737 xorg_cv_cc_flag_unused_command_line_argument=no 7738fi 7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7740fi 7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7744 CFLAGS="$xorg_testset_save_CFLAGS" 7745fi 7746 7747found="no" 7748 7749 if test $found = "no" ; then 7750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7752 fi 7753 7754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7756 fi 7757 7758 CFLAGS="$CFLAGS -Werror=array-bounds" 7759 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7761$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7762 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7763 if eval \${$cacheid+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768int i; 7769int 7770main () 7771{ 7772 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_c_try_link "$LINENO"; then : 7778 eval $cacheid=yes 7779else 7780 eval $cacheid=no 7781fi 7782rm -f core conftest.err conftest.$ac_objext \ 7783 conftest$ac_exeext conftest.$ac_ext 7784fi 7785 7786 7787 CFLAGS="$xorg_testset_save_CFLAGS" 7788 7789 eval supported=\$$cacheid 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7791$as_echo "$supported" >&6; } 7792 if test "$supported" = "yes" ; then 7793 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7794 found="yes" 7795 fi 7796 fi 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812xorg_testset_save_CFLAGS="$CFLAGS" 7813 7814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820else 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823int i; 7824_ACEOF 7825if ac_fn_c_try_compile "$LINENO"; then : 7826 xorg_cv_cc_flag_unknown_warning_option=yes 7827else 7828 xorg_cv_cc_flag_unknown_warning_option=no 7829fi 7830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7831fi 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7835 CFLAGS="$xorg_testset_save_CFLAGS" 7836fi 7837 7838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7841 fi 7842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851_ACEOF 7852if ac_fn_c_try_compile "$LINENO"; then : 7853 xorg_cv_cc_flag_unused_command_line_argument=yes 7854else 7855 xorg_cv_cc_flag_unused_command_line_argument=no 7856fi 7857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7858fi 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7862 CFLAGS="$xorg_testset_save_CFLAGS" 7863fi 7864 7865found="no" 7866 7867 if test $found = "no" ; then 7868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7870 fi 7871 7872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7874 fi 7875 7876 CFLAGS="$CFLAGS -Werror=write-strings" 7877 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7879$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7880 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7881 if eval \${$cacheid+:} false; then : 7882 $as_echo_n "(cached) " >&6 7883else 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886int i; 7887int 7888main () 7889{ 7890 7891 ; 7892 return 0; 7893} 7894_ACEOF 7895if ac_fn_c_try_link "$LINENO"; then : 7896 eval $cacheid=yes 7897else 7898 eval $cacheid=no 7899fi 7900rm -f core conftest.err conftest.$ac_objext \ 7901 conftest$ac_exeext conftest.$ac_ext 7902fi 7903 7904 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906 7907 eval supported=\$$cacheid 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7909$as_echo "$supported" >&6; } 7910 if test "$supported" = "yes" ; then 7911 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7912 found="yes" 7913 fi 7914 fi 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930xorg_testset_save_CFLAGS="$CFLAGS" 7931 7932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7937 $as_echo_n "(cached) " >&6 7938else 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941int i; 7942_ACEOF 7943if ac_fn_c_try_compile "$LINENO"; then : 7944 xorg_cv_cc_flag_unknown_warning_option=yes 7945else 7946 xorg_cv_cc_flag_unknown_warning_option=no 7947fi 7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7949fi 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7953 CFLAGS="$xorg_testset_save_CFLAGS" 7954fi 7955 7956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 fi 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7963if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968int i; 7969_ACEOF 7970if ac_fn_c_try_compile "$LINENO"; then : 7971 xorg_cv_cc_flag_unused_command_line_argument=yes 7972else 7973 xorg_cv_cc_flag_unused_command_line_argument=no 7974fi 7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7976fi 7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981fi 7982 7983found="no" 7984 7985 if test $found = "no" ; then 7986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7988 fi 7989 7990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7992 fi 7993 7994 CFLAGS="$CFLAGS -Werror=address" 7995 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7997$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7998 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7999 if eval \${$cacheid+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8003/* end confdefs.h. */ 8004int i; 8005int 8006main () 8007{ 8008 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013if ac_fn_c_try_link "$LINENO"; then : 8014 eval $cacheid=yes 8015else 8016 eval $cacheid=no 8017fi 8018rm -f core conftest.err conftest.$ac_objext \ 8019 conftest$ac_exeext conftest.$ac_ext 8020fi 8021 8022 8023 CFLAGS="$xorg_testset_save_CFLAGS" 8024 8025 eval supported=\$$cacheid 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8027$as_echo "$supported" >&6; } 8028 if test "$supported" = "yes" ; then 8029 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8030 found="yes" 8031 fi 8032 fi 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048xorg_testset_save_CFLAGS="$CFLAGS" 8049 8050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058/* end confdefs.h. */ 8059int i; 8060_ACEOF 8061if ac_fn_c_try_compile "$LINENO"; then : 8062 xorg_cv_cc_flag_unknown_warning_option=yes 8063else 8064 xorg_cv_cc_flag_unknown_warning_option=no 8065fi 8066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8067fi 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8071 CFLAGS="$xorg_testset_save_CFLAGS" 8072fi 8073 8074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8077 fi 8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086int i; 8087_ACEOF 8088if ac_fn_c_try_compile "$LINENO"; then : 8089 xorg_cv_cc_flag_unused_command_line_argument=yes 8090else 8091 xorg_cv_cc_flag_unused_command_line_argument=no 8092fi 8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8098 CFLAGS="$xorg_testset_save_CFLAGS" 8099fi 8100 8101found="no" 8102 8103 if test $found = "no" ; then 8104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8106 fi 8107 8108 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8110 fi 8111 8112 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8113 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8115$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8116 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8117 if eval \${$cacheid+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121/* end confdefs.h. */ 8122int i; 8123int 8124main () 8125{ 8126 8127 ; 8128 return 0; 8129} 8130_ACEOF 8131if ac_fn_c_try_link "$LINENO"; then : 8132 eval $cacheid=yes 8133else 8134 eval $cacheid=no 8135fi 8136rm -f core conftest.err conftest.$ac_objext \ 8137 conftest$ac_exeext conftest.$ac_ext 8138fi 8139 8140 8141 CFLAGS="$xorg_testset_save_CFLAGS" 8142 8143 eval supported=\$$cacheid 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8145$as_echo "$supported" >&6; } 8146 if test "$supported" = "yes" ; then 8147 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8148 found="yes" 8149 fi 8150 fi 8151 8152 if test $found = "no" ; then 8153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 fi 8156 8157 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8159 fi 8160 8161 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8162 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8164$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8165 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8166 if eval \${$cacheid+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170/* end confdefs.h. */ 8171int i; 8172int 8173main () 8174{ 8175 8176 ; 8177 return 0; 8178} 8179_ACEOF 8180if ac_fn_c_try_link "$LINENO"; then : 8181 eval $cacheid=yes 8182else 8183 eval $cacheid=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext \ 8186 conftest$ac_exeext conftest.$ac_ext 8187fi 8188 8189 8190 CFLAGS="$xorg_testset_save_CFLAGS" 8191 8192 eval supported=\$$cacheid 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8194$as_echo "$supported" >&6; } 8195 if test "$supported" = "yes" ; then 8196 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8197 found="yes" 8198 fi 8199 fi 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215xorg_testset_save_CFLAGS="$CFLAGS" 8216 8217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226int i; 8227_ACEOF 8228if ac_fn_c_try_compile "$LINENO"; then : 8229 xorg_cv_cc_flag_unknown_warning_option=yes 8230else 8231 xorg_cv_cc_flag_unknown_warning_option=no 8232fi 8233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8234fi 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8238 CFLAGS="$xorg_testset_save_CFLAGS" 8239fi 8240 8241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8244 fi 8245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254_ACEOF 8255if ac_fn_c_try_compile "$LINENO"; then : 8256 xorg_cv_cc_flag_unused_command_line_argument=yes 8257else 8258 xorg_cv_cc_flag_unused_command_line_argument=no 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8261fi 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266fi 8267 8268found="no" 8269 8270 if test $found = "no" ; then 8271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 fi 8274 8275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8277 fi 8278 8279 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8280 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8282$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8283 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8284 if eval \${$cacheid+:} false; then : 8285 $as_echo_n "(cached) " >&6 8286else 8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8288/* end confdefs.h. */ 8289int i; 8290int 8291main () 8292{ 8293 8294 ; 8295 return 0; 8296} 8297_ACEOF 8298if ac_fn_c_try_link "$LINENO"; then : 8299 eval $cacheid=yes 8300else 8301 eval $cacheid=no 8302fi 8303rm -f core conftest.err conftest.$ac_objext \ 8304 conftest$ac_exeext conftest.$ac_ext 8305fi 8306 8307 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309 8310 eval supported=\$$cacheid 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8312$as_echo "$supported" >&6; } 8313 if test "$supported" = "yes" ; then 8314 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8315 found="yes" 8316 fi 8317 fi 8318 8319 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8320else 8321{ $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 8322$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;} 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336xorg_testset_save_CFLAGS="$CFLAGS" 8337 8338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8346/* end confdefs.h. */ 8347int i; 8348_ACEOF 8349if ac_fn_c_try_compile "$LINENO"; then : 8350 xorg_cv_cc_flag_unknown_warning_option=yes 8351else 8352 xorg_cv_cc_flag_unknown_warning_option=no 8353fi 8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8359 CFLAGS="$xorg_testset_save_CFLAGS" 8360fi 8361 8362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374int i; 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 xorg_cv_cc_flag_unused_command_line_argument=yes 8378else 8379 xorg_cv_cc_flag_unused_command_line_argument=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387fi 8388 8389found="no" 8390 8391 if test $found = "no" ; then 8392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 8396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8398 fi 8399 8400 CFLAGS="$CFLAGS -Wimplicit" 8401 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8403$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8404 cacheid=xorg_cv_cc_flag__Wimplicit 8405 if eval \${$cacheid+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411int 8412main () 8413{ 8414 8415 ; 8416 return 0; 8417} 8418_ACEOF 8419if ac_fn_c_try_link "$LINENO"; then : 8420 eval $cacheid=yes 8421else 8422 eval $cacheid=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext \ 8425 conftest$ac_exeext conftest.$ac_ext 8426fi 8427 8428 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430 8431 eval supported=\$$cacheid 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8433$as_echo "$supported" >&6; } 8434 if test "$supported" = "yes" ; then 8435 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8436 found="yes" 8437 fi 8438 fi 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454xorg_testset_save_CFLAGS="$CFLAGS" 8455 8456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465int i; 8466_ACEOF 8467if ac_fn_c_try_compile "$LINENO"; then : 8468 xorg_cv_cc_flag_unknown_warning_option=yes 8469else 8470 xorg_cv_cc_flag_unknown_warning_option=no 8471fi 8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478fi 8479 8480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 fi 8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489else 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO"; then : 8495 xorg_cv_cc_flag_unused_command_line_argument=yes 8496else 8497 xorg_cv_cc_flag_unused_command_line_argument=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8500fi 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505fi 8506 8507found="no" 8508 8509 if test $found = "no" ; then 8510 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 fi 8513 8514 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8516 fi 8517 8518 CFLAGS="$CFLAGS -Wnonnull" 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8521$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8522 cacheid=xorg_cv_cc_flag__Wnonnull 8523 if eval \${$cacheid+:} false; then : 8524 $as_echo_n "(cached) " >&6 8525else 8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527/* end confdefs.h. */ 8528int i; 8529int 8530main () 8531{ 8532 8533 ; 8534 return 0; 8535} 8536_ACEOF 8537if ac_fn_c_try_link "$LINENO"; then : 8538 eval $cacheid=yes 8539else 8540 eval $cacheid=no 8541fi 8542rm -f core conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544fi 8545 8546 8547 CFLAGS="$xorg_testset_save_CFLAGS" 8548 8549 eval supported=\$$cacheid 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8551$as_echo "$supported" >&6; } 8552 if test "$supported" = "yes" ; then 8553 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8554 found="yes" 8555 fi 8556 fi 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572xorg_testset_save_CFLAGS="$CFLAGS" 8573 8574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8579 $as_echo_n "(cached) " >&6 8580else 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583int i; 8584_ACEOF 8585if ac_fn_c_try_compile "$LINENO"; then : 8586 xorg_cv_cc_flag_unknown_warning_option=yes 8587else 8588 xorg_cv_cc_flag_unknown_warning_option=no 8589fi 8590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8591fi 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8595 CFLAGS="$xorg_testset_save_CFLAGS" 8596fi 8597 8598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 fi 8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610int i; 8611_ACEOF 8612if ac_fn_c_try_compile "$LINENO"; then : 8613 xorg_cv_cc_flag_unused_command_line_argument=yes 8614else 8615 xorg_cv_cc_flag_unused_command_line_argument=no 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623fi 8624 8625found="no" 8626 8627 if test $found = "no" ; then 8628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 8632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 fi 8635 8636 CFLAGS="$CFLAGS -Winit-self" 8637 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8639$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8640 cacheid=xorg_cv_cc_flag__Winit_self 8641 if eval \${$cacheid+:} false; then : 8642 $as_echo_n "(cached) " >&6 8643else 8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646int i; 8647int 8648main () 8649{ 8650 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655if ac_fn_c_try_link "$LINENO"; then : 8656 eval $cacheid=yes 8657else 8658 eval $cacheid=no 8659fi 8660rm -f core conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662fi 8663 8664 8665 CFLAGS="$xorg_testset_save_CFLAGS" 8666 8667 eval supported=\$$cacheid 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8669$as_echo "$supported" >&6; } 8670 if test "$supported" = "yes" ; then 8671 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8672 found="yes" 8673 fi 8674 fi 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690xorg_testset_save_CFLAGS="$CFLAGS" 8691 8692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8700/* end confdefs.h. */ 8701int i; 8702_ACEOF 8703if ac_fn_c_try_compile "$LINENO"; then : 8704 xorg_cv_cc_flag_unknown_warning_option=yes 8705else 8706 xorg_cv_cc_flag_unknown_warning_option=no 8707fi 8708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8713 CFLAGS="$xorg_testset_save_CFLAGS" 8714fi 8715 8716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8719 fi 8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728int i; 8729_ACEOF 8730if ac_fn_c_try_compile "$LINENO"; then : 8731 xorg_cv_cc_flag_unused_command_line_argument=yes 8732else 8733 xorg_cv_cc_flag_unused_command_line_argument=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8736fi 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8740 CFLAGS="$xorg_testset_save_CFLAGS" 8741fi 8742 8743found="no" 8744 8745 if test $found = "no" ; then 8746 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8748 fi 8749 8750 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8752 fi 8753 8754 CFLAGS="$CFLAGS -Wmain" 8755 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8757$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8758 cacheid=xorg_cv_cc_flag__Wmain 8759 if eval \${$cacheid+:} false; then : 8760 $as_echo_n "(cached) " >&6 8761else 8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8763/* end confdefs.h. */ 8764int i; 8765int 8766main () 8767{ 8768 8769 ; 8770 return 0; 8771} 8772_ACEOF 8773if ac_fn_c_try_link "$LINENO"; then : 8774 eval $cacheid=yes 8775else 8776 eval $cacheid=no 8777fi 8778rm -f core conftest.err conftest.$ac_objext \ 8779 conftest$ac_exeext conftest.$ac_ext 8780fi 8781 8782 8783 CFLAGS="$xorg_testset_save_CFLAGS" 8784 8785 eval supported=\$$cacheid 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8787$as_echo "$supported" >&6; } 8788 if test "$supported" = "yes" ; then 8789 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8790 found="yes" 8791 fi 8792 fi 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808xorg_testset_save_CFLAGS="$CFLAGS" 8809 8810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816else 8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8818/* end confdefs.h. */ 8819int i; 8820_ACEOF 8821if ac_fn_c_try_compile "$LINENO"; then : 8822 xorg_cv_cc_flag_unknown_warning_option=yes 8823else 8824 xorg_cv_cc_flag_unknown_warning_option=no 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8827fi 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8845/* end confdefs.h. */ 8846int i; 8847_ACEOF 8848if ac_fn_c_try_compile "$LINENO"; then : 8849 xorg_cv_cc_flag_unused_command_line_argument=yes 8850else 8851 xorg_cv_cc_flag_unused_command_line_argument=no 8852fi 8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8854fi 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859fi 8860 8861found="no" 8862 8863 if test $found = "no" ; then 8864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 8868 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8870 fi 8871 8872 CFLAGS="$CFLAGS -Wmissing-braces" 8873 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8875$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8876 cacheid=xorg_cv_cc_flag__Wmissing_braces 8877 if eval \${$cacheid+:} false; then : 8878 $as_echo_n "(cached) " >&6 8879else 8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8881/* end confdefs.h. */ 8882int i; 8883int 8884main () 8885{ 8886 8887 ; 8888 return 0; 8889} 8890_ACEOF 8891if ac_fn_c_try_link "$LINENO"; then : 8892 eval $cacheid=yes 8893else 8894 eval $cacheid=no 8895fi 8896rm -f core conftest.err conftest.$ac_objext \ 8897 conftest$ac_exeext conftest.$ac_ext 8898fi 8899 8900 8901 CFLAGS="$xorg_testset_save_CFLAGS" 8902 8903 eval supported=\$$cacheid 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8905$as_echo "$supported" >&6; } 8906 if test "$supported" = "yes" ; then 8907 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8908 found="yes" 8909 fi 8910 fi 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926xorg_testset_save_CFLAGS="$CFLAGS" 8927 8928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934else 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937int i; 8938_ACEOF 8939if ac_fn_c_try_compile "$LINENO"; then : 8940 xorg_cv_cc_flag_unknown_warning_option=yes 8941else 8942 xorg_cv_cc_flag_unknown_warning_option=no 8943fi 8944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8949 CFLAGS="$xorg_testset_save_CFLAGS" 8950fi 8951 8952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8955 fi 8956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963/* end confdefs.h. */ 8964int i; 8965_ACEOF 8966if ac_fn_c_try_compile "$LINENO"; then : 8967 xorg_cv_cc_flag_unused_command_line_argument=yes 8968else 8969 xorg_cv_cc_flag_unused_command_line_argument=no 8970fi 8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8972fi 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8976 CFLAGS="$xorg_testset_save_CFLAGS" 8977fi 8978 8979found="no" 8980 8981 if test $found = "no" ; then 8982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 fi 8985 8986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8988 fi 8989 8990 CFLAGS="$CFLAGS -Wsequence-point" 8991 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8993$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8994 cacheid=xorg_cv_cc_flag__Wsequence_point 8995 if eval \${$cacheid+:} false; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000int i; 9001int 9002main () 9003{ 9004 9005 ; 9006 return 0; 9007} 9008_ACEOF 9009if ac_fn_c_try_link "$LINENO"; then : 9010 eval $cacheid=yes 9011else 9012 eval $cacheid=no 9013fi 9014rm -f core conftest.err conftest.$ac_objext \ 9015 conftest$ac_exeext conftest.$ac_ext 9016fi 9017 9018 9019 CFLAGS="$xorg_testset_save_CFLAGS" 9020 9021 eval supported=\$$cacheid 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9023$as_echo "$supported" >&6; } 9024 if test "$supported" = "yes" ; then 9025 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9026 found="yes" 9027 fi 9028 fi 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044xorg_testset_save_CFLAGS="$CFLAGS" 9045 9046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9051 $as_echo_n "(cached) " >&6 9052else 9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055int i; 9056_ACEOF 9057if ac_fn_c_try_compile "$LINENO"; then : 9058 xorg_cv_cc_flag_unknown_warning_option=yes 9059else 9060 xorg_cv_cc_flag_unknown_warning_option=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9063fi 9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068fi 9069 9070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9073 fi 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083_ACEOF 9084if ac_fn_c_try_compile "$LINENO"; then : 9085 xorg_cv_cc_flag_unused_command_line_argument=yes 9086else 9087 xorg_cv_cc_flag_unused_command_line_argument=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9090fi 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095fi 9096 9097found="no" 9098 9099 if test $found = "no" ; then 9100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 fi 9103 9104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9106 fi 9107 9108 CFLAGS="$CFLAGS -Wreturn-type" 9109 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9111$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9112 cacheid=xorg_cv_cc_flag__Wreturn_type 9113 if eval \${$cacheid+:} false; then : 9114 $as_echo_n "(cached) " >&6 9115else 9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117/* end confdefs.h. */ 9118int i; 9119int 9120main () 9121{ 9122 9123 ; 9124 return 0; 9125} 9126_ACEOF 9127if ac_fn_c_try_link "$LINENO"; then : 9128 eval $cacheid=yes 9129else 9130 eval $cacheid=no 9131fi 9132rm -f core conftest.err conftest.$ac_objext \ 9133 conftest$ac_exeext conftest.$ac_ext 9134fi 9135 9136 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138 9139 eval supported=\$$cacheid 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9141$as_echo "$supported" >&6; } 9142 if test "$supported" = "yes" ; then 9143 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9144 found="yes" 9145 fi 9146 fi 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162xorg_testset_save_CFLAGS="$CFLAGS" 9163 9164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9169 $as_echo_n "(cached) " >&6 9170else 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173int i; 9174_ACEOF 9175if ac_fn_c_try_compile "$LINENO"; then : 9176 xorg_cv_cc_flag_unknown_warning_option=yes 9177else 9178 xorg_cv_cc_flag_unknown_warning_option=no 9179fi 9180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9181fi 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9185 CFLAGS="$xorg_testset_save_CFLAGS" 9186fi 9187 9188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9191 fi 9192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201_ACEOF 9202if ac_fn_c_try_compile "$LINENO"; then : 9203 xorg_cv_cc_flag_unused_command_line_argument=yes 9204else 9205 xorg_cv_cc_flag_unused_command_line_argument=no 9206fi 9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9212 CFLAGS="$xorg_testset_save_CFLAGS" 9213fi 9214 9215found="no" 9216 9217 if test $found = "no" ; then 9218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 fi 9221 9222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9224 fi 9225 9226 CFLAGS="$CFLAGS -Wtrigraphs" 9227 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9229$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9230 cacheid=xorg_cv_cc_flag__Wtrigraphs 9231 if eval \${$cacheid+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233else 9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9235/* end confdefs.h. */ 9236int i; 9237int 9238main () 9239{ 9240 9241 ; 9242 return 0; 9243} 9244_ACEOF 9245if ac_fn_c_try_link "$LINENO"; then : 9246 eval $cacheid=yes 9247else 9248 eval $cacheid=no 9249fi 9250rm -f core conftest.err conftest.$ac_objext \ 9251 conftest$ac_exeext conftest.$ac_ext 9252fi 9253 9254 9255 CFLAGS="$xorg_testset_save_CFLAGS" 9256 9257 eval supported=\$$cacheid 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9259$as_echo "$supported" >&6; } 9260 if test "$supported" = "yes" ; then 9261 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9262 found="yes" 9263 fi 9264 fi 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280xorg_testset_save_CFLAGS="$CFLAGS" 9281 9282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9287 $as_echo_n "(cached) " >&6 9288else 9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9290/* end confdefs.h. */ 9291int i; 9292_ACEOF 9293if ac_fn_c_try_compile "$LINENO"; then : 9294 xorg_cv_cc_flag_unknown_warning_option=yes 9295else 9296 xorg_cv_cc_flag_unknown_warning_option=no 9297fi 9298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9303 CFLAGS="$xorg_testset_save_CFLAGS" 9304fi 9305 9306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 fi 9310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO"; then : 9321 xorg_cv_cc_flag_unused_command_line_argument=yes 9322else 9323 xorg_cv_cc_flag_unused_command_line_argument=no 9324fi 9325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9330 CFLAGS="$xorg_testset_save_CFLAGS" 9331fi 9332 9333found="no" 9334 9335 if test $found = "no" ; then 9336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 9340 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9342 fi 9343 9344 CFLAGS="$CFLAGS -Warray-bounds" 9345 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9347$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9348 cacheid=xorg_cv_cc_flag__Warray_bounds 9349 if eval \${$cacheid+:} false; then : 9350 $as_echo_n "(cached) " >&6 9351else 9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353/* end confdefs.h. */ 9354int i; 9355int 9356main () 9357{ 9358 9359 ; 9360 return 0; 9361} 9362_ACEOF 9363if ac_fn_c_try_link "$LINENO"; then : 9364 eval $cacheid=yes 9365else 9366 eval $cacheid=no 9367fi 9368rm -f core conftest.err conftest.$ac_objext \ 9369 conftest$ac_exeext conftest.$ac_ext 9370fi 9371 9372 9373 CFLAGS="$xorg_testset_save_CFLAGS" 9374 9375 eval supported=\$$cacheid 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9377$as_echo "$supported" >&6; } 9378 if test "$supported" = "yes" ; then 9379 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9380 found="yes" 9381 fi 9382 fi 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398xorg_testset_save_CFLAGS="$CFLAGS" 9399 9400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406else 9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410_ACEOF 9411if ac_fn_c_try_compile "$LINENO"; then : 9412 xorg_cv_cc_flag_unknown_warning_option=yes 9413else 9414 xorg_cv_cc_flag_unknown_warning_option=no 9415fi 9416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9417fi 9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9421 CFLAGS="$xorg_testset_save_CFLAGS" 9422fi 9423 9424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9427 fi 9428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436int i; 9437_ACEOF 9438if ac_fn_c_try_compile "$LINENO"; then : 9439 xorg_cv_cc_flag_unused_command_line_argument=yes 9440else 9441 xorg_cv_cc_flag_unused_command_line_argument=no 9442fi 9443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9444fi 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9448 CFLAGS="$xorg_testset_save_CFLAGS" 9449fi 9450 9451found="no" 9452 9453 if test $found = "no" ; then 9454 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9456 fi 9457 9458 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9460 fi 9461 9462 CFLAGS="$CFLAGS -Wwrite-strings" 9463 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9465$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9466 cacheid=xorg_cv_cc_flag__Wwrite_strings 9467 if eval \${$cacheid+:} false; then : 9468 $as_echo_n "(cached) " >&6 9469else 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471/* end confdefs.h. */ 9472int i; 9473int 9474main () 9475{ 9476 9477 ; 9478 return 0; 9479} 9480_ACEOF 9481if ac_fn_c_try_link "$LINENO"; then : 9482 eval $cacheid=yes 9483else 9484 eval $cacheid=no 9485fi 9486rm -f core conftest.err conftest.$ac_objext \ 9487 conftest$ac_exeext conftest.$ac_ext 9488fi 9489 9490 9491 CFLAGS="$xorg_testset_save_CFLAGS" 9492 9493 eval supported=\$$cacheid 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9495$as_echo "$supported" >&6; } 9496 if test "$supported" = "yes" ; then 9497 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9498 found="yes" 9499 fi 9500 fi 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516xorg_testset_save_CFLAGS="$CFLAGS" 9517 9518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9523 $as_echo_n "(cached) " >&6 9524else 9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9526/* end confdefs.h. */ 9527int i; 9528_ACEOF 9529if ac_fn_c_try_compile "$LINENO"; then : 9530 xorg_cv_cc_flag_unknown_warning_option=yes 9531else 9532 xorg_cv_cc_flag_unknown_warning_option=no 9533fi 9534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9535fi 9536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9539 CFLAGS="$xorg_testset_save_CFLAGS" 9540fi 9541 9542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9545 fi 9546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9550 $as_echo_n "(cached) " >&6 9551else 9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9553/* end confdefs.h. */ 9554int i; 9555_ACEOF 9556if ac_fn_c_try_compile "$LINENO"; then : 9557 xorg_cv_cc_flag_unused_command_line_argument=yes 9558else 9559 xorg_cv_cc_flag_unused_command_line_argument=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9562fi 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567fi 9568 9569found="no" 9570 9571 if test $found = "no" ; then 9572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9574 fi 9575 9576 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9578 fi 9579 9580 CFLAGS="$CFLAGS -Waddress" 9581 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9583$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9584 cacheid=xorg_cv_cc_flag__Waddress 9585 if eval \${$cacheid+:} false; then : 9586 $as_echo_n "(cached) " >&6 9587else 9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589/* end confdefs.h. */ 9590int i; 9591int 9592main () 9593{ 9594 9595 ; 9596 return 0; 9597} 9598_ACEOF 9599if ac_fn_c_try_link "$LINENO"; then : 9600 eval $cacheid=yes 9601else 9602 eval $cacheid=no 9603fi 9604rm -f core conftest.err conftest.$ac_objext \ 9605 conftest$ac_exeext conftest.$ac_ext 9606fi 9607 9608 9609 CFLAGS="$xorg_testset_save_CFLAGS" 9610 9611 eval supported=\$$cacheid 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9613$as_echo "$supported" >&6; } 9614 if test "$supported" = "yes" ; then 9615 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9616 found="yes" 9617 fi 9618 fi 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634xorg_testset_save_CFLAGS="$CFLAGS" 9635 9636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644/* end confdefs.h. */ 9645int i; 9646_ACEOF 9647if ac_fn_c_try_compile "$LINENO"; then : 9648 xorg_cv_cc_flag_unknown_warning_option=yes 9649else 9650 xorg_cv_cc_flag_unknown_warning_option=no 9651fi 9652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9653fi 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9657 CFLAGS="$xorg_testset_save_CFLAGS" 9658fi 9659 9660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9663 fi 9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673_ACEOF 9674if ac_fn_c_try_compile "$LINENO"; then : 9675 xorg_cv_cc_flag_unused_command_line_argument=yes 9676else 9677 xorg_cv_cc_flag_unused_command_line_argument=no 9678fi 9679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9680fi 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685fi 9686 9687found="no" 9688 9689 if test $found = "no" ; then 9690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 fi 9693 9694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9696 fi 9697 9698 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9699 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9701$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9702 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9703 if eval \${$cacheid+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705else 9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707/* end confdefs.h. */ 9708int i; 9709int 9710main () 9711{ 9712 9713 ; 9714 return 0; 9715} 9716_ACEOF 9717if ac_fn_c_try_link "$LINENO"; then : 9718 eval $cacheid=yes 9719else 9720 eval $cacheid=no 9721fi 9722rm -f core conftest.err conftest.$ac_objext \ 9723 conftest$ac_exeext conftest.$ac_ext 9724fi 9725 9726 9727 CFLAGS="$xorg_testset_save_CFLAGS" 9728 9729 eval supported=\$$cacheid 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9731$as_echo "$supported" >&6; } 9732 if test "$supported" = "yes" ; then 9733 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9734 found="yes" 9735 fi 9736 fi 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752xorg_testset_save_CFLAGS="$CFLAGS" 9753 9754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9759 $as_echo_n "(cached) " >&6 9760else 9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762/* end confdefs.h. */ 9763int i; 9764_ACEOF 9765if ac_fn_c_try_compile "$LINENO"; then : 9766 xorg_cv_cc_flag_unknown_warning_option=yes 9767else 9768 xorg_cv_cc_flag_unknown_warning_option=no 9769fi 9770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9771fi 9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9775 CFLAGS="$xorg_testset_save_CFLAGS" 9776fi 9777 9778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9781 fi 9782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9786 $as_echo_n "(cached) " >&6 9787else 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790int i; 9791_ACEOF 9792if ac_fn_c_try_compile "$LINENO"; then : 9793 xorg_cv_cc_flag_unused_command_line_argument=yes 9794else 9795 xorg_cv_cc_flag_unused_command_line_argument=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9798fi 9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803fi 9804 9805found="no" 9806 9807 if test $found = "no" ; then 9808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9810 fi 9811 9812 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9814 fi 9815 9816 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9819$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9820 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9821 if eval \${$cacheid+:} false; then : 9822 $as_echo_n "(cached) " >&6 9823else 9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826int i; 9827int 9828main () 9829{ 9830 9831 ; 9832 return 0; 9833} 9834_ACEOF 9835if ac_fn_c_try_link "$LINENO"; then : 9836 eval $cacheid=yes 9837else 9838 eval $cacheid=no 9839fi 9840rm -f core conftest.err conftest.$ac_objext \ 9841 conftest$ac_exeext conftest.$ac_ext 9842fi 9843 9844 9845 CFLAGS="$xorg_testset_save_CFLAGS" 9846 9847 eval supported=\$$cacheid 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9849$as_echo "$supported" >&6; } 9850 if test "$supported" = "yes" ; then 9851 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9852 found="yes" 9853 fi 9854 fi 9855 9856 9857fi 9858 9859 9860 9861 9862 9863 9864 9865 CWARNFLAGS="$BASE_CFLAGS" 9866 if test "x$GCC" = xyes ; then 9867 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9868 fi 9869 9870 9871 9872 9873 9874 9875 9876 9877# Check whether --enable-strict-compilation was given. 9878if test "${enable_strict_compilation+set}" = set; then : 9879 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9880else 9881 STRICT_COMPILE=no 9882fi 9883 9884 9885 9886 9887 9888 9889STRICT_CFLAGS="" 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903xorg_testset_save_CFLAGS="$CFLAGS" 9904 9905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911else 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914int i; 9915_ACEOF 9916if ac_fn_c_try_compile "$LINENO"; then : 9917 xorg_cv_cc_flag_unknown_warning_option=yes 9918else 9919 xorg_cv_cc_flag_unknown_warning_option=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9922fi 9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927fi 9928 9929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 fi 9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940/* end confdefs.h. */ 9941int i; 9942_ACEOF 9943if ac_fn_c_try_compile "$LINENO"; then : 9944 xorg_cv_cc_flag_unused_command_line_argument=yes 9945else 9946 xorg_cv_cc_flag_unused_command_line_argument=no 9947fi 9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9949fi 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9953 CFLAGS="$xorg_testset_save_CFLAGS" 9954fi 9955 9956found="no" 9957 9958 if test $found = "no" ; then 9959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 fi 9962 9963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9965 fi 9966 9967 CFLAGS="$CFLAGS -pedantic" 9968 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9970$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9971 cacheid=xorg_cv_cc_flag__pedantic 9972 if eval \${$cacheid+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977int i; 9978int 9979main () 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986if ac_fn_c_try_link "$LINENO"; then : 9987 eval $cacheid=yes 9988else 9989 eval $cacheid=no 9990fi 9991rm -f core conftest.err conftest.$ac_objext \ 9992 conftest$ac_exeext conftest.$ac_ext 9993fi 9994 9995 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997 9998 eval supported=\$$cacheid 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10000$as_echo "$supported" >&6; } 10001 if test "$supported" = "yes" ; then 10002 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10003 found="yes" 10004 fi 10005 fi 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021xorg_testset_save_CFLAGS="$CFLAGS" 10022 10023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10028 $as_echo_n "(cached) " >&6 10029else 10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032int i; 10033_ACEOF 10034if ac_fn_c_try_compile "$LINENO"; then : 10035 xorg_cv_cc_flag_unknown_warning_option=yes 10036else 10037 xorg_cv_cc_flag_unknown_warning_option=no 10038fi 10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10040fi 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10044 CFLAGS="$xorg_testset_save_CFLAGS" 10045fi 10046 10047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10050 fi 10051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10055 $as_echo_n "(cached) " >&6 10056else 10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059int i; 10060_ACEOF 10061if ac_fn_c_try_compile "$LINENO"; then : 10062 xorg_cv_cc_flag_unused_command_line_argument=yes 10063else 10064 xorg_cv_cc_flag_unused_command_line_argument=no 10065fi 10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10067fi 10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10071 CFLAGS="$xorg_testset_save_CFLAGS" 10072fi 10073 10074found="no" 10075 10076 if test $found = "no" ; then 10077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 fi 10080 10081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 fi 10084 10085 CFLAGS="$CFLAGS -Werror" 10086 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10088$as_echo_n "checking if $CC supports -Werror... " >&6; } 10089 cacheid=xorg_cv_cc_flag__Werror 10090 if eval \${$cacheid+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095int i; 10096int 10097main () 10098{ 10099 10100 ; 10101 return 0; 10102} 10103_ACEOF 10104if ac_fn_c_try_link "$LINENO"; then : 10105 eval $cacheid=yes 10106else 10107 eval $cacheid=no 10108fi 10109rm -f core conftest.err conftest.$ac_objext \ 10110 conftest$ac_exeext conftest.$ac_ext 10111fi 10112 10113 10114 CFLAGS="$xorg_testset_save_CFLAGS" 10115 10116 eval supported=\$$cacheid 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10118$as_echo "$supported" >&6; } 10119 if test "$supported" = "yes" ; then 10120 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10121 found="yes" 10122 fi 10123 fi 10124 10125 if test $found = "no" ; then 10126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10128 fi 10129 10130 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10132 fi 10133 10134 CFLAGS="$CFLAGS -errwarn" 10135 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10137$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10138 cacheid=xorg_cv_cc_flag__errwarn 10139 if eval \${$cacheid+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144int i; 10145int 10146main () 10147{ 10148 10149 ; 10150 return 0; 10151} 10152_ACEOF 10153if ac_fn_c_try_link "$LINENO"; then : 10154 eval $cacheid=yes 10155else 10156 eval $cacheid=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext \ 10159 conftest$ac_exeext conftest.$ac_ext 10160fi 10161 10162 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164 10165 eval supported=\$$cacheid 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10167$as_echo "$supported" >&6; } 10168 if test "$supported" = "yes" ; then 10169 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10170 found="yes" 10171 fi 10172 fi 10173 10174 10175 10176# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10177# activate it with -Werror, so we add it here explicitly. 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191xorg_testset_save_CFLAGS="$CFLAGS" 10192 10193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10198 $as_echo_n "(cached) " >&6 10199else 10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10201/* end confdefs.h. */ 10202int i; 10203_ACEOF 10204if ac_fn_c_try_compile "$LINENO"; then : 10205 xorg_cv_cc_flag_unknown_warning_option=yes 10206else 10207 xorg_cv_cc_flag_unknown_warning_option=no 10208fi 10209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10210fi 10211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10214 CFLAGS="$xorg_testset_save_CFLAGS" 10215fi 10216 10217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 fi 10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10225 $as_echo_n "(cached) " >&6 10226else 10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228/* end confdefs.h. */ 10229int i; 10230_ACEOF 10231if ac_fn_c_try_compile "$LINENO"; then : 10232 xorg_cv_cc_flag_unused_command_line_argument=yes 10233else 10234 xorg_cv_cc_flag_unused_command_line_argument=no 10235fi 10236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10237fi 10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10241 CFLAGS="$xorg_testset_save_CFLAGS" 10242fi 10243 10244found="no" 10245 10246 if test $found = "no" ; then 10247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249 fi 10250 10251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10253 fi 10254 10255 CFLAGS="$CFLAGS -Werror=attributes" 10256 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10258$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10259 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10260 if eval \${$cacheid+:} false; then : 10261 $as_echo_n "(cached) " >&6 10262else 10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10264/* end confdefs.h. */ 10265int i; 10266int 10267main () 10268{ 10269 10270 ; 10271 return 0; 10272} 10273_ACEOF 10274if ac_fn_c_try_link "$LINENO"; then : 10275 eval $cacheid=yes 10276else 10277 eval $cacheid=no 10278fi 10279rm -f core conftest.err conftest.$ac_objext \ 10280 conftest$ac_exeext conftest.$ac_ext 10281fi 10282 10283 10284 CFLAGS="$xorg_testset_save_CFLAGS" 10285 10286 eval supported=\$$cacheid 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10288$as_echo "$supported" >&6; } 10289 if test "$supported" = "yes" ; then 10290 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10291 found="yes" 10292 fi 10293 fi 10294 10295 10296 10297if test "x$STRICT_COMPILE" = "xyes"; then 10298 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10299 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10300fi 10301 10302 10303 10304 10305 10306 10307cat >>confdefs.h <<_ACEOF 10308#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10309_ACEOF 10310 10311 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10312 if test "x$PVM" = "x"; then 10313 PVM="0" 10314 fi 10315 10316cat >>confdefs.h <<_ACEOF 10317#define PACKAGE_VERSION_MINOR $PVM 10318_ACEOF 10319 10320 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10321 if test "x$PVP" = "x"; then 10322 PVP="0" 10323 fi 10324 10325cat >>confdefs.h <<_ACEOF 10326#define PACKAGE_VERSION_PATCHLEVEL $PVP 10327_ACEOF 10328 10329 10330 10331CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10332mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10333|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10334echo 'git directory not found: installing possibly empty changelog.' >&2)" 10335 10336 10337 10338 10339macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10340INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10341mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10342|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10343echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10344 10345 10346 10347 10348 10349 10350if test x$APP_MAN_SUFFIX = x ; then 10351 APP_MAN_SUFFIX=1 10352fi 10353if test x$APP_MAN_DIR = x ; then 10354 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10355fi 10356 10357if test x$LIB_MAN_SUFFIX = x ; then 10358 LIB_MAN_SUFFIX=3 10359fi 10360if test x$LIB_MAN_DIR = x ; then 10361 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10362fi 10363 10364if test x$FILE_MAN_SUFFIX = x ; then 10365 case $host_os in 10366 solaris*) FILE_MAN_SUFFIX=4 ;; 10367 *) FILE_MAN_SUFFIX=5 ;; 10368 esac 10369fi 10370if test x$FILE_MAN_DIR = x ; then 10371 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10372fi 10373 10374if test x$MISC_MAN_SUFFIX = x ; then 10375 case $host_os in 10376 solaris*) MISC_MAN_SUFFIX=5 ;; 10377 *) MISC_MAN_SUFFIX=7 ;; 10378 esac 10379fi 10380if test x$MISC_MAN_DIR = x ; then 10381 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10382fi 10383 10384if test x$DRIVER_MAN_SUFFIX = x ; then 10385 case $host_os in 10386 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10387 *) DRIVER_MAN_SUFFIX=4 ;; 10388 esac 10389fi 10390if test x$DRIVER_MAN_DIR = x ; then 10391 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10392fi 10393 10394if test x$ADMIN_MAN_SUFFIX = x ; then 10395 case $host_os in 10396 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10397 *) ADMIN_MAN_SUFFIX=8 ;; 10398 esac 10399fi 10400if test x$ADMIN_MAN_DIR = x ; then 10401 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10402fi 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418XORG_MAN_PAGE="X Version 11" 10419 10420MAN_SUBSTS="\ 10421 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10422 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10423 -e 's|__xservername__|Xorg|g' \ 10424 -e 's|__xconfigfile__|xorg.conf|g' \ 10425 -e 's|__projectroot__|\$(prefix)|g' \ 10426 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10427 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10428 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10429 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10430 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10431 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10432 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10433 10434 10435 10436# Check whether --enable-silent-rules was given. 10437if test "${enable_silent_rules+set}" = set; then : 10438 enableval=$enable_silent_rules; 10439fi 10440 10441case $enable_silent_rules in 10442yes) AM_DEFAULT_VERBOSITY=0;; 10443no) AM_DEFAULT_VERBOSITY=1;; 10444*) AM_DEFAULT_VERBOSITY=0;; 10445esac 10446AM_BACKSLASH='\' 10447 10448 10449 10450ac_config_headers="$ac_config_headers config.h" 10451 10452 10453if test "x$CC" != xcc; then 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 10455$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 10456else 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 10458$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 10459fi 10460set dummy $CC; ac_cc=`$as_echo "$2" | 10461 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 10462if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464else 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467 10468int 10469main () 10470{ 10471 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476# Make sure it works both with $CC and with simple cc. 10477# We do the test twice because some compilers refuse to overwrite an 10478# existing .o file with -o, though they will create one. 10479ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 10480rm -f conftest2.* 10481if { { case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10486$as_echo "$ac_try_echo"; } >&5 10487 (eval "$ac_try") 2>&5 10488 ac_status=$? 10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10490 test $ac_status = 0; } && 10491 test -f conftest2.$ac_objext && { { case "(($ac_try" in 10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10493 *) ac_try_echo=$ac_try;; 10494esac 10495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10496$as_echo "$ac_try_echo"; } >&5 10497 (eval "$ac_try") 2>&5 10498 ac_status=$? 10499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10500 test $ac_status = 0; }; 10501then 10502 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 10503 if test "x$CC" != xcc; then 10504 # Test first that cc exists at all. 10505 if { ac_try='cc -c conftest.$ac_ext >&5' 10506 { { case "(($ac_try" in 10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10508 *) ac_try_echo=$ac_try;; 10509esac 10510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10511$as_echo "$ac_try_echo"; } >&5 10512 (eval "$ac_try") 2>&5 10513 ac_status=$? 10514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10515 test $ac_status = 0; }; }; then 10516 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 10517 rm -f conftest2.* 10518 if { { case "(($ac_try" in 10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10520 *) ac_try_echo=$ac_try;; 10521esac 10522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10523$as_echo "$ac_try_echo"; } >&5 10524 (eval "$ac_try") 2>&5 10525 ac_status=$? 10526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10527 test $ac_status = 0; } && 10528 test -f conftest2.$ac_objext && { { case "(($ac_try" in 10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10530 *) ac_try_echo=$ac_try;; 10531esac 10532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10533$as_echo "$ac_try_echo"; } >&5 10534 (eval "$ac_try") 2>&5 10535 ac_status=$? 10536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10537 test $ac_status = 0; }; 10538 then 10539 # cc works too. 10540 : 10541 else 10542 # cc exists but doesn't like -o. 10543 eval ac_cv_prog_cc_${ac_cc}_c_o=no 10544 fi 10545 fi 10546 fi 10547else 10548 eval ac_cv_prog_cc_${ac_cc}_c_o=no 10549fi 10550rm -f core conftest* 10551 10552fi 10553if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10555$as_echo "yes" >&6; } 10556else 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10558$as_echo "no" >&6; } 10559 10560$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 10561 10562fi 10563 10564# FIXME: we rely on the cache variable name because 10565# there is no other way. 10566set dummy $CC 10567am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 10568eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 10569if test "$am_t" != yes; then 10570 # Losing compiler, so override with the script. 10571 # FIXME: It is wrong to rewrite CC. 10572 # But if we don't then we get into trouble of one sort or another. 10573 # A longer-term fix would be to have automake use am__CC in this case, 10574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 10575 CC="$am_aux_dir/compile $CC" 10576fi 10577 10578 10579if test -n "$ac_tool_prefix"; then 10580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10581set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10583$as_echo_n "checking for $ac_word... " >&6; } 10584if ${ac_cv_prog_RANLIB+:} false; then : 10585 $as_echo_n "(cached) " >&6 10586else 10587 if test -n "$RANLIB"; then 10588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10589else 10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10591for as_dir in $PATH 10592do 10593 IFS=$as_save_IFS 10594 test -z "$as_dir" && as_dir=. 10595 for ac_exec_ext in '' $ac_executable_extensions; do 10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10599 break 2 10600 fi 10601done 10602 done 10603IFS=$as_save_IFS 10604 10605fi 10606fi 10607RANLIB=$ac_cv_prog_RANLIB 10608if test -n "$RANLIB"; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10610$as_echo "$RANLIB" >&6; } 10611else 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10613$as_echo "no" >&6; } 10614fi 10615 10616 10617fi 10618if test -z "$ac_cv_prog_RANLIB"; then 10619 ac_ct_RANLIB=$RANLIB 10620 # Extract the first word of "ranlib", so it can be a program name with args. 10621set dummy ranlib; ac_word=$2 10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10623$as_echo_n "checking for $ac_word... " >&6; } 10624if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10625 $as_echo_n "(cached) " >&6 10626else 10627 if test -n "$ac_ct_RANLIB"; then 10628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10629else 10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10631for as_dir in $PATH 10632do 10633 IFS=$as_save_IFS 10634 test -z "$as_dir" && as_dir=. 10635 for ac_exec_ext in '' $ac_executable_extensions; do 10636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10637 ac_cv_prog_ac_ct_RANLIB="ranlib" 10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10639 break 2 10640 fi 10641done 10642 done 10643IFS=$as_save_IFS 10644 10645fi 10646fi 10647ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10648if test -n "$ac_ct_RANLIB"; then 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10650$as_echo "$ac_ct_RANLIB" >&6; } 10651else 10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10653$as_echo "no" >&6; } 10654fi 10655 10656 if test "x$ac_ct_RANLIB" = x; then 10657 RANLIB=":" 10658 else 10659 case $cross_compiling:$ac_tool_warned in 10660yes:) 10661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10663ac_tool_warned=yes ;; 10664esac 10665 RANLIB=$ac_ct_RANLIB 10666 fi 10667else 10668 RANLIB="$ac_cv_prog_RANLIB" 10669fi 10670 10671 10672 10673if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10674 if test -n "$ac_tool_prefix"; then 10675 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10676set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10678$as_echo_n "checking for $ac_word... " >&6; } 10679if ${ac_cv_path_PKG_CONFIG+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 case $PKG_CONFIG in 10683 [\\/]* | ?:[\\/]*) 10684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10685 ;; 10686 *) 10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10688for as_dir in $PATH 10689do 10690 IFS=$as_save_IFS 10691 test -z "$as_dir" && as_dir=. 10692 for ac_exec_ext in '' $ac_executable_extensions; do 10693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10694 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10696 break 2 10697 fi 10698done 10699 done 10700IFS=$as_save_IFS 10701 10702 ;; 10703esac 10704fi 10705PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10706if test -n "$PKG_CONFIG"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10708$as_echo "$PKG_CONFIG" >&6; } 10709else 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711$as_echo "no" >&6; } 10712fi 10713 10714 10715fi 10716if test -z "$ac_cv_path_PKG_CONFIG"; then 10717 ac_pt_PKG_CONFIG=$PKG_CONFIG 10718 # Extract the first word of "pkg-config", so it can be a program name with args. 10719set dummy pkg-config; ac_word=$2 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10721$as_echo_n "checking for $ac_word... " >&6; } 10722if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 case $ac_pt_PKG_CONFIG in 10726 [\\/]* | ?:[\\/]*) 10727 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10728 ;; 10729 *) 10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10731for as_dir in $PATH 10732do 10733 IFS=$as_save_IFS 10734 test -z "$as_dir" && as_dir=. 10735 for ac_exec_ext in '' $ac_executable_extensions; do 10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10737 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10739 break 2 10740 fi 10741done 10742 done 10743IFS=$as_save_IFS 10744 10745 ;; 10746esac 10747fi 10748ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10749if test -n "$ac_pt_PKG_CONFIG"; then 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10751$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10752else 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10754$as_echo "no" >&6; } 10755fi 10756 10757 if test "x$ac_pt_PKG_CONFIG" = x; then 10758 PKG_CONFIG="" 10759 else 10760 case $cross_compiling:$ac_tool_warned in 10761yes:) 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10764ac_tool_warned=yes ;; 10765esac 10766 PKG_CONFIG=$ac_pt_PKG_CONFIG 10767 fi 10768else 10769 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10770fi 10771 10772fi 10773if test -n "$PKG_CONFIG"; then 10774 _pkg_min_version=0.9.0 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10776$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10777 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10779$as_echo "yes" >&6; } 10780 else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10782$as_echo "no" >&6; } 10783 PKG_CONFIG="" 10784 fi 10785 10786fi 10787 10788 10789pkg_failed=no 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5 10791$as_echo_n "checking for PKGDEPS... " >&6; } 10792 10793if test -n "$PKGDEPS_CFLAGS"; then 10794 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS" 10795 elif test -n "$PKG_CONFIG"; then 10796 if test -n "$PKG_CONFIG" && \ 10797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 10798 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 10799 ac_status=$? 10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10801 test $ac_status = 0; }; then 10802 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 10803else 10804 pkg_failed=yes 10805fi 10806 else 10807 pkg_failed=untried 10808fi 10809if test -n "$PKGDEPS_LIBS"; then 10810 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS" 10811 elif test -n "$PKG_CONFIG"; then 10812 if test -n "$PKG_CONFIG" && \ 10813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5 10814 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5 10815 ac_status=$? 10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10817 test $ac_status = 0; }; then 10818 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null` 10819else 10820 pkg_failed=yes 10821fi 10822 else 10823 pkg_failed=untried 10824fi 10825 10826 10827 10828if test $pkg_failed = yes; then 10829 10830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10831 _pkg_short_errors_supported=yes 10832else 10833 _pkg_short_errors_supported=no 10834fi 10835 if test $_pkg_short_errors_supported = yes; then 10836 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt >= 1.0 x11" 2>&1` 10837 else 10838 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt >= 1.0 x11" 2>&1` 10839 fi 10840 # Put the nasty error message in config.log where it belongs 10841 echo "$PKGDEPS_PKG_ERRORS" >&5 10842 10843 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met: 10844 10845$PKGDEPS_PKG_ERRORS 10846 10847Consider adjusting the PKG_CONFIG_PATH environment variable if you 10848installed software in a non-standard prefix. 10849 10850Alternatively, you may set the environment variables PKGDEPS_CFLAGS 10851and PKGDEPS_LIBS to avoid the need to call pkg-config. 10852See the pkg-config man page for more details. 10853" "$LINENO" 5 10854elif test $pkg_failed = untried; then 10855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10857as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10858is in your PATH or set the PKG_CONFIG environment variable to the full 10859path to pkg-config. 10860 10861Alternatively, you may set the environment variables PKGDEPS_CFLAGS 10862and PKGDEPS_LIBS to avoid the need to call pkg-config. 10863See the pkg-config man page for more details. 10864 10865To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10866See \`config.log' for more details" "$LINENO" 5; } 10867else 10868 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS 10869 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10871$as_echo "yes" >&6; } 10872 : 10873fi 10874 10875 10876# Check whether --with-lispdir was given. 10877if test "${with_lispdir+set}" = set; then : 10878 withval=$with_lispdir; lispdir="$withval" 10879else 10880 lispdir=${libdir}/X11/xedit/lisp 10881fi 10882 10883LISPDIR=$lispdir 10884 10885 10886ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 10887if test "x$ac_cv_func_realpath" = xyes; then : 10888 10889else 10890 have_realpath=yes 10891fi 10892 10893 if test x$have_realpath = xyes; then 10894 NEED_REALPATH_TRUE= 10895 NEED_REALPATH_FALSE='#' 10896else 10897 NEED_REALPATH_TRUE='#' 10898 NEED_REALPATH_FALSE= 10899fi 10900 10901ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 10902if test "x$ac_cv_func_strcasecmp" = xyes; then : 10903 10904else 10905 have_strcasecmp=yes 10906fi 10907 10908 if test x$have_strcasecmp = xyes; then 10909 NEED_STRCASECMP_TRUE= 10910 NEED_STRCASECMP_FALSE='#' 10911else 10912 NEED_STRCASECMP_TRUE='#' 10913 NEED_STRCASECMP_FALSE= 10914fi 10915 10916ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 10917if test "x$ac_cv_func_unsetenv" = xyes; then : 10918 10919else 10920 have_unsetenv=yes 10921fi 10922 10923 if test x$have_unsetenv = xyes; then 10924 NEED_UNSETENV_TRUE= 10925 NEED_UNSETENV_FALSE='#' 10926else 10927 NEED_UNSETENV_TRUE='#' 10928 NEED_UNSETENV_FALSE= 10929fi 10930 10931 10932 10933pkg_failed=no 10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10935$as_echo_n "checking for APPDEFS... " >&6; } 10936 10937if test -n "$APPDEFS_CFLAGS"; then 10938 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10939 elif test -n "$PKG_CONFIG"; then 10940 if test -n "$PKG_CONFIG" && \ 10941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10942 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10943 ac_status=$? 10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10945 test $ac_status = 0; }; then 10946 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10947else 10948 pkg_failed=yes 10949fi 10950 else 10951 pkg_failed=untried 10952fi 10953if test -n "$APPDEFS_LIBS"; then 10954 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10955 elif test -n "$PKG_CONFIG"; then 10956 if test -n "$PKG_CONFIG" && \ 10957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10958 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10959 ac_status=$? 10960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10961 test $ac_status = 0; }; then 10962 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10963else 10964 pkg_failed=yes 10965fi 10966 else 10967 pkg_failed=untried 10968fi 10969 10970 10971 10972if test $pkg_failed = yes; then 10973 10974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10975 _pkg_short_errors_supported=yes 10976else 10977 _pkg_short_errors_supported=no 10978fi 10979 if test $_pkg_short_errors_supported = yes; then 10980 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10981 else 10982 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10983 fi 10984 # Put the nasty error message in config.log where it belongs 10985 echo "$APPDEFS_PKG_ERRORS" >&5 10986 10987 as_fn_error $? "Package requirements (xt) were not met: 10988 10989$APPDEFS_PKG_ERRORS 10990 10991Consider adjusting the PKG_CONFIG_PATH environment variable if you 10992installed software in a non-standard prefix. 10993 10994Alternatively, you may set the environment variables APPDEFS_CFLAGS 10995and APPDEFS_LIBS to avoid the need to call pkg-config. 10996See the pkg-config man page for more details. 10997" "$LINENO" 5 10998elif test $pkg_failed = untried; then 10999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11001as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11002is in your PATH or set the PKG_CONFIG environment variable to the full 11003path to pkg-config. 11004 11005Alternatively, you may set the environment variables APPDEFS_CFLAGS 11006and APPDEFS_LIBS to avoid the need to call pkg-config. 11007See the pkg-config man page for more details. 11008 11009To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11010See \`config.log' for more details" "$LINENO" 5; } 11011else 11012 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11013 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11015$as_echo "yes" >&6; } 11016 : 11017fi 11018xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11019 11020# Check whether --with-appdefaultdir was given. 11021if test "${with_appdefaultdir+set}" = set; then : 11022 withval=$with_appdefaultdir; appdefaultdir="$withval" 11023else 11024 appdefaultdir="${xt_appdefaultdir}" 11025fi 11026 11027 11028 11029 11030ac_config_files="$ac_config_files Makefile man/Makefile" 11031 11032cat >confcache <<\_ACEOF 11033# This file is a shell script that caches the results of configure 11034# tests run on this system so they can be shared between configure 11035# scripts and configure runs, see configure's option --config-cache. 11036# It is not useful on other systems. If it contains results you don't 11037# want to keep, you may remove or edit it. 11038# 11039# config.status only pays attention to the cache file if you give it 11040# the --recheck option to rerun configure. 11041# 11042# `ac_cv_env_foo' variables (set or unset) will be overridden when 11043# loading this file, other *unset* `ac_cv_foo' will be assigned the 11044# following values. 11045 11046_ACEOF 11047 11048# The following way of writing the cache mishandles newlines in values, 11049# but we know of no workaround that is simple, portable, and efficient. 11050# So, we kill variables containing newlines. 11051# Ultrix sh set writes to stderr and can't be redirected directly, 11052# and sets the high bit in the cache file unless we assign to the vars. 11053( 11054 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11055 eval ac_val=\$$ac_var 11056 case $ac_val in #( 11057 *${as_nl}*) 11058 case $ac_var in #( 11059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11061 esac 11062 case $ac_var in #( 11063 _ | IFS | as_nl) ;; #( 11064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11065 *) { eval $ac_var=; unset $ac_var;} ;; 11066 esac ;; 11067 esac 11068 done 11069 11070 (set) 2>&1 | 11071 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11072 *${as_nl}ac_space=\ *) 11073 # `set' does not quote correctly, so add quotes: double-quote 11074 # substitution turns \\\\ into \\, and sed turns \\ into \. 11075 sed -n \ 11076 "s/'/'\\\\''/g; 11077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11078 ;; #( 11079 *) 11080 # `set' quotes correctly as required by POSIX, so do not add quotes. 11081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11082 ;; 11083 esac | 11084 sort 11085) | 11086 sed ' 11087 /^ac_cv_env_/b end 11088 t clear 11089 :clear 11090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11091 t end 11092 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11093 :end' >>confcache 11094if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11095 if test -w "$cache_file"; then 11096 if test "x$cache_file" != "x/dev/null"; then 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11098$as_echo "$as_me: updating cache $cache_file" >&6;} 11099 if test ! -f "$cache_file" || test -h "$cache_file"; then 11100 cat confcache >"$cache_file" 11101 else 11102 case $cache_file in #( 11103 */* | ?:*) 11104 mv -f confcache "$cache_file"$$ && 11105 mv -f "$cache_file"$$ "$cache_file" ;; #( 11106 *) 11107 mv -f confcache "$cache_file" ;; 11108 esac 11109 fi 11110 fi 11111 else 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11113$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11114 fi 11115fi 11116rm -f confcache 11117 11118test "x$prefix" = xNONE && prefix=$ac_default_prefix 11119# Let make expand exec_prefix. 11120test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11121 11122DEFS=-DHAVE_CONFIG_H 11123 11124ac_libobjs= 11125ac_ltlibobjs= 11126U= 11127for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11128 # 1. Remove the extension, and $U if already installed. 11129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11132 # will be set to the directory where LIBOBJS objects are built. 11133 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11134 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11135done 11136LIBOBJS=$ac_libobjs 11137 11138LTLIBOBJS=$ac_ltlibobjs 11139 11140 11141 if test -n "$EXEEXT"; then 11142 am__EXEEXT_TRUE= 11143 am__EXEEXT_FALSE='#' 11144else 11145 am__EXEEXT_TRUE='#' 11146 am__EXEEXT_FALSE= 11147fi 11148 11149if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11150 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11151Usually this means the macro was only invoked conditionally." "$LINENO" 5 11152fi 11153if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11154 as_fn_error $? "conditional \"AMDEP\" was never defined. 11155Usually this means the macro was only invoked conditionally." "$LINENO" 5 11156fi 11157if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11158 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11159Usually this means the macro was only invoked conditionally." "$LINENO" 5 11160fi 11161if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then 11162 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined. 11163Usually this means the macro was only invoked conditionally." "$LINENO" 5 11164fi 11165if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then 11166 as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined. 11167Usually this means the macro was only invoked conditionally." "$LINENO" 5 11168fi 11169if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then 11170 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined. 11171Usually this means the macro was only invoked conditionally." "$LINENO" 5 11172fi 11173 11174: "${CONFIG_STATUS=./config.status}" 11175ac_write_fail=0 11176ac_clean_files_save=$ac_clean_files 11177ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11179$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11180as_write_fail=0 11181cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11182#! $SHELL 11183# Generated by $as_me. 11184# Run this file to recreate the current configuration. 11185# Compiler output produced by configure, useful for debugging 11186# configure, is in config.log if it exists. 11187 11188debug=false 11189ac_cs_recheck=false 11190ac_cs_silent=false 11191 11192SHELL=\${CONFIG_SHELL-$SHELL} 11193export SHELL 11194_ASEOF 11195cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11196## -------------------- ## 11197## M4sh Initialization. ## 11198## -------------------- ## 11199 11200# Be more Bourne compatible 11201DUALCASE=1; export DUALCASE # for MKS sh 11202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11203 emulate sh 11204 NULLCMD=: 11205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11206 # is contrary to our usage. Disable this feature. 11207 alias -g '${1+"$@"}'='"$@"' 11208 setopt NO_GLOB_SUBST 11209else 11210 case `(set -o) 2>/dev/null` in #( 11211 *posix*) : 11212 set -o posix ;; #( 11213 *) : 11214 ;; 11215esac 11216fi 11217 11218 11219as_nl=' 11220' 11221export as_nl 11222# Printing a long string crashes Solaris 7 /usr/bin/printf. 11223as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11226# Prefer a ksh shell builtin over an external printf program on Solaris, 11227# but without wasting forks for bash or zsh. 11228if test -z "$BASH_VERSION$ZSH_VERSION" \ 11229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11230 as_echo='print -r --' 11231 as_echo_n='print -rn --' 11232elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11233 as_echo='printf %s\n' 11234 as_echo_n='printf %s' 11235else 11236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11238 as_echo_n='/usr/ucb/echo -n' 11239 else 11240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11241 as_echo_n_body='eval 11242 arg=$1; 11243 case $arg in #( 11244 *"$as_nl"*) 11245 expr "X$arg" : "X\\(.*\\)$as_nl"; 11246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11247 esac; 11248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11249 ' 11250 export as_echo_n_body 11251 as_echo_n='sh -c $as_echo_n_body as_echo' 11252 fi 11253 export as_echo_body 11254 as_echo='sh -c $as_echo_body as_echo' 11255fi 11256 11257# The user is always right. 11258if test "${PATH_SEPARATOR+set}" != set; then 11259 PATH_SEPARATOR=: 11260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11262 PATH_SEPARATOR=';' 11263 } 11264fi 11265 11266 11267# IFS 11268# We need space, tab and new line, in precisely that order. Quoting is 11269# there to prevent editors from complaining about space-tab. 11270# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11271# splitting by setting IFS to empty value.) 11272IFS=" "" $as_nl" 11273 11274# Find who we are. Look in the path if we contain no directory separator. 11275as_myself= 11276case $0 in #(( 11277 *[\\/]* ) as_myself=$0 ;; 11278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11279for as_dir in $PATH 11280do 11281 IFS=$as_save_IFS 11282 test -z "$as_dir" && as_dir=. 11283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11284 done 11285IFS=$as_save_IFS 11286 11287 ;; 11288esac 11289# We did not find ourselves, most probably we were run as `sh COMMAND' 11290# in which case we are not to be found in the path. 11291if test "x$as_myself" = x; then 11292 as_myself=$0 11293fi 11294if test ! -f "$as_myself"; then 11295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11296 exit 1 11297fi 11298 11299# Unset variables that we do not need and which cause bugs (e.g. in 11300# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11301# suppresses any "Segmentation fault" message there. '((' could 11302# trigger a bug in pdksh 5.2.14. 11303for as_var in BASH_ENV ENV MAIL MAILPATH 11304do eval test x\${$as_var+set} = xset \ 11305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11306done 11307PS1='$ ' 11308PS2='> ' 11309PS4='+ ' 11310 11311# NLS nuisances. 11312LC_ALL=C 11313export LC_ALL 11314LANGUAGE=C 11315export LANGUAGE 11316 11317# CDPATH. 11318(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11319 11320 11321# as_fn_error STATUS ERROR [LINENO LOG_FD] 11322# ---------------------------------------- 11323# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11324# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11325# script with STATUS, using 1 if that was 0. 11326as_fn_error () 11327{ 11328 as_status=$1; test $as_status -eq 0 && as_status=1 11329 if test "$4"; then 11330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11332 fi 11333 $as_echo "$as_me: error: $2" >&2 11334 as_fn_exit $as_status 11335} # as_fn_error 11336 11337 11338# as_fn_set_status STATUS 11339# ----------------------- 11340# Set $? to STATUS, without forking. 11341as_fn_set_status () 11342{ 11343 return $1 11344} # as_fn_set_status 11345 11346# as_fn_exit STATUS 11347# ----------------- 11348# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11349as_fn_exit () 11350{ 11351 set +e 11352 as_fn_set_status $1 11353 exit $1 11354} # as_fn_exit 11355 11356# as_fn_unset VAR 11357# --------------- 11358# Portably unset VAR. 11359as_fn_unset () 11360{ 11361 { eval $1=; unset $1;} 11362} 11363as_unset=as_fn_unset 11364# as_fn_append VAR VALUE 11365# ---------------------- 11366# Append the text in VALUE to the end of the definition contained in VAR. Take 11367# advantage of any shell optimizations that allow amortized linear growth over 11368# repeated appends, instead of the typical quadratic growth present in naive 11369# implementations. 11370if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11371 eval 'as_fn_append () 11372 { 11373 eval $1+=\$2 11374 }' 11375else 11376 as_fn_append () 11377 { 11378 eval $1=\$$1\$2 11379 } 11380fi # as_fn_append 11381 11382# as_fn_arith ARG... 11383# ------------------ 11384# Perform arithmetic evaluation on the ARGs, and store the result in the 11385# global $as_val. Take advantage of shells that can avoid forks. The arguments 11386# must be portable across $(()) and expr. 11387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11388 eval 'as_fn_arith () 11389 { 11390 as_val=$(( $* )) 11391 }' 11392else 11393 as_fn_arith () 11394 { 11395 as_val=`expr "$@" || test $? -eq 1` 11396 } 11397fi # as_fn_arith 11398 11399 11400if expr a : '\(a\)' >/dev/null 2>&1 && 11401 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11402 as_expr=expr 11403else 11404 as_expr=false 11405fi 11406 11407if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11408 as_basename=basename 11409else 11410 as_basename=false 11411fi 11412 11413if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11414 as_dirname=dirname 11415else 11416 as_dirname=false 11417fi 11418 11419as_me=`$as_basename -- "$0" || 11420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11421 X"$0" : 'X\(//\)$' \| \ 11422 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11423$as_echo X/"$0" | 11424 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11425 s//\1/ 11426 q 11427 } 11428 /^X\/\(\/\/\)$/{ 11429 s//\1/ 11430 q 11431 } 11432 /^X\/\(\/\).*/{ 11433 s//\1/ 11434 q 11435 } 11436 s/.*/./; q'` 11437 11438# Avoid depending upon Character Ranges. 11439as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11441as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11442as_cr_digits='0123456789' 11443as_cr_alnum=$as_cr_Letters$as_cr_digits 11444 11445ECHO_C= ECHO_N= ECHO_T= 11446case `echo -n x` in #((((( 11447-n*) 11448 case `echo 'xy\c'` in 11449 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11450 xy) ECHO_C='\c';; 11451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11452 ECHO_T=' ';; 11453 esac;; 11454*) 11455 ECHO_N='-n';; 11456esac 11457 11458rm -f conf$$ conf$$.exe conf$$.file 11459if test -d conf$$.dir; then 11460 rm -f conf$$.dir/conf$$.file 11461else 11462 rm -f conf$$.dir 11463 mkdir conf$$.dir 2>/dev/null 11464fi 11465if (echo >conf$$.file) 2>/dev/null; then 11466 if ln -s conf$$.file conf$$ 2>/dev/null; then 11467 as_ln_s='ln -s' 11468 # ... but there are two gotchas: 11469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11471 # In both cases, we have to default to `cp -p'. 11472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11473 as_ln_s='cp -p' 11474 elif ln conf$$.file conf$$ 2>/dev/null; then 11475 as_ln_s=ln 11476 else 11477 as_ln_s='cp -p' 11478 fi 11479else 11480 as_ln_s='cp -p' 11481fi 11482rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11483rmdir conf$$.dir 2>/dev/null 11484 11485 11486# as_fn_mkdir_p 11487# ------------- 11488# Create "$as_dir" as a directory, including parents if necessary. 11489as_fn_mkdir_p () 11490{ 11491 11492 case $as_dir in #( 11493 -*) as_dir=./$as_dir;; 11494 esac 11495 test -d "$as_dir" || eval $as_mkdir_p || { 11496 as_dirs= 11497 while :; do 11498 case $as_dir in #( 11499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11500 *) as_qdir=$as_dir;; 11501 esac 11502 as_dirs="'$as_qdir' $as_dirs" 11503 as_dir=`$as_dirname -- "$as_dir" || 11504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11505 X"$as_dir" : 'X\(//\)[^/]' \| \ 11506 X"$as_dir" : 'X\(//\)$' \| \ 11507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11508$as_echo X"$as_dir" | 11509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11510 s//\1/ 11511 q 11512 } 11513 /^X\(\/\/\)[^/].*/{ 11514 s//\1/ 11515 q 11516 } 11517 /^X\(\/\/\)$/{ 11518 s//\1/ 11519 q 11520 } 11521 /^X\(\/\).*/{ 11522 s//\1/ 11523 q 11524 } 11525 s/.*/./; q'` 11526 test -d "$as_dir" && break 11527 done 11528 test -z "$as_dirs" || eval "mkdir $as_dirs" 11529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11530 11531 11532} # as_fn_mkdir_p 11533if mkdir -p . 2>/dev/null; then 11534 as_mkdir_p='mkdir -p "$as_dir"' 11535else 11536 test -d ./-p && rmdir ./-p 11537 as_mkdir_p=false 11538fi 11539 11540if test -x / >/dev/null 2>&1; then 11541 as_test_x='test -x' 11542else 11543 if ls -dL / >/dev/null 2>&1; then 11544 as_ls_L_option=L 11545 else 11546 as_ls_L_option= 11547 fi 11548 as_test_x=' 11549 eval sh -c '\'' 11550 if test -d "$1"; then 11551 test -d "$1/."; 11552 else 11553 case $1 in #( 11554 -*)set "./$1";; 11555 esac; 11556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11557 ???[sx]*):;;*)false;;esac;fi 11558 '\'' sh 11559 ' 11560fi 11561as_executable_p=$as_test_x 11562 11563# Sed expression to map a string onto a valid CPP name. 11564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11565 11566# Sed expression to map a string onto a valid variable name. 11567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11568 11569 11570exec 6>&1 11571## ----------------------------------- ## 11572## Main body of $CONFIG_STATUS script. ## 11573## ----------------------------------- ## 11574_ASEOF 11575test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11576 11577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11578# Save the log message, to keep $0 and so on meaningful, and to 11579# report actual input values of CONFIG_FILES etc. instead of their 11580# values after options handling. 11581ac_log=" 11582This file was extended by xedit $as_me 1.2.1, which was 11583generated by GNU Autoconf 2.68. Invocation command line was 11584 11585 CONFIG_FILES = $CONFIG_FILES 11586 CONFIG_HEADERS = $CONFIG_HEADERS 11587 CONFIG_LINKS = $CONFIG_LINKS 11588 CONFIG_COMMANDS = $CONFIG_COMMANDS 11589 $ $0 $@ 11590 11591on `(hostname || uname -n) 2>/dev/null | sed 1q` 11592" 11593 11594_ACEOF 11595 11596case $ac_config_files in *" 11597"*) set x $ac_config_files; shift; ac_config_files=$*;; 11598esac 11599 11600case $ac_config_headers in *" 11601"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11602esac 11603 11604 11605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11606# Files that config.status was made for. 11607config_files="$ac_config_files" 11608config_headers="$ac_config_headers" 11609config_commands="$ac_config_commands" 11610 11611_ACEOF 11612 11613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11614ac_cs_usage="\ 11615\`$as_me' instantiates files and other configuration actions 11616from templates according to the current configuration. Unless the files 11617and actions are specified as TAGs, all are instantiated by default. 11618 11619Usage: $0 [OPTION]... [TAG]... 11620 11621 -h, --help print this help, then exit 11622 -V, --version print version number and configuration settings, then exit 11623 --config print configuration, then exit 11624 -q, --quiet, --silent 11625 do not print progress messages 11626 -d, --debug don't remove temporary files 11627 --recheck update $as_me by reconfiguring in the same conditions 11628 --file=FILE[:TEMPLATE] 11629 instantiate the configuration file FILE 11630 --header=FILE[:TEMPLATE] 11631 instantiate the configuration header FILE 11632 11633Configuration files: 11634$config_files 11635 11636Configuration headers: 11637$config_headers 11638 11639Configuration commands: 11640$config_commands 11641 11642Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11643 11644_ACEOF 11645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11646ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11647ac_cs_version="\\ 11648xedit config.status 1.2.1 11649configured by $0, generated by GNU Autoconf 2.68, 11650 with options \\"\$ac_cs_config\\" 11651 11652Copyright (C) 2010 Free Software Foundation, Inc. 11653This config.status script is free software; the Free Software Foundation 11654gives unlimited permission to copy, distribute and modify it." 11655 11656ac_pwd='$ac_pwd' 11657srcdir='$srcdir' 11658INSTALL='$INSTALL' 11659MKDIR_P='$MKDIR_P' 11660AWK='$AWK' 11661test -n "\$AWK" || AWK=awk 11662_ACEOF 11663 11664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11665# The default lists apply if the user does not specify any file. 11666ac_need_defaults=: 11667while test $# != 0 11668do 11669 case $1 in 11670 --*=?*) 11671 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11672 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11673 ac_shift=: 11674 ;; 11675 --*=) 11676 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11677 ac_optarg= 11678 ac_shift=: 11679 ;; 11680 *) 11681 ac_option=$1 11682 ac_optarg=$2 11683 ac_shift=shift 11684 ;; 11685 esac 11686 11687 case $ac_option in 11688 # Handling of the options. 11689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11690 ac_cs_recheck=: ;; 11691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11692 $as_echo "$ac_cs_version"; exit ;; 11693 --config | --confi | --conf | --con | --co | --c ) 11694 $as_echo "$ac_cs_config"; exit ;; 11695 --debug | --debu | --deb | --de | --d | -d ) 11696 debug=: ;; 11697 --file | --fil | --fi | --f ) 11698 $ac_shift 11699 case $ac_optarg in 11700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11701 '') as_fn_error $? "missing file argument" ;; 11702 esac 11703 as_fn_append CONFIG_FILES " '$ac_optarg'" 11704 ac_need_defaults=false;; 11705 --header | --heade | --head | --hea ) 11706 $ac_shift 11707 case $ac_optarg in 11708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11709 esac 11710 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11711 ac_need_defaults=false;; 11712 --he | --h) 11713 # Conflict between --help and --header 11714 as_fn_error $? "ambiguous option: \`$1' 11715Try \`$0 --help' for more information.";; 11716 --help | --hel | -h ) 11717 $as_echo "$ac_cs_usage"; exit ;; 11718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11719 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11720 ac_cs_silent=: ;; 11721 11722 # This is an error. 11723 -*) as_fn_error $? "unrecognized option: \`$1' 11724Try \`$0 --help' for more information." ;; 11725 11726 *) as_fn_append ac_config_targets " $1" 11727 ac_need_defaults=false ;; 11728 11729 esac 11730 shift 11731done 11732 11733ac_configure_extra_args= 11734 11735if $ac_cs_silent; then 11736 exec 6>/dev/null 11737 ac_configure_extra_args="$ac_configure_extra_args --silent" 11738fi 11739 11740_ACEOF 11741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11742if \$ac_cs_recheck; then 11743 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11744 shift 11745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11746 CONFIG_SHELL='$SHELL' 11747 export CONFIG_SHELL 11748 exec "\$@" 11749fi 11750 11751_ACEOF 11752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11753exec 5>>config.log 11754{ 11755 echo 11756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11757## Running $as_me. ## 11758_ASBOX 11759 $as_echo "$ac_log" 11760} >&5 11761 11762_ACEOF 11763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11764# 11765# INIT-COMMANDS 11766# 11767AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11768 11769_ACEOF 11770 11771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11772 11773# Handling of arguments. 11774for ac_config_target in $ac_config_targets 11775do 11776 case $ac_config_target in 11777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11778 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11780 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11781 11782 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11783 esac 11784done 11785 11786 11787# If the user did not use the arguments to specify the items to instantiate, 11788# then the envvar interface is used. Set only those that are not. 11789# We use the long form for the default assignment because of an extremely 11790# bizarre bug on SunOS 4.1.3. 11791if $ac_need_defaults; then 11792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11795fi 11796 11797# Have a temporary directory for convenience. Make it in the build tree 11798# simply because there is no reason against having it here, and in addition, 11799# creating and moving files from /tmp can sometimes cause problems. 11800# Hook for its removal unless debugging. 11801# Note that there is a small window in which the directory will not be cleaned: 11802# after its creation but before its name has been assigned to `$tmp'. 11803$debug || 11804{ 11805 tmp= ac_tmp= 11806 trap 'exit_status=$? 11807 : "${ac_tmp:=$tmp}" 11808 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11809' 0 11810 trap 'as_fn_exit 1' 1 2 13 15 11811} 11812# Create a (secure) tmp directory for tmp files. 11813 11814{ 11815 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11816 test -d "$tmp" 11817} || 11818{ 11819 tmp=./conf$$-$RANDOM 11820 (umask 077 && mkdir "$tmp") 11821} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11822ac_tmp=$tmp 11823 11824# Set up the scripts for CONFIG_FILES section. 11825# No need to generate them if there are no CONFIG_FILES. 11826# This happens for instance with `./config.status config.h'. 11827if test -n "$CONFIG_FILES"; then 11828 11829 11830ac_cr=`echo X | tr X '\015'` 11831# On cygwin, bash can eat \r inside `` if the user requested igncr. 11832# But we know of no other shell where ac_cr would be empty at this 11833# point, so we can use a bashism as a fallback. 11834if test "x$ac_cr" = x; then 11835 eval ac_cr=\$\'\\r\' 11836fi 11837ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11838if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11839 ac_cs_awk_cr='\\r' 11840else 11841 ac_cs_awk_cr=$ac_cr 11842fi 11843 11844echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11845_ACEOF 11846 11847 11848{ 11849 echo "cat >conf$$subs.awk <<_ACEOF" && 11850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11851 echo "_ACEOF" 11852} >conf$$subs.sh || 11853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11854ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11855ac_delim='%!_!# ' 11856for ac_last_try in false false false false false :; do 11857 . ./conf$$subs.sh || 11858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11859 11860 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11861 if test $ac_delim_n = $ac_delim_num; then 11862 break 11863 elif $ac_last_try; then 11864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11865 else 11866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11867 fi 11868done 11869rm -f conf$$subs.sh 11870 11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11872cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11873_ACEOF 11874sed -n ' 11875h 11876s/^/S["/; s/!.*/"]=/ 11877p 11878g 11879s/^[^!]*!// 11880:repl 11881t repl 11882s/'"$ac_delim"'$// 11883t delim 11884:nl 11885h 11886s/\(.\{148\}\)..*/\1/ 11887t more1 11888s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11889p 11890n 11891b repl 11892:more1 11893s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11894p 11895g 11896s/.\{148\}// 11897t nl 11898:delim 11899h 11900s/\(.\{148\}\)..*/\1/ 11901t more2 11902s/["\\]/\\&/g; s/^/"/; s/$/"/ 11903p 11904b 11905:more2 11906s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11907p 11908g 11909s/.\{148\}// 11910t delim 11911' <conf$$subs.awk | sed ' 11912/^[^""]/{ 11913 N 11914 s/\n// 11915} 11916' >>$CONFIG_STATUS || ac_write_fail=1 11917rm -f conf$$subs.awk 11918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11919_ACAWK 11920cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11921 for (key in S) S_is_set[key] = 1 11922 FS = "" 11923 11924} 11925{ 11926 line = $ 0 11927 nfields = split(line, field, "@") 11928 substed = 0 11929 len = length(field[1]) 11930 for (i = 2; i < nfields; i++) { 11931 key = field[i] 11932 keylen = length(key) 11933 if (S_is_set[key]) { 11934 value = S[key] 11935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11936 len += length(value) + length(field[++i]) 11937 substed = 1 11938 } else 11939 len += 1 + keylen 11940 } 11941 11942 print line 11943} 11944 11945_ACAWK 11946_ACEOF 11947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11948if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11950else 11951 cat 11952fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11953 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11954_ACEOF 11955 11956# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11957# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11958# trailing colons and then remove the whole line if VPATH becomes empty 11959# (actually we leave an empty line to preserve line numbers). 11960if test "x$srcdir" = x.; then 11961 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11962h 11963s/// 11964s/^/:/ 11965s/[ ]*$/:/ 11966s/:\$(srcdir):/:/g 11967s/:\${srcdir}:/:/g 11968s/:@srcdir@:/:/g 11969s/^:*// 11970s/:*$// 11971x 11972s/\(=[ ]*\).*/\1/ 11973G 11974s/\n// 11975s/^[^=]*=[ ]*$// 11976}' 11977fi 11978 11979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11980fi # test -n "$CONFIG_FILES" 11981 11982# Set up the scripts for CONFIG_HEADERS section. 11983# No need to generate them if there are no CONFIG_HEADERS. 11984# This happens for instance with `./config.status Makefile'. 11985if test -n "$CONFIG_HEADERS"; then 11986cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11987BEGIN { 11988_ACEOF 11989 11990# Transform confdefs.h into an awk script `defines.awk', embedded as 11991# here-document in config.status, that substitutes the proper values into 11992# config.h.in to produce config.h. 11993 11994# Create a delimiter string that does not exist in confdefs.h, to ease 11995# handling of long lines. 11996ac_delim='%!_!# ' 11997for ac_last_try in false false :; do 11998 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11999 if test -z "$ac_tt"; then 12000 break 12001 elif $ac_last_try; then 12002 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12003 else 12004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12005 fi 12006done 12007 12008# For the awk script, D is an array of macro values keyed by name, 12009# likewise P contains macro parameters if any. Preserve backslash 12010# newline sequences. 12011 12012ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12013sed -n ' 12014s/.\{148\}/&'"$ac_delim"'/g 12015t rset 12016:rset 12017s/^[ ]*#[ ]*define[ ][ ]*/ / 12018t def 12019d 12020:def 12021s/\\$// 12022t bsnl 12023s/["\\]/\\&/g 12024s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12025D["\1"]=" \3"/p 12026s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12027d 12028:bsnl 12029s/["\\]/\\&/g 12030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12031D["\1"]=" \3\\\\\\n"\\/p 12032t cont 12033s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12034t cont 12035d 12036:cont 12037n 12038s/.\{148\}/&'"$ac_delim"'/g 12039t clear 12040:clear 12041s/\\$// 12042t bsnlc 12043s/["\\]/\\&/g; s/^/"/; s/$/"/p 12044d 12045:bsnlc 12046s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12047b cont 12048' <confdefs.h | sed ' 12049s/'"$ac_delim"'/"\\\ 12050"/g' >>$CONFIG_STATUS || ac_write_fail=1 12051 12052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12053 for (key in D) D_is_set[key] = 1 12054 FS = "" 12055} 12056/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12057 line = \$ 0 12058 split(line, arg, " ") 12059 if (arg[1] == "#") { 12060 defundef = arg[2] 12061 mac1 = arg[3] 12062 } else { 12063 defundef = substr(arg[1], 2) 12064 mac1 = arg[2] 12065 } 12066 split(mac1, mac2, "(") #) 12067 macro = mac2[1] 12068 prefix = substr(line, 1, index(line, defundef) - 1) 12069 if (D_is_set[macro]) { 12070 # Preserve the white space surrounding the "#". 12071 print prefix "define", macro P[macro] D[macro] 12072 next 12073 } else { 12074 # Replace #undef with comments. This is necessary, for example, 12075 # in the case of _POSIX_SOURCE, which is predefined and required 12076 # on some systems where configure will not decide to define it. 12077 if (defundef == "undef") { 12078 print "/*", prefix defundef, macro, "*/" 12079 next 12080 } 12081 } 12082} 12083{ print } 12084_ACAWK 12085_ACEOF 12086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12087 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12088fi # test -n "$CONFIG_HEADERS" 12089 12090 12091eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12092shift 12093for ac_tag 12094do 12095 case $ac_tag in 12096 :[FHLC]) ac_mode=$ac_tag; continue;; 12097 esac 12098 case $ac_mode$ac_tag in 12099 :[FHL]*:*);; 12100 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12101 :[FH]-) ac_tag=-:-;; 12102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12103 esac 12104 ac_save_IFS=$IFS 12105 IFS=: 12106 set x $ac_tag 12107 IFS=$ac_save_IFS 12108 shift 12109 ac_file=$1 12110 shift 12111 12112 case $ac_mode in 12113 :L) ac_source=$1;; 12114 :[FH]) 12115 ac_file_inputs= 12116 for ac_f 12117 do 12118 case $ac_f in 12119 -) ac_f="$ac_tmp/stdin";; 12120 *) # Look for the file first in the build tree, then in the source tree 12121 # (if the path is not absolute). The absolute path cannot be DOS-style, 12122 # because $ac_f cannot contain `:'. 12123 test -f "$ac_f" || 12124 case $ac_f in 12125 [\\/$]*) false;; 12126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12127 esac || 12128 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12129 esac 12130 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12131 as_fn_append ac_file_inputs " '$ac_f'" 12132 done 12133 12134 # Let's still pretend it is `configure' which instantiates (i.e., don't 12135 # use $as_me), people would be surprised to read: 12136 # /* config.h. Generated by config.status. */ 12137 configure_input='Generated from '` 12138 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12139 `' by configure.' 12140 if test x"$ac_file" != x-; then 12141 configure_input="$ac_file. $configure_input" 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12143$as_echo "$as_me: creating $ac_file" >&6;} 12144 fi 12145 # Neutralize special characters interpreted by sed in replacement strings. 12146 case $configure_input in #( 12147 *\&* | *\|* | *\\* ) 12148 ac_sed_conf_input=`$as_echo "$configure_input" | 12149 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12150 *) ac_sed_conf_input=$configure_input;; 12151 esac 12152 12153 case $ac_tag in 12154 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12156 esac 12157 ;; 12158 esac 12159 12160 ac_dir=`$as_dirname -- "$ac_file" || 12161$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12162 X"$ac_file" : 'X\(//\)[^/]' \| \ 12163 X"$ac_file" : 'X\(//\)$' \| \ 12164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12165$as_echo X"$ac_file" | 12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12167 s//\1/ 12168 q 12169 } 12170 /^X\(\/\/\)[^/].*/{ 12171 s//\1/ 12172 q 12173 } 12174 /^X\(\/\/\)$/{ 12175 s//\1/ 12176 q 12177 } 12178 /^X\(\/\).*/{ 12179 s//\1/ 12180 q 12181 } 12182 s/.*/./; q'` 12183 as_dir="$ac_dir"; as_fn_mkdir_p 12184 ac_builddir=. 12185 12186case "$ac_dir" in 12187.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12188*) 12189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12190 # A ".." for each directory in $ac_dir_suffix. 12191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12192 case $ac_top_builddir_sub in 12193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12195 esac ;; 12196esac 12197ac_abs_top_builddir=$ac_pwd 12198ac_abs_builddir=$ac_pwd$ac_dir_suffix 12199# for backward compatibility: 12200ac_top_builddir=$ac_top_build_prefix 12201 12202case $srcdir in 12203 .) # We are building in place. 12204 ac_srcdir=. 12205 ac_top_srcdir=$ac_top_builddir_sub 12206 ac_abs_top_srcdir=$ac_pwd ;; 12207 [\\/]* | ?:[\\/]* ) # Absolute name. 12208 ac_srcdir=$srcdir$ac_dir_suffix; 12209 ac_top_srcdir=$srcdir 12210 ac_abs_top_srcdir=$srcdir ;; 12211 *) # Relative name. 12212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12213 ac_top_srcdir=$ac_top_build_prefix$srcdir 12214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12215esac 12216ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12217 12218 12219 case $ac_mode in 12220 :F) 12221 # 12222 # CONFIG_FILE 12223 # 12224 12225 case $INSTALL in 12226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12228 esac 12229 ac_MKDIR_P=$MKDIR_P 12230 case $MKDIR_P in 12231 [\\/$]* | ?:[\\/]* ) ;; 12232 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12233 esac 12234_ACEOF 12235 12236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12237# If the template does not know about datarootdir, expand it. 12238# FIXME: This hack should be removed a few years after 2.60. 12239ac_datarootdir_hack=; ac_datarootdir_seen= 12240ac_sed_dataroot=' 12241/datarootdir/ { 12242 p 12243 q 12244} 12245/@datadir@/p 12246/@docdir@/p 12247/@infodir@/p 12248/@localedir@/p 12249/@mandir@/p' 12250case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12251*datarootdir*) ac_datarootdir_seen=yes;; 12252*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12254$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12255_ACEOF 12256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12257 ac_datarootdir_hack=' 12258 s&@datadir@&$datadir&g 12259 s&@docdir@&$docdir&g 12260 s&@infodir@&$infodir&g 12261 s&@localedir@&$localedir&g 12262 s&@mandir@&$mandir&g 12263 s&\\\${datarootdir}&$datarootdir&g' ;; 12264esac 12265_ACEOF 12266 12267# Neutralize VPATH when `$srcdir' = `.'. 12268# Shell code in configure.ac might set extrasub. 12269# FIXME: do we really want to maintain this feature? 12270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12271ac_sed_extra="$ac_vpsub 12272$extrasub 12273_ACEOF 12274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12275:t 12276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12277s|@configure_input@|$ac_sed_conf_input|;t t 12278s&@top_builddir@&$ac_top_builddir_sub&;t t 12279s&@top_build_prefix@&$ac_top_build_prefix&;t t 12280s&@srcdir@&$ac_srcdir&;t t 12281s&@abs_srcdir@&$ac_abs_srcdir&;t t 12282s&@top_srcdir@&$ac_top_srcdir&;t t 12283s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12284s&@builddir@&$ac_builddir&;t t 12285s&@abs_builddir@&$ac_abs_builddir&;t t 12286s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12287s&@INSTALL@&$ac_INSTALL&;t t 12288s&@MKDIR_P@&$ac_MKDIR_P&;t t 12289$ac_datarootdir_hack 12290" 12291eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12292 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12293 12294test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12295 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12297 "$ac_tmp/out"`; test -z "$ac_out"; } && 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12299which seems to be undefined. Please make sure it is defined" >&5 12300$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12301which seems to be undefined. Please make sure it is defined" >&2;} 12302 12303 rm -f "$ac_tmp/stdin" 12304 case $ac_file in 12305 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12306 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12307 esac \ 12308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12309 ;; 12310 :H) 12311 # 12312 # CONFIG_HEADER 12313 # 12314 if test x"$ac_file" != x-; then 12315 { 12316 $as_echo "/* $configure_input */" \ 12317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12318 } >"$ac_tmp/config.h" \ 12319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12320 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12322$as_echo "$as_me: $ac_file is unchanged" >&6;} 12323 else 12324 rm -f "$ac_file" 12325 mv "$ac_tmp/config.h" "$ac_file" \ 12326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12327 fi 12328 else 12329 $as_echo "/* $configure_input */" \ 12330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12331 || as_fn_error $? "could not create -" "$LINENO" 5 12332 fi 12333# Compute "$ac_file"'s index in $config_headers. 12334_am_arg="$ac_file" 12335_am_stamp_count=1 12336for _am_header in $config_headers :; do 12337 case $_am_header in 12338 $_am_arg | $_am_arg:* ) 12339 break ;; 12340 * ) 12341 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12342 esac 12343done 12344echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12345$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12346 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12347 X"$_am_arg" : 'X\(//\)$' \| \ 12348 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12349$as_echo X"$_am_arg" | 12350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12351 s//\1/ 12352 q 12353 } 12354 /^X\(\/\/\)[^/].*/{ 12355 s//\1/ 12356 q 12357 } 12358 /^X\(\/\/\)$/{ 12359 s//\1/ 12360 q 12361 } 12362 /^X\(\/\).*/{ 12363 s//\1/ 12364 q 12365 } 12366 s/.*/./; q'`/stamp-h$_am_stamp_count 12367 ;; 12368 12369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12370$as_echo "$as_me: executing $ac_file commands" >&6;} 12371 ;; 12372 esac 12373 12374 12375 case $ac_file$ac_mode in 12376 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12377 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12378 # are listed without --file. Let's play safe and only enable the eval 12379 # if we detect the quoting. 12380 case $CONFIG_FILES in 12381 *\'*) eval set x "$CONFIG_FILES" ;; 12382 *) set x $CONFIG_FILES ;; 12383 esac 12384 shift 12385 for mf 12386 do 12387 # Strip MF so we end up with the name of the file. 12388 mf=`echo "$mf" | sed -e 's/:.*$//'` 12389 # Check whether this is an Automake generated Makefile or not. 12390 # We used to match only the files named `Makefile.in', but 12391 # some people rename them; so instead we look at the file content. 12392 # Grep'ing the first line is not enough: some people post-process 12393 # each Makefile.in and add a new line on top of each file to say so. 12394 # Grep'ing the whole file is not good either: AIX grep has a line 12395 # limit of 2048, but all sed's we know have understand at least 4000. 12396 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12397 dirpart=`$as_dirname -- "$mf" || 12398$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12399 X"$mf" : 'X\(//\)[^/]' \| \ 12400 X"$mf" : 'X\(//\)$' \| \ 12401 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12402$as_echo X"$mf" | 12403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12404 s//\1/ 12405 q 12406 } 12407 /^X\(\/\/\)[^/].*/{ 12408 s//\1/ 12409 q 12410 } 12411 /^X\(\/\/\)$/{ 12412 s//\1/ 12413 q 12414 } 12415 /^X\(\/\).*/{ 12416 s//\1/ 12417 q 12418 } 12419 s/.*/./; q'` 12420 else 12421 continue 12422 fi 12423 # Extract the definition of DEPDIR, am__include, and am__quote 12424 # from the Makefile without running `make'. 12425 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12426 test -z "$DEPDIR" && continue 12427 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12428 test -z "am__include" && continue 12429 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12430 # When using ansi2knr, U may be empty or an underscore; expand it 12431 U=`sed -n 's/^U = //p' < "$mf"` 12432 # Find all dependency output files, they are included files with 12433 # $(DEPDIR) in their names. We invoke sed twice because it is the 12434 # simplest approach to changing $(DEPDIR) to its actual value in the 12435 # expansion. 12436 for file in `sed -n " 12437 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12438 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12439 # Make sure the directory exists. 12440 test -f "$dirpart/$file" && continue 12441 fdir=`$as_dirname -- "$file" || 12442$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12443 X"$file" : 'X\(//\)[^/]' \| \ 12444 X"$file" : 'X\(//\)$' \| \ 12445 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12446$as_echo X"$file" | 12447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12448 s//\1/ 12449 q 12450 } 12451 /^X\(\/\/\)[^/].*/{ 12452 s//\1/ 12453 q 12454 } 12455 /^X\(\/\/\)$/{ 12456 s//\1/ 12457 q 12458 } 12459 /^X\(\/\).*/{ 12460 s//\1/ 12461 q 12462 } 12463 s/.*/./; q'` 12464 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12465 # echo "creating $dirpart/$file" 12466 echo '# dummy' > "$dirpart/$file" 12467 done 12468 done 12469} 12470 ;; 12471 12472 esac 12473done # for ac_tag 12474 12475 12476as_fn_exit 0 12477_ACEOF 12478ac_clean_files=$ac_clean_files_save 12479 12480test $ac_write_fail = 0 || 12481 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12482 12483 12484# configure is writing to config.log, and then calls config.status. 12485# config.status does its own redirection, appending to config.log. 12486# Unfortunately, on DOS this fails, as config.log is still kept open 12487# by configure, so config.status won't be able to write to it; its 12488# output is simply discarded. So we exec the FD to /dev/null, 12489# effectively closing config.log, so it can be properly (re)opened and 12490# appended to by config.status. When coming back to configure, we 12491# need to make the FD available again. 12492if test "$no_create" != yes; then 12493 ac_cs_success=: 12494 ac_config_status_args= 12495 test "$silent" = yes && 12496 ac_config_status_args="$ac_config_status_args --quiet" 12497 exec 5>/dev/null 12498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12499 exec 5>>config.log 12500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12501 # would make configure fail if this is the last instruction. 12502 $ac_cs_success || as_fn_exit 1 12503fi 12504if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12506$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12507fi 12508 12509