configure revision bda5b58f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for setxkbmap 1.3.0. 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='setxkbmap' 563PACKAGE_TARNAME='setxkbmap' 564PACKAGE_VERSION='1.3.0' 565PACKAGE_STRING='setxkbmap 1.3.0' 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 609LINT_FALSE 610LINT_TRUE 611LINT_FLAGS 612LINT 613SETXKBMAP_LIBS 614SETXKBMAP_CFLAGS 615XKBCONFIGROOT 616AM_BACKSLASH 617AM_DEFAULT_VERBOSITY 618MAN_SUBSTS 619XORG_MAN_PAGE 620ADMIN_MAN_DIR 621DRIVER_MAN_DIR 622MISC_MAN_DIR 623FILE_MAN_DIR 624LIB_MAN_DIR 625APP_MAN_DIR 626ADMIN_MAN_SUFFIX 627DRIVER_MAN_SUFFIX 628MISC_MAN_SUFFIX 629FILE_MAN_SUFFIX 630LIB_MAN_SUFFIX 631APP_MAN_SUFFIX 632SED 633host_os 634host_vendor 635host_cpu 636host 637build_os 638build_vendor 639build_cpu 640build 641INSTALL_CMD 642PKG_CONFIG 643CHANGELOG_CMD 644STRICT_CFLAGS 645CWARNFLAGS 646BASE_CFLAGS 647EGREP 648GREP 649CPP 650am__fastdepCC_FALSE 651am__fastdepCC_TRUE 652CCDEPMODE 653AMDEPBACKSLASH 654AMDEP_FALSE 655AMDEP_TRUE 656am__quote 657am__include 658DEPDIR 659OBJEXT 660EXEEXT 661ac_ct_CC 662CPPFLAGS 663LDFLAGS 664CFLAGS 665CC 666MAINT 667MAINTAINER_MODE_FALSE 668MAINTAINER_MODE_TRUE 669am__untar 670am__tar 671AMTAR 672am__leading_dot 673SET_MAKE 674AWK 675mkdir_p 676MKDIR_P 677INSTALL_STRIP_PROGRAM 678STRIP 679install_sh 680MAKEINFO 681AUTOHEADER 682AUTOMAKE 683AUTOCONF 684ACLOCAL 685VERSION 686PACKAGE 687CYGPATH_W 688am__isrc 689INSTALL_DATA 690INSTALL_SCRIPT 691INSTALL_PROGRAM 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711localstatedir 712sharedstatedir 713sysconfdir 714datadir 715datarootdir 716libexecdir 717sbindir 718bindir 719program_transform_name 720prefix 721exec_prefix 722PACKAGE_URL 723PACKAGE_BUGREPORT 724PACKAGE_STRING 725PACKAGE_VERSION 726PACKAGE_TARNAME 727PACKAGE_NAME 728PATH_SEPARATOR 729SHELL' 730ac_subst_files='' 731ac_user_opts=' 732enable_option_checking 733enable_maintainer_mode 734enable_dependency_tracking 735enable_selective_werror 736enable_strict_compilation 737enable_silent_rules 738with_xkb_config_root 739with_lint 740' 741 ac_precious_vars='build_alias 742host_alias 743target_alias 744CC 745CFLAGS 746LDFLAGS 747LIBS 748CPPFLAGS 749CPP 750PKG_CONFIG 751SETXKBMAP_CFLAGS 752SETXKBMAP_LIBS 753LINT 754LINT_FLAGS' 755 756 757# Initialize some variables set by options. 758ac_init_help= 759ac_init_version=false 760ac_unrecognized_opts= 761ac_unrecognized_sep= 762# The variables have the same names as the options, with 763# dashes changed to underlines. 764cache_file=/dev/null 765exec_prefix=NONE 766no_create= 767no_recursion= 768prefix=NONE 769program_prefix=NONE 770program_suffix=NONE 771program_transform_name=s,x,x, 772silent= 773site= 774srcdir= 775verbose= 776x_includes=NONE 777x_libraries=NONE 778 779# Installation directory options. 780# These are left unexpanded so users can "make install exec_prefix=/foo" 781# and all the variables that are supposed to be based on exec_prefix 782# by default will actually change. 783# Use braces instead of parens because sh, perl, etc. also accept them. 784# (The list follows the same order as the GNU Coding Standards.) 785bindir='${exec_prefix}/bin' 786sbindir='${exec_prefix}/sbin' 787libexecdir='${exec_prefix}/libexec' 788datarootdir='${prefix}/share' 789datadir='${datarootdir}' 790sysconfdir='${prefix}/etc' 791sharedstatedir='${prefix}/com' 792localstatedir='${prefix}/var' 793includedir='${prefix}/include' 794oldincludedir='/usr/include' 795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 796infodir='${datarootdir}/info' 797htmldir='${docdir}' 798dvidir='${docdir}' 799pdfdir='${docdir}' 800psdir='${docdir}' 801libdir='${exec_prefix}/lib' 802localedir='${datarootdir}/locale' 803mandir='${datarootdir}/man' 804 805ac_prev= 806ac_dashdash= 807for ac_option 808do 809 # If the previous option needs an argument, assign it. 810 if test -n "$ac_prev"; then 811 eval $ac_prev=\$ac_option 812 ac_prev= 813 continue 814 fi 815 816 case $ac_option in 817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 818 *=) ac_optarg= ;; 819 *) ac_optarg=yes ;; 820 esac 821 822 # Accept the important Cygnus configure options, so we can diagnose typos. 823 824 case $ac_dashdash$ac_option in 825 --) 826 ac_dashdash=yes ;; 827 828 -bindir | --bindir | --bindi | --bind | --bin | --bi) 829 ac_prev=bindir ;; 830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 831 bindir=$ac_optarg ;; 832 833 -build | --build | --buil | --bui | --bu) 834 ac_prev=build_alias ;; 835 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 836 build_alias=$ac_optarg ;; 837 838 -cache-file | --cache-file | --cache-fil | --cache-fi \ 839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 840 ac_prev=cache_file ;; 841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 843 cache_file=$ac_optarg ;; 844 845 --config-cache | -C) 846 cache_file=config.cache ;; 847 848 -datadir | --datadir | --datadi | --datad) 849 ac_prev=datadir ;; 850 -datadir=* | --datadir=* | --datadi=* | --datad=*) 851 datadir=$ac_optarg ;; 852 853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 854 | --dataroo | --dataro | --datar) 855 ac_prev=datarootdir ;; 856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 858 datarootdir=$ac_optarg ;; 859 860 -disable-* | --disable-*) 861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 862 # Reject names that are not valid shell variable names. 863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 864 as_fn_error $? "invalid feature name: $ac_useropt" 865 ac_useropt_orig=$ac_useropt 866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 867 case $ac_user_opts in 868 *" 869"enable_$ac_useropt" 870"*) ;; 871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 872 ac_unrecognized_sep=', ';; 873 esac 874 eval enable_$ac_useropt=no ;; 875 876 -docdir | --docdir | --docdi | --doc | --do) 877 ac_prev=docdir ;; 878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 879 docdir=$ac_optarg ;; 880 881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 882 ac_prev=dvidir ;; 883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 884 dvidir=$ac_optarg ;; 885 886 -enable-* | --enable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=\$ac_optarg ;; 901 902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 904 | --exec | --exe | --ex) 905 ac_prev=exec_prefix ;; 906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 908 | --exec=* | --exe=* | --ex=*) 909 exec_prefix=$ac_optarg ;; 910 911 -gas | --gas | --ga | --g) 912 # Obsolete; use --with-gas. 913 with_gas=yes ;; 914 915 -help | --help | --hel | --he | -h) 916 ac_init_help=long ;; 917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 918 ac_init_help=recursive ;; 919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 920 ac_init_help=short ;; 921 922 -host | --host | --hos | --ho) 923 ac_prev=host_alias ;; 924 -host=* | --host=* | --hos=* | --ho=*) 925 host_alias=$ac_optarg ;; 926 927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 928 ac_prev=htmldir ;; 929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 930 | --ht=*) 931 htmldir=$ac_optarg ;; 932 933 -includedir | --includedir | --includedi | --included | --include \ 934 | --includ | --inclu | --incl | --inc) 935 ac_prev=includedir ;; 936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 937 | --includ=* | --inclu=* | --incl=* | --inc=*) 938 includedir=$ac_optarg ;; 939 940 -infodir | --infodir | --infodi | --infod | --info | --inf) 941 ac_prev=infodir ;; 942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 943 infodir=$ac_optarg ;; 944 945 -libdir | --libdir | --libdi | --libd) 946 ac_prev=libdir ;; 947 -libdir=* | --libdir=* | --libdi=* | --libd=*) 948 libdir=$ac_optarg ;; 949 950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 951 | --libexe | --libex | --libe) 952 ac_prev=libexecdir ;; 953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 954 | --libexe=* | --libex=* | --libe=*) 955 libexecdir=$ac_optarg ;; 956 957 -localedir | --localedir | --localedi | --localed | --locale) 958 ac_prev=localedir ;; 959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 960 localedir=$ac_optarg ;; 961 962 -localstatedir | --localstatedir | --localstatedi | --localstated \ 963 | --localstate | --localstat | --localsta | --localst | --locals) 964 ac_prev=localstatedir ;; 965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 967 localstatedir=$ac_optarg ;; 968 969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 970 ac_prev=mandir ;; 971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 972 mandir=$ac_optarg ;; 973 974 -nfp | --nfp | --nf) 975 # Obsolete; use --without-fp. 976 with_fp=no ;; 977 978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 979 | --no-cr | --no-c | -n) 980 no_create=yes ;; 981 982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 984 no_recursion=yes ;; 985 986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 988 | --oldin | --oldi | --old | --ol | --o) 989 ac_prev=oldincludedir ;; 990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 993 oldincludedir=$ac_optarg ;; 994 995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 996 ac_prev=prefix ;; 997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 998 prefix=$ac_optarg ;; 999 1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1001 | --program-pre | --program-pr | --program-p) 1002 ac_prev=program_prefix ;; 1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1005 program_prefix=$ac_optarg ;; 1006 1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1008 | --program-suf | --program-su | --program-s) 1009 ac_prev=program_suffix ;; 1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1012 program_suffix=$ac_optarg ;; 1013 1014 -program-transform-name | --program-transform-name \ 1015 | --program-transform-nam | --program-transform-na \ 1016 | --program-transform-n | --program-transform- \ 1017 | --program-transform | --program-transfor \ 1018 | --program-transfo | --program-transf \ 1019 | --program-trans | --program-tran \ 1020 | --progr-tra | --program-tr | --program-t) 1021 ac_prev=program_transform_name ;; 1022 -program-transform-name=* | --program-transform-name=* \ 1023 | --program-transform-nam=* | --program-transform-na=* \ 1024 | --program-transform-n=* | --program-transform-=* \ 1025 | --program-transform=* | --program-transfor=* \ 1026 | --program-transfo=* | --program-transf=* \ 1027 | --program-trans=* | --program-tran=* \ 1028 | --progr-tra=* | --program-tr=* | --program-t=*) 1029 program_transform_name=$ac_optarg ;; 1030 1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1032 ac_prev=pdfdir ;; 1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1034 pdfdir=$ac_optarg ;; 1035 1036 -psdir | --psdir | --psdi | --psd | --ps) 1037 ac_prev=psdir ;; 1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1039 psdir=$ac_optarg ;; 1040 1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1042 | -silent | --silent | --silen | --sile | --sil) 1043 silent=yes ;; 1044 1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1046 ac_prev=sbindir ;; 1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1048 | --sbi=* | --sb=*) 1049 sbindir=$ac_optarg ;; 1050 1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1053 | --sharedst | --shareds | --shared | --share | --shar \ 1054 | --sha | --sh) 1055 ac_prev=sharedstatedir ;; 1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1059 | --sha=* | --sh=*) 1060 sharedstatedir=$ac_optarg ;; 1061 1062 -site | --site | --sit) 1063 ac_prev=site ;; 1064 -site=* | --site=* | --sit=*) 1065 site=$ac_optarg ;; 1066 1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1068 ac_prev=srcdir ;; 1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1070 srcdir=$ac_optarg ;; 1071 1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1073 | --syscon | --sysco | --sysc | --sys | --sy) 1074 ac_prev=sysconfdir ;; 1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1077 sysconfdir=$ac_optarg ;; 1078 1079 -target | --target | --targe | --targ | --tar | --ta | --t) 1080 ac_prev=target_alias ;; 1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1082 target_alias=$ac_optarg ;; 1083 1084 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1085 verbose=yes ;; 1086 1087 -version | --version | --versio | --versi | --vers | -V) 1088 ac_init_version=: ;; 1089 1090 -with-* | --with-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 as_fn_error $? "invalid package name: $ac_useropt" 1095 ac_useropt_orig=$ac_useropt 1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1097 case $ac_user_opts in 1098 *" 1099"with_$ac_useropt" 1100"*) ;; 1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1102 ac_unrecognized_sep=', ';; 1103 esac 1104 eval with_$ac_useropt=\$ac_optarg ;; 1105 1106 -without-* | --without-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 as_fn_error $? "invalid package name: $ac_useropt" 1111 ac_useropt_orig=$ac_useropt 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1113 case $ac_user_opts in 1114 *" 1115"with_$ac_useropt" 1116"*) ;; 1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1118 ac_unrecognized_sep=', ';; 1119 esac 1120 eval with_$ac_useropt=no ;; 1121 1122 --x) 1123 # Obsolete; use --with-x. 1124 with_x=yes ;; 1125 1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1127 | --x-incl | --x-inc | --x-in | --x-i) 1128 ac_prev=x_includes ;; 1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1131 x_includes=$ac_optarg ;; 1132 1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1135 ac_prev=x_libraries ;; 1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1138 x_libraries=$ac_optarg ;; 1139 1140 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1141Try \`$0 --help' for more information" 1142 ;; 1143 1144 *=*) 1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1146 # Reject names that are not valid shell variable names. 1147 case $ac_envvar in #( 1148 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1150 esac 1151 eval $ac_envvar=\$ac_optarg 1152 export $ac_envvar ;; 1153 1154 *) 1155 # FIXME: should be removed in autoconf 3.0. 1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1160 ;; 1161 1162 esac 1163done 1164 1165if test -n "$ac_prev"; then 1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1167 as_fn_error $? "missing argument to $ac_option" 1168fi 1169 1170if test -n "$ac_unrecognized_opts"; then 1171 case $enable_option_checking in 1172 no) ;; 1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1175 esac 1176fi 1177 1178# Check all directory arguments for consistency. 1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1180 datadir sysconfdir sharedstatedir localstatedir includedir \ 1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1182 libdir localedir mandir 1183do 1184 eval ac_val=\$$ac_var 1185 # Remove trailing slashes. 1186 case $ac_val in 1187 */ ) 1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1189 eval $ac_var=\$ac_val;; 1190 esac 1191 # Be sure to have absolute directory names. 1192 case $ac_val in 1193 [\\/$]* | ?:[\\/]* ) continue;; 1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1195 esac 1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1197done 1198 1199# There might be people who depend on the old broken behavior: `$host' 1200# used to hold the argument of --host etc. 1201# FIXME: To remove some day. 1202build=$build_alias 1203host=$host_alias 1204target=$target_alias 1205 1206# FIXME: To remove some day. 1207if test "x$host_alias" != x; then 1208 if test "x$build_alias" = x; then 1209 cross_compiling=maybe 1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1211 If a cross compiler is detected then cross compile mode will be used" >&2 1212 elif test "x$build_alias" != "x$host_alias"; then 1213 cross_compiling=yes 1214 fi 1215fi 1216 1217ac_tool_prefix= 1218test -n "$host_alias" && ac_tool_prefix=$host_alias- 1219 1220test "$silent" = yes && exec 6>/dev/null 1221 1222 1223ac_pwd=`pwd` && test -n "$ac_pwd" && 1224ac_ls_di=`ls -di .` && 1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1226 as_fn_error $? "working directory cannot be determined" 1227test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1228 as_fn_error $? "pwd does not report name of working directory" 1229 1230 1231# Find the source files, if location was not specified. 1232if test -z "$srcdir"; then 1233 ac_srcdir_defaulted=yes 1234 # Try the directory containing this script, then the parent directory. 1235 ac_confdir=`$as_dirname -- "$as_myself" || 1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1237 X"$as_myself" : 'X\(//\)[^/]' \| \ 1238 X"$as_myself" : 'X\(//\)$' \| \ 1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1240$as_echo X"$as_myself" | 1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\/\)[^/].*/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\/\)$/{ 1250 s//\1/ 1251 q 1252 } 1253 /^X\(\/\).*/{ 1254 s//\1/ 1255 q 1256 } 1257 s/.*/./; q'` 1258 srcdir=$ac_confdir 1259 if test ! -r "$srcdir/$ac_unique_file"; then 1260 srcdir=.. 1261 fi 1262else 1263 ac_srcdir_defaulted=no 1264fi 1265if test ! -r "$srcdir/$ac_unique_file"; then 1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1268fi 1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1270ac_abs_confdir=`( 1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1272 pwd)` 1273# When building in place, set srcdir=. 1274if test "$ac_abs_confdir" = "$ac_pwd"; then 1275 srcdir=. 1276fi 1277# Remove unnecessary trailing slashes from srcdir. 1278# Double slashes in file names in object file debugging info 1279# mess up M-x gdb in Emacs. 1280case $srcdir in 1281*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1282esac 1283for ac_var in $ac_precious_vars; do 1284 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1285 eval ac_env_${ac_var}_value=\$${ac_var} 1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1288done 1289 1290# 1291# Report the --help message. 1292# 1293if test "$ac_init_help" = "long"; then 1294 # Omit some internal or obsolete options to make the list less imposing. 1295 # This message is too long to be a string in the A/UX 3.1 sh. 1296 cat <<_ACEOF 1297\`configure' configures setxkbmap 1.3.0 to adapt to many kinds of systems. 1298 1299Usage: $0 [OPTION]... [VAR=VALUE]... 1300 1301To assign environment variables (e.g., CC, CFLAGS...), specify them as 1302VAR=VALUE. See below for descriptions of some of the useful variables. 1303 1304Defaults for the options are specified in brackets. 1305 1306Configuration: 1307 -h, --help display this help and exit 1308 --help=short display options specific to this package 1309 --help=recursive display the short help of all the included packages 1310 -V, --version display version information and exit 1311 -q, --quiet, --silent do not print \`checking ...' messages 1312 --cache-file=FILE cache test results in FILE [disabled] 1313 -C, --config-cache alias for \`--cache-file=config.cache' 1314 -n, --no-create do not create output files 1315 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1316 1317Installation directories: 1318 --prefix=PREFIX install architecture-independent files in PREFIX 1319 [$ac_default_prefix] 1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1321 [PREFIX] 1322 1323By default, \`make install' will install all the files in 1324\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1325an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1326for instance \`--prefix=\$HOME'. 1327 1328For better control, use the options below. 1329 1330Fine tuning of the installation directories: 1331 --bindir=DIR user executables [EPREFIX/bin] 1332 --sbindir=DIR system admin executables [EPREFIX/sbin] 1333 --libexecdir=DIR program executables [EPREFIX/libexec] 1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1337 --libdir=DIR object code libraries [EPREFIX/lib] 1338 --includedir=DIR C header files [PREFIX/include] 1339 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1342 --infodir=DIR info documentation [DATAROOTDIR/info] 1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1344 --mandir=DIR man documentation [DATAROOTDIR/man] 1345 --docdir=DIR documentation root [DATAROOTDIR/doc/setxkbmap] 1346 --htmldir=DIR html documentation [DOCDIR] 1347 --dvidir=DIR dvi documentation [DOCDIR] 1348 --pdfdir=DIR pdf documentation [DOCDIR] 1349 --psdir=DIR ps documentation [DOCDIR] 1350_ACEOF 1351 1352 cat <<\_ACEOF 1353 1354Program names: 1355 --program-prefix=PREFIX prepend PREFIX to installed program names 1356 --program-suffix=SUFFIX append SUFFIX to installed program names 1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1358 1359System types: 1360 --build=BUILD configure for building on BUILD [guessed] 1361 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1362_ACEOF 1363fi 1364 1365if test -n "$ac_init_help"; then 1366 case $ac_init_help in 1367 short | recursive ) echo "Configuration of setxkbmap 1.3.0:";; 1368 esac 1369 cat <<\_ACEOF 1370 1371Optional Features: 1372 --disable-option-checking ignore unrecognized --enable/--with options 1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1375 --enable-maintainer-mode enable make rules and dependencies not useful 1376 (and sometimes confusing) to the casual installer 1377 --disable-dependency-tracking speeds up one-time build 1378 --enable-dependency-tracking do not reject slow dependency extractors 1379 --disable-selective-werror 1380 Turn off selective compiler errors. (default: 1381 enabled) 1382 --enable-strict-compilation 1383 Enable all warnings from compiler and make them 1384 errors (default: disabled) 1385 --enable-silent-rules less verbose build output (undo: `make V=1') 1386 --disable-silent-rules verbose build output (undo: `make V=0') 1387 1388Optional Packages: 1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1391 --with-xkb-config-root=<paths> 1392 Set default XKB config root (default: 1393 ${datadir}/X11/xkb) 1394 --with-lint Use a lint-style source code checker (default: 1395 disabled) 1396 1397Some influential environment variables: 1398 CC C compiler command 1399 CFLAGS C compiler flags 1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401 nonstandard directory <lib dir> 1402 LIBS libraries to pass to the linker, e.g. -l<library> 1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404 you have headers in a nonstandard directory <include dir> 1405 CPP C preprocessor 1406 PKG_CONFIG path to pkg-config utility 1407 SETXKBMAP_CFLAGS 1408 C compiler flags for SETXKBMAP, overriding pkg-config 1409 SETXKBMAP_LIBS 1410 linker flags for SETXKBMAP, overriding pkg-config 1411 LINT Path to a lint-style command 1412 LINT_FLAGS Flags for the lint-style command 1413 1414Use these variables to override the choices made by `configure' or to help 1415it to find libraries and programs with nonstandard names/locations. 1416 1417Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1418_ACEOF 1419ac_status=$? 1420fi 1421 1422if test "$ac_init_help" = "recursive"; then 1423 # If there are subdirs, report their specific --help. 1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1425 test -d "$ac_dir" || 1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1427 continue 1428 ac_builddir=. 1429 1430case "$ac_dir" in 1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1432*) 1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1434 # A ".." for each directory in $ac_dir_suffix. 1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1436 case $ac_top_builddir_sub in 1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1439 esac ;; 1440esac 1441ac_abs_top_builddir=$ac_pwd 1442ac_abs_builddir=$ac_pwd$ac_dir_suffix 1443# for backward compatibility: 1444ac_top_builddir=$ac_top_build_prefix 1445 1446case $srcdir in 1447 .) # We are building in place. 1448 ac_srcdir=. 1449 ac_top_srcdir=$ac_top_builddir_sub 1450 ac_abs_top_srcdir=$ac_pwd ;; 1451 [\\/]* | ?:[\\/]* ) # Absolute name. 1452 ac_srcdir=$srcdir$ac_dir_suffix; 1453 ac_top_srcdir=$srcdir 1454 ac_abs_top_srcdir=$srcdir ;; 1455 *) # Relative name. 1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1457 ac_top_srcdir=$ac_top_build_prefix$srcdir 1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1459esac 1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1461 1462 cd "$ac_dir" || { ac_status=$?; continue; } 1463 # Check for guested configure. 1464 if test -f "$ac_srcdir/configure.gnu"; then 1465 echo && 1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1467 elif test -f "$ac_srcdir/configure"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure" --help=recursive 1470 else 1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1472 fi || ac_status=$? 1473 cd "$ac_pwd" || { ac_status=$?; break; } 1474 done 1475fi 1476 1477test -n "$ac_init_help" && exit $ac_status 1478if $ac_init_version; then 1479 cat <<\_ACEOF 1480setxkbmap configure 1.3.0 1481generated by GNU Autoconf 2.68 1482 1483Copyright (C) 2010 Free Software Foundation, Inc. 1484This configure script is free software; the Free Software Foundation 1485gives unlimited permission to copy, distribute and modify it. 1486_ACEOF 1487 exit 1488fi 1489 1490## ------------------------ ## 1491## Autoconf initialization. ## 1492## ------------------------ ## 1493 1494# ac_fn_c_try_compile LINENO 1495# -------------------------- 1496# Try to compile conftest.$ac_ext, and return whether this succeeded. 1497ac_fn_c_try_compile () 1498{ 1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1500 rm -f conftest.$ac_objext 1501 if { { ac_try="$ac_compile" 1502case "(($ac_try" in 1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1504 *) ac_try_echo=$ac_try;; 1505esac 1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1507$as_echo "$ac_try_echo"; } >&5 1508 (eval "$ac_compile") 2>conftest.err 1509 ac_status=$? 1510 if test -s conftest.err; then 1511 grep -v '^ *+' conftest.err >conftest.er1 1512 cat conftest.er1 >&5 1513 mv -f conftest.er1 conftest.err 1514 fi 1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1516 test $ac_status = 0; } && { 1517 test -z "$ac_c_werror_flag" || 1518 test ! -s conftest.err 1519 } && test -s conftest.$ac_objext; then : 1520 ac_retval=0 1521else 1522 $as_echo "$as_me: failed program was:" >&5 1523sed 's/^/| /' conftest.$ac_ext >&5 1524 1525 ac_retval=1 1526fi 1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1528 as_fn_set_status $ac_retval 1529 1530} # ac_fn_c_try_compile 1531 1532# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1533# --------------------------------------------- 1534# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1535# accordingly. 1536ac_fn_c_check_decl () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 as_decl_name=`echo $2|sed 's/ *(.*//'` 1540 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1542$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1543if eval \${$3+:} false; then : 1544 $as_echo_n "(cached) " >&6 1545else 1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1547/* end confdefs.h. */ 1548$4 1549int 1550main () 1551{ 1552#ifndef $as_decl_name 1553#ifdef __cplusplus 1554 (void) $as_decl_use; 1555#else 1556 (void) $as_decl_name; 1557#endif 1558#endif 1559 1560 ; 1561 return 0; 1562} 1563_ACEOF 1564if ac_fn_c_try_compile "$LINENO"; then : 1565 eval "$3=yes" 1566else 1567 eval "$3=no" 1568fi 1569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1570fi 1571eval ac_res=\$$3 1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1573$as_echo "$ac_res" >&6; } 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 1576} # ac_fn_c_check_decl 1577 1578# ac_fn_c_try_cpp LINENO 1579# ---------------------- 1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_cpp () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 if { { ac_try="$ac_cpp conftest.$ac_ext" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } > conftest.i && { 1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 }; then : 1603 ac_retval=0 1604else 1605 $as_echo "$as_me: failed program was:" >&5 1606sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_cpp 1614 1615# ac_fn_c_try_run LINENO 1616# ---------------------- 1617# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1618# that executables *can* be run. 1619ac_fn_c_try_run () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_link" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_link") 2>&5 1630 ac_status=$? 1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1633 { { case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_try") 2>&5 1640 ac_status=$? 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; }; }; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: program exited with status $ac_status" >&5 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=$ac_status 1650fi 1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655} # ac_fn_c_try_run 1656 1657# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1658# ------------------------------------------------------- 1659# Tests whether HEADER exists and can be compiled using the include files in 1660# INCLUDES, setting the cache variable VAR accordingly. 1661ac_fn_c_check_header_compile () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1665$as_echo_n "checking for $2... " >&6; } 1666if eval \${$3+:} false; then : 1667 $as_echo_n "(cached) " >&6 1668else 1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671$4 1672#include <$2> 1673_ACEOF 1674if ac_fn_c_try_compile "$LINENO"; then : 1675 eval "$3=yes" 1676else 1677 eval "$3=no" 1678fi 1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1680fi 1681eval ac_res=\$$3 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683$as_echo "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_compile 1687 1688# ac_fn_c_try_link LINENO 1689# ----------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_link () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext conftest$ac_exeext 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest$ac_exeext && { 1714 test "$cross_compiling" = yes || 1715 $as_test_x conftest$ac_exeext 1716 }; then : 1717 ac_retval=0 1718else 1719 $as_echo "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=1 1723fi 1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1726 # interfere with the next link command; also delete a directory that is 1727 # left behind by Apple's compiler. We do this before executing the actions. 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_link 1733cat >config.log <<_ACEOF 1734This file contains any messages produced by compilers while 1735running configure, to aid debugging if configure makes a mistake. 1736 1737It was created by setxkbmap $as_me 1.3.0, which was 1738generated by GNU Autoconf 2.68. Invocation command line was 1739 1740 $ $0 $@ 1741 1742_ACEOF 1743exec 5>>config.log 1744{ 1745cat <<_ASUNAME 1746## --------- ## 1747## Platform. ## 1748## --------- ## 1749 1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1751uname -m = `(uname -m) 2>/dev/null || echo unknown` 1752uname -r = `(uname -r) 2>/dev/null || echo unknown` 1753uname -s = `(uname -s) 2>/dev/null || echo unknown` 1754uname -v = `(uname -v) 2>/dev/null || echo unknown` 1755 1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1757/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1758 1759/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1760/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1762/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1763/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1764/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1765/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1766 1767_ASUNAME 1768 1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1770for as_dir in $PATH 1771do 1772 IFS=$as_save_IFS 1773 test -z "$as_dir" && as_dir=. 1774 $as_echo "PATH: $as_dir" 1775 done 1776IFS=$as_save_IFS 1777 1778} >&5 1779 1780cat >&5 <<_ACEOF 1781 1782 1783## ----------- ## 1784## Core tests. ## 1785## ----------- ## 1786 1787_ACEOF 1788 1789 1790# Keep a trace of the command line. 1791# Strip out --no-create and --no-recursion so they do not pile up. 1792# Strip out --silent because we don't want to record it for future runs. 1793# Also quote any args containing shell meta-characters. 1794# Make two passes to allow for proper duplicate-argument suppression. 1795ac_configure_args= 1796ac_configure_args0= 1797ac_configure_args1= 1798ac_must_keep_next=false 1799for ac_pass in 1 2 1800do 1801 for ac_arg 1802 do 1803 case $ac_arg in 1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1806 | -silent | --silent | --silen | --sile | --sil) 1807 continue ;; 1808 *\'*) 1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1810 esac 1811 case $ac_pass in 1812 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1813 2) 1814 as_fn_append ac_configure_args1 " '$ac_arg'" 1815 if test $ac_must_keep_next = true; then 1816 ac_must_keep_next=false # Got value, back to normal. 1817 else 1818 case $ac_arg in 1819 *=* | --config-cache | -C | -disable-* | --disable-* \ 1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1822 | -with-* | --with-* | -without-* | --without-* | --x) 1823 case "$ac_configure_args0 " in 1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1825 esac 1826 ;; 1827 -* ) ac_must_keep_next=true ;; 1828 esac 1829 fi 1830 as_fn_append ac_configure_args " '$ac_arg'" 1831 ;; 1832 esac 1833 done 1834done 1835{ ac_configure_args0=; unset ac_configure_args0;} 1836{ ac_configure_args1=; unset ac_configure_args1;} 1837 1838# When interrupted or exit'd, cleanup temporary files, and complete 1839# config.log. We remove comments because anyway the quotes in there 1840# would cause problems or look ugly. 1841# WARNING: Use '\'' to represent an apostrophe within the trap. 1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1843trap 'exit_status=$? 1844 # Save into config.log some information that might help in debugging. 1845 { 1846 echo 1847 1848 $as_echo "## ---------------- ## 1849## Cache variables. ## 1850## ---------------- ##" 1851 echo 1852 # The following way of writing the cache mishandles newlines in values, 1853( 1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1855 eval ac_val=\$$ac_var 1856 case $ac_val in #( 1857 *${as_nl}*) 1858 case $ac_var in #( 1859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1861 esac 1862 case $ac_var in #( 1863 _ | IFS | as_nl) ;; #( 1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1865 *) { eval $ac_var=; unset $ac_var;} ;; 1866 esac ;; 1867 esac 1868 done 1869 (set) 2>&1 | 1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1871 *${as_nl}ac_space=\ *) 1872 sed -n \ 1873 "s/'\''/'\''\\\\'\'''\''/g; 1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1875 ;; #( 1876 *) 1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1878 ;; 1879 esac | 1880 sort 1881) 1882 echo 1883 1884 $as_echo "## ----------------- ## 1885## Output variables. ## 1886## ----------------- ##" 1887 echo 1888 for ac_var in $ac_subst_vars 1889 do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in 1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1893 esac 1894 $as_echo "$ac_var='\''$ac_val'\''" 1895 done | sort 1896 echo 1897 1898 if test -n "$ac_subst_files"; then 1899 $as_echo "## ------------------- ## 1900## File substitutions. ## 1901## ------------------- ##" 1902 echo 1903 for ac_var in $ac_subst_files 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 $as_echo "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 fi 1913 1914 if test -s confdefs.h; then 1915 $as_echo "## ----------- ## 1916## confdefs.h. ## 1917## ----------- ##" 1918 echo 1919 cat confdefs.h 1920 echo 1921 fi 1922 test "$ac_signal" != 0 && 1923 $as_echo "$as_me: caught signal $ac_signal" 1924 $as_echo "$as_me: exit $exit_status" 1925 } >&5 1926 rm -f core *.core core.conftest.* && 1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1928 exit $exit_status 1929' 0 1930for ac_signal in 1 2 13 15; do 1931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1932done 1933ac_signal=0 1934 1935# confdefs.h avoids OS command line length limits that DEFS can exceed. 1936rm -f -r conftest* confdefs.h 1937 1938$as_echo "/* confdefs.h */" > confdefs.h 1939 1940# Predefined preprocessor variables. 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_NAME "$PACKAGE_NAME" 1944_ACEOF 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_VERSION "$PACKAGE_VERSION" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_STRING "$PACKAGE_STRING" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1960_ACEOF 1961 1962cat >>confdefs.h <<_ACEOF 1963#define PACKAGE_URL "$PACKAGE_URL" 1964_ACEOF 1965 1966 1967# Let the site file select an alternate cache file if it wants to. 1968# Prefer an explicitly selected file to automatically selected ones. 1969ac_site_file1=NONE 1970ac_site_file2=NONE 1971if test -n "$CONFIG_SITE"; then 1972 # We do not want a PATH search for config.site. 1973 case $CONFIG_SITE in #(( 1974 -*) ac_site_file1=./$CONFIG_SITE;; 1975 */*) ac_site_file1=$CONFIG_SITE;; 1976 *) ac_site_file1=./$CONFIG_SITE;; 1977 esac 1978elif test "x$prefix" != xNONE; then 1979 ac_site_file1=$prefix/share/config.site 1980 ac_site_file2=$prefix/etc/config.site 1981else 1982 ac_site_file1=$ac_default_prefix/share/config.site 1983 ac_site_file2=$ac_default_prefix/etc/config.site 1984fi 1985for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1986do 1987 test "x$ac_site_file" = xNONE && continue 1988 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1990$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1991 sed 's/^/| /' "$ac_site_file" >&5 1992 . "$ac_site_file" \ 1993 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1995as_fn_error $? "failed to load site script $ac_site_file 1996See \`config.log' for more details" "$LINENO" 5; } 1997 fi 1998done 1999 2000if test -r "$cache_file"; then 2001 # Some versions of bash will fail to source /dev/null (special files 2002 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2003 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2005$as_echo "$as_me: loading cache $cache_file" >&6;} 2006 case $cache_file in 2007 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2008 *) . "./$cache_file";; 2009 esac 2010 fi 2011else 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2013$as_echo "$as_me: creating cache $cache_file" >&6;} 2014 >$cache_file 2015fi 2016 2017# Check that the precious variables saved in the cache have kept the same 2018# value. 2019ac_cache_corrupted=false 2020for ac_var in $ac_precious_vars; do 2021 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2022 eval ac_new_set=\$ac_env_${ac_var}_set 2023 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2024 eval ac_new_val=\$ac_env_${ac_var}_value 2025 case $ac_old_set,$ac_new_set in 2026 set,) 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2028$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2029 ac_cache_corrupted=: ;; 2030 ,set) 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2032$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2033 ac_cache_corrupted=: ;; 2034 ,);; 2035 *) 2036 if test "x$ac_old_val" != "x$ac_new_val"; then 2037 # differences in whitespace do not lead to failure. 2038 ac_old_val_w=`echo x $ac_old_val` 2039 ac_new_val_w=`echo x $ac_new_val` 2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2042$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2043 ac_cache_corrupted=: 2044 else 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2046$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2047 eval $ac_var=\$ac_old_val 2048 fi 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2050$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2052$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2053 fi;; 2054 esac 2055 # Pass precious variables to config.status. 2056 if test "$ac_new_set" = set; then 2057 case $ac_new_val in 2058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2059 *) ac_arg=$ac_var=$ac_new_val ;; 2060 esac 2061 case " $ac_configure_args " in 2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2063 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2064 esac 2065 fi 2066done 2067if $ac_cache_corrupted; then 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2071$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2072 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2073fi 2074## -------------------- ## 2075## Main body of script. ## 2076## -------------------- ## 2077 2078ac_ext=c 2079ac_cpp='$CPP $CPPFLAGS' 2080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2082ac_compiler_gnu=$ac_cv_c_compiler_gnu 2083 2084 2085am__api_version='1.11' 2086 2087ac_aux_dir= 2088for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2089 if test -f "$ac_dir/install-sh"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/install-sh -c" 2092 break 2093 elif test -f "$ac_dir/install.sh"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/install.sh -c" 2096 break 2097 elif test -f "$ac_dir/shtool"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/shtool install -c" 2100 break 2101 fi 2102done 2103if test -z "$ac_aux_dir"; then 2104 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2105fi 2106 2107# These three variables are undocumented and unsupported, 2108# and are intended to be withdrawn in a future Autoconf release. 2109# They can cause serious problems if a builder's source tree is in a directory 2110# whose full name contains unusual characters. 2111ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2112ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2113ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2114 2115 2116# Find a good install program. We prefer a C program (faster), 2117# so one script is as good as another. But avoid the broken or 2118# incompatible versions: 2119# SysV /etc/install, /usr/sbin/install 2120# SunOS /usr/etc/install 2121# IRIX /sbin/install 2122# AIX /bin/install 2123# AmigaOS /C/install, which installs bootblocks on floppy discs 2124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2125# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2127# OS/2's system install, which has a completely different semantic 2128# ./install, which can be erroneously created by make from ./install.sh. 2129# Reject install programs that cannot install multiple files. 2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2131$as_echo_n "checking for a BSD-compatible install... " >&6; } 2132if test -z "$INSTALL"; then 2133if ${ac_cv_path_install+:} false; then : 2134 $as_echo_n "(cached) " >&6 2135else 2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137for as_dir in $PATH 2138do 2139 IFS=$as_save_IFS 2140 test -z "$as_dir" && as_dir=. 2141 # Account for people who put trailing slashes in PATH elements. 2142case $as_dir/ in #(( 2143 ./ | .// | /[cC]/* | \ 2144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2146 /usr/ucb/* ) ;; 2147 *) 2148 # OSF1 and SCO ODT 3.0 have their own names for install. 2149 # Don't use installbsd from OSF since it installs stuff as root 2150 # by default. 2151 for ac_prog in ginstall scoinst install; do 2152 for ac_exec_ext in '' $ac_executable_extensions; do 2153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2154 if test $ac_prog = install && 2155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2156 # AIX install. It has an incompatible calling convention. 2157 : 2158 elif test $ac_prog = install && 2159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2160 # program-specific install script used by HP pwplus--don't use. 2161 : 2162 else 2163 rm -rf conftest.one conftest.two conftest.dir 2164 echo one > conftest.one 2165 echo two > conftest.two 2166 mkdir conftest.dir 2167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2168 test -s conftest.one && test -s conftest.two && 2169 test -s conftest.dir/conftest.one && 2170 test -s conftest.dir/conftest.two 2171 then 2172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2173 break 3 2174 fi 2175 fi 2176 fi 2177 done 2178 done 2179 ;; 2180esac 2181 2182 done 2183IFS=$as_save_IFS 2184 2185rm -rf conftest.one conftest.two conftest.dir 2186 2187fi 2188 if test "${ac_cv_path_install+set}" = set; then 2189 INSTALL=$ac_cv_path_install 2190 else 2191 # As a last resort, use the slow shell script. Don't cache a 2192 # value for INSTALL within a source directory, because that will 2193 # break other packages using the cache if that directory is 2194 # removed, or if the value is a relative name. 2195 INSTALL=$ac_install_sh 2196 fi 2197fi 2198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2199$as_echo "$INSTALL" >&6; } 2200 2201# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2202# It thinks the first close brace ends the variable substitution. 2203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2204 2205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2206 2207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2208 2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2210$as_echo_n "checking whether build environment is sane... " >&6; } 2211# Just in case 2212sleep 1 2213echo timestamp > conftest.file 2214# Reject unsafe characters in $srcdir or the absolute working directory 2215# name. Accept space and tab only in the latter. 2216am_lf=' 2217' 2218case `pwd` in 2219 *[\\\"\#\$\&\'\`$am_lf]*) 2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2221esac 2222case $srcdir in 2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2224 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2225esac 2226 2227# Do `set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2234 if test "$*" = "X"; then 2235 # -L didn't work. 2236 set X `ls -t "$srcdir/configure" conftest.file` 2237 fi 2238 rm -f conftest.file 2239 if test "$*" != "X $srcdir/configure conftest.file" \ 2240 && test "$*" != "X conftest.file $srcdir/configure"; then 2241 2242 # If neither matched, then we have a broken ls. This can happen 2243 # if, for instance, CONFIG_SHELL is bash and it inherits a 2244 # broken ls alias from the environment. This has actually 2245 # happened. Such a system could not be considered "sane". 2246 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2247alias in your environment" "$LINENO" 5 2248 fi 2249 2250 test "$2" = conftest.file 2251 ) 2252then 2253 # Ok. 2254 : 2255else 2256 as_fn_error $? "newly created file is older than distributed files! 2257Check your system clock" "$LINENO" 5 2258fi 2259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2260$as_echo "yes" >&6; } 2261test "$program_prefix" != NONE && 2262 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2263# Use a double $ so make ignores it. 2264test "$program_suffix" != NONE && 2265 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2266# Double any \ or $. 2267# By default was `s,x,x', remove it if useless. 2268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2270 2271# expand $ac_aux_dir to an absolute path 2272am_aux_dir=`cd $ac_aux_dir && pwd` 2273 2274if test x"${MISSING+set}" != xset; then 2275 case $am_aux_dir in 2276 *\ * | *\ *) 2277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2278 *) 2279 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2280 esac 2281fi 2282# Use eval to expand $SHELL 2283if eval "$MISSING --run true"; then 2284 am_missing_run="$MISSING --run " 2285else 2286 am_missing_run= 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2288$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2289fi 2290 2291if test x"${install_sh}" != xset; then 2292 case $am_aux_dir in 2293 *\ * | *\ *) 2294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2295 *) 2296 install_sh="\${SHELL} $am_aux_dir/install-sh" 2297 esac 2298fi 2299 2300# Installed binaries are usually stripped using `strip' when the user 2301# run `make install-strip'. However `strip' might not be the right 2302# tool to use in cross-compilation environments, therefore Automake 2303# will honor the `STRIP' environment variable to overrule this program. 2304if test "$cross_compiling" != no; then 2305 if test -n "$ac_tool_prefix"; then 2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2307set dummy ${ac_tool_prefix}strip; ac_word=$2 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2309$as_echo_n "checking for $ac_word... " >&6; } 2310if ${ac_cv_prog_STRIP+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 if test -n "$STRIP"; then 2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2315else 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2325 break 2 2326 fi 2327done 2328 done 2329IFS=$as_save_IFS 2330 2331fi 2332fi 2333STRIP=$ac_cv_prog_STRIP 2334if test -n "$STRIP"; then 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2336$as_echo "$STRIP" >&6; } 2337else 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2339$as_echo "no" >&6; } 2340fi 2341 2342 2343fi 2344if test -z "$ac_cv_prog_STRIP"; then 2345 ac_ct_STRIP=$STRIP 2346 # Extract the first word of "strip", so it can be a program name with args. 2347set dummy strip; ac_word=$2 2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2349$as_echo_n "checking for $ac_word... " >&6; } 2350if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2351 $as_echo_n "(cached) " >&6 2352else 2353 if test -n "$ac_ct_STRIP"; then 2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2355else 2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2357for as_dir in $PATH 2358do 2359 IFS=$as_save_IFS 2360 test -z "$as_dir" && as_dir=. 2361 for ac_exec_ext in '' $ac_executable_extensions; do 2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2363 ac_cv_prog_ac_ct_STRIP="strip" 2364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2365 break 2 2366 fi 2367done 2368 done 2369IFS=$as_save_IFS 2370 2371fi 2372fi 2373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2374if test -n "$ac_ct_STRIP"; then 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2376$as_echo "$ac_ct_STRIP" >&6; } 2377else 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2379$as_echo "no" >&6; } 2380fi 2381 2382 if test "x$ac_ct_STRIP" = x; then 2383 STRIP=":" 2384 else 2385 case $cross_compiling:$ac_tool_warned in 2386yes:) 2387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2389ac_tool_warned=yes ;; 2390esac 2391 STRIP=$ac_ct_STRIP 2392 fi 2393else 2394 STRIP="$ac_cv_prog_STRIP" 2395fi 2396 2397fi 2398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2399 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2401$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2402if test -z "$MKDIR_P"; then 2403 if ${ac_cv_path_mkdir+:} false; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2407for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2408do 2409 IFS=$as_save_IFS 2410 test -z "$as_dir" && as_dir=. 2411 for ac_prog in mkdir gmkdir; do 2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2415 'mkdir (GNU coreutils) '* | \ 2416 'mkdir (coreutils) '* | \ 2417 'mkdir (fileutils) '4.1*) 2418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2419 break 3;; 2420 esac 2421 done 2422 done 2423 done 2424IFS=$as_save_IFS 2425 2426fi 2427 2428 test -d ./--version && rmdir ./--version 2429 if test "${ac_cv_path_mkdir+set}" = set; then 2430 MKDIR_P="$ac_cv_path_mkdir -p" 2431 else 2432 # As a last resort, use the slow shell script. Don't cache a 2433 # value for MKDIR_P within a source directory, because that will 2434 # break other packages using the cache if that directory is 2435 # removed, or if the value is a relative name. 2436 MKDIR_P="$ac_install_sh -d" 2437 fi 2438fi 2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2440$as_echo "$MKDIR_P" >&6; } 2441 2442mkdir_p="$MKDIR_P" 2443case $mkdir_p in 2444 [\\/$]* | ?:[\\/]*) ;; 2445 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2446esac 2447 2448for ac_prog in gawk mawk nawk awk 2449do 2450 # Extract the first word of "$ac_prog", so it can be a program name with args. 2451set dummy $ac_prog; ac_word=$2 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2453$as_echo_n "checking for $ac_word... " >&6; } 2454if ${ac_cv_prog_AWK+:} false; then : 2455 $as_echo_n "(cached) " >&6 2456else 2457 if test -n "$AWK"; then 2458 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2459else 2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2461for as_dir in $PATH 2462do 2463 IFS=$as_save_IFS 2464 test -z "$as_dir" && as_dir=. 2465 for ac_exec_ext in '' $ac_executable_extensions; do 2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2467 ac_cv_prog_AWK="$ac_prog" 2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2469 break 2 2470 fi 2471done 2472 done 2473IFS=$as_save_IFS 2474 2475fi 2476fi 2477AWK=$ac_cv_prog_AWK 2478if test -n "$AWK"; then 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2480$as_echo "$AWK" >&6; } 2481else 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2483$as_echo "no" >&6; } 2484fi 2485 2486 2487 test -n "$AWK" && break 2488done 2489 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2491$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2492set x ${MAKE-make} 2493ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2494if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 cat >conftest.make <<\_ACEOF 2498SHELL = /bin/sh 2499all: 2500 @echo '@@@%%%=$(MAKE)=@@@%%%' 2501_ACEOF 2502# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2503case `${MAKE-make} -f conftest.make 2>/dev/null` in 2504 *@@@%%%=?*=@@@%%%*) 2505 eval ac_cv_prog_make_${ac_make}_set=yes;; 2506 *) 2507 eval ac_cv_prog_make_${ac_make}_set=no;; 2508esac 2509rm -f conftest.make 2510fi 2511if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2513$as_echo "yes" >&6; } 2514 SET_MAKE= 2515else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2517$as_echo "no" >&6; } 2518 SET_MAKE="MAKE=${MAKE-make}" 2519fi 2520 2521rm -rf .tst 2>/dev/null 2522mkdir .tst 2>/dev/null 2523if test -d .tst; then 2524 am__leading_dot=. 2525else 2526 am__leading_dot=_ 2527fi 2528rmdir .tst 2>/dev/null 2529 2530if test "`cd $srcdir && pwd`" != "`pwd`"; then 2531 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2532 # is not polluted with repeated "-I." 2533 am__isrc=' -I$(srcdir)' 2534 # test to see if srcdir already configured 2535 if test -f $srcdir/config.status; then 2536 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2537 fi 2538fi 2539 2540# test whether we have cygpath 2541if test -z "$CYGPATH_W"; then 2542 if (cygpath --version) >/dev/null 2>/dev/null; then 2543 CYGPATH_W='cygpath -w' 2544 else 2545 CYGPATH_W=echo 2546 fi 2547fi 2548 2549 2550# Define the identity of the package. 2551 PACKAGE='setxkbmap' 2552 VERSION='1.3.0' 2553 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE "$PACKAGE" 2557_ACEOF 2558 2559 2560cat >>confdefs.h <<_ACEOF 2561#define VERSION "$VERSION" 2562_ACEOF 2563 2564# Some tools Automake needs. 2565 2566ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2567 2568 2569AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2570 2571 2572AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2573 2574 2575AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2576 2577 2578MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2579 2580# We need awk for the "check" target. The system "awk" is bad on 2581# some platforms. 2582# Always define AMTAR for backward compatibility. 2583 2584AMTAR=${AMTAR-"${am_missing_run}tar"} 2585 2586am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2587 2588 2589 2590 2591 2592 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2594$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2595 # Check whether --enable-maintainer-mode was given. 2596if test "${enable_maintainer_mode+set}" = set; then : 2597 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2598else 2599 USE_MAINTAINER_MODE=no 2600fi 2601 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2603$as_echo "$USE_MAINTAINER_MODE" >&6; } 2604 if test $USE_MAINTAINER_MODE = yes; then 2605 MAINTAINER_MODE_TRUE= 2606 MAINTAINER_MODE_FALSE='#' 2607else 2608 MAINTAINER_MODE_TRUE='#' 2609 MAINTAINER_MODE_FALSE= 2610fi 2611 2612 MAINT=$MAINTAINER_MODE_TRUE 2613 2614 2615 2616# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629ac_config_headers="$ac_config_headers config.h" 2630 2631 2632DEPDIR="${am__leading_dot}deps" 2633 2634ac_config_commands="$ac_config_commands depfiles" 2635 2636 2637am_make=${MAKE-make} 2638cat > confinc << 'END' 2639am__doit: 2640 @echo this is the am__doit target 2641.PHONY: am__doit 2642END 2643# If we don't find an include directive, just comment out the code. 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2645$as_echo_n "checking for style of include used by $am_make... " >&6; } 2646am__include="#" 2647am__quote= 2648_am_result=none 2649# First try GNU make style include. 2650echo "include confinc" > confmf 2651# Ignore all kinds of additional output from `make'. 2652case `$am_make -s -f confmf 2> /dev/null` in #( 2653*the\ am__doit\ target*) 2654 am__include=include 2655 am__quote= 2656 _am_result=GNU 2657 ;; 2658esac 2659# Now try BSD make style include. 2660if test "$am__include" = "#"; then 2661 echo '.include "confinc"' > confmf 2662 case `$am_make -s -f confmf 2> /dev/null` in #( 2663 *the\ am__doit\ target*) 2664 am__include=.include 2665 am__quote="\"" 2666 _am_result=BSD 2667 ;; 2668 esac 2669fi 2670 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2673$as_echo "$_am_result" >&6; } 2674rm -f confinc confmf 2675 2676# Check whether --enable-dependency-tracking was given. 2677if test "${enable_dependency_tracking+set}" = set; then : 2678 enableval=$enable_dependency_tracking; 2679fi 2680 2681if test "x$enable_dependency_tracking" != xno; then 2682 am_depcomp="$ac_aux_dir/depcomp" 2683 AMDEPBACKSLASH='\' 2684fi 2685 if test "x$enable_dependency_tracking" != xno; then 2686 AMDEP_TRUE= 2687 AMDEP_FALSE='#' 2688else 2689 AMDEP_TRUE='#' 2690 AMDEP_FALSE= 2691fi 2692 2693 2694ac_ext=c 2695ac_cpp='$CPP $CPPFLAGS' 2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2698ac_compiler_gnu=$ac_cv_c_compiler_gnu 2699if test -n "$ac_tool_prefix"; then 2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2701set dummy ${ac_tool_prefix}gcc; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if ${ac_cv_prog_CC+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727CC=$ac_cv_prog_CC 2728if test -n "$CC"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2730$as_echo "$CC" >&6; } 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734fi 2735 2736 2737fi 2738if test -z "$ac_cv_prog_CC"; then 2739 ac_ct_CC=$CC 2740 # Extract the first word of "gcc", so it can be a program name with args. 2741set dummy gcc; ac_word=$2 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2743$as_echo_n "checking for $ac_word... " >&6; } 2744if ${ac_cv_prog_ac_ct_CC+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 if test -n "$ac_ct_CC"; then 2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2749else 2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751for as_dir in $PATH 2752do 2753 IFS=$as_save_IFS 2754 test -z "$as_dir" && as_dir=. 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2757 ac_cv_prog_ac_ct_CC="gcc" 2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2759 break 2 2760 fi 2761done 2762 done 2763IFS=$as_save_IFS 2764 2765fi 2766fi 2767ac_ct_CC=$ac_cv_prog_ac_ct_CC 2768if test -n "$ac_ct_CC"; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2770$as_echo "$ac_ct_CC" >&6; } 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773$as_echo "no" >&6; } 2774fi 2775 2776 if test "x$ac_ct_CC" = x; then 2777 CC="" 2778 else 2779 case $cross_compiling:$ac_tool_warned in 2780yes:) 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2783ac_tool_warned=yes ;; 2784esac 2785 CC=$ac_ct_CC 2786 fi 2787else 2788 CC="$ac_cv_prog_CC" 2789fi 2790 2791if test -z "$CC"; then 2792 if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2794set dummy ${ac_tool_prefix}cc; ac_word=$2 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796$as_echo_n "checking for $ac_word... " >&6; } 2797if ${ac_cv_prog_CC+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 ac_cv_prog_CC="${ac_tool_prefix}cc" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815 done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823$as_echo "$CC" >&6; } 2824else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 2830 fi 2831fi 2832if test -z "$CC"; then 2833 # Extract the first word of "cc", so it can be a program name with args. 2834set dummy cc; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if ${ac_cv_prog_CC+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$CC"; then 2841 ac_cv_prog_CC="$CC" # Let the user override the test. 2842else 2843 ac_prog_rejected=no 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2852 ac_prog_rejected=yes 2853 continue 2854 fi 2855 ac_cv_prog_CC="cc" 2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860 done 2861IFS=$as_save_IFS 2862 2863if test $ac_prog_rejected = yes; then 2864 # We found a bogon in the path, so make sure we never use it. 2865 set dummy $ac_cv_prog_CC 2866 shift 2867 if test $# != 0; then 2868 # We chose a different compiler from the bogus one. 2869 # However, it has the same basename, so the bogon will be chosen 2870 # first if we set CC to just the basename; use the full file name. 2871 shift 2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2873 fi 2874fi 2875fi 2876fi 2877CC=$ac_cv_prog_CC 2878if test -n "$CC"; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2880$as_echo "$CC" >&6; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 2887fi 2888if test -z "$CC"; then 2889 if test -n "$ac_tool_prefix"; then 2890 for ac_prog in cl.exe 2891 do 2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2893set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895$as_echo_n "checking for $ac_word... " >&6; } 2896if ${ac_cv_prog_CC+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 if test -n "$CC"; then 2900 ac_cv_prog_CC="$CC" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914 done 2915IFS=$as_save_IFS 2916 2917fi 2918fi 2919CC=$ac_cv_prog_CC 2920if test -n "$CC"; then 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2922$as_echo "$CC" >&6; } 2923else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925$as_echo "no" >&6; } 2926fi 2927 2928 2929 test -n "$CC" && break 2930 done 2931fi 2932if test -z "$CC"; then 2933 ac_ct_CC=$CC 2934 for ac_prog in cl.exe 2935do 2936 # Extract the first word of "$ac_prog", so it can be a program name with args. 2937set dummy $ac_prog; ac_word=$2 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if ${ac_cv_prog_ac_ct_CC+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$ac_ct_CC"; then 2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_ac_ct_CC="$ac_prog" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958 done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963ac_ct_CC=$ac_cv_prog_ac_ct_CC 2964if test -n "$ac_ct_CC"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2966$as_echo "$ac_ct_CC" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973 test -n "$ac_ct_CC" && break 2974done 2975 2976 if test "x$ac_ct_CC" = x; then 2977 CC="" 2978 else 2979 case $cross_compiling:$ac_tool_warned in 2980yes:) 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2983ac_tool_warned=yes ;; 2984esac 2985 CC=$ac_ct_CC 2986 fi 2987fi 2988 2989fi 2990 2991 2992test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2994as_fn_error $? "no acceptable C compiler found in \$PATH 2995See \`config.log' for more details" "$LINENO" 5; } 2996 2997# Provide some information about the compiler. 2998$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2999set X $ac_compile 3000ac_compiler=$2 3001for ac_option in --version -v -V -qversion; do 3002 { { ac_try="$ac_compiler $ac_option >&5" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3008$as_echo "$ac_try_echo"; } >&5 3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3010 ac_status=$? 3011 if test -s conftest.err; then 3012 sed '10a\ 3013... rest of stderr output deleted ... 3014 10q' conftest.err >conftest.er1 3015 cat conftest.er1 >&5 3016 fi 3017 rm -f conftest.er1 conftest.err 3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3019 test $ac_status = 0; } 3020done 3021 3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023/* end confdefs.h. */ 3024 3025int 3026main () 3027{ 3028 3029 ; 3030 return 0; 3031} 3032_ACEOF 3033ac_clean_files_save=$ac_clean_files 3034ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3035# Try to create an executable without -o first, disregard a.out. 3036# It will help us diagnose broken compilers, and finding out an intuition 3037# of exeext. 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3039$as_echo_n "checking whether the C compiler works... " >&6; } 3040ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3041 3042# The possible output files: 3043ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3044 3045ac_rmfiles= 3046for ac_file in $ac_files 3047do 3048 case $ac_file in 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3051 esac 3052done 3053rm -f $ac_rmfiles 3054 3055if { { ac_try="$ac_link_default" 3056case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061$as_echo "$ac_try_echo"; } >&5 3062 (eval "$ac_link_default") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; }; then : 3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3067# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3068# in a Makefile. We should not override ac_cv_exeext if it was cached, 3069# so that the user can short-circuit this test for compilers unknown to 3070# Autoconf. 3071for ac_file in $ac_files '' 3072do 3073 test -f "$ac_file" || continue 3074 case $ac_file in 3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3076 ;; 3077 [ab].out ) 3078 # We found the default executable, but exeext='' is most 3079 # certainly right. 3080 break;; 3081 *.* ) 3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3083 then :; else 3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3085 fi 3086 # We set ac_cv_exeext here because the later test for it is not 3087 # safe: cross compilers may not add the suffix if given an `-o' 3088 # argument, so we may need to know it at that point already. 3089 # Even if this section looks crufty: it has the advantage of 3090 # actually working. 3091 break;; 3092 * ) 3093 break;; 3094 esac 3095done 3096test "$ac_cv_exeext" = no && ac_cv_exeext= 3097 3098else 3099 ac_file='' 3100fi 3101if test -z "$ac_file"; then : 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103$as_echo "no" >&6; } 3104$as_echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109as_fn_error 77 "C compiler cannot create executables 3110See \`config.log' for more details" "$LINENO" 5; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3113$as_echo "yes" >&6; } 3114fi 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3116$as_echo_n "checking for C compiler default output file name... " >&6; } 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3118$as_echo "$ac_file" >&6; } 3119ac_exeext=$ac_cv_exeext 3120 3121rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3122ac_clean_files=$ac_clean_files_save 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3124$as_echo_n "checking for suffix of executables... " >&6; } 3125if { { ac_try="$ac_link" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3131$as_echo "$ac_try_echo"; } >&5 3132 (eval "$ac_link") 2>&5 3133 ac_status=$? 3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3135 test $ac_status = 0; }; then : 3136 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3137# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3138# work properly (i.e., refer to `conftest.exe'), while it won't with 3139# `rm'. 3140for ac_file in conftest.exe conftest conftest.*; do 3141 test -f "$ac_file" || continue 3142 case $ac_file in 3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3145 break;; 3146 * ) break;; 3147 esac 3148done 3149else 3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3153See \`config.log' for more details" "$LINENO" 5; } 3154fi 3155rm -f conftest conftest$ac_cv_exeext 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3157$as_echo "$ac_cv_exeext" >&6; } 3158 3159rm -f conftest.$ac_ext 3160EXEEXT=$ac_cv_exeext 3161ac_exeext=$EXEEXT 3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3163/* end confdefs.h. */ 3164#include <stdio.h> 3165int 3166main () 3167{ 3168FILE *f = fopen ("conftest.out", "w"); 3169 return ferror (f) || fclose (f) != 0; 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175ac_clean_files="$ac_clean_files conftest.out" 3176# Check that the compiler produces executables we can run. If not, either 3177# the compiler is broken, or we cross compile. 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3179$as_echo_n "checking whether we are cross compiling... " >&6; } 3180if test "$cross_compiling" != yes; then 3181 { { ac_try="$ac_link" 3182case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3187$as_echo "$ac_try_echo"; } >&5 3188 (eval "$ac_link") 2>&5 3189 ac_status=$? 3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3191 test $ac_status = 0; } 3192 if { ac_try='./conftest$ac_cv_exeext' 3193 { { case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3198$as_echo "$ac_try_echo"; } >&5 3199 (eval "$ac_try") 2>&5 3200 ac_status=$? 3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3202 test $ac_status = 0; }; }; then 3203 cross_compiling=no 3204 else 3205 if test "$cross_compiling" = maybe; then 3206 cross_compiling=yes 3207 else 3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "cannot run C compiled programs. 3211If you meant to cross compile, use \`--host'. 3212See \`config.log' for more details" "$LINENO" 5; } 3213 fi 3214 fi 3215fi 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3217$as_echo "$cross_compiling" >&6; } 3218 3219rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3220ac_clean_files=$ac_clean_files_save 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3222$as_echo_n "checking for suffix of object files... " >&6; } 3223if ${ac_cv_objext+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3227/* end confdefs.h. */ 3228 3229int 3230main () 3231{ 3232 3233 ; 3234 return 0; 3235} 3236_ACEOF 3237rm -f conftest.o conftest.obj 3238if { { ac_try="$ac_compile" 3239case "(($ac_try" in 3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241 *) ac_try_echo=$ac_try;; 3242esac 3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3244$as_echo "$ac_try_echo"; } >&5 3245 (eval "$ac_compile") 2>&5 3246 ac_status=$? 3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3248 test $ac_status = 0; }; then : 3249 for ac_file in conftest.o conftest.obj conftest.*; do 3250 test -f "$ac_file" || continue; 3251 case $ac_file in 3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3254 break;; 3255 esac 3256done 3257else 3258 $as_echo "$as_me: failed program was:" >&5 3259sed 's/^/| /' conftest.$ac_ext >&5 3260 3261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3263as_fn_error $? "cannot compute suffix of object files: cannot compile 3264See \`config.log' for more details" "$LINENO" 5; } 3265fi 3266rm -f conftest.$ac_cv_objext conftest.$ac_ext 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3269$as_echo "$ac_cv_objext" >&6; } 3270OBJEXT=$ac_cv_objext 3271ac_objext=$OBJEXT 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3273$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3274if ${ac_cv_c_compiler_gnu+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278/* end confdefs.h. */ 3279 3280int 3281main () 3282{ 3283#ifndef __GNUC__ 3284 choke me 3285#endif 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291if ac_fn_c_try_compile "$LINENO"; then : 3292 ac_compiler_gnu=yes 3293else 3294 ac_compiler_gnu=no 3295fi 3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3297ac_cv_c_compiler_gnu=$ac_compiler_gnu 3298 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3301$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3302if test $ac_compiler_gnu = yes; then 3303 GCC=yes 3304else 3305 GCC= 3306fi 3307ac_test_CFLAGS=${CFLAGS+set} 3308ac_save_CFLAGS=$CFLAGS 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3310$as_echo_n "checking whether $CC accepts -g... " >&6; } 3311if ${ac_cv_prog_cc_g+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 ac_save_c_werror_flag=$ac_c_werror_flag 3315 ac_c_werror_flag=yes 3316 ac_cv_prog_cc_g=no 3317 CFLAGS="-g" 3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3319/* end confdefs.h. */ 3320 3321int 3322main () 3323{ 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329if ac_fn_c_try_compile "$LINENO"; then : 3330 ac_cv_prog_cc_g=yes 3331else 3332 CFLAGS="" 3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3334/* end confdefs.h. */ 3335 3336int 3337main () 3338{ 3339 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344if ac_fn_c_try_compile "$LINENO"; then : 3345 3346else 3347 ac_c_werror_flag=$ac_save_c_werror_flag 3348 CFLAGS="-g" 3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3350/* end confdefs.h. */ 3351 3352int 3353main () 3354{ 3355 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360if ac_fn_c_try_compile "$LINENO"; then : 3361 ac_cv_prog_cc_g=yes 3362fi 3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364fi 3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3366fi 3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3368 ac_c_werror_flag=$ac_save_c_werror_flag 3369fi 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3371$as_echo "$ac_cv_prog_cc_g" >&6; } 3372if test "$ac_test_CFLAGS" = set; then 3373 CFLAGS=$ac_save_CFLAGS 3374elif test $ac_cv_prog_cc_g = yes; then 3375 if test "$GCC" = yes; then 3376 CFLAGS="-g -O2" 3377 else 3378 CFLAGS="-g" 3379 fi 3380else 3381 if test "$GCC" = yes; then 3382 CFLAGS="-O2" 3383 else 3384 CFLAGS= 3385 fi 3386fi 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3388$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3389if ${ac_cv_prog_cc_c89+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 ac_cv_prog_cc_c89=no 3393ac_save_CC=$CC 3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395/* end confdefs.h. */ 3396#include <stdarg.h> 3397#include <stdio.h> 3398#include <sys/types.h> 3399#include <sys/stat.h> 3400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3401struct buf { int x; }; 3402FILE * (*rcsopen) (struct buf *, struct stat *, int); 3403static char *e (p, i) 3404 char **p; 3405 int i; 3406{ 3407 return p[i]; 3408} 3409static char *f (char * (*g) (char **, int), char **p, ...) 3410{ 3411 char *s; 3412 va_list v; 3413 va_start (v,p); 3414 s = g (p, va_arg (v,int)); 3415 va_end (v); 3416 return s; 3417} 3418 3419/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3420 function prototypes and stuff, but not '\xHH' hex character constants. 3421 These don't provoke an error unfortunately, instead are silently treated 3422 as 'x'. The following induces an error, until -std is added to get 3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3424 array size at least. It's necessary to write '\x00'==0 to get something 3425 that's true only with -std. */ 3426int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3427 3428/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3429 inside strings and character constants. */ 3430#define FOO(x) 'x' 3431int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3432 3433int test (int i, double x); 3434struct s1 {int (*f) (int a);}; 3435struct s2 {int (*f) (double a);}; 3436int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3437int argc; 3438char **argv; 3439int 3440main () 3441{ 3442return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3443 ; 3444 return 0; 3445} 3446_ACEOF 3447for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3449do 3450 CC="$ac_save_CC $ac_arg" 3451 if ac_fn_c_try_compile "$LINENO"; then : 3452 ac_cv_prog_cc_c89=$ac_arg 3453fi 3454rm -f core conftest.err conftest.$ac_objext 3455 test "x$ac_cv_prog_cc_c89" != "xno" && break 3456done 3457rm -f conftest.$ac_ext 3458CC=$ac_save_CC 3459 3460fi 3461# AC_CACHE_VAL 3462case "x$ac_cv_prog_cc_c89" in 3463 x) 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3465$as_echo "none needed" >&6; } ;; 3466 xno) 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3468$as_echo "unsupported" >&6; } ;; 3469 *) 3470 CC="$CC $ac_cv_prog_cc_c89" 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3472$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3473esac 3474if test "x$ac_cv_prog_cc_c89" != xno; then : 3475 3476fi 3477 3478ac_ext=c 3479ac_cpp='$CPP $CPPFLAGS' 3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3482ac_compiler_gnu=$ac_cv_c_compiler_gnu 3483 3484depcc="$CC" am_compiler_list= 3485 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3487$as_echo_n "checking dependency style of $depcc... " >&6; } 3488if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3492 # We make a subdir and do the tests there. Otherwise we can end up 3493 # making bogus files that we don't know about and never remove. For 3494 # instance it was reported that on HP-UX the gcc test will end up 3495 # making a dummy file named `D' -- because `-MD' means `put the output 3496 # in D'. 3497 mkdir conftest.dir 3498 # Copy depcomp to subdir because otherwise we won't find it if we're 3499 # using a relative directory. 3500 cp "$am_depcomp" conftest.dir 3501 cd conftest.dir 3502 # We will build objects and dependencies in a subdirectory because 3503 # it helps to detect inapplicable dependency modes. For instance 3504 # both Tru64's cc and ICC support -MD to output dependencies as a 3505 # side effect of compilation, but ICC will put the dependencies in 3506 # the current directory while Tru64 will put them in the object 3507 # directory. 3508 mkdir sub 3509 3510 am_cv_CC_dependencies_compiler_type=none 3511 if test "$am_compiler_list" = ""; then 3512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3513 fi 3514 am__universal=false 3515 case " $depcc " in #( 3516 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3517 esac 3518 3519 for depmode in $am_compiler_list; do 3520 # Setup a source with many dependencies, because some compilers 3521 # like to wrap large dependency lists on column 80 (with \), and 3522 # we should not choose a depcomp mode which is confused by this. 3523 # 3524 # We need to recreate these files for each test, as the compiler may 3525 # overwrite some of them when testing with obscure command lines. 3526 # This happens at least with the AIX C compiler. 3527 : > sub/conftest.c 3528 for i in 1 2 3 4 5 6; do 3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3531 # Solaris 8's {/usr,}/bin/sh. 3532 touch sub/conftst$i.h 3533 done 3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3535 3536 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3537 # mode. It turns out that the SunPro C++ compiler does not properly 3538 # handle `-M -o', and we need to detect this. Also, some Intel 3539 # versions had trouble with output in subdirs 3540 am__obj=sub/conftest.${OBJEXT-o} 3541 am__minus_obj="-o $am__obj" 3542 case $depmode in 3543 gcc) 3544 # This depmode causes a compiler race in universal mode. 3545 test "$am__universal" = false || continue 3546 ;; 3547 nosideeffect) 3548 # after this tag, mechanisms are not by side-effect, so they'll 3549 # only be used when explicitly requested 3550 if test "x$enable_dependency_tracking" = xyes; then 3551 continue 3552 else 3553 break 3554 fi 3555 ;; 3556 msvisualcpp | msvcmsys) 3557 # This compiler won't grok `-c -o', but also, the minuso test has 3558 # not run yet. These depmodes are late enough in the game, and 3559 # so weak that their functioning should not be impacted. 3560 am__obj=conftest.${OBJEXT-o} 3561 am__minus_obj= 3562 ;; 3563 none) break ;; 3564 esac 3565 if depmode=$depmode \ 3566 source=sub/conftest.c object=$am__obj \ 3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3569 >/dev/null 2>conftest.err && 3570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3574 # icc doesn't choke on unknown options, it will just issue warnings 3575 # or remarks (even with -Werror). So we grep stderr for any message 3576 # that says an option was ignored or not supported. 3577 # When given -MP, icc 7.0 and 7.1 complain thusly: 3578 # icc: Command line warning: ignoring option '-M'; no argument required 3579 # The diagnosis changed in icc 8.0: 3580 # icc: Command line remark: option '-MP' not supported 3581 if (grep 'ignoring option' conftest.err || 3582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3583 am_cv_CC_dependencies_compiler_type=$depmode 3584 break 3585 fi 3586 fi 3587 done 3588 3589 cd .. 3590 rm -rf conftest.dir 3591else 3592 am_cv_CC_dependencies_compiler_type=none 3593fi 3594 3595fi 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3597$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3598CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3599 3600 if 3601 test "x$enable_dependency_tracking" != xno \ 3602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3603 am__fastdepCC_TRUE= 3604 am__fastdepCC_FALSE='#' 3605else 3606 am__fastdepCC_TRUE='#' 3607 am__fastdepCC_FALSE= 3608fi 3609 3610 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3612$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3613if ${ac_cv_prog_cc_c99+:} false; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 ac_cv_prog_cc_c99=no 3617ac_save_CC=$CC 3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <stdarg.h> 3621#include <stdbool.h> 3622#include <stdlib.h> 3623#include <wchar.h> 3624#include <stdio.h> 3625 3626// Check varargs macros. These examples are taken from C99 6.10.3.5. 3627#define debug(...) fprintf (stderr, __VA_ARGS__) 3628#define showlist(...) puts (#__VA_ARGS__) 3629#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3630static void 3631test_varargs_macros (void) 3632{ 3633 int x = 1234; 3634 int y = 5678; 3635 debug ("Flag"); 3636 debug ("X = %d\n", x); 3637 showlist (The first, second, and third items.); 3638 report (x>y, "x is %d but y is %d", x, y); 3639} 3640 3641// Check long long types. 3642#define BIG64 18446744073709551615ull 3643#define BIG32 4294967295ul 3644#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3645#if !BIG_OK 3646 your preprocessor is broken; 3647#endif 3648#if BIG_OK 3649#else 3650 your preprocessor is broken; 3651#endif 3652static long long int bignum = -9223372036854775807LL; 3653static unsigned long long int ubignum = BIG64; 3654 3655struct incomplete_array 3656{ 3657 int datasize; 3658 double data[]; 3659}; 3660 3661struct named_init { 3662 int number; 3663 const wchar_t *name; 3664 double average; 3665}; 3666 3667typedef const char *ccp; 3668 3669static inline int 3670test_restrict (ccp restrict text) 3671{ 3672 // See if C++-style comments work. 3673 // Iterate through items via the restricted pointer. 3674 // Also check for declarations in for loops. 3675 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3676 continue; 3677 return 0; 3678} 3679 3680// Check varargs and va_copy. 3681static void 3682test_varargs (const char *format, ...) 3683{ 3684 va_list args; 3685 va_start (args, format); 3686 va_list args_copy; 3687 va_copy (args_copy, args); 3688 3689 const char *str; 3690 int number; 3691 float fnumber; 3692 3693 while (*format) 3694 { 3695 switch (*format++) 3696 { 3697 case 's': // string 3698 str = va_arg (args_copy, const char *); 3699 break; 3700 case 'd': // int 3701 number = va_arg (args_copy, int); 3702 break; 3703 case 'f': // float 3704 fnumber = va_arg (args_copy, double); 3705 break; 3706 default: 3707 break; 3708 } 3709 } 3710 va_end (args_copy); 3711 va_end (args); 3712} 3713 3714int 3715main () 3716{ 3717 3718 // Check bool. 3719 _Bool success = false; 3720 3721 // Check restrict. 3722 if (test_restrict ("String literal") == 0) 3723 success = true; 3724 char *restrict newvar = "Another string"; 3725 3726 // Check varargs. 3727 test_varargs ("s, d' f .", "string", 65, 34.234); 3728 test_varargs_macros (); 3729 3730 // Check flexible array members. 3731 struct incomplete_array *ia = 3732 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3733 ia->datasize = 10; 3734 for (int i = 0; i < ia->datasize; ++i) 3735 ia->data[i] = i * 1.234; 3736 3737 // Check named initializers. 3738 struct named_init ni = { 3739 .number = 34, 3740 .name = L"Test wide string", 3741 .average = 543.34343, 3742 }; 3743 3744 ni.number = 58; 3745 3746 int dynamic_array[ni.number]; 3747 dynamic_array[ni.number - 1] = 543; 3748 3749 // work around unused variable warnings 3750 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3751 || dynamic_array[ni.number - 1] != 543); 3752 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3758do 3759 CC="$ac_save_CC $ac_arg" 3760 if ac_fn_c_try_compile "$LINENO"; then : 3761 ac_cv_prog_cc_c99=$ac_arg 3762fi 3763rm -f core conftest.err conftest.$ac_objext 3764 test "x$ac_cv_prog_cc_c99" != "xno" && break 3765done 3766rm -f conftest.$ac_ext 3767CC=$ac_save_CC 3768 3769fi 3770# AC_CACHE_VAL 3771case "x$ac_cv_prog_cc_c99" in 3772 x) 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3774$as_echo "none needed" >&6; } ;; 3775 xno) 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3777$as_echo "unsupported" >&6; } ;; 3778 *) 3779 CC="$CC $ac_cv_prog_cc_c99" 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3781$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3782esac 3783if test "x$ac_cv_prog_cc_c99" != xno; then : 3784 3785fi 3786 3787 3788 3789ac_ext=c 3790ac_cpp='$CPP $CPPFLAGS' 3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3793ac_compiler_gnu=$ac_cv_c_compiler_gnu 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3795$as_echo_n "checking how to run the C preprocessor... " >&6; } 3796# On Suns, sometimes $CPP names a directory. 3797if test -n "$CPP" && test -d "$CPP"; then 3798 CPP= 3799fi 3800if test -z "$CPP"; then 3801 if ${ac_cv_prog_CPP+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803else 3804 # Double quotes because CPP needs to be expanded 3805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3806 do 3807 ac_preproc_ok=false 3808for ac_c_preproc_warn_flag in '' yes 3809do 3810 # Use a header file that comes with gcc, so configuring glibc 3811 # with a fresh cross-compiler works. 3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3813 # <limits.h> exists even on freestanding compilers. 3814 # On the NeXT, cc -E runs the code through the compiler's parser, 3815 # not just through cpp. "Syntax error" is here to catch this case. 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818#ifdef __STDC__ 3819# include <limits.h> 3820#else 3821# include <assert.h> 3822#endif 3823 Syntax error 3824_ACEOF 3825if ac_fn_c_try_cpp "$LINENO"; then : 3826 3827else 3828 # Broken: fails on valid input. 3829continue 3830fi 3831rm -f conftest.err conftest.i conftest.$ac_ext 3832 3833 # OK, works on sane cases. Now check whether nonexistent headers 3834 # can be detected and how. 3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836/* end confdefs.h. */ 3837#include <ac_nonexistent.h> 3838_ACEOF 3839if ac_fn_c_try_cpp "$LINENO"; then : 3840 # Broken: success on invalid input. 3841continue 3842else 3843 # Passes both tests. 3844ac_preproc_ok=: 3845break 3846fi 3847rm -f conftest.err conftest.i conftest.$ac_ext 3848 3849done 3850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3851rm -f conftest.i conftest.err conftest.$ac_ext 3852if $ac_preproc_ok; then : 3853 break 3854fi 3855 3856 done 3857 ac_cv_prog_CPP=$CPP 3858 3859fi 3860 CPP=$ac_cv_prog_CPP 3861else 3862 ac_cv_prog_CPP=$CPP 3863fi 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3865$as_echo "$CPP" >&6; } 3866ac_preproc_ok=false 3867for ac_c_preproc_warn_flag in '' yes 3868do 3869 # Use a header file that comes with gcc, so configuring glibc 3870 # with a fresh cross-compiler works. 3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3872 # <limits.h> exists even on freestanding compilers. 3873 # On the NeXT, cc -E runs the code through the compiler's parser, 3874 # not just through cpp. "Syntax error" is here to catch this case. 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877#ifdef __STDC__ 3878# include <limits.h> 3879#else 3880# include <assert.h> 3881#endif 3882 Syntax error 3883_ACEOF 3884if ac_fn_c_try_cpp "$LINENO"; then : 3885 3886else 3887 # Broken: fails on valid input. 3888continue 3889fi 3890rm -f conftest.err conftest.i conftest.$ac_ext 3891 3892 # OK, works on sane cases. Now check whether nonexistent headers 3893 # can be detected and how. 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896#include <ac_nonexistent.h> 3897_ACEOF 3898if ac_fn_c_try_cpp "$LINENO"; then : 3899 # Broken: success on invalid input. 3900continue 3901else 3902 # Passes both tests. 3903ac_preproc_ok=: 3904break 3905fi 3906rm -f conftest.err conftest.i conftest.$ac_ext 3907 3908done 3909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3910rm -f conftest.i conftest.err conftest.$ac_ext 3911if $ac_preproc_ok; then : 3912 3913else 3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3916as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3917See \`config.log' for more details" "$LINENO" 5; } 3918fi 3919 3920ac_ext=c 3921ac_cpp='$CPP $CPPFLAGS' 3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3924ac_compiler_gnu=$ac_cv_c_compiler_gnu 3925 3926 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3928$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3929if ${ac_cv_path_GREP+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931else 3932 if test -z "$GREP"; then 3933 ac_path_GREP_found=false 3934 # Loop through the user's path and test for each of PROGNAME-LIST 3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3936for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3937do 3938 IFS=$as_save_IFS 3939 test -z "$as_dir" && as_dir=. 3940 for ac_prog in grep ggrep; do 3941 for ac_exec_ext in '' $ac_executable_extensions; do 3942 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3943 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3944# Check for GNU ac_path_GREP and select it if it is found. 3945 # Check for GNU $ac_path_GREP 3946case `"$ac_path_GREP" --version 2>&1` in 3947*GNU*) 3948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3949*) 3950 ac_count=0 3951 $as_echo_n 0123456789 >"conftest.in" 3952 while : 3953 do 3954 cat "conftest.in" "conftest.in" >"conftest.tmp" 3955 mv "conftest.tmp" "conftest.in" 3956 cp "conftest.in" "conftest.nl" 3957 $as_echo 'GREP' >> "conftest.nl" 3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3960 as_fn_arith $ac_count + 1 && ac_count=$as_val 3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3962 # Best one so far, save it but keep looking for a better one 3963 ac_cv_path_GREP="$ac_path_GREP" 3964 ac_path_GREP_max=$ac_count 3965 fi 3966 # 10*(2^10) chars as input seems more than enough 3967 test $ac_count -gt 10 && break 3968 done 3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3970esac 3971 3972 $ac_path_GREP_found && break 3 3973 done 3974 done 3975 done 3976IFS=$as_save_IFS 3977 if test -z "$ac_cv_path_GREP"; then 3978 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3979 fi 3980else 3981 ac_cv_path_GREP=$GREP 3982fi 3983 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3986$as_echo "$ac_cv_path_GREP" >&6; } 3987 GREP="$ac_cv_path_GREP" 3988 3989 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3991$as_echo_n "checking for egrep... " >&6; } 3992if ${ac_cv_path_EGREP+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3996 then ac_cv_path_EGREP="$GREP -E" 3997 else 3998 if test -z "$EGREP"; then 3999 ac_path_EGREP_found=false 4000 # Loop through the user's path and test for each of PROGNAME-LIST 4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4003do 4004 IFS=$as_save_IFS 4005 test -z "$as_dir" && as_dir=. 4006 for ac_prog in egrep; do 4007 for ac_exec_ext in '' $ac_executable_extensions; do 4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4010# Check for GNU ac_path_EGREP and select it if it is found. 4011 # Check for GNU $ac_path_EGREP 4012case `"$ac_path_EGREP" --version 2>&1` in 4013*GNU*) 4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4015*) 4016 ac_count=0 4017 $as_echo_n 0123456789 >"conftest.in" 4018 while : 4019 do 4020 cat "conftest.in" "conftest.in" >"conftest.tmp" 4021 mv "conftest.tmp" "conftest.in" 4022 cp "conftest.in" "conftest.nl" 4023 $as_echo 'EGREP' >> "conftest.nl" 4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4026 as_fn_arith $ac_count + 1 && ac_count=$as_val 4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4028 # Best one so far, save it but keep looking for a better one 4029 ac_cv_path_EGREP="$ac_path_EGREP" 4030 ac_path_EGREP_max=$ac_count 4031 fi 4032 # 10*(2^10) chars as input seems more than enough 4033 test $ac_count -gt 10 && break 4034 done 4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4036esac 4037 4038 $ac_path_EGREP_found && break 3 4039 done 4040 done 4041 done 4042IFS=$as_save_IFS 4043 if test -z "$ac_cv_path_EGREP"; then 4044 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4045 fi 4046else 4047 ac_cv_path_EGREP=$EGREP 4048fi 4049 4050 fi 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4053$as_echo "$ac_cv_path_EGREP" >&6; } 4054 EGREP="$ac_cv_path_EGREP" 4055 4056 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4058$as_echo_n "checking for ANSI C header files... " >&6; } 4059if ${ac_cv_header_stdc+:} false; then : 4060 $as_echo_n "(cached) " >&6 4061else 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063/* end confdefs.h. */ 4064#include <stdlib.h> 4065#include <stdarg.h> 4066#include <string.h> 4067#include <float.h> 4068 4069int 4070main () 4071{ 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077if ac_fn_c_try_compile "$LINENO"; then : 4078 ac_cv_header_stdc=yes 4079else 4080 ac_cv_header_stdc=no 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083 4084if test $ac_cv_header_stdc = yes; then 4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087/* end confdefs.h. */ 4088#include <string.h> 4089 4090_ACEOF 4091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4092 $EGREP "memchr" >/dev/null 2>&1; then : 4093 4094else 4095 ac_cv_header_stdc=no 4096fi 4097rm -f conftest* 4098 4099fi 4100 4101if test $ac_cv_header_stdc = yes; then 4102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4104/* end confdefs.h. */ 4105#include <stdlib.h> 4106 4107_ACEOF 4108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4109 $EGREP "free" >/dev/null 2>&1; then : 4110 4111else 4112 ac_cv_header_stdc=no 4113fi 4114rm -f conftest* 4115 4116fi 4117 4118if test $ac_cv_header_stdc = yes; then 4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4120 if test "$cross_compiling" = yes; then : 4121 : 4122else 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125#include <ctype.h> 4126#include <stdlib.h> 4127#if ((' ' & 0x0FF) == 0x020) 4128# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4129# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4130#else 4131# define ISLOWER(c) \ 4132 (('a' <= (c) && (c) <= 'i') \ 4133 || ('j' <= (c) && (c) <= 'r') \ 4134 || ('s' <= (c) && (c) <= 'z')) 4135# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4136#endif 4137 4138#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4139int 4140main () 4141{ 4142 int i; 4143 for (i = 0; i < 256; i++) 4144 if (XOR (islower (i), ISLOWER (i)) 4145 || toupper (i) != TOUPPER (i)) 4146 return 2; 4147 return 0; 4148} 4149_ACEOF 4150if ac_fn_c_try_run "$LINENO"; then : 4151 4152else 4153 ac_cv_header_stdc=no 4154fi 4155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4156 conftest.$ac_objext conftest.beam conftest.$ac_ext 4157fi 4158 4159fi 4160fi 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4162$as_echo "$ac_cv_header_stdc" >&6; } 4163if test $ac_cv_header_stdc = yes; then 4164 4165$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4166 4167fi 4168 4169# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4171 inttypes.h stdint.h unistd.h 4172do : 4173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4174ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4175" 4176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4177 cat >>confdefs.h <<_ACEOF 4178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4179_ACEOF 4180 4181fi 4182 4183done 4184 4185 4186 4187 4188 4189 4190ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4191if test "x$ac_cv_have_decl___clang__" = xyes; then : 4192 CLANGCC="yes" 4193else 4194 CLANGCC="no" 4195fi 4196 4197ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4198if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4199 INTELCC="yes" 4200else 4201 INTELCC="no" 4202fi 4203 4204ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4205if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4206 SUNCC="yes" 4207else 4208 SUNCC="no" 4209fi 4210 4211 4212 4213 4214if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4215 if test -n "$ac_tool_prefix"; then 4216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4217set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4219$as_echo_n "checking for $ac_word... " >&6; } 4220if ${ac_cv_path_PKG_CONFIG+:} false; then : 4221 $as_echo_n "(cached) " >&6 4222else 4223 case $PKG_CONFIG in 4224 [\\/]* | ?:[\\/]*) 4225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4226 ;; 4227 *) 4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH 4230do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4237 break 2 4238 fi 4239done 4240 done 4241IFS=$as_save_IFS 4242 4243 ;; 4244esac 4245fi 4246PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4247if test -n "$PKG_CONFIG"; then 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4249$as_echo "$PKG_CONFIG" >&6; } 4250else 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4252$as_echo "no" >&6; } 4253fi 4254 4255 4256fi 4257if test -z "$ac_cv_path_PKG_CONFIG"; then 4258 ac_pt_PKG_CONFIG=$PKG_CONFIG 4259 # Extract the first word of "pkg-config", so it can be a program name with args. 4260set dummy pkg-config; ac_word=$2 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4262$as_echo_n "checking for $ac_word... " >&6; } 4263if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4264 $as_echo_n "(cached) " >&6 4265else 4266 case $ac_pt_PKG_CONFIG in 4267 [\\/]* | ?:[\\/]*) 4268 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4269 ;; 4270 *) 4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4272for as_dir in $PATH 4273do 4274 IFS=$as_save_IFS 4275 test -z "$as_dir" && as_dir=. 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4278 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4280 break 2 4281 fi 4282done 4283 done 4284IFS=$as_save_IFS 4285 4286 ;; 4287esac 4288fi 4289ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4290if test -n "$ac_pt_PKG_CONFIG"; then 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4292$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4293else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295$as_echo "no" >&6; } 4296fi 4297 4298 if test "x$ac_pt_PKG_CONFIG" = x; then 4299 PKG_CONFIG="" 4300 else 4301 case $cross_compiling:$ac_tool_warned in 4302yes:) 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4305ac_tool_warned=yes ;; 4306esac 4307 PKG_CONFIG=$ac_pt_PKG_CONFIG 4308 fi 4309else 4310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4311fi 4312 4313fi 4314if test -n "$PKG_CONFIG"; then 4315 _pkg_min_version=0.9.0 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4317$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4320$as_echo "yes" >&6; } 4321 else 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4323$as_echo "no" >&6; } 4324 PKG_CONFIG="" 4325 fi 4326 4327fi 4328# Make sure we can run config.sub. 4329$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4330 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4331 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4333$as_echo_n "checking build system type... " >&6; } 4334if ${ac_cv_build+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 ac_build_alias=$build_alias 4338test "x$ac_build_alias" = x && 4339 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4340test "x$ac_build_alias" = x && 4341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4342ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4344 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4347$as_echo "$ac_cv_build" >&6; } 4348case $ac_cv_build in 4349*-*-*) ;; 4350*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4351esac 4352build=$ac_cv_build 4353ac_save_IFS=$IFS; IFS='-' 4354set x $ac_cv_build 4355shift 4356build_cpu=$1 4357build_vendor=$2 4358shift; shift 4359# Remember, the first character of IFS is used to create $*, 4360# except with old shells: 4361build_os=$* 4362IFS=$ac_save_IFS 4363case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4364 4365 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4367$as_echo_n "checking host system type... " >&6; } 4368if ${ac_cv_host+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 if test "x$host_alias" = x; then 4372 ac_cv_host=$ac_cv_build 4373else 4374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4376fi 4377 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4380$as_echo "$ac_cv_host" >&6; } 4381case $ac_cv_host in 4382*-*-*) ;; 4383*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4384esac 4385host=$ac_cv_host 4386ac_save_IFS=$IFS; IFS='-' 4387set x $ac_cv_host 4388shift 4389host_cpu=$1 4390host_vendor=$2 4391shift; shift 4392# Remember, the first character of IFS is used to create $*, 4393# except with old shells: 4394host_os=$* 4395IFS=$ac_save_IFS 4396case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4397 4398 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4400$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4401if ${ac_cv_path_SED+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4405 for ac_i in 1 2 3 4 5 6 7; do 4406 ac_script="$ac_script$as_nl$ac_script" 4407 done 4408 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4409 { ac_script=; unset ac_script;} 4410 if test -z "$SED"; then 4411 ac_path_SED_found=false 4412 # Loop through the user's path and test for each of PROGNAME-LIST 4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 for ac_prog in sed gsed; do 4419 for ac_exec_ext in '' $ac_executable_extensions; do 4420 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4421 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4422# Check for GNU ac_path_SED and select it if it is found. 4423 # Check for GNU $ac_path_SED 4424case `"$ac_path_SED" --version 2>&1` in 4425*GNU*) 4426 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4427*) 4428 ac_count=0 4429 $as_echo_n 0123456789 >"conftest.in" 4430 while : 4431 do 4432 cat "conftest.in" "conftest.in" >"conftest.tmp" 4433 mv "conftest.tmp" "conftest.in" 4434 cp "conftest.in" "conftest.nl" 4435 $as_echo '' >> "conftest.nl" 4436 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4438 as_fn_arith $ac_count + 1 && ac_count=$as_val 4439 if test $ac_count -gt ${ac_path_SED_max-0}; then 4440 # Best one so far, save it but keep looking for a better one 4441 ac_cv_path_SED="$ac_path_SED" 4442 ac_path_SED_max=$ac_count 4443 fi 4444 # 10*(2^10) chars as input seems more than enough 4445 test $ac_count -gt 10 && break 4446 done 4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4448esac 4449 4450 $ac_path_SED_found && break 3 4451 done 4452 done 4453 done 4454IFS=$as_save_IFS 4455 if test -z "$ac_cv_path_SED"; then 4456 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4457 fi 4458else 4459 ac_cv_path_SED=$SED 4460fi 4461 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4464$as_echo "$ac_cv_path_SED" >&6; } 4465 SED="$ac_cv_path_SED" 4466 rm -f conftest.sed 4467 4468 4469 4470 4471 4472 4473# Check whether --enable-selective-werror was given. 4474if test "${enable_selective_werror+set}" = set; then : 4475 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4476else 4477 SELECTIVE_WERROR=yes 4478fi 4479 4480 4481 4482 4483 4484# -v is too short to test reliably with XORG_TESTSET_CFLAG 4485if test "x$SUNCC" = "xyes"; then 4486 BASE_CFLAGS="-v" 4487else 4488 BASE_CFLAGS="" 4489fi 4490 4491# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505xorg_testset_save_CFLAGS="$CFLAGS" 4506 4507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4515/* end confdefs.h. */ 4516int i; 4517_ACEOF 4518if ac_fn_c_try_compile "$LINENO"; then : 4519 xorg_cv_cc_flag_unknown_warning_option=yes 4520else 4521 xorg_cv_cc_flag_unknown_warning_option=no 4522fi 4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4524fi 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4528 CFLAGS="$xorg_testset_save_CFLAGS" 4529fi 4530 4531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4534 fi 4535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542/* end confdefs.h. */ 4543int i; 4544_ACEOF 4545if ac_fn_c_try_compile "$LINENO"; then : 4546 xorg_cv_cc_flag_unused_command_line_argument=yes 4547else 4548 xorg_cv_cc_flag_unused_command_line_argument=no 4549fi 4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4551fi 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4555 CFLAGS="$xorg_testset_save_CFLAGS" 4556fi 4557 4558found="no" 4559 4560 if test $found = "no" ; then 4561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4563 fi 4564 4565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4567 fi 4568 4569 CFLAGS="$CFLAGS -Wall" 4570 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4572$as_echo_n "checking if $CC supports-Wall... " >&6; } 4573 cacheid=xorg_cv_cc_flag__Wall 4574 if eval \${$cacheid+:} false; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4578/* end confdefs.h. */ 4579int i; 4580int 4581main () 4582{ 4583 4584 ; 4585 return 0; 4586} 4587_ACEOF 4588if ac_fn_c_try_link "$LINENO"; then : 4589 eval $cacheid=yes 4590else 4591 eval $cacheid=no 4592fi 4593rm -f core conftest.err conftest.$ac_objext \ 4594 conftest$ac_exeext conftest.$ac_ext 4595fi 4596 4597 4598 CFLAGS="$xorg_testset_save_CFLAGS" 4599 4600 eval supported=\$$cacheid 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4602$as_echo "$supported" >&6; } 4603 if test "$supported" = "yes" ; then 4604 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4605 found="yes" 4606 fi 4607 fi 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623xorg_testset_save_CFLAGS="$CFLAGS" 4624 4625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4633/* end confdefs.h. */ 4634int i; 4635_ACEOF 4636if ac_fn_c_try_compile "$LINENO"; then : 4637 xorg_cv_cc_flag_unknown_warning_option=yes 4638else 4639 xorg_cv_cc_flag_unknown_warning_option=no 4640fi 4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4642fi 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4646 CFLAGS="$xorg_testset_save_CFLAGS" 4647fi 4648 4649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4652 fi 4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661int i; 4662_ACEOF 4663if ac_fn_c_try_compile "$LINENO"; then : 4664 xorg_cv_cc_flag_unused_command_line_argument=yes 4665else 4666 xorg_cv_cc_flag_unused_command_line_argument=no 4667fi 4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4673 CFLAGS="$xorg_testset_save_CFLAGS" 4674fi 4675 4676found="no" 4677 4678 if test $found = "no" ; then 4679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4681 fi 4682 4683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4685 fi 4686 4687 CFLAGS="$CFLAGS -Wpointer-arith" 4688 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 4690$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 4691 cacheid=xorg_cv_cc_flag__Wpointer_arith 4692 if eval \${$cacheid+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697int i; 4698int 4699main () 4700{ 4701 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_link "$LINENO"; then : 4707 eval $cacheid=yes 4708else 4709 eval $cacheid=no 4710fi 4711rm -f core conftest.err conftest.$ac_objext \ 4712 conftest$ac_exeext conftest.$ac_ext 4713fi 4714 4715 4716 CFLAGS="$xorg_testset_save_CFLAGS" 4717 4718 eval supported=\$$cacheid 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4720$as_echo "$supported" >&6; } 4721 if test "$supported" = "yes" ; then 4722 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4723 found="yes" 4724 fi 4725 fi 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741xorg_testset_save_CFLAGS="$CFLAGS" 4742 4743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752int i; 4753_ACEOF 4754if ac_fn_c_try_compile "$LINENO"; then : 4755 xorg_cv_cc_flag_unknown_warning_option=yes 4756else 4757 xorg_cv_cc_flag_unknown_warning_option=no 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4764 CFLAGS="$xorg_testset_save_CFLAGS" 4765fi 4766 4767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4770 fi 4771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779int i; 4780_ACEOF 4781if ac_fn_c_try_compile "$LINENO"; then : 4782 xorg_cv_cc_flag_unused_command_line_argument=yes 4783else 4784 xorg_cv_cc_flag_unused_command_line_argument=no 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787fi 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4791 CFLAGS="$xorg_testset_save_CFLAGS" 4792fi 4793 4794found="no" 4795 4796 if test $found = "no" ; then 4797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4799 fi 4800 4801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4803 fi 4804 4805 CFLAGS="$CFLAGS -Wmissing-declarations" 4806 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 4808$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 4809 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4810 if eval \${$cacheid+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815int i; 4816int 4817main () 4818{ 4819 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824if ac_fn_c_try_link "$LINENO"; then : 4825 eval $cacheid=yes 4826else 4827 eval $cacheid=no 4828fi 4829rm -f core conftest.err conftest.$ac_objext \ 4830 conftest$ac_exeext conftest.$ac_ext 4831fi 4832 4833 4834 CFLAGS="$xorg_testset_save_CFLAGS" 4835 4836 eval supported=\$$cacheid 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4838$as_echo "$supported" >&6; } 4839 if test "$supported" = "yes" ; then 4840 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4841 found="yes" 4842 fi 4843 fi 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859xorg_testset_save_CFLAGS="$CFLAGS" 4860 4861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869/* end confdefs.h. */ 4870int i; 4871_ACEOF 4872if ac_fn_c_try_compile "$LINENO"; then : 4873 xorg_cv_cc_flag_unknown_warning_option=yes 4874else 4875 xorg_cv_cc_flag_unknown_warning_option=no 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4878fi 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4882 CFLAGS="$xorg_testset_save_CFLAGS" 4883fi 4884 4885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4888 fi 4889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4893 $as_echo_n "(cached) " >&6 4894else 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897int i; 4898_ACEOF 4899if ac_fn_c_try_compile "$LINENO"; then : 4900 xorg_cv_cc_flag_unused_command_line_argument=yes 4901else 4902 xorg_cv_cc_flag_unused_command_line_argument=no 4903fi 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4909 CFLAGS="$xorg_testset_save_CFLAGS" 4910fi 4911 4912found="no" 4913 4914 if test $found = "no" ; then 4915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4917 fi 4918 4919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4921 fi 4922 4923 CFLAGS="$CFLAGS -Wformat=2" 4924 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 4926$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 4927 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4928 if eval \${$cacheid+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933int i; 4934int 4935main () 4936{ 4937 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942if ac_fn_c_try_link "$LINENO"; then : 4943 eval $cacheid=yes 4944else 4945 eval $cacheid=no 4946fi 4947rm -f core conftest.err conftest.$ac_objext \ 4948 conftest$ac_exeext conftest.$ac_ext 4949fi 4950 4951 4952 CFLAGS="$xorg_testset_save_CFLAGS" 4953 4954 eval supported=\$$cacheid 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4956$as_echo "$supported" >&6; } 4957 if test "$supported" = "yes" ; then 4958 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4959 found="yes" 4960 fi 4961 fi 4962 4963 if test $found = "no" ; then 4964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4966 fi 4967 4968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4970 fi 4971 4972 CFLAGS="$CFLAGS -Wformat" 4973 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 4975$as_echo_n "checking if $CC supports-Wformat... " >&6; } 4976 cacheid=xorg_cv_cc_flag__Wformat 4977 if eval \${$cacheid+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982int i; 4983int 4984main () 4985{ 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991if ac_fn_c_try_link "$LINENO"; then : 4992 eval $cacheid=yes 4993else 4994 eval $cacheid=no 4995fi 4996rm -f core conftest.err conftest.$ac_objext \ 4997 conftest$ac_exeext conftest.$ac_ext 4998fi 4999 5000 5001 CFLAGS="$xorg_testset_save_CFLAGS" 5002 5003 eval supported=\$$cacheid 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5005$as_echo "$supported" >&6; } 5006 if test "$supported" = "yes" ; then 5007 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5008 found="yes" 5009 fi 5010 fi 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028xorg_testset_save_CFLAGS="$CFLAGS" 5029 5030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039int i; 5040_ACEOF 5041if ac_fn_c_try_compile "$LINENO"; then : 5042 xorg_cv_cc_flag_unknown_warning_option=yes 5043else 5044 xorg_cv_cc_flag_unknown_warning_option=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052fi 5053 5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 fi 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070else 5071 xorg_cv_cc_flag_unused_command_line_argument=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081found="no" 5082 5083 if test $found = "no" ; then 5084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 fi 5087 5088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5090 fi 5091 5092 CFLAGS="$CFLAGS -Wstrict-prototypes" 5093 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5095$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5096 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5097 if eval \${$cacheid+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103int 5104main () 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_link "$LINENO"; then : 5112 eval $cacheid=yes 5113else 5114 eval $cacheid=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext \ 5117 conftest$ac_exeext conftest.$ac_ext 5118fi 5119 5120 5121 CFLAGS="$xorg_testset_save_CFLAGS" 5122 5123 eval supported=\$$cacheid 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5125$as_echo "$supported" >&6; } 5126 if test "$supported" = "yes" ; then 5127 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5128 found="yes" 5129 fi 5130 fi 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146xorg_testset_save_CFLAGS="$CFLAGS" 5147 5148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157int i; 5158_ACEOF 5159if ac_fn_c_try_compile "$LINENO"; then : 5160 xorg_cv_cc_flag_unknown_warning_option=yes 5161else 5162 xorg_cv_cc_flag_unknown_warning_option=no 5163fi 5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5165fi 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5169 CFLAGS="$xorg_testset_save_CFLAGS" 5170fi 5171 5172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5175 fi 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_cv_cc_flag_unused_command_line_argument=yes 5188else 5189 xorg_cv_cc_flag_unused_command_line_argument=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197fi 5198 5199found="no" 5200 5201 if test $found = "no" ; then 5202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 fi 5205 5206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5208 fi 5209 5210 CFLAGS="$CFLAGS -Wmissing-prototypes" 5211 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5213$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5214 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5215 if eval \${$cacheid+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221int 5222main () 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229if ac_fn_c_try_link "$LINENO"; then : 5230 eval $cacheid=yes 5231else 5232 eval $cacheid=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext \ 5235 conftest$ac_exeext conftest.$ac_ext 5236fi 5237 5238 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240 5241 eval supported=\$$cacheid 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5243$as_echo "$supported" >&6; } 5244 if test "$supported" = "yes" ; then 5245 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5246 found="yes" 5247 fi 5248 fi 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264xorg_testset_save_CFLAGS="$CFLAGS" 5265 5266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275int i; 5276_ACEOF 5277if ac_fn_c_try_compile "$LINENO"; then : 5278 xorg_cv_cc_flag_unknown_warning_option=yes 5279else 5280 xorg_cv_cc_flag_unknown_warning_option=no 5281fi 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5283fi 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5287 CFLAGS="$xorg_testset_save_CFLAGS" 5288fi 5289 5290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5293 fi 5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303_ACEOF 5304if ac_fn_c_try_compile "$LINENO"; then : 5305 xorg_cv_cc_flag_unused_command_line_argument=yes 5306else 5307 xorg_cv_cc_flag_unused_command_line_argument=no 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310fi 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5314 CFLAGS="$xorg_testset_save_CFLAGS" 5315fi 5316 5317found="no" 5318 5319 if test $found = "no" ; then 5320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5322 fi 5323 5324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5326 fi 5327 5328 CFLAGS="$CFLAGS -Wnested-externs" 5329 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5331$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5332 cacheid=xorg_cv_cc_flag__Wnested_externs 5333 if eval \${$cacheid+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339int 5340main () 5341{ 5342 5343 ; 5344 return 0; 5345} 5346_ACEOF 5347if ac_fn_c_try_link "$LINENO"; then : 5348 eval $cacheid=yes 5349else 5350 eval $cacheid=no 5351fi 5352rm -f core conftest.err conftest.$ac_objext \ 5353 conftest$ac_exeext conftest.$ac_ext 5354fi 5355 5356 5357 CFLAGS="$xorg_testset_save_CFLAGS" 5358 5359 eval supported=\$$cacheid 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5361$as_echo "$supported" >&6; } 5362 if test "$supported" = "yes" ; then 5363 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5364 found="yes" 5365 fi 5366 fi 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382xorg_testset_save_CFLAGS="$CFLAGS" 5383 5384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393int i; 5394_ACEOF 5395if ac_fn_c_try_compile "$LINENO"; then : 5396 xorg_cv_cc_flag_unknown_warning_option=yes 5397else 5398 xorg_cv_cc_flag_unknown_warning_option=no 5399fi 5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5401fi 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5405 CFLAGS="$xorg_testset_save_CFLAGS" 5406fi 5407 5408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5411 fi 5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO"; then : 5423 xorg_cv_cc_flag_unused_command_line_argument=yes 5424else 5425 xorg_cv_cc_flag_unused_command_line_argument=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435found="no" 5436 5437 if test $found = "no" ; then 5438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 5442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5444 fi 5445 5446 CFLAGS="$CFLAGS -Wbad-function-cast" 5447 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5449$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5450 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5451 if eval \${$cacheid+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457int 5458main () 5459{ 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_link "$LINENO"; then : 5466 eval $cacheid=yes 5467else 5468 eval $cacheid=no 5469fi 5470rm -f core conftest.err conftest.$ac_objext \ 5471 conftest$ac_exeext conftest.$ac_ext 5472fi 5473 5474 5475 CFLAGS="$xorg_testset_save_CFLAGS" 5476 5477 eval supported=\$$cacheid 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5479$as_echo "$supported" >&6; } 5480 if test "$supported" = "yes" ; then 5481 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5482 found="yes" 5483 fi 5484 fi 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500xorg_testset_save_CFLAGS="$CFLAGS" 5501 5502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5510/* end confdefs.h. */ 5511int i; 5512_ACEOF 5513if ac_fn_c_try_compile "$LINENO"; then : 5514 xorg_cv_cc_flag_unknown_warning_option=yes 5515else 5516 xorg_cv_cc_flag_unknown_warning_option=no 5517fi 5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5519fi 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5523 CFLAGS="$xorg_testset_save_CFLAGS" 5524fi 5525 5526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5529 fi 5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO"; then : 5541 xorg_cv_cc_flag_unused_command_line_argument=yes 5542else 5543 xorg_cv_cc_flag_unused_command_line_argument=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551fi 5552 5553found="no" 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wold-style-definition" 5565 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5567$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wold_style_definition 5569 if eval \${$cacheid+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575int 5576main () 5577{ 5578 5579 ; 5580 return 0; 5581} 5582_ACEOF 5583if ac_fn_c_try_link "$LINENO"; then : 5584 eval $cacheid=yes 5585else 5586 eval $cacheid=no 5587fi 5588rm -f core conftest.err conftest.$ac_objext \ 5589 conftest$ac_exeext conftest.$ac_ext 5590fi 5591 5592 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594 5595 eval supported=\$$cacheid 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5597$as_echo "$supported" >&6; } 5598 if test "$supported" = "yes" ; then 5599 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5600 found="yes" 5601 fi 5602 fi 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618xorg_testset_save_CFLAGS="$CFLAGS" 5619 5620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628/* end confdefs.h. */ 5629int i; 5630_ACEOF 5631if ac_fn_c_try_compile "$LINENO"; then : 5632 xorg_cv_cc_flag_unknown_warning_option=yes 5633else 5634 xorg_cv_cc_flag_unknown_warning_option=no 5635fi 5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5641 CFLAGS="$xorg_testset_save_CFLAGS" 5642fi 5643 5644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 fi 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 xorg_cv_cc_flag_unused_command_line_argument=yes 5660else 5661 xorg_cv_cc_flag_unused_command_line_argument=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669fi 5670 5671found="no" 5672 5673 if test $found = "no" ; then 5674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 5678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5680 fi 5681 5682 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5683 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 5685$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 5686 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5687 if eval \${$cacheid+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691/* end confdefs.h. */ 5692int i; 5693int 5694main () 5695{ 5696 5697 ; 5698 return 0; 5699} 5700_ACEOF 5701if ac_fn_c_try_link "$LINENO"; then : 5702 eval $cacheid=yes 5703else 5704 eval $cacheid=no 5705fi 5706rm -f core conftest.err conftest.$ac_objext \ 5707 conftest$ac_exeext conftest.$ac_ext 5708fi 5709 5710 5711 CFLAGS="$xorg_testset_save_CFLAGS" 5712 5713 eval supported=\$$cacheid 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5715$as_echo "$supported" >&6; } 5716 if test "$supported" = "yes" ; then 5717 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5718 found="yes" 5719 fi 5720 fi 5721 5722 5723 5724 5725 5726# This chunk adds additional warnings that could catch undesired effects. 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740xorg_testset_save_CFLAGS="$CFLAGS" 5741 5742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751int i; 5752_ACEOF 5753if ac_fn_c_try_compile "$LINENO"; then : 5754 xorg_cv_cc_flag_unknown_warning_option=yes 5755else 5756 xorg_cv_cc_flag_unknown_warning_option=no 5757fi 5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5759fi 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764fi 5765 5766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 fi 5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779_ACEOF 5780if ac_fn_c_try_compile "$LINENO"; then : 5781 xorg_cv_cc_flag_unused_command_line_argument=yes 5782else 5783 xorg_cv_cc_flag_unused_command_line_argument=no 5784fi 5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791fi 5792 5793found="no" 5794 5795 if test $found = "no" ; then 5796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 fi 5799 5800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5802 fi 5803 5804 CFLAGS="$CFLAGS -Wunused" 5805 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 5807$as_echo_n "checking if $CC supports-Wunused... " >&6; } 5808 cacheid=xorg_cv_cc_flag__Wunused 5809 if eval \${$cacheid+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814int i; 5815int 5816main () 5817{ 5818 5819 ; 5820 return 0; 5821} 5822_ACEOF 5823if ac_fn_c_try_link "$LINENO"; then : 5824 eval $cacheid=yes 5825else 5826 eval $cacheid=no 5827fi 5828rm -f core conftest.err conftest.$ac_objext \ 5829 conftest$ac_exeext conftest.$ac_ext 5830fi 5831 5832 5833 CFLAGS="$xorg_testset_save_CFLAGS" 5834 5835 eval supported=\$$cacheid 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5837$as_echo "$supported" >&6; } 5838 if test "$supported" = "yes" ; then 5839 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5840 found="yes" 5841 fi 5842 fi 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858xorg_testset_save_CFLAGS="$CFLAGS" 5859 5860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO"; then : 5872 xorg_cv_cc_flag_unknown_warning_option=yes 5873else 5874 xorg_cv_cc_flag_unknown_warning_option=no 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5877fi 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5881 CFLAGS="$xorg_testset_save_CFLAGS" 5882fi 5883 5884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5887 fi 5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896int i; 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO"; then : 5899 xorg_cv_cc_flag_unused_command_line_argument=yes 5900else 5901 xorg_cv_cc_flag_unused_command_line_argument=no 5902fi 5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5904fi 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5908 CFLAGS="$xorg_testset_save_CFLAGS" 5909fi 5910 5911found="no" 5912 5913 if test $found = "no" ; then 5914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5916 fi 5917 5918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 fi 5921 5922 CFLAGS="$CFLAGS -Wuninitialized" 5923 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 5925$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 5926 cacheid=xorg_cv_cc_flag__Wuninitialized 5927 if eval \${$cacheid+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931/* end confdefs.h. */ 5932int i; 5933int 5934main () 5935{ 5936 5937 ; 5938 return 0; 5939} 5940_ACEOF 5941if ac_fn_c_try_link "$LINENO"; then : 5942 eval $cacheid=yes 5943else 5944 eval $cacheid=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext \ 5947 conftest$ac_exeext conftest.$ac_ext 5948fi 5949 5950 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952 5953 eval supported=\$$cacheid 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5955$as_echo "$supported" >&6; } 5956 if test "$supported" = "yes" ; then 5957 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5958 found="yes" 5959 fi 5960 fi 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976xorg_testset_save_CFLAGS="$CFLAGS" 5977 5978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988_ACEOF 5989if ac_fn_c_try_compile "$LINENO"; then : 5990 xorg_cv_cc_flag_unknown_warning_option=yes 5991else 5992 xorg_cv_cc_flag_unknown_warning_option=no 5993fi 5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5995fi 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000fi 6001 6002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015_ACEOF 6016if ac_fn_c_try_compile "$LINENO"; then : 6017 xorg_cv_cc_flag_unused_command_line_argument=yes 6018else 6019 xorg_cv_cc_flag_unused_command_line_argument=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6022fi 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027fi 6028 6029found="no" 6030 6031 if test $found = "no" ; then 6032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6034 fi 6035 6036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6038 fi 6039 6040 CFLAGS="$CFLAGS -Wshadow" 6041 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6043$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6044 cacheid=xorg_cv_cc_flag__Wshadow 6045 if eval \${$cacheid+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050int i; 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_link "$LINENO"; then : 6060 eval $cacheid=yes 6061else 6062 eval $cacheid=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext \ 6065 conftest$ac_exeext conftest.$ac_ext 6066fi 6067 6068 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070 6071 eval supported=\$$cacheid 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6073$as_echo "$supported" >&6; } 6074 if test "$supported" = "yes" ; then 6075 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6076 found="yes" 6077 fi 6078 fi 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094xorg_testset_save_CFLAGS="$CFLAGS" 6095 6096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105int i; 6106_ACEOF 6107if ac_fn_c_try_compile "$LINENO"; then : 6108 xorg_cv_cc_flag_unknown_warning_option=yes 6109else 6110 xorg_cv_cc_flag_unknown_warning_option=no 6111fi 6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6113fi 6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6117 CFLAGS="$xorg_testset_save_CFLAGS" 6118fi 6119 6120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6123 fi 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133_ACEOF 6134if ac_fn_c_try_compile "$LINENO"; then : 6135 xorg_cv_cc_flag_unused_command_line_argument=yes 6136else 6137 xorg_cv_cc_flag_unused_command_line_argument=no 6138fi 6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6140fi 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145fi 6146 6147found="no" 6148 6149 if test $found = "no" ; then 6150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 fi 6153 6154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156 fi 6157 6158 CFLAGS="$CFLAGS -Wcast-qual" 6159 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6161$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6162 cacheid=xorg_cv_cc_flag__Wcast_qual 6163 if eval \${$cacheid+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169int 6170main () 6171{ 6172 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177if ac_fn_c_try_link "$LINENO"; then : 6178 eval $cacheid=yes 6179else 6180 eval $cacheid=no 6181fi 6182rm -f core conftest.err conftest.$ac_objext \ 6183 conftest$ac_exeext conftest.$ac_ext 6184fi 6185 6186 6187 CFLAGS="$xorg_testset_save_CFLAGS" 6188 6189 eval supported=\$$cacheid 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6191$as_echo "$supported" >&6; } 6192 if test "$supported" = "yes" ; then 6193 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6194 found="yes" 6195 fi 6196 fi 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212xorg_testset_save_CFLAGS="$CFLAGS" 6213 6214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6222/* end confdefs.h. */ 6223int i; 6224_ACEOF 6225if ac_fn_c_try_compile "$LINENO"; then : 6226 xorg_cv_cc_flag_unknown_warning_option=yes 6227else 6228 xorg_cv_cc_flag_unknown_warning_option=no 6229fi 6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6231fi 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6235 CFLAGS="$xorg_testset_save_CFLAGS" 6236fi 6237 6238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6241 fi 6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251_ACEOF 6252if ac_fn_c_try_compile "$LINENO"; then : 6253 xorg_cv_cc_flag_unused_command_line_argument=yes 6254else 6255 xorg_cv_cc_flag_unused_command_line_argument=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258fi 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6262 CFLAGS="$xorg_testset_save_CFLAGS" 6263fi 6264 6265found="no" 6266 6267 if test $found = "no" ; then 6268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6270 fi 6271 6272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6274 fi 6275 6276 CFLAGS="$CFLAGS -Wmissing-noreturn" 6277 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6279$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6280 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6281 if eval \${$cacheid+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286int i; 6287int 6288main () 6289{ 6290 6291 ; 6292 return 0; 6293} 6294_ACEOF 6295if ac_fn_c_try_link "$LINENO"; then : 6296 eval $cacheid=yes 6297else 6298 eval $cacheid=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext \ 6301 conftest$ac_exeext conftest.$ac_ext 6302fi 6303 6304 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306 6307 eval supported=\$$cacheid 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6309$as_echo "$supported" >&6; } 6310 if test "$supported" = "yes" ; then 6311 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6312 found="yes" 6313 fi 6314 fi 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330xorg_testset_save_CFLAGS="$CFLAGS" 6331 6332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO"; then : 6344 xorg_cv_cc_flag_unknown_warning_option=yes 6345else 6346 xorg_cv_cc_flag_unknown_warning_option=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6353 CFLAGS="$xorg_testset_save_CFLAGS" 6354fi 6355 6356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 fi 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368int i; 6369_ACEOF 6370if ac_fn_c_try_compile "$LINENO"; then : 6371 xorg_cv_cc_flag_unused_command_line_argument=yes 6372else 6373 xorg_cv_cc_flag_unused_command_line_argument=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376fi 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381fi 6382 6383found="no" 6384 6385 if test $found = "no" ; then 6386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 6390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6392 fi 6393 6394 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6395 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6397$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6398 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6399 if eval \${$cacheid+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404int i; 6405int 6406main () 6407{ 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_link "$LINENO"; then : 6414 eval $cacheid=yes 6415else 6416 eval $cacheid=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext \ 6419 conftest$ac_exeext conftest.$ac_ext 6420fi 6421 6422 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424 6425 eval supported=\$$cacheid 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6427$as_echo "$supported" >&6; } 6428 if test "$supported" = "yes" ; then 6429 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6430 found="yes" 6431 fi 6432 fi 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448xorg_testset_save_CFLAGS="$CFLAGS" 6449 6450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6458/* end confdefs.h. */ 6459int i; 6460_ACEOF 6461if ac_fn_c_try_compile "$LINENO"; then : 6462 xorg_cv_cc_flag_unknown_warning_option=yes 6463else 6464 xorg_cv_cc_flag_unknown_warning_option=no 6465fi 6466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6471 CFLAGS="$xorg_testset_save_CFLAGS" 6472fi 6473 6474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 fi 6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483else 6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486int i; 6487_ACEOF 6488if ac_fn_c_try_compile "$LINENO"; then : 6489 xorg_cv_cc_flag_unused_command_line_argument=yes 6490else 6491 xorg_cv_cc_flag_unused_command_line_argument=no 6492fi 6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6494fi 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499fi 6500 6501found="no" 6502 6503 if test $found = "no" ; then 6504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6506 fi 6507 6508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6510 fi 6511 6512 CFLAGS="$CFLAGS -Wredundant-decls" 6513 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6515$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6516 cacheid=xorg_cv_cc_flag__Wredundant_decls 6517 if eval \${$cacheid+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522int i; 6523int 6524main () 6525{ 6526 6527 ; 6528 return 0; 6529} 6530_ACEOF 6531if ac_fn_c_try_link "$LINENO"; then : 6532 eval $cacheid=yes 6533else 6534 eval $cacheid=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext \ 6537 conftest$ac_exeext conftest.$ac_ext 6538fi 6539 6540 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542 6543 eval supported=\$$cacheid 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6545$as_echo "$supported" >&6; } 6546 if test "$supported" = "yes" ; then 6547 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6548 found="yes" 6549 fi 6550 fi 6551 6552 6553 6554# These are currently disabled because they are noisy. They will be enabled 6555# in the future once the codebase is sufficiently modernized to silence 6556# them. For now, I don't want them to drown out the other warnings. 6557# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6558# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6559# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6560 6561# Turn some warnings into errors, so we don't accidently get successful builds 6562# when there are problems that should be fixed. 6563 6564if test "x$SELECTIVE_WERROR" = "xyes" ; then 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578xorg_testset_save_CFLAGS="$CFLAGS" 6579 6580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586else 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589int i; 6590_ACEOF 6591if ac_fn_c_try_compile "$LINENO"; then : 6592 xorg_cv_cc_flag_unknown_warning_option=yes 6593else 6594 xorg_cv_cc_flag_unknown_warning_option=no 6595fi 6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6597fi 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6601 CFLAGS="$xorg_testset_save_CFLAGS" 6602fi 6603 6604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6607 fi 6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6612 $as_echo_n "(cached) " >&6 6613else 6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616int i; 6617_ACEOF 6618if ac_fn_c_try_compile "$LINENO"; then : 6619 xorg_cv_cc_flag_unused_command_line_argument=yes 6620else 6621 xorg_cv_cc_flag_unused_command_line_argument=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629fi 6630 6631found="no" 6632 6633 if test $found = "no" ; then 6634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6636 fi 6637 6638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6640 fi 6641 6642 CFLAGS="$CFLAGS -Werror=implicit" 6643 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6645$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6646 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6647 if eval \${$cacheid+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652int i; 6653int 6654main () 6655{ 6656 6657 ; 6658 return 0; 6659} 6660_ACEOF 6661if ac_fn_c_try_link "$LINENO"; then : 6662 eval $cacheid=yes 6663else 6664 eval $cacheid=no 6665fi 6666rm -f core conftest.err conftest.$ac_objext \ 6667 conftest$ac_exeext conftest.$ac_ext 6668fi 6669 6670 6671 CFLAGS="$xorg_testset_save_CFLAGS" 6672 6673 eval supported=\$$cacheid 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6675$as_echo "$supported" >&6; } 6676 if test "$supported" = "yes" ; then 6677 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6678 found="yes" 6679 fi 6680 fi 6681 6682 if test $found = "no" ; then 6683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6685 fi 6686 6687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6689 fi 6690 6691 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6694$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6695 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6696 if eval \${$cacheid+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701int i; 6702int 6703main () 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710if ac_fn_c_try_link "$LINENO"; then : 6711 eval $cacheid=yes 6712else 6713 eval $cacheid=no 6714fi 6715rm -f core conftest.err conftest.$ac_objext \ 6716 conftest$ac_exeext conftest.$ac_ext 6717fi 6718 6719 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721 6722 eval supported=\$$cacheid 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6724$as_echo "$supported" >&6; } 6725 if test "$supported" = "yes" ; then 6726 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6727 found="yes" 6728 fi 6729 fi 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745xorg_testset_save_CFLAGS="$CFLAGS" 6746 6747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755/* end confdefs.h. */ 6756int i; 6757_ACEOF 6758if ac_fn_c_try_compile "$LINENO"; then : 6759 xorg_cv_cc_flag_unknown_warning_option=yes 6760else 6761 xorg_cv_cc_flag_unknown_warning_option=no 6762fi 6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6764fi 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769fi 6770 6771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 fi 6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783int i; 6784_ACEOF 6785if ac_fn_c_try_compile "$LINENO"; then : 6786 xorg_cv_cc_flag_unused_command_line_argument=yes 6787else 6788 xorg_cv_cc_flag_unused_command_line_argument=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791fi 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796fi 6797 6798found="no" 6799 6800 if test $found = "no" ; then 6801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 6805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6807 fi 6808 6809 CFLAGS="$CFLAGS -Werror=nonnull" 6810 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 6812$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 6813 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6814 if eval \${$cacheid+:} false; then : 6815 $as_echo_n "(cached) " >&6 6816else 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819int i; 6820int 6821main () 6822{ 6823 6824 ; 6825 return 0; 6826} 6827_ACEOF 6828if ac_fn_c_try_link "$LINENO"; then : 6829 eval $cacheid=yes 6830else 6831 eval $cacheid=no 6832fi 6833rm -f core conftest.err conftest.$ac_objext \ 6834 conftest$ac_exeext conftest.$ac_ext 6835fi 6836 6837 6838 CFLAGS="$xorg_testset_save_CFLAGS" 6839 6840 eval supported=\$$cacheid 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6842$as_echo "$supported" >&6; } 6843 if test "$supported" = "yes" ; then 6844 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6845 found="yes" 6846 fi 6847 fi 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863xorg_testset_save_CFLAGS="$CFLAGS" 6864 6865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873/* end confdefs.h. */ 6874int i; 6875_ACEOF 6876if ac_fn_c_try_compile "$LINENO"; then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878else 6879 xorg_cv_cc_flag_unknown_warning_option=no 6880fi 6881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6882fi 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887fi 6888 6889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900/* end confdefs.h. */ 6901int i; 6902_ACEOF 6903if ac_fn_c_try_compile "$LINENO"; then : 6904 xorg_cv_cc_flag_unused_command_line_argument=yes 6905else 6906 xorg_cv_cc_flag_unused_command_line_argument=no 6907fi 6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6909fi 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6913 CFLAGS="$xorg_testset_save_CFLAGS" 6914fi 6915 6916found="no" 6917 6918 if test $found = "no" ; then 6919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 fi 6922 6923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6925 fi 6926 6927 CFLAGS="$CFLAGS -Werror=init-self" 6928 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 6930$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 6931 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6932 if eval \${$cacheid+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938int 6939main () 6940{ 6941 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946if ac_fn_c_try_link "$LINENO"; then : 6947 eval $cacheid=yes 6948else 6949 eval $cacheid=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext \ 6952 conftest$ac_exeext conftest.$ac_ext 6953fi 6954 6955 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 6958 eval supported=\$$cacheid 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6960$as_echo "$supported" >&6; } 6961 if test "$supported" = "yes" ; then 6962 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6963 found="yes" 6964 fi 6965 fi 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981xorg_testset_save_CFLAGS="$CFLAGS" 6982 6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989else 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992int i; 6993_ACEOF 6994if ac_fn_c_try_compile "$LINENO"; then : 6995 xorg_cv_cc_flag_unknown_warning_option=yes 6996else 6997 xorg_cv_cc_flag_unknown_warning_option=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7000fi 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005fi 7006 7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020_ACEOF 7021if ac_fn_c_try_compile "$LINENO"; then : 7022 xorg_cv_cc_flag_unused_command_line_argument=yes 7023else 7024 xorg_cv_cc_flag_unused_command_line_argument=no 7025fi 7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7031 CFLAGS="$xorg_testset_save_CFLAGS" 7032fi 7033 7034found="no" 7035 7036 if test $found = "no" ; then 7037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7039 fi 7040 7041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 fi 7044 7045 CFLAGS="$CFLAGS -Werror=main" 7046 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7048$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7049 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7050 if eval \${$cacheid+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055int i; 7056int 7057main () 7058{ 7059 7060 ; 7061 return 0; 7062} 7063_ACEOF 7064if ac_fn_c_try_link "$LINENO"; then : 7065 eval $cacheid=yes 7066else 7067 eval $cacheid=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext \ 7070 conftest$ac_exeext conftest.$ac_ext 7071fi 7072 7073 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075 7076 eval supported=\$$cacheid 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7078$as_echo "$supported" >&6; } 7079 if test "$supported" = "yes" ; then 7080 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7081 found="yes" 7082 fi 7083 fi 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099xorg_testset_save_CFLAGS="$CFLAGS" 7100 7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109/* end confdefs.h. */ 7110int i; 7111_ACEOF 7112if ac_fn_c_try_compile "$LINENO"; then : 7113 xorg_cv_cc_flag_unknown_warning_option=yes 7114else 7115 xorg_cv_cc_flag_unknown_warning_option=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123fi 7124 7125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 fi 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138_ACEOF 7139if ac_fn_c_try_compile "$LINENO"; then : 7140 xorg_cv_cc_flag_unused_command_line_argument=yes 7141else 7142 xorg_cv_cc_flag_unused_command_line_argument=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7149 CFLAGS="$xorg_testset_save_CFLAGS" 7150fi 7151 7152found="no" 7153 7154 if test $found = "no" ; then 7155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7157 fi 7158 7159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7161 fi 7162 7163 CFLAGS="$CFLAGS -Werror=missing-braces" 7164 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7166$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7167 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7168 if eval \${$cacheid+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173int i; 7174int 7175main () 7176{ 7177 7178 ; 7179 return 0; 7180} 7181_ACEOF 7182if ac_fn_c_try_link "$LINENO"; then : 7183 eval $cacheid=yes 7184else 7185 eval $cacheid=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext \ 7188 conftest$ac_exeext conftest.$ac_ext 7189fi 7190 7191 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193 7194 eval supported=\$$cacheid 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7196$as_echo "$supported" >&6; } 7197 if test "$supported" = "yes" ; then 7198 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7199 found="yes" 7200 fi 7201 fi 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217xorg_testset_save_CFLAGS="$CFLAGS" 7218 7219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228int i; 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO"; then : 7231 xorg_cv_cc_flag_unknown_warning_option=yes 7232else 7233 xorg_cv_cc_flag_unknown_warning_option=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241fi 7242 7243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7246 fi 7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255int i; 7256_ACEOF 7257if ac_fn_c_try_compile "$LINENO"; then : 7258 xorg_cv_cc_flag_unused_command_line_argument=yes 7259else 7260 xorg_cv_cc_flag_unused_command_line_argument=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7267 CFLAGS="$xorg_testset_save_CFLAGS" 7268fi 7269 7270found="no" 7271 7272 if test $found = "no" ; then 7273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7275 fi 7276 7277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7279 fi 7280 7281 CFLAGS="$CFLAGS -Werror=sequence-point" 7282 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7284$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7285 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7286 if eval \${$cacheid+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291int i; 7292int 7293main () 7294{ 7295 7296 ; 7297 return 0; 7298} 7299_ACEOF 7300if ac_fn_c_try_link "$LINENO"; then : 7301 eval $cacheid=yes 7302else 7303 eval $cacheid=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext \ 7306 conftest$ac_exeext conftest.$ac_ext 7307fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314$as_echo "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7317 found="yes" 7318 fi 7319 fi 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335xorg_testset_save_CFLAGS="$CFLAGS" 7336 7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347_ACEOF 7348if ac_fn_c_try_compile "$LINENO"; then : 7349 xorg_cv_cc_flag_unknown_warning_option=yes 7350else 7351 xorg_cv_cc_flag_unknown_warning_option=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359fi 7360 7361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364 fi 7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373int i; 7374_ACEOF 7375if ac_fn_c_try_compile "$LINENO"; then : 7376 xorg_cv_cc_flag_unused_command_line_argument=yes 7377else 7378 xorg_cv_cc_flag_unused_command_line_argument=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7381fi 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386fi 7387 7388found="no" 7389 7390 if test $found = "no" ; then 7391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7393 fi 7394 7395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7397 fi 7398 7399 CFLAGS="$CFLAGS -Werror=return-type" 7400 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7402$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7403 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7404 if eval \${$cacheid+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409int i; 7410int 7411main () 7412{ 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_link "$LINENO"; then : 7419 eval $cacheid=yes 7420else 7421 eval $cacheid=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext \ 7424 conftest$ac_exeext conftest.$ac_ext 7425fi 7426 7427 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429 7430 eval supported=\$$cacheid 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7432$as_echo "$supported" >&6; } 7433 if test "$supported" = "yes" ; then 7434 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7435 found="yes" 7436 fi 7437 fi 7438 7439 if test $found = "no" ; then 7440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 7444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7446 fi 7447 7448 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7449 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7451$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7452 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7453 if eval \${$cacheid+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458int i; 7459int 7460main () 7461{ 7462 7463 ; 7464 return 0; 7465} 7466_ACEOF 7467if ac_fn_c_try_link "$LINENO"; then : 7468 eval $cacheid=yes 7469else 7470 eval $cacheid=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext \ 7473 conftest$ac_exeext conftest.$ac_ext 7474fi 7475 7476 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478 7479 eval supported=\$$cacheid 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7481$as_echo "$supported" >&6; } 7482 if test "$supported" = "yes" ; then 7483 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7484 found="yes" 7485 fi 7486 fi 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502xorg_testset_save_CFLAGS="$CFLAGS" 7503 7504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510else 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512/* end confdefs.h. */ 7513int i; 7514_ACEOF 7515if ac_fn_c_try_compile "$LINENO"; then : 7516 xorg_cv_cc_flag_unknown_warning_option=yes 7517else 7518 xorg_cv_cc_flag_unknown_warning_option=no 7519fi 7520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526fi 7527 7528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 fi 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541_ACEOF 7542if ac_fn_c_try_compile "$LINENO"; then : 7543 xorg_cv_cc_flag_unused_command_line_argument=yes 7544else 7545 xorg_cv_cc_flag_unused_command_line_argument=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7548fi 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7552 CFLAGS="$xorg_testset_save_CFLAGS" 7553fi 7554 7555found="no" 7556 7557 if test $found = "no" ; then 7558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 7562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7564 fi 7565 7566 CFLAGS="$CFLAGS -Werror=trigraphs" 7567 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7569$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7570 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7571 if eval \${$cacheid+:} false; then : 7572 $as_echo_n "(cached) " >&6 7573else 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577int 7578main () 7579{ 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585if ac_fn_c_try_link "$LINENO"; then : 7586 eval $cacheid=yes 7587else 7588 eval $cacheid=no 7589fi 7590rm -f core conftest.err conftest.$ac_objext \ 7591 conftest$ac_exeext conftest.$ac_ext 7592fi 7593 7594 7595 CFLAGS="$xorg_testset_save_CFLAGS" 7596 7597 eval supported=\$$cacheid 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7599$as_echo "$supported" >&6; } 7600 if test "$supported" = "yes" ; then 7601 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7602 found="yes" 7603 fi 7604 fi 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620xorg_testset_save_CFLAGS="$CFLAGS" 7621 7622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631int i; 7632_ACEOF 7633if ac_fn_c_try_compile "$LINENO"; then : 7634 xorg_cv_cc_flag_unknown_warning_option=yes 7635else 7636 xorg_cv_cc_flag_unknown_warning_option=no 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644fi 7645 7646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659_ACEOF 7660if ac_fn_c_try_compile "$LINENO"; then : 7661 xorg_cv_cc_flag_unused_command_line_argument=yes 7662else 7663 xorg_cv_cc_flag_unused_command_line_argument=no 7664fi 7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7670 CFLAGS="$xorg_testset_save_CFLAGS" 7671fi 7672 7673found="no" 7674 7675 if test $found = "no" ; then 7676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 fi 7679 7680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7682 fi 7683 7684 CFLAGS="$CFLAGS -Werror=array-bounds" 7685 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 7687$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 7688 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7689 if eval \${$cacheid+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694int i; 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703if ac_fn_c_try_link "$LINENO"; then : 7704 eval $cacheid=yes 7705else 7706 eval $cacheid=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext \ 7709 conftest$ac_exeext conftest.$ac_ext 7710fi 7711 7712 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714 7715 eval supported=\$$cacheid 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7717$as_echo "$supported" >&6; } 7718 if test "$supported" = "yes" ; then 7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7720 found="yes" 7721 fi 7722 fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7745 $as_echo_n "(cached) " >&6 7746else 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749int i; 7750_ACEOF 7751if ac_fn_c_try_compile "$LINENO"; then : 7752 xorg_cv_cc_flag_unknown_warning_option=yes 7753else 7754 xorg_cv_cc_flag_unknown_warning_option=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7757fi 7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7761 CFLAGS="$xorg_testset_save_CFLAGS" 7762fi 7763 7764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 fi 7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777_ACEOF 7778if ac_fn_c_try_compile "$LINENO"; then : 7779 xorg_cv_cc_flag_unused_command_line_argument=yes 7780else 7781 xorg_cv_cc_flag_unused_command_line_argument=no 7782fi 7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7784fi 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791found="no" 7792 7793 if test $found = "no" ; then 7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 fi 7797 7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7800 fi 7801 7802 CFLAGS="$CFLAGS -Werror=write-strings" 7803 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 7805$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 7806 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7807 if eval \${$cacheid+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812int i; 7813int 7814main () 7815{ 7816 7817 ; 7818 return 0; 7819} 7820_ACEOF 7821if ac_fn_c_try_link "$LINENO"; then : 7822 eval $cacheid=yes 7823else 7824 eval $cacheid=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext \ 7827 conftest$ac_exeext conftest.$ac_ext 7828fi 7829 7830 7831 CFLAGS="$xorg_testset_save_CFLAGS" 7832 7833 eval supported=\$$cacheid 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7835$as_echo "$supported" >&6; } 7836 if test "$supported" = "yes" ; then 7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7838 found="yes" 7839 fi 7840 fi 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856xorg_testset_save_CFLAGS="$CFLAGS" 7857 7858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867int i; 7868_ACEOF 7869if ac_fn_c_try_compile "$LINENO"; then : 7870 xorg_cv_cc_flag_unknown_warning_option=yes 7871else 7872 xorg_cv_cc_flag_unknown_warning_option=no 7873fi 7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7875fi 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7879 CFLAGS="$xorg_testset_save_CFLAGS" 7880fi 7881 7882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO"; then : 7897 xorg_cv_cc_flag_unused_command_line_argument=yes 7898else 7899 xorg_cv_cc_flag_unused_command_line_argument=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902fi 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907fi 7908 7909found="no" 7910 7911 if test $found = "no" ; then 7912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 fi 7915 7916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 fi 7919 7920 CFLAGS="$CFLAGS -Werror=address" 7921 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 7923$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 7924 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7925 if eval \${$cacheid+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930int i; 7931int 7932main () 7933{ 7934 7935 ; 7936 return 0; 7937} 7938_ACEOF 7939if ac_fn_c_try_link "$LINENO"; then : 7940 eval $cacheid=yes 7941else 7942 eval $cacheid=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext \ 7945 conftest$ac_exeext conftest.$ac_ext 7946fi 7947 7948 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950 7951 eval supported=\$$cacheid 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7953$as_echo "$supported" >&6; } 7954 if test "$supported" = "yes" ; then 7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7956 found="yes" 7957 fi 7958 fi 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974xorg_testset_save_CFLAGS="$CFLAGS" 7975 7976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7981 $as_echo_n "(cached) " >&6 7982else 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985int i; 7986_ACEOF 7987if ac_fn_c_try_compile "$LINENO"; then : 7988 xorg_cv_cc_flag_unknown_warning_option=yes 7989else 7990 xorg_cv_cc_flag_unknown_warning_option=no 7991fi 7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7993fi 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7997 CFLAGS="$xorg_testset_save_CFLAGS" 7998fi 7999 8000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8003 fi 8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013_ACEOF 8014if ac_fn_c_try_compile "$LINENO"; then : 8015 xorg_cv_cc_flag_unused_command_line_argument=yes 8016else 8017 xorg_cv_cc_flag_unused_command_line_argument=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8020fi 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025fi 8026 8027found="no" 8028 8029 if test $found = "no" ; then 8030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 fi 8033 8034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 fi 8037 8038 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8039 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8041$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8042 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8043 if eval \${$cacheid+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047/* end confdefs.h. */ 8048int i; 8049int 8050main () 8051{ 8052 8053 ; 8054 return 0; 8055} 8056_ACEOF 8057if ac_fn_c_try_link "$LINENO"; then : 8058 eval $cacheid=yes 8059else 8060 eval $cacheid=no 8061fi 8062rm -f core conftest.err conftest.$ac_objext \ 8063 conftest$ac_exeext conftest.$ac_ext 8064fi 8065 8066 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068 8069 eval supported=\$$cacheid 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8071$as_echo "$supported" >&6; } 8072 if test "$supported" = "yes" ; then 8073 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8074 found="yes" 8075 fi 8076 fi 8077 8078 if test $found = "no" ; then 8079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 fi 8082 8083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8085 fi 8086 8087 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8088 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8090$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8091 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8092 if eval \${$cacheid+:} false; then : 8093 $as_echo_n "(cached) " >&6 8094else 8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8096/* end confdefs.h. */ 8097int i; 8098int 8099main () 8100{ 8101 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106if ac_fn_c_try_link "$LINENO"; then : 8107 eval $cacheid=yes 8108else 8109 eval $cacheid=no 8110fi 8111rm -f core conftest.err conftest.$ac_objext \ 8112 conftest$ac_exeext conftest.$ac_ext 8113fi 8114 8115 8116 CFLAGS="$xorg_testset_save_CFLAGS" 8117 8118 eval supported=\$$cacheid 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8120$as_echo "$supported" >&6; } 8121 if test "$supported" = "yes" ; then 8122 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8123 found="yes" 8124 fi 8125 fi 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141xorg_testset_save_CFLAGS="$CFLAGS" 8142 8143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8148 $as_echo_n "(cached) " >&6 8149else 8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8151/* end confdefs.h. */ 8152int i; 8153_ACEOF 8154if ac_fn_c_try_compile "$LINENO"; then : 8155 xorg_cv_cc_flag_unknown_warning_option=yes 8156else 8157 xorg_cv_cc_flag_unknown_warning_option=no 8158fi 8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8160fi 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165fi 8166 8167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 fi 8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8178/* end confdefs.h. */ 8179int i; 8180_ACEOF 8181if ac_fn_c_try_compile "$LINENO"; then : 8182 xorg_cv_cc_flag_unused_command_line_argument=yes 8183else 8184 xorg_cv_cc_flag_unused_command_line_argument=no 8185fi 8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8187fi 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8191 CFLAGS="$xorg_testset_save_CFLAGS" 8192fi 8193 8194found="no" 8195 8196 if test $found = "no" ; then 8197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 8201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8203 fi 8204 8205 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8206 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8208$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8209 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8210 if eval \${$cacheid+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216int 8217main () 8218{ 8219 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224if ac_fn_c_try_link "$LINENO"; then : 8225 eval $cacheid=yes 8226else 8227 eval $cacheid=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext \ 8230 conftest$ac_exeext conftest.$ac_ext 8231fi 8232 8233 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235 8236 eval supported=\$$cacheid 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8238$as_echo "$supported" >&6; } 8239 if test "$supported" = "yes" ; then 8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8241 found="yes" 8242 fi 8243 fi 8244 8245 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8246else 8247{ $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 8248$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;} 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262xorg_testset_save_CFLAGS="$CFLAGS" 8263 8264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO"; then : 8276 xorg_cv_cc_flag_unknown_warning_option=yes 8277else 8278 xorg_cv_cc_flag_unknown_warning_option=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8281fi 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286fi 8287 8288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8291 fi 8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO"; then : 8303 xorg_cv_cc_flag_unused_command_line_argument=yes 8304else 8305 xorg_cv_cc_flag_unused_command_line_argument=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8308fi 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313fi 8314 8315found="no" 8316 8317 if test $found = "no" ; then 8318 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320 fi 8321 8322 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8324 fi 8325 8326 CFLAGS="$CFLAGS -Wimplicit" 8327 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8329$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8330 cacheid=xorg_cv_cc_flag__Wimplicit 8331 if eval \${$cacheid+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336int i; 8337int 8338main () 8339{ 8340 8341 ; 8342 return 0; 8343} 8344_ACEOF 8345if ac_fn_c_try_link "$LINENO"; then : 8346 eval $cacheid=yes 8347else 8348 eval $cacheid=no 8349fi 8350rm -f core conftest.err conftest.$ac_objext \ 8351 conftest$ac_exeext conftest.$ac_ext 8352fi 8353 8354 8355 CFLAGS="$xorg_testset_save_CFLAGS" 8356 8357 eval supported=\$$cacheid 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8359$as_echo "$supported" >&6; } 8360 if test "$supported" = "yes" ; then 8361 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8362 found="yes" 8363 fi 8364 fi 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380xorg_testset_save_CFLAGS="$CFLAGS" 8381 8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391int i; 8392_ACEOF 8393if ac_fn_c_try_compile "$LINENO"; then : 8394 xorg_cv_cc_flag_unknown_warning_option=yes 8395else 8396 xorg_cv_cc_flag_unknown_warning_option=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8403 CFLAGS="$xorg_testset_save_CFLAGS" 8404fi 8405 8406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8409 fi 8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8414 $as_echo_n "(cached) " >&6 8415else 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418int i; 8419_ACEOF 8420if ac_fn_c_try_compile "$LINENO"; then : 8421 xorg_cv_cc_flag_unused_command_line_argument=yes 8422else 8423 xorg_cv_cc_flag_unused_command_line_argument=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431fi 8432 8433found="no" 8434 8435 if test $found = "no" ; then 8436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 8440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 fi 8443 8444 CFLAGS="$CFLAGS -Wnonnull" 8445 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8447$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8448 cacheid=xorg_cv_cc_flag__Wnonnull 8449 if eval \${$cacheid+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455int 8456main () 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463if ac_fn_c_try_link "$LINENO"; then : 8464 eval $cacheid=yes 8465else 8466 eval $cacheid=no 8467fi 8468rm -f core conftest.err conftest.$ac_objext \ 8469 conftest$ac_exeext conftest.$ac_ext 8470fi 8471 8472 8473 CFLAGS="$xorg_testset_save_CFLAGS" 8474 8475 eval supported=\$$cacheid 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8477$as_echo "$supported" >&6; } 8478 if test "$supported" = "yes" ; then 8479 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8480 found="yes" 8481 fi 8482 fi 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498xorg_testset_save_CFLAGS="$CFLAGS" 8499 8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509int i; 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 xorg_cv_cc_flag_unknown_warning_option=yes 8513else 8514 xorg_cv_cc_flag_unknown_warning_option=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8521 CFLAGS="$xorg_testset_save_CFLAGS" 8522fi 8523 8524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8527 fi 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537_ACEOF 8538if ac_fn_c_try_compile "$LINENO"; then : 8539 xorg_cv_cc_flag_unused_command_line_argument=yes 8540else 8541 xorg_cv_cc_flag_unused_command_line_argument=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551found="no" 8552 8553 if test $found = "no" ; then 8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556 fi 8557 8558 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 fi 8561 8562 CFLAGS="$CFLAGS -Winit-self" 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8565$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8566 cacheid=xorg_cv_cc_flag__Winit_self 8567 if eval \${$cacheid+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573int 8574main () 8575{ 8576 8577 ; 8578 return 0; 8579} 8580_ACEOF 8581if ac_fn_c_try_link "$LINENO"; then : 8582 eval $cacheid=yes 8583else 8584 eval $cacheid=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext \ 8587 conftest$ac_exeext conftest.$ac_ext 8588fi 8589 8590 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592 8593 eval supported=\$$cacheid 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8595$as_echo "$supported" >&6; } 8596 if test "$supported" = "yes" ; then 8597 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8598 found="yes" 8599 fi 8600 fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616xorg_testset_save_CFLAGS="$CFLAGS" 8617 8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627int i; 8628_ACEOF 8629if ac_fn_c_try_compile "$LINENO"; then : 8630 xorg_cv_cc_flag_unknown_warning_option=yes 8631else 8632 xorg_cv_cc_flag_unknown_warning_option=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640fi 8641 8642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8645 fi 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655_ACEOF 8656if ac_fn_c_try_compile "$LINENO"; then : 8657 xorg_cv_cc_flag_unused_command_line_argument=yes 8658else 8659 xorg_cv_cc_flag_unused_command_line_argument=no 8660fi 8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8662fi 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667fi 8668 8669found="no" 8670 8671 if test $found = "no" ; then 8672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8674 fi 8675 8676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8678 fi 8679 8680 CFLAGS="$CFLAGS -Wmain" 8681 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 8683$as_echo_n "checking if $CC supports-Wmain... " >&6; } 8684 cacheid=xorg_cv_cc_flag__Wmain 8685 if eval \${$cacheid+:} false; then : 8686 $as_echo_n "(cached) " >&6 8687else 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8689/* end confdefs.h. */ 8690int i; 8691int 8692main () 8693{ 8694 8695 ; 8696 return 0; 8697} 8698_ACEOF 8699if ac_fn_c_try_link "$LINENO"; then : 8700 eval $cacheid=yes 8701else 8702 eval $cacheid=no 8703fi 8704rm -f core conftest.err conftest.$ac_objext \ 8705 conftest$ac_exeext conftest.$ac_ext 8706fi 8707 8708 8709 CFLAGS="$xorg_testset_save_CFLAGS" 8710 8711 eval supported=\$$cacheid 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8713$as_echo "$supported" >&6; } 8714 if test "$supported" = "yes" ; then 8715 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8716 found="yes" 8717 fi 8718 fi 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734xorg_testset_save_CFLAGS="$CFLAGS" 8735 8736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746_ACEOF 8747if ac_fn_c_try_compile "$LINENO"; then : 8748 xorg_cv_cc_flag_unknown_warning_option=yes 8749else 8750 xorg_cv_cc_flag_unknown_warning_option=no 8751fi 8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8753fi 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758fi 8759 8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO"; then : 8775 xorg_cv_cc_flag_unused_command_line_argument=yes 8776else 8777 xorg_cv_cc_flag_unused_command_line_argument=no 8778fi 8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785fi 8786 8787found="no" 8788 8789 if test $found = "no" ; then 8790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 8794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 fi 8797 8798 CFLAGS="$CFLAGS -Wmissing-braces" 8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 8801$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 8802 cacheid=xorg_cv_cc_flag__Wmissing_braces 8803 if eval \${$cacheid+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807/* end confdefs.h. */ 8808int i; 8809int 8810main () 8811{ 8812 8813 ; 8814 return 0; 8815} 8816_ACEOF 8817if ac_fn_c_try_link "$LINENO"; then : 8818 eval $cacheid=yes 8819else 8820 eval $cacheid=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824fi 8825 8826 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828 8829 eval supported=\$$cacheid 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8831$as_echo "$supported" >&6; } 8832 if test "$supported" = "yes" ; then 8833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8834 found="yes" 8835 fi 8836 fi 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852xorg_testset_save_CFLAGS="$CFLAGS" 8853 8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8862/* end confdefs.h. */ 8863int i; 8864_ACEOF 8865if ac_fn_c_try_compile "$LINENO"; then : 8866 xorg_cv_cc_flag_unknown_warning_option=yes 8867else 8868 xorg_cv_cc_flag_unknown_warning_option=no 8869fi 8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8871fi 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8875 CFLAGS="$xorg_testset_save_CFLAGS" 8876fi 8877 8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890int i; 8891_ACEOF 8892if ac_fn_c_try_compile "$LINENO"; then : 8893 xorg_cv_cc_flag_unused_command_line_argument=yes 8894else 8895 xorg_cv_cc_flag_unused_command_line_argument=no 8896fi 8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903fi 8904 8905found="no" 8906 8907 if test $found = "no" ; then 8908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 fi 8911 8912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8914 fi 8915 8916 CFLAGS="$CFLAGS -Wsequence-point" 8917 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 8919$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 8920 cacheid=xorg_cv_cc_flag__Wsequence_point 8921 if eval \${$cacheid+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927int 8928main () 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_link "$LINENO"; then : 8936 eval $cacheid=yes 8937else 8938 eval $cacheid=no 8939fi 8940rm -f core conftest.err conftest.$ac_objext \ 8941 conftest$ac_exeext conftest.$ac_ext 8942fi 8943 8944 8945 CFLAGS="$xorg_testset_save_CFLAGS" 8946 8947 eval supported=\$$cacheid 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8949$as_echo "$supported" >&6; } 8950 if test "$supported" = "yes" ; then 8951 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8952 found="yes" 8953 fi 8954 fi 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970xorg_testset_save_CFLAGS="$CFLAGS" 8971 8972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981int i; 8982_ACEOF 8983if ac_fn_c_try_compile "$LINENO"; then : 8984 xorg_cv_cc_flag_unknown_warning_option=yes 8985else 8986 xorg_cv_cc_flag_unknown_warning_option=no 8987fi 8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8989fi 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8993 CFLAGS="$xorg_testset_save_CFLAGS" 8994fi 8995 8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 fi 9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009_ACEOF 9010if ac_fn_c_try_compile "$LINENO"; then : 9011 xorg_cv_cc_flag_unused_command_line_argument=yes 9012else 9013 xorg_cv_cc_flag_unused_command_line_argument=no 9014fi 9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9016fi 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021fi 9022 9023found="no" 9024 9025 if test $found = "no" ; then 9026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 fi 9029 9030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9032 fi 9033 9034 CFLAGS="$CFLAGS -Wreturn-type" 9035 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9037$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9038 cacheid=xorg_cv_cc_flag__Wreturn_type 9039 if eval \${$cacheid+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045int 9046main () 9047{ 9048 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053if ac_fn_c_try_link "$LINENO"; then : 9054 eval $cacheid=yes 9055else 9056 eval $cacheid=no 9057fi 9058rm -f core conftest.err conftest.$ac_objext \ 9059 conftest$ac_exeext conftest.$ac_ext 9060fi 9061 9062 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064 9065 eval supported=\$$cacheid 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9067$as_echo "$supported" >&6; } 9068 if test "$supported" = "yes" ; then 9069 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9070 found="yes" 9071 fi 9072 fi 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088xorg_testset_save_CFLAGS="$CFLAGS" 9089 9090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099int i; 9100_ACEOF 9101if ac_fn_c_try_compile "$LINENO"; then : 9102 xorg_cv_cc_flag_unknown_warning_option=yes 9103else 9104 xorg_cv_cc_flag_unknown_warning_option=no 9105fi 9106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9107fi 9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112fi 9113 9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 fi 9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127_ACEOF 9128if ac_fn_c_try_compile "$LINENO"; then : 9129 xorg_cv_cc_flag_unused_command_line_argument=yes 9130else 9131 xorg_cv_cc_flag_unused_command_line_argument=no 9132fi 9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9134fi 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9138 CFLAGS="$xorg_testset_save_CFLAGS" 9139fi 9140 9141found="no" 9142 9143 if test $found = "no" ; then 9144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9146 fi 9147 9148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9150 fi 9151 9152 CFLAGS="$CFLAGS -Wtrigraphs" 9153 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9155$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9156 cacheid=xorg_cv_cc_flag__Wtrigraphs 9157 if eval \${$cacheid+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163int 9164main () 9165{ 9166 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171if ac_fn_c_try_link "$LINENO"; then : 9172 eval $cacheid=yes 9173else 9174 eval $cacheid=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext \ 9177 conftest$ac_exeext conftest.$ac_ext 9178fi 9179 9180 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182 9183 eval supported=\$$cacheid 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9185$as_echo "$supported" >&6; } 9186 if test "$supported" = "yes" ; then 9187 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9188 found="yes" 9189 fi 9190 fi 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206xorg_testset_save_CFLAGS="$CFLAGS" 9207 9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9213 $as_echo_n "(cached) " >&6 9214else 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218_ACEOF 9219if ac_fn_c_try_compile "$LINENO"; then : 9220 xorg_cv_cc_flag_unknown_warning_option=yes 9221else 9222 xorg_cv_cc_flag_unknown_warning_option=no 9223fi 9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9225fi 9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9229 CFLAGS="$xorg_testset_save_CFLAGS" 9230fi 9231 9232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 fi 9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243/* end confdefs.h. */ 9244int i; 9245_ACEOF 9246if ac_fn_c_try_compile "$LINENO"; then : 9247 xorg_cv_cc_flag_unused_command_line_argument=yes 9248else 9249 xorg_cv_cc_flag_unused_command_line_argument=no 9250fi 9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9256 CFLAGS="$xorg_testset_save_CFLAGS" 9257fi 9258 9259found="no" 9260 9261 if test $found = "no" ; then 9262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9264 fi 9265 9266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9268 fi 9269 9270 CFLAGS="$CFLAGS -Warray-bounds" 9271 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9273$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9274 cacheid=xorg_cv_cc_flag__Warray_bounds 9275 if eval \${$cacheid+:} false; then : 9276 $as_echo_n "(cached) " >&6 9277else 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280int i; 9281int 9282main () 9283{ 9284 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289if ac_fn_c_try_link "$LINENO"; then : 9290 eval $cacheid=yes 9291else 9292 eval $cacheid=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext \ 9295 conftest$ac_exeext conftest.$ac_ext 9296fi 9297 9298 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300 9301 eval supported=\$$cacheid 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9303$as_echo "$supported" >&6; } 9304 if test "$supported" = "yes" ; then 9305 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9306 found="yes" 9307 fi 9308 fi 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324xorg_testset_save_CFLAGS="$CFLAGS" 9325 9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335int i; 9336_ACEOF 9337if ac_fn_c_try_compile "$LINENO"; then : 9338 xorg_cv_cc_flag_unknown_warning_option=yes 9339else 9340 xorg_cv_cc_flag_unknown_warning_option=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9343fi 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9347 CFLAGS="$xorg_testset_save_CFLAGS" 9348fi 9349 9350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 fi 9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362int i; 9363_ACEOF 9364if ac_fn_c_try_compile "$LINENO"; then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366else 9367 xorg_cv_cc_flag_unused_command_line_argument=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9370fi 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375fi 9376 9377found="no" 9378 9379 if test $found = "no" ; then 9380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 fi 9383 9384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386 fi 9387 9388 CFLAGS="$CFLAGS -Wwrite-strings" 9389 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9391$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9392 cacheid=xorg_cv_cc_flag__Wwrite_strings 9393 if eval \${$cacheid+:} false; then : 9394 $as_echo_n "(cached) " >&6 9395else 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398int i; 9399int 9400main () 9401{ 9402 9403 ; 9404 return 0; 9405} 9406_ACEOF 9407if ac_fn_c_try_link "$LINENO"; then : 9408 eval $cacheid=yes 9409else 9410 eval $cacheid=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext \ 9413 conftest$ac_exeext conftest.$ac_ext 9414fi 9415 9416 9417 CFLAGS="$xorg_testset_save_CFLAGS" 9418 9419 eval supported=\$$cacheid 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9421$as_echo "$supported" >&6; } 9422 if test "$supported" = "yes" ; then 9423 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9424 found="yes" 9425 fi 9426 fi 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442xorg_testset_save_CFLAGS="$CFLAGS" 9443 9444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9449 $as_echo_n "(cached) " >&6 9450else 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453int i; 9454_ACEOF 9455if ac_fn_c_try_compile "$LINENO"; then : 9456 xorg_cv_cc_flag_unknown_warning_option=yes 9457else 9458 xorg_cv_cc_flag_unknown_warning_option=no 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9461fi 9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9465 CFLAGS="$xorg_testset_save_CFLAGS" 9466fi 9467 9468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 fi 9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481_ACEOF 9482if ac_fn_c_try_compile "$LINENO"; then : 9483 xorg_cv_cc_flag_unused_command_line_argument=yes 9484else 9485 xorg_cv_cc_flag_unused_command_line_argument=no 9486fi 9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9488fi 9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493fi 9494 9495found="no" 9496 9497 if test $found = "no" ; then 9498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9500 fi 9501 9502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9504 fi 9505 9506 CFLAGS="$CFLAGS -Waddress" 9507 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9509$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9510 cacheid=xorg_cv_cc_flag__Waddress 9511 if eval \${$cacheid+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515/* end confdefs.h. */ 9516int i; 9517int 9518main () 9519{ 9520 9521 ; 9522 return 0; 9523} 9524_ACEOF 9525if ac_fn_c_try_link "$LINENO"; then : 9526 eval $cacheid=yes 9527else 9528 eval $cacheid=no 9529fi 9530rm -f core conftest.err conftest.$ac_objext \ 9531 conftest$ac_exeext conftest.$ac_ext 9532fi 9533 9534 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536 9537 eval supported=\$$cacheid 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9539$as_echo "$supported" >&6; } 9540 if test "$supported" = "yes" ; then 9541 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9542 found="yes" 9543 fi 9544 fi 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560xorg_testset_save_CFLAGS="$CFLAGS" 9561 9562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570/* end confdefs.h. */ 9571int i; 9572_ACEOF 9573if ac_fn_c_try_compile "$LINENO"; then : 9574 xorg_cv_cc_flag_unknown_warning_option=yes 9575else 9576 xorg_cv_cc_flag_unknown_warning_option=no 9577fi 9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9579fi 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9583 CFLAGS="$xorg_testset_save_CFLAGS" 9584fi 9585 9586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9589 fi 9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598int i; 9599_ACEOF 9600if ac_fn_c_try_compile "$LINENO"; then : 9601 xorg_cv_cc_flag_unused_command_line_argument=yes 9602else 9603 xorg_cv_cc_flag_unused_command_line_argument=no 9604fi 9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9606fi 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611fi 9612 9613found="no" 9614 9615 if test $found = "no" ; then 9616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 9620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 fi 9623 9624 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9625 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9627$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9628 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9629 if eval \${$cacheid+:} false; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633/* end confdefs.h. */ 9634int i; 9635int 9636main () 9637{ 9638 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643if ac_fn_c_try_link "$LINENO"; then : 9644 eval $cacheid=yes 9645else 9646 eval $cacheid=no 9647fi 9648rm -f core conftest.err conftest.$ac_objext \ 9649 conftest$ac_exeext conftest.$ac_ext 9650fi 9651 9652 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654 9655 eval supported=\$$cacheid 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9657$as_echo "$supported" >&6; } 9658 if test "$supported" = "yes" ; then 9659 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9660 found="yes" 9661 fi 9662 fi 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678xorg_testset_save_CFLAGS="$CFLAGS" 9679 9680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9685 $as_echo_n "(cached) " >&6 9686else 9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690_ACEOF 9691if ac_fn_c_try_compile "$LINENO"; then : 9692 xorg_cv_cc_flag_unknown_warning_option=yes 9693else 9694 xorg_cv_cc_flag_unknown_warning_option=no 9695fi 9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9701 CFLAGS="$xorg_testset_save_CFLAGS" 9702fi 9703 9704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 fi 9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716int i; 9717_ACEOF 9718if ac_fn_c_try_compile "$LINENO"; then : 9719 xorg_cv_cc_flag_unused_command_line_argument=yes 9720else 9721 xorg_cv_cc_flag_unused_command_line_argument=no 9722fi 9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9724fi 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729fi 9730 9731found="no" 9732 9733 if test $found = "no" ; then 9734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9736 fi 9737 9738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9740 fi 9741 9742 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9743 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 9745$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 9746 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9747 if eval \${$cacheid+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int i; 9753int 9754main () 9755{ 9756 9757 ; 9758 return 0; 9759} 9760_ACEOF 9761if ac_fn_c_try_link "$LINENO"; then : 9762 eval $cacheid=yes 9763else 9764 eval $cacheid=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext \ 9767 conftest$ac_exeext conftest.$ac_ext 9768fi 9769 9770 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772 9773 eval supported=\$$cacheid 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9775$as_echo "$supported" >&6; } 9776 if test "$supported" = "yes" ; then 9777 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9778 found="yes" 9779 fi 9780 fi 9781 9782 9783fi 9784 9785 9786 9787 9788 9789 9790 9791 CWARNFLAGS="$BASE_CFLAGS" 9792 if test "x$GCC" = xyes ; then 9793 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9794 fi 9795 9796 9797 9798 9799 9800 9801 9802 9803# Check whether --enable-strict-compilation was given. 9804if test "${enable_strict_compilation+set}" = set; then : 9805 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9806else 9807 STRICT_COMPILE=no 9808fi 9809 9810 9811 9812 9813 9814 9815STRICT_CFLAGS="" 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829xorg_testset_save_CFLAGS="$CFLAGS" 9830 9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839/* end confdefs.h. */ 9840int i; 9841_ACEOF 9842if ac_fn_c_try_compile "$LINENO"; then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844else 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848fi 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853fi 9854 9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864else 9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867int i; 9868_ACEOF 9869if ac_fn_c_try_compile "$LINENO"; then : 9870 xorg_cv_cc_flag_unused_command_line_argument=yes 9871else 9872 xorg_cv_cc_flag_unused_command_line_argument=no 9873fi 9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9875fi 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880fi 9881 9882found="no" 9883 9884 if test $found = "no" ; then 9885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 fi 9888 9889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9891 fi 9892 9893 CFLAGS="$CFLAGS -pedantic" 9894 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 9896$as_echo_n "checking if $CC supports-pedantic... " >&6; } 9897 cacheid=xorg_cv_cc_flag__pedantic 9898 if eval \${$cacheid+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904int 9905main () 9906{ 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912if ac_fn_c_try_link "$LINENO"; then : 9913 eval $cacheid=yes 9914else 9915 eval $cacheid=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext \ 9918 conftest$ac_exeext conftest.$ac_ext 9919fi 9920 9921 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923 9924 eval supported=\$$cacheid 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9926$as_echo "$supported" >&6; } 9927 if test "$supported" = "yes" ; then 9928 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9929 found="yes" 9930 fi 9931 fi 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947xorg_testset_save_CFLAGS="$CFLAGS" 9948 9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959_ACEOF 9960if ac_fn_c_try_compile "$LINENO"; then : 9961 xorg_cv_cc_flag_unknown_warning_option=yes 9962else 9963 xorg_cv_cc_flag_unknown_warning_option=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971fi 9972 9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 fi 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO"; then : 9988 xorg_cv_cc_flag_unused_command_line_argument=yes 9989else 9990 xorg_cv_cc_flag_unused_command_line_argument=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993fi 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998fi 9999 10000found="no" 10001 10002 if test $found = "no" ; then 10003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 fi 10006 10007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 fi 10010 10011 CFLAGS="$CFLAGS -Werror" 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10014$as_echo_n "checking if $CC supports-Werror... " >&6; } 10015 cacheid=xorg_cv_cc_flag__Werror 10016 if eval \${$cacheid+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022int 10023main () 10024{ 10025 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030if ac_fn_c_try_link "$LINENO"; then : 10031 eval $cacheid=yes 10032else 10033 eval $cacheid=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext \ 10036 conftest$ac_exeext conftest.$ac_ext 10037fi 10038 10039 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 10042 eval supported=\$$cacheid 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10044$as_echo "$supported" >&6; } 10045 if test "$supported" = "yes" ; then 10046 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10047 found="yes" 10048 fi 10049 fi 10050 10051 if test $found = "no" ; then 10052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 fi 10055 10056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10058 fi 10059 10060 CFLAGS="$CFLAGS -errwarn" 10061 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10063$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10064 cacheid=xorg_cv_cc_flag__errwarn 10065 if eval \${$cacheid+:} false; then : 10066 $as_echo_n "(cached) " >&6 10067else 10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10069/* end confdefs.h. */ 10070int i; 10071int 10072main () 10073{ 10074 10075 ; 10076 return 0; 10077} 10078_ACEOF 10079if ac_fn_c_try_link "$LINENO"; then : 10080 eval $cacheid=yes 10081else 10082 eval $cacheid=no 10083fi 10084rm -f core conftest.err conftest.$ac_objext \ 10085 conftest$ac_exeext conftest.$ac_ext 10086fi 10087 10088 10089 CFLAGS="$xorg_testset_save_CFLAGS" 10090 10091 eval supported=\$$cacheid 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10093$as_echo "$supported" >&6; } 10094 if test "$supported" = "yes" ; then 10095 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10096 found="yes" 10097 fi 10098 fi 10099 10100 10101 10102# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10103# activate it with -Werror, so we add it here explicitly. 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117xorg_testset_save_CFLAGS="$CFLAGS" 10118 10119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10124 $as_echo_n "(cached) " >&6 10125else 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int i; 10129_ACEOF 10130if ac_fn_c_try_compile "$LINENO"; then : 10131 xorg_cv_cc_flag_unknown_warning_option=yes 10132else 10133 xorg_cv_cc_flag_unknown_warning_option=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141fi 10142 10143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 fi 10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154/* end confdefs.h. */ 10155int i; 10156_ACEOF 10157if ac_fn_c_try_compile "$LINENO"; then : 10158 xorg_cv_cc_flag_unused_command_line_argument=yes 10159else 10160 xorg_cv_cc_flag_unused_command_line_argument=no 10161fi 10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10163fi 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10167 CFLAGS="$xorg_testset_save_CFLAGS" 10168fi 10169 10170found="no" 10171 10172 if test $found = "no" ; then 10173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 10177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 fi 10180 10181 CFLAGS="$CFLAGS -Werror=attributes" 10182 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10184$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10185 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10186 if eval \${$cacheid+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191int i; 10192int 10193main () 10194{ 10195 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200if ac_fn_c_try_link "$LINENO"; then : 10201 eval $cacheid=yes 10202else 10203 eval $cacheid=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207fi 10208 10209 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211 10212 eval supported=\$$cacheid 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10214$as_echo "$supported" >&6; } 10215 if test "$supported" = "yes" ; then 10216 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10217 found="yes" 10218 fi 10219 fi 10220 10221 10222 10223if test "x$STRICT_COMPILE" = "xyes"; then 10224 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10225 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10226fi 10227 10228 10229 10230 10231 10232 10233cat >>confdefs.h <<_ACEOF 10234#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10235_ACEOF 10236 10237 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10238 if test "x$PVM" = "x"; then 10239 PVM="0" 10240 fi 10241 10242cat >>confdefs.h <<_ACEOF 10243#define PACKAGE_VERSION_MINOR $PVM 10244_ACEOF 10245 10246 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10247 if test "x$PVP" = "x"; then 10248 PVP="0" 10249 fi 10250 10251cat >>confdefs.h <<_ACEOF 10252#define PACKAGE_VERSION_PATCHLEVEL $PVP 10253_ACEOF 10254 10255 10256 10257CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10258mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10259|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10260echo 'git directory not found: installing possibly empty changelog.' >&2)" 10261 10262 10263 10264 10265macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10266INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10267mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10268|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10269echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10270 10271 10272 10273 10274 10275 10276if test x$APP_MAN_SUFFIX = x ; then 10277 APP_MAN_SUFFIX=1 10278fi 10279if test x$APP_MAN_DIR = x ; then 10280 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10281fi 10282 10283if test x$LIB_MAN_SUFFIX = x ; then 10284 LIB_MAN_SUFFIX=3 10285fi 10286if test x$LIB_MAN_DIR = x ; then 10287 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10288fi 10289 10290if test x$FILE_MAN_SUFFIX = x ; then 10291 case $host_os in 10292 solaris*) FILE_MAN_SUFFIX=4 ;; 10293 *) FILE_MAN_SUFFIX=5 ;; 10294 esac 10295fi 10296if test x$FILE_MAN_DIR = x ; then 10297 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10298fi 10299 10300if test x$MISC_MAN_SUFFIX = x ; then 10301 case $host_os in 10302 solaris*) MISC_MAN_SUFFIX=5 ;; 10303 *) MISC_MAN_SUFFIX=7 ;; 10304 esac 10305fi 10306if test x$MISC_MAN_DIR = x ; then 10307 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10308fi 10309 10310if test x$DRIVER_MAN_SUFFIX = x ; then 10311 case $host_os in 10312 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10313 *) DRIVER_MAN_SUFFIX=4 ;; 10314 esac 10315fi 10316if test x$DRIVER_MAN_DIR = x ; then 10317 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10318fi 10319 10320if test x$ADMIN_MAN_SUFFIX = x ; then 10321 case $host_os in 10322 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10323 *) ADMIN_MAN_SUFFIX=8 ;; 10324 esac 10325fi 10326if test x$ADMIN_MAN_DIR = x ; then 10327 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10328fi 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344XORG_MAN_PAGE="X Version 11" 10345 10346MAN_SUBSTS="\ 10347 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10348 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10349 -e 's|__xservername__|Xorg|g' \ 10350 -e 's|__xconfigfile__|xorg.conf|g' \ 10351 -e 's|__projectroot__|\$(prefix)|g' \ 10352 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10353 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10354 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10355 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10356 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10357 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10358 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10359 10360 10361 10362# Check whether --enable-silent-rules was given. 10363if test "${enable_silent_rules+set}" = set; then : 10364 enableval=$enable_silent_rules; 10365fi 10366 10367case $enable_silent_rules in 10368yes) AM_DEFAULT_VERBOSITY=0;; 10369no) AM_DEFAULT_VERBOSITY=1;; 10370*) AM_DEFAULT_VERBOSITY=0;; 10371esac 10372AM_BACKSLASH='\' 10373 10374 10375 10376 10377# Check whether --with-xkb-config-root was given. 10378if test "${with_xkb_config_root+set}" = set; then : 10379 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 10380else 10381 XKBCONFIGROOT=${datadir}/X11/xkb 10382fi 10383 10384 10385 10386# Checks for pkg-config packages 10387 10388pkg_failed=no 10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETXKBMAP" >&5 10390$as_echo_n "checking for SETXKBMAP... " >&6; } 10391 10392if test -n "$SETXKBMAP_CFLAGS"; then 10393 pkg_cv_SETXKBMAP_CFLAGS="$SETXKBMAP_CFLAGS" 10394 elif test -n "$PKG_CONFIG"; then 10395 if test -n "$PKG_CONFIG" && \ 10396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 10397 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 10398 ac_status=$? 10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10400 test $ac_status = 0; }; then 10401 pkg_cv_SETXKBMAP_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null` 10402else 10403 pkg_failed=yes 10404fi 10405 else 10406 pkg_failed=untried 10407fi 10408if test -n "$SETXKBMAP_LIBS"; then 10409 pkg_cv_SETXKBMAP_LIBS="$SETXKBMAP_LIBS" 10410 elif test -n "$PKG_CONFIG"; then 10411 if test -n "$PKG_CONFIG" && \ 10412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5 10413 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5 10414 ac_status=$? 10415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10416 test $ac_status = 0; }; then 10417 pkg_cv_SETXKBMAP_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null` 10418else 10419 pkg_failed=yes 10420fi 10421 else 10422 pkg_failed=untried 10423fi 10424 10425 10426 10427if test $pkg_failed = yes; then 10428 10429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10430 _pkg_short_errors_supported=yes 10431else 10432 _pkg_short_errors_supported=no 10433fi 10434 if test $_pkg_short_errors_supported = yes; then 10435 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1` 10436 else 10437 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1` 10438 fi 10439 # Put the nasty error message in config.log where it belongs 10440 echo "$SETXKBMAP_PKG_ERRORS" >&5 10441 10442 as_fn_error $? "Package requirements (xkbfile x11) were not met: 10443 10444$SETXKBMAP_PKG_ERRORS 10445 10446Consider adjusting the PKG_CONFIG_PATH environment variable if you 10447installed software in a non-standard prefix. 10448 10449Alternatively, you may set the environment variables SETXKBMAP_CFLAGS 10450and SETXKBMAP_LIBS to avoid the need to call pkg-config. 10451See the pkg-config man page for more details. 10452" "$LINENO" 5 10453elif test $pkg_failed = untried; then 10454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10456as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10457is in your PATH or set the PKG_CONFIG environment variable to the full 10458path to pkg-config. 10459 10460Alternatively, you may set the environment variables SETXKBMAP_CFLAGS 10461and SETXKBMAP_LIBS to avoid the need to call pkg-config. 10462See the pkg-config man page for more details. 10463 10464To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10465See \`config.log' for more details" "$LINENO" 5; } 10466else 10467 SETXKBMAP_CFLAGS=$pkg_cv_SETXKBMAP_CFLAGS 10468 SETXKBMAP_LIBS=$pkg_cv_SETXKBMAP_LIBS 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10470$as_echo "yes" >&6; } 10471 : 10472fi 10473 10474# Allow checking code with lint, sparse, etc. 10475 10476 10477 10478 10479 10480# Check whether --with-lint was given. 10481if test "${with_lint+set}" = set; then : 10482 withval=$with_lint; use_lint=$withval 10483else 10484 use_lint=no 10485fi 10486 10487 10488# Obtain platform specific info like program name and options 10489# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10490case $host_os in 10491 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10492 lint_name=splint 10493 lint_options="-badflag" 10494 ;; 10495 *freebsd* | *netbsd*) 10496 lint_name=lint 10497 lint_options="-u -b" 10498 ;; 10499 *solaris*) 10500 lint_name=lint 10501 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10502 ;; 10503esac 10504 10505# Test for the presence of the program (either guessed by the code or spelled out by the user) 10506if test "x$use_lint" = x"yes" ; then 10507 # Extract the first word of "$lint_name", so it can be a program name with args. 10508set dummy $lint_name; ac_word=$2 10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10510$as_echo_n "checking for $ac_word... " >&6; } 10511if ${ac_cv_path_LINT+:} false; then : 10512 $as_echo_n "(cached) " >&6 10513else 10514 case $LINT in 10515 [\\/]* | ?:[\\/]*) 10516 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10517 ;; 10518 *) 10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10520for as_dir in $PATH 10521do 10522 IFS=$as_save_IFS 10523 test -z "$as_dir" && as_dir=. 10524 for ac_exec_ext in '' $ac_executable_extensions; do 10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10526 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10528 break 2 10529 fi 10530done 10531 done 10532IFS=$as_save_IFS 10533 10534 ;; 10535esac 10536fi 10537LINT=$ac_cv_path_LINT 10538if test -n "$LINT"; then 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10540$as_echo "$LINT" >&6; } 10541else 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10543$as_echo "no" >&6; } 10544fi 10545 10546 10547 if test "x$LINT" = "x"; then 10548 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10549 fi 10550elif test "x$use_lint" = x"no" ; then 10551 if test "x$LINT" != "x"; then 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10553$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10554 fi 10555else 10556 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10557fi 10558 10559# User supplied flags override default flags 10560if test "x$LINT_FLAGS" != "x"; then 10561 lint_options=$LINT_FLAGS 10562fi 10563 10564LINT_FLAGS=$lint_options 10565 10566 if test "x$LINT" != x; then 10567 LINT_TRUE= 10568 LINT_FALSE='#' 10569else 10570 LINT_TRUE='#' 10571 LINT_FALSE= 10572fi 10573 10574 10575 10576 10577ac_config_files="$ac_config_files Makefile man/Makefile" 10578 10579cat >confcache <<\_ACEOF 10580# This file is a shell script that caches the results of configure 10581# tests run on this system so they can be shared between configure 10582# scripts and configure runs, see configure's option --config-cache. 10583# It is not useful on other systems. If it contains results you don't 10584# want to keep, you may remove or edit it. 10585# 10586# config.status only pays attention to the cache file if you give it 10587# the --recheck option to rerun configure. 10588# 10589# `ac_cv_env_foo' variables (set or unset) will be overridden when 10590# loading this file, other *unset* `ac_cv_foo' will be assigned the 10591# following values. 10592 10593_ACEOF 10594 10595# The following way of writing the cache mishandles newlines in values, 10596# but we know of no workaround that is simple, portable, and efficient. 10597# So, we kill variables containing newlines. 10598# Ultrix sh set writes to stderr and can't be redirected directly, 10599# and sets the high bit in the cache file unless we assign to the vars. 10600( 10601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10602 eval ac_val=\$$ac_var 10603 case $ac_val in #( 10604 *${as_nl}*) 10605 case $ac_var in #( 10606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10608 esac 10609 case $ac_var in #( 10610 _ | IFS | as_nl) ;; #( 10611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10612 *) { eval $ac_var=; unset $ac_var;} ;; 10613 esac ;; 10614 esac 10615 done 10616 10617 (set) 2>&1 | 10618 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10619 *${as_nl}ac_space=\ *) 10620 # `set' does not quote correctly, so add quotes: double-quote 10621 # substitution turns \\\\ into \\, and sed turns \\ into \. 10622 sed -n \ 10623 "s/'/'\\\\''/g; 10624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10625 ;; #( 10626 *) 10627 # `set' quotes correctly as required by POSIX, so do not add quotes. 10628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10629 ;; 10630 esac | 10631 sort 10632) | 10633 sed ' 10634 /^ac_cv_env_/b end 10635 t clear 10636 :clear 10637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10638 t end 10639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10640 :end' >>confcache 10641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10642 if test -w "$cache_file"; then 10643 if test "x$cache_file" != "x/dev/null"; then 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10645$as_echo "$as_me: updating cache $cache_file" >&6;} 10646 if test ! -f "$cache_file" || test -h "$cache_file"; then 10647 cat confcache >"$cache_file" 10648 else 10649 case $cache_file in #( 10650 */* | ?:*) 10651 mv -f confcache "$cache_file"$$ && 10652 mv -f "$cache_file"$$ "$cache_file" ;; #( 10653 *) 10654 mv -f confcache "$cache_file" ;; 10655 esac 10656 fi 10657 fi 10658 else 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10661 fi 10662fi 10663rm -f confcache 10664 10665test "x$prefix" = xNONE && prefix=$ac_default_prefix 10666# Let make expand exec_prefix. 10667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10668 10669DEFS=-DHAVE_CONFIG_H 10670 10671ac_libobjs= 10672ac_ltlibobjs= 10673U= 10674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10675 # 1. Remove the extension, and $U if already installed. 10676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10679 # will be set to the directory where LIBOBJS objects are built. 10680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10682done 10683LIBOBJS=$ac_libobjs 10684 10685LTLIBOBJS=$ac_ltlibobjs 10686 10687 10688 if test -n "$EXEEXT"; then 10689 am__EXEEXT_TRUE= 10690 am__EXEEXT_FALSE='#' 10691else 10692 am__EXEEXT_TRUE='#' 10693 am__EXEEXT_FALSE= 10694fi 10695 10696if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10697 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10698Usually this means the macro was only invoked conditionally." "$LINENO" 5 10699fi 10700if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10701 as_fn_error $? "conditional \"AMDEP\" was never defined. 10702Usually this means the macro was only invoked conditionally." "$LINENO" 5 10703fi 10704if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10706Usually this means the macro was only invoked conditionally." "$LINENO" 5 10707fi 10708if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10709 as_fn_error $? "conditional \"LINT\" was never defined. 10710Usually this means the macro was only invoked conditionally." "$LINENO" 5 10711fi 10712 10713: "${CONFIG_STATUS=./config.status}" 10714ac_write_fail=0 10715ac_clean_files_save=$ac_clean_files 10716ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10717{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10718$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10719as_write_fail=0 10720cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10721#! $SHELL 10722# Generated by $as_me. 10723# Run this file to recreate the current configuration. 10724# Compiler output produced by configure, useful for debugging 10725# configure, is in config.log if it exists. 10726 10727debug=false 10728ac_cs_recheck=false 10729ac_cs_silent=false 10730 10731SHELL=\${CONFIG_SHELL-$SHELL} 10732export SHELL 10733_ASEOF 10734cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10735## -------------------- ## 10736## M4sh Initialization. ## 10737## -------------------- ## 10738 10739# Be more Bourne compatible 10740DUALCASE=1; export DUALCASE # for MKS sh 10741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10742 emulate sh 10743 NULLCMD=: 10744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10745 # is contrary to our usage. Disable this feature. 10746 alias -g '${1+"$@"}'='"$@"' 10747 setopt NO_GLOB_SUBST 10748else 10749 case `(set -o) 2>/dev/null` in #( 10750 *posix*) : 10751 set -o posix ;; #( 10752 *) : 10753 ;; 10754esac 10755fi 10756 10757 10758as_nl=' 10759' 10760export as_nl 10761# Printing a long string crashes Solaris 7 /usr/bin/printf. 10762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10765# Prefer a ksh shell builtin over an external printf program on Solaris, 10766# but without wasting forks for bash or zsh. 10767if test -z "$BASH_VERSION$ZSH_VERSION" \ 10768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10769 as_echo='print -r --' 10770 as_echo_n='print -rn --' 10771elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10772 as_echo='printf %s\n' 10773 as_echo_n='printf %s' 10774else 10775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10777 as_echo_n='/usr/ucb/echo -n' 10778 else 10779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10780 as_echo_n_body='eval 10781 arg=$1; 10782 case $arg in #( 10783 *"$as_nl"*) 10784 expr "X$arg" : "X\\(.*\\)$as_nl"; 10785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10786 esac; 10787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10788 ' 10789 export as_echo_n_body 10790 as_echo_n='sh -c $as_echo_n_body as_echo' 10791 fi 10792 export as_echo_body 10793 as_echo='sh -c $as_echo_body as_echo' 10794fi 10795 10796# The user is always right. 10797if test "${PATH_SEPARATOR+set}" != set; then 10798 PATH_SEPARATOR=: 10799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10801 PATH_SEPARATOR=';' 10802 } 10803fi 10804 10805 10806# IFS 10807# We need space, tab and new line, in precisely that order. Quoting is 10808# there to prevent editors from complaining about space-tab. 10809# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10810# splitting by setting IFS to empty value.) 10811IFS=" "" $as_nl" 10812 10813# Find who we are. Look in the path if we contain no directory separator. 10814as_myself= 10815case $0 in #(( 10816 *[\\/]* ) as_myself=$0 ;; 10817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10818for as_dir in $PATH 10819do 10820 IFS=$as_save_IFS 10821 test -z "$as_dir" && as_dir=. 10822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10823 done 10824IFS=$as_save_IFS 10825 10826 ;; 10827esac 10828# We did not find ourselves, most probably we were run as `sh COMMAND' 10829# in which case we are not to be found in the path. 10830if test "x$as_myself" = x; then 10831 as_myself=$0 10832fi 10833if test ! -f "$as_myself"; then 10834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10835 exit 1 10836fi 10837 10838# Unset variables that we do not need and which cause bugs (e.g. in 10839# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10840# suppresses any "Segmentation fault" message there. '((' could 10841# trigger a bug in pdksh 5.2.14. 10842for as_var in BASH_ENV ENV MAIL MAILPATH 10843do eval test x\${$as_var+set} = xset \ 10844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10845done 10846PS1='$ ' 10847PS2='> ' 10848PS4='+ ' 10849 10850# NLS nuisances. 10851LC_ALL=C 10852export LC_ALL 10853LANGUAGE=C 10854export LANGUAGE 10855 10856# CDPATH. 10857(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10858 10859 10860# as_fn_error STATUS ERROR [LINENO LOG_FD] 10861# ---------------------------------------- 10862# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10863# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10864# script with STATUS, using 1 if that was 0. 10865as_fn_error () 10866{ 10867 as_status=$1; test $as_status -eq 0 && as_status=1 10868 if test "$4"; then 10869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10871 fi 10872 $as_echo "$as_me: error: $2" >&2 10873 as_fn_exit $as_status 10874} # as_fn_error 10875 10876 10877# as_fn_set_status STATUS 10878# ----------------------- 10879# Set $? to STATUS, without forking. 10880as_fn_set_status () 10881{ 10882 return $1 10883} # as_fn_set_status 10884 10885# as_fn_exit STATUS 10886# ----------------- 10887# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10888as_fn_exit () 10889{ 10890 set +e 10891 as_fn_set_status $1 10892 exit $1 10893} # as_fn_exit 10894 10895# as_fn_unset VAR 10896# --------------- 10897# Portably unset VAR. 10898as_fn_unset () 10899{ 10900 { eval $1=; unset $1;} 10901} 10902as_unset=as_fn_unset 10903# as_fn_append VAR VALUE 10904# ---------------------- 10905# Append the text in VALUE to the end of the definition contained in VAR. Take 10906# advantage of any shell optimizations that allow amortized linear growth over 10907# repeated appends, instead of the typical quadratic growth present in naive 10908# implementations. 10909if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10910 eval 'as_fn_append () 10911 { 10912 eval $1+=\$2 10913 }' 10914else 10915 as_fn_append () 10916 { 10917 eval $1=\$$1\$2 10918 } 10919fi # as_fn_append 10920 10921# as_fn_arith ARG... 10922# ------------------ 10923# Perform arithmetic evaluation on the ARGs, and store the result in the 10924# global $as_val. Take advantage of shells that can avoid forks. The arguments 10925# must be portable across $(()) and expr. 10926if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10927 eval 'as_fn_arith () 10928 { 10929 as_val=$(( $* )) 10930 }' 10931else 10932 as_fn_arith () 10933 { 10934 as_val=`expr "$@" || test $? -eq 1` 10935 } 10936fi # as_fn_arith 10937 10938 10939if expr a : '\(a\)' >/dev/null 2>&1 && 10940 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10941 as_expr=expr 10942else 10943 as_expr=false 10944fi 10945 10946if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10947 as_basename=basename 10948else 10949 as_basename=false 10950fi 10951 10952if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10953 as_dirname=dirname 10954else 10955 as_dirname=false 10956fi 10957 10958as_me=`$as_basename -- "$0" || 10959$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10960 X"$0" : 'X\(//\)$' \| \ 10961 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10962$as_echo X/"$0" | 10963 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10964 s//\1/ 10965 q 10966 } 10967 /^X\/\(\/\/\)$/{ 10968 s//\1/ 10969 q 10970 } 10971 /^X\/\(\/\).*/{ 10972 s//\1/ 10973 q 10974 } 10975 s/.*/./; q'` 10976 10977# Avoid depending upon Character Ranges. 10978as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10979as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10980as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10981as_cr_digits='0123456789' 10982as_cr_alnum=$as_cr_Letters$as_cr_digits 10983 10984ECHO_C= ECHO_N= ECHO_T= 10985case `echo -n x` in #((((( 10986-n*) 10987 case `echo 'xy\c'` in 10988 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10989 xy) ECHO_C='\c';; 10990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10991 ECHO_T=' ';; 10992 esac;; 10993*) 10994 ECHO_N='-n';; 10995esac 10996 10997rm -f conf$$ conf$$.exe conf$$.file 10998if test -d conf$$.dir; then 10999 rm -f conf$$.dir/conf$$.file 11000else 11001 rm -f conf$$.dir 11002 mkdir conf$$.dir 2>/dev/null 11003fi 11004if (echo >conf$$.file) 2>/dev/null; then 11005 if ln -s conf$$.file conf$$ 2>/dev/null; then 11006 as_ln_s='ln -s' 11007 # ... but there are two gotchas: 11008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11010 # In both cases, we have to default to `cp -p'. 11011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11012 as_ln_s='cp -p' 11013 elif ln conf$$.file conf$$ 2>/dev/null; then 11014 as_ln_s=ln 11015 else 11016 as_ln_s='cp -p' 11017 fi 11018else 11019 as_ln_s='cp -p' 11020fi 11021rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11022rmdir conf$$.dir 2>/dev/null 11023 11024 11025# as_fn_mkdir_p 11026# ------------- 11027# Create "$as_dir" as a directory, including parents if necessary. 11028as_fn_mkdir_p () 11029{ 11030 11031 case $as_dir in #( 11032 -*) as_dir=./$as_dir;; 11033 esac 11034 test -d "$as_dir" || eval $as_mkdir_p || { 11035 as_dirs= 11036 while :; do 11037 case $as_dir in #( 11038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11039 *) as_qdir=$as_dir;; 11040 esac 11041 as_dirs="'$as_qdir' $as_dirs" 11042 as_dir=`$as_dirname -- "$as_dir" || 11043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11044 X"$as_dir" : 'X\(//\)[^/]' \| \ 11045 X"$as_dir" : 'X\(//\)$' \| \ 11046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11047$as_echo X"$as_dir" | 11048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11049 s//\1/ 11050 q 11051 } 11052 /^X\(\/\/\)[^/].*/{ 11053 s//\1/ 11054 q 11055 } 11056 /^X\(\/\/\)$/{ 11057 s//\1/ 11058 q 11059 } 11060 /^X\(\/\).*/{ 11061 s//\1/ 11062 q 11063 } 11064 s/.*/./; q'` 11065 test -d "$as_dir" && break 11066 done 11067 test -z "$as_dirs" || eval "mkdir $as_dirs" 11068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11069 11070 11071} # as_fn_mkdir_p 11072if mkdir -p . 2>/dev/null; then 11073 as_mkdir_p='mkdir -p "$as_dir"' 11074else 11075 test -d ./-p && rmdir ./-p 11076 as_mkdir_p=false 11077fi 11078 11079if test -x / >/dev/null 2>&1; then 11080 as_test_x='test -x' 11081else 11082 if ls -dL / >/dev/null 2>&1; then 11083 as_ls_L_option=L 11084 else 11085 as_ls_L_option= 11086 fi 11087 as_test_x=' 11088 eval sh -c '\'' 11089 if test -d "$1"; then 11090 test -d "$1/."; 11091 else 11092 case $1 in #( 11093 -*)set "./$1";; 11094 esac; 11095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11096 ???[sx]*):;;*)false;;esac;fi 11097 '\'' sh 11098 ' 11099fi 11100as_executable_p=$as_test_x 11101 11102# Sed expression to map a string onto a valid CPP name. 11103as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11104 11105# Sed expression to map a string onto a valid variable name. 11106as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11107 11108 11109exec 6>&1 11110## ----------------------------------- ## 11111## Main body of $CONFIG_STATUS script. ## 11112## ----------------------------------- ## 11113_ASEOF 11114test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11115 11116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11117# Save the log message, to keep $0 and so on meaningful, and to 11118# report actual input values of CONFIG_FILES etc. instead of their 11119# values after options handling. 11120ac_log=" 11121This file was extended by setxkbmap $as_me 1.3.0, which was 11122generated by GNU Autoconf 2.68. Invocation command line was 11123 11124 CONFIG_FILES = $CONFIG_FILES 11125 CONFIG_HEADERS = $CONFIG_HEADERS 11126 CONFIG_LINKS = $CONFIG_LINKS 11127 CONFIG_COMMANDS = $CONFIG_COMMANDS 11128 $ $0 $@ 11129 11130on `(hostname || uname -n) 2>/dev/null | sed 1q` 11131" 11132 11133_ACEOF 11134 11135case $ac_config_files in *" 11136"*) set x $ac_config_files; shift; ac_config_files=$*;; 11137esac 11138 11139case $ac_config_headers in *" 11140"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11141esac 11142 11143 11144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11145# Files that config.status was made for. 11146config_files="$ac_config_files" 11147config_headers="$ac_config_headers" 11148config_commands="$ac_config_commands" 11149 11150_ACEOF 11151 11152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11153ac_cs_usage="\ 11154\`$as_me' instantiates files and other configuration actions 11155from templates according to the current configuration. Unless the files 11156and actions are specified as TAGs, all are instantiated by default. 11157 11158Usage: $0 [OPTION]... [TAG]... 11159 11160 -h, --help print this help, then exit 11161 -V, --version print version number and configuration settings, then exit 11162 --config print configuration, then exit 11163 -q, --quiet, --silent 11164 do not print progress messages 11165 -d, --debug don't remove temporary files 11166 --recheck update $as_me by reconfiguring in the same conditions 11167 --file=FILE[:TEMPLATE] 11168 instantiate the configuration file FILE 11169 --header=FILE[:TEMPLATE] 11170 instantiate the configuration header FILE 11171 11172Configuration files: 11173$config_files 11174 11175Configuration headers: 11176$config_headers 11177 11178Configuration commands: 11179$config_commands 11180 11181Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11182 11183_ACEOF 11184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11185ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11186ac_cs_version="\\ 11187setxkbmap config.status 1.3.0 11188configured by $0, generated by GNU Autoconf 2.68, 11189 with options \\"\$ac_cs_config\\" 11190 11191Copyright (C) 2010 Free Software Foundation, Inc. 11192This config.status script is free software; the Free Software Foundation 11193gives unlimited permission to copy, distribute and modify it." 11194 11195ac_pwd='$ac_pwd' 11196srcdir='$srcdir' 11197INSTALL='$INSTALL' 11198MKDIR_P='$MKDIR_P' 11199AWK='$AWK' 11200test -n "\$AWK" || AWK=awk 11201_ACEOF 11202 11203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11204# The default lists apply if the user does not specify any file. 11205ac_need_defaults=: 11206while test $# != 0 11207do 11208 case $1 in 11209 --*=?*) 11210 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11211 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11212 ac_shift=: 11213 ;; 11214 --*=) 11215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11216 ac_optarg= 11217 ac_shift=: 11218 ;; 11219 *) 11220 ac_option=$1 11221 ac_optarg=$2 11222 ac_shift=shift 11223 ;; 11224 esac 11225 11226 case $ac_option in 11227 # Handling of the options. 11228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11229 ac_cs_recheck=: ;; 11230 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11231 $as_echo "$ac_cs_version"; exit ;; 11232 --config | --confi | --conf | --con | --co | --c ) 11233 $as_echo "$ac_cs_config"; exit ;; 11234 --debug | --debu | --deb | --de | --d | -d ) 11235 debug=: ;; 11236 --file | --fil | --fi | --f ) 11237 $ac_shift 11238 case $ac_optarg in 11239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11240 '') as_fn_error $? "missing file argument" ;; 11241 esac 11242 as_fn_append CONFIG_FILES " '$ac_optarg'" 11243 ac_need_defaults=false;; 11244 --header | --heade | --head | --hea ) 11245 $ac_shift 11246 case $ac_optarg in 11247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11248 esac 11249 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11250 ac_need_defaults=false;; 11251 --he | --h) 11252 # Conflict between --help and --header 11253 as_fn_error $? "ambiguous option: \`$1' 11254Try \`$0 --help' for more information.";; 11255 --help | --hel | -h ) 11256 $as_echo "$ac_cs_usage"; exit ;; 11257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11258 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11259 ac_cs_silent=: ;; 11260 11261 # This is an error. 11262 -*) as_fn_error $? "unrecognized option: \`$1' 11263Try \`$0 --help' for more information." ;; 11264 11265 *) as_fn_append ac_config_targets " $1" 11266 ac_need_defaults=false ;; 11267 11268 esac 11269 shift 11270done 11271 11272ac_configure_extra_args= 11273 11274if $ac_cs_silent; then 11275 exec 6>/dev/null 11276 ac_configure_extra_args="$ac_configure_extra_args --silent" 11277fi 11278 11279_ACEOF 11280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11281if \$ac_cs_recheck; then 11282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11283 shift 11284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11285 CONFIG_SHELL='$SHELL' 11286 export CONFIG_SHELL 11287 exec "\$@" 11288fi 11289 11290_ACEOF 11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11292exec 5>>config.log 11293{ 11294 echo 11295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11296## Running $as_me. ## 11297_ASBOX 11298 $as_echo "$ac_log" 11299} >&5 11300 11301_ACEOF 11302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11303# 11304# INIT-COMMANDS 11305# 11306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11307 11308_ACEOF 11309 11310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11311 11312# Handling of arguments. 11313for ac_config_target in $ac_config_targets 11314do 11315 case $ac_config_target in 11316 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11319 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11320 11321 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11322 esac 11323done 11324 11325 11326# If the user did not use the arguments to specify the items to instantiate, 11327# then the envvar interface is used. Set only those that are not. 11328# We use the long form for the default assignment because of an extremely 11329# bizarre bug on SunOS 4.1.3. 11330if $ac_need_defaults; then 11331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11334fi 11335 11336# Have a temporary directory for convenience. Make it in the build tree 11337# simply because there is no reason against having it here, and in addition, 11338# creating and moving files from /tmp can sometimes cause problems. 11339# Hook for its removal unless debugging. 11340# Note that there is a small window in which the directory will not be cleaned: 11341# after its creation but before its name has been assigned to `$tmp'. 11342$debug || 11343{ 11344 tmp= ac_tmp= 11345 trap 'exit_status=$? 11346 : "${ac_tmp:=$tmp}" 11347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11348' 0 11349 trap 'as_fn_exit 1' 1 2 13 15 11350} 11351# Create a (secure) tmp directory for tmp files. 11352 11353{ 11354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11355 test -d "$tmp" 11356} || 11357{ 11358 tmp=./conf$$-$RANDOM 11359 (umask 077 && mkdir "$tmp") 11360} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11361ac_tmp=$tmp 11362 11363# Set up the scripts for CONFIG_FILES section. 11364# No need to generate them if there are no CONFIG_FILES. 11365# This happens for instance with `./config.status config.h'. 11366if test -n "$CONFIG_FILES"; then 11367 11368 11369ac_cr=`echo X | tr X '\015'` 11370# On cygwin, bash can eat \r inside `` if the user requested igncr. 11371# But we know of no other shell where ac_cr would be empty at this 11372# point, so we can use a bashism as a fallback. 11373if test "x$ac_cr" = x; then 11374 eval ac_cr=\$\'\\r\' 11375fi 11376ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11377if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11378 ac_cs_awk_cr='\\r' 11379else 11380 ac_cs_awk_cr=$ac_cr 11381fi 11382 11383echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11384_ACEOF 11385 11386 11387{ 11388 echo "cat >conf$$subs.awk <<_ACEOF" && 11389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11390 echo "_ACEOF" 11391} >conf$$subs.sh || 11392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11393ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11394ac_delim='%!_!# ' 11395for ac_last_try in false false false false false :; do 11396 . ./conf$$subs.sh || 11397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11398 11399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11400 if test $ac_delim_n = $ac_delim_num; then 11401 break 11402 elif $ac_last_try; then 11403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11404 else 11405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11406 fi 11407done 11408rm -f conf$$subs.sh 11409 11410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11411cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11412_ACEOF 11413sed -n ' 11414h 11415s/^/S["/; s/!.*/"]=/ 11416p 11417g 11418s/^[^!]*!// 11419:repl 11420t repl 11421s/'"$ac_delim"'$// 11422t delim 11423:nl 11424h 11425s/\(.\{148\}\)..*/\1/ 11426t more1 11427s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11428p 11429n 11430b repl 11431:more1 11432s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11433p 11434g 11435s/.\{148\}// 11436t nl 11437:delim 11438h 11439s/\(.\{148\}\)..*/\1/ 11440t more2 11441s/["\\]/\\&/g; s/^/"/; s/$/"/ 11442p 11443b 11444:more2 11445s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11446p 11447g 11448s/.\{148\}// 11449t delim 11450' <conf$$subs.awk | sed ' 11451/^[^""]/{ 11452 N 11453 s/\n// 11454} 11455' >>$CONFIG_STATUS || ac_write_fail=1 11456rm -f conf$$subs.awk 11457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11458_ACAWK 11459cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11460 for (key in S) S_is_set[key] = 1 11461 FS = "" 11462 11463} 11464{ 11465 line = $ 0 11466 nfields = split(line, field, "@") 11467 substed = 0 11468 len = length(field[1]) 11469 for (i = 2; i < nfields; i++) { 11470 key = field[i] 11471 keylen = length(key) 11472 if (S_is_set[key]) { 11473 value = S[key] 11474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11475 len += length(value) + length(field[++i]) 11476 substed = 1 11477 } else 11478 len += 1 + keylen 11479 } 11480 11481 print line 11482} 11483 11484_ACAWK 11485_ACEOF 11486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11487if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11489else 11490 cat 11491fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11493_ACEOF 11494 11495# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11496# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11497# trailing colons and then remove the whole line if VPATH becomes empty 11498# (actually we leave an empty line to preserve line numbers). 11499if test "x$srcdir" = x.; then 11500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11501h 11502s/// 11503s/^/:/ 11504s/[ ]*$/:/ 11505s/:\$(srcdir):/:/g 11506s/:\${srcdir}:/:/g 11507s/:@srcdir@:/:/g 11508s/^:*// 11509s/:*$// 11510x 11511s/\(=[ ]*\).*/\1/ 11512G 11513s/\n// 11514s/^[^=]*=[ ]*$// 11515}' 11516fi 11517 11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11519fi # test -n "$CONFIG_FILES" 11520 11521# Set up the scripts for CONFIG_HEADERS section. 11522# No need to generate them if there are no CONFIG_HEADERS. 11523# This happens for instance with `./config.status Makefile'. 11524if test -n "$CONFIG_HEADERS"; then 11525cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11526BEGIN { 11527_ACEOF 11528 11529# Transform confdefs.h into an awk script `defines.awk', embedded as 11530# here-document in config.status, that substitutes the proper values into 11531# config.h.in to produce config.h. 11532 11533# Create a delimiter string that does not exist in confdefs.h, to ease 11534# handling of long lines. 11535ac_delim='%!_!# ' 11536for ac_last_try in false false :; do 11537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11538 if test -z "$ac_tt"; then 11539 break 11540 elif $ac_last_try; then 11541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11542 else 11543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11544 fi 11545done 11546 11547# For the awk script, D is an array of macro values keyed by name, 11548# likewise P contains macro parameters if any. Preserve backslash 11549# newline sequences. 11550 11551ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11552sed -n ' 11553s/.\{148\}/&'"$ac_delim"'/g 11554t rset 11555:rset 11556s/^[ ]*#[ ]*define[ ][ ]*/ / 11557t def 11558d 11559:def 11560s/\\$// 11561t bsnl 11562s/["\\]/\\&/g 11563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11564D["\1"]=" \3"/p 11565s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11566d 11567:bsnl 11568s/["\\]/\\&/g 11569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11570D["\1"]=" \3\\\\\\n"\\/p 11571t cont 11572s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11573t cont 11574d 11575:cont 11576n 11577s/.\{148\}/&'"$ac_delim"'/g 11578t clear 11579:clear 11580s/\\$// 11581t bsnlc 11582s/["\\]/\\&/g; s/^/"/; s/$/"/p 11583d 11584:bsnlc 11585s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11586b cont 11587' <confdefs.h | sed ' 11588s/'"$ac_delim"'/"\\\ 11589"/g' >>$CONFIG_STATUS || ac_write_fail=1 11590 11591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11592 for (key in D) D_is_set[key] = 1 11593 FS = "" 11594} 11595/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11596 line = \$ 0 11597 split(line, arg, " ") 11598 if (arg[1] == "#") { 11599 defundef = arg[2] 11600 mac1 = arg[3] 11601 } else { 11602 defundef = substr(arg[1], 2) 11603 mac1 = arg[2] 11604 } 11605 split(mac1, mac2, "(") #) 11606 macro = mac2[1] 11607 prefix = substr(line, 1, index(line, defundef) - 1) 11608 if (D_is_set[macro]) { 11609 # Preserve the white space surrounding the "#". 11610 print prefix "define", macro P[macro] D[macro] 11611 next 11612 } else { 11613 # Replace #undef with comments. This is necessary, for example, 11614 # in the case of _POSIX_SOURCE, which is predefined and required 11615 # on some systems where configure will not decide to define it. 11616 if (defundef == "undef") { 11617 print "/*", prefix defundef, macro, "*/" 11618 next 11619 } 11620 } 11621} 11622{ print } 11623_ACAWK 11624_ACEOF 11625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11627fi # test -n "$CONFIG_HEADERS" 11628 11629 11630eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11631shift 11632for ac_tag 11633do 11634 case $ac_tag in 11635 :[FHLC]) ac_mode=$ac_tag; continue;; 11636 esac 11637 case $ac_mode$ac_tag in 11638 :[FHL]*:*);; 11639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11640 :[FH]-) ac_tag=-:-;; 11641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11642 esac 11643 ac_save_IFS=$IFS 11644 IFS=: 11645 set x $ac_tag 11646 IFS=$ac_save_IFS 11647 shift 11648 ac_file=$1 11649 shift 11650 11651 case $ac_mode in 11652 :L) ac_source=$1;; 11653 :[FH]) 11654 ac_file_inputs= 11655 for ac_f 11656 do 11657 case $ac_f in 11658 -) ac_f="$ac_tmp/stdin";; 11659 *) # Look for the file first in the build tree, then in the source tree 11660 # (if the path is not absolute). The absolute path cannot be DOS-style, 11661 # because $ac_f cannot contain `:'. 11662 test -f "$ac_f" || 11663 case $ac_f in 11664 [\\/$]*) false;; 11665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11666 esac || 11667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11668 esac 11669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11670 as_fn_append ac_file_inputs " '$ac_f'" 11671 done 11672 11673 # Let's still pretend it is `configure' which instantiates (i.e., don't 11674 # use $as_me), people would be surprised to read: 11675 # /* config.h. Generated by config.status. */ 11676 configure_input='Generated from '` 11677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11678 `' by configure.' 11679 if test x"$ac_file" != x-; then 11680 configure_input="$ac_file. $configure_input" 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11682$as_echo "$as_me: creating $ac_file" >&6;} 11683 fi 11684 # Neutralize special characters interpreted by sed in replacement strings. 11685 case $configure_input in #( 11686 *\&* | *\|* | *\\* ) 11687 ac_sed_conf_input=`$as_echo "$configure_input" | 11688 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11689 *) ac_sed_conf_input=$configure_input;; 11690 esac 11691 11692 case $ac_tag in 11693 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11695 esac 11696 ;; 11697 esac 11698 11699 ac_dir=`$as_dirname -- "$ac_file" || 11700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11701 X"$ac_file" : 'X\(//\)[^/]' \| \ 11702 X"$ac_file" : 'X\(//\)$' \| \ 11703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11704$as_echo X"$ac_file" | 11705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11706 s//\1/ 11707 q 11708 } 11709 /^X\(\/\/\)[^/].*/{ 11710 s//\1/ 11711 q 11712 } 11713 /^X\(\/\/\)$/{ 11714 s//\1/ 11715 q 11716 } 11717 /^X\(\/\).*/{ 11718 s//\1/ 11719 q 11720 } 11721 s/.*/./; q'` 11722 as_dir="$ac_dir"; as_fn_mkdir_p 11723 ac_builddir=. 11724 11725case "$ac_dir" in 11726.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11727*) 11728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11729 # A ".." for each directory in $ac_dir_suffix. 11730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11731 case $ac_top_builddir_sub in 11732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11734 esac ;; 11735esac 11736ac_abs_top_builddir=$ac_pwd 11737ac_abs_builddir=$ac_pwd$ac_dir_suffix 11738# for backward compatibility: 11739ac_top_builddir=$ac_top_build_prefix 11740 11741case $srcdir in 11742 .) # We are building in place. 11743 ac_srcdir=. 11744 ac_top_srcdir=$ac_top_builddir_sub 11745 ac_abs_top_srcdir=$ac_pwd ;; 11746 [\\/]* | ?:[\\/]* ) # Absolute name. 11747 ac_srcdir=$srcdir$ac_dir_suffix; 11748 ac_top_srcdir=$srcdir 11749 ac_abs_top_srcdir=$srcdir ;; 11750 *) # Relative name. 11751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11752 ac_top_srcdir=$ac_top_build_prefix$srcdir 11753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11754esac 11755ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11756 11757 11758 case $ac_mode in 11759 :F) 11760 # 11761 # CONFIG_FILE 11762 # 11763 11764 case $INSTALL in 11765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11767 esac 11768 ac_MKDIR_P=$MKDIR_P 11769 case $MKDIR_P in 11770 [\\/$]* | ?:[\\/]* ) ;; 11771 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11772 esac 11773_ACEOF 11774 11775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11776# If the template does not know about datarootdir, expand it. 11777# FIXME: This hack should be removed a few years after 2.60. 11778ac_datarootdir_hack=; ac_datarootdir_seen= 11779ac_sed_dataroot=' 11780/datarootdir/ { 11781 p 11782 q 11783} 11784/@datadir@/p 11785/@docdir@/p 11786/@infodir@/p 11787/@localedir@/p 11788/@mandir@/p' 11789case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11790*datarootdir*) ac_datarootdir_seen=yes;; 11791*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11793$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11794_ACEOF 11795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11796 ac_datarootdir_hack=' 11797 s&@datadir@&$datadir&g 11798 s&@docdir@&$docdir&g 11799 s&@infodir@&$infodir&g 11800 s&@localedir@&$localedir&g 11801 s&@mandir@&$mandir&g 11802 s&\\\${datarootdir}&$datarootdir&g' ;; 11803esac 11804_ACEOF 11805 11806# Neutralize VPATH when `$srcdir' = `.'. 11807# Shell code in configure.ac might set extrasub. 11808# FIXME: do we really want to maintain this feature? 11809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11810ac_sed_extra="$ac_vpsub 11811$extrasub 11812_ACEOF 11813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11814:t 11815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11816s|@configure_input@|$ac_sed_conf_input|;t t 11817s&@top_builddir@&$ac_top_builddir_sub&;t t 11818s&@top_build_prefix@&$ac_top_build_prefix&;t t 11819s&@srcdir@&$ac_srcdir&;t t 11820s&@abs_srcdir@&$ac_abs_srcdir&;t t 11821s&@top_srcdir@&$ac_top_srcdir&;t t 11822s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11823s&@builddir@&$ac_builddir&;t t 11824s&@abs_builddir@&$ac_abs_builddir&;t t 11825s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11826s&@INSTALL@&$ac_INSTALL&;t t 11827s&@MKDIR_P@&$ac_MKDIR_P&;t t 11828$ac_datarootdir_hack 11829" 11830eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11831 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11832 11833test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11834 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11836 "$ac_tmp/out"`; test -z "$ac_out"; } && 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11838which seems to be undefined. Please make sure it is defined" >&5 11839$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11840which seems to be undefined. Please make sure it is defined" >&2;} 11841 11842 rm -f "$ac_tmp/stdin" 11843 case $ac_file in 11844 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11845 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11846 esac \ 11847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11848 ;; 11849 :H) 11850 # 11851 # CONFIG_HEADER 11852 # 11853 if test x"$ac_file" != x-; then 11854 { 11855 $as_echo "/* $configure_input */" \ 11856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11857 } >"$ac_tmp/config.h" \ 11858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11859 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11861$as_echo "$as_me: $ac_file is unchanged" >&6;} 11862 else 11863 rm -f "$ac_file" 11864 mv "$ac_tmp/config.h" "$ac_file" \ 11865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11866 fi 11867 else 11868 $as_echo "/* $configure_input */" \ 11869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11870 || as_fn_error $? "could not create -" "$LINENO" 5 11871 fi 11872# Compute "$ac_file"'s index in $config_headers. 11873_am_arg="$ac_file" 11874_am_stamp_count=1 11875for _am_header in $config_headers :; do 11876 case $_am_header in 11877 $_am_arg | $_am_arg:* ) 11878 break ;; 11879 * ) 11880 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11881 esac 11882done 11883echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11884$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11885 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11886 X"$_am_arg" : 'X\(//\)$' \| \ 11887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11888$as_echo X"$_am_arg" | 11889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11890 s//\1/ 11891 q 11892 } 11893 /^X\(\/\/\)[^/].*/{ 11894 s//\1/ 11895 q 11896 } 11897 /^X\(\/\/\)$/{ 11898 s//\1/ 11899 q 11900 } 11901 /^X\(\/\).*/{ 11902 s//\1/ 11903 q 11904 } 11905 s/.*/./; q'`/stamp-h$_am_stamp_count 11906 ;; 11907 11908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11909$as_echo "$as_me: executing $ac_file commands" >&6;} 11910 ;; 11911 esac 11912 11913 11914 case $ac_file$ac_mode in 11915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11916 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11917 # are listed without --file. Let's play safe and only enable the eval 11918 # if we detect the quoting. 11919 case $CONFIG_FILES in 11920 *\'*) eval set x "$CONFIG_FILES" ;; 11921 *) set x $CONFIG_FILES ;; 11922 esac 11923 shift 11924 for mf 11925 do 11926 # Strip MF so we end up with the name of the file. 11927 mf=`echo "$mf" | sed -e 's/:.*$//'` 11928 # Check whether this is an Automake generated Makefile or not. 11929 # We used to match only the files named `Makefile.in', but 11930 # some people rename them; so instead we look at the file content. 11931 # Grep'ing the first line is not enough: some people post-process 11932 # each Makefile.in and add a new line on top of each file to say so. 11933 # Grep'ing the whole file is not good either: AIX grep has a line 11934 # limit of 2048, but all sed's we know have understand at least 4000. 11935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11936 dirpart=`$as_dirname -- "$mf" || 11937$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11938 X"$mf" : 'X\(//\)[^/]' \| \ 11939 X"$mf" : 'X\(//\)$' \| \ 11940 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11941$as_echo X"$mf" | 11942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11943 s//\1/ 11944 q 11945 } 11946 /^X\(\/\/\)[^/].*/{ 11947 s//\1/ 11948 q 11949 } 11950 /^X\(\/\/\)$/{ 11951 s//\1/ 11952 q 11953 } 11954 /^X\(\/\).*/{ 11955 s//\1/ 11956 q 11957 } 11958 s/.*/./; q'` 11959 else 11960 continue 11961 fi 11962 # Extract the definition of DEPDIR, am__include, and am__quote 11963 # from the Makefile without running `make'. 11964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11965 test -z "$DEPDIR" && continue 11966 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11967 test -z "am__include" && continue 11968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11969 # When using ansi2knr, U may be empty or an underscore; expand it 11970 U=`sed -n 's/^U = //p' < "$mf"` 11971 # Find all dependency output files, they are included files with 11972 # $(DEPDIR) in their names. We invoke sed twice because it is the 11973 # simplest approach to changing $(DEPDIR) to its actual value in the 11974 # expansion. 11975 for file in `sed -n " 11976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11978 # Make sure the directory exists. 11979 test -f "$dirpart/$file" && continue 11980 fdir=`$as_dirname -- "$file" || 11981$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11982 X"$file" : 'X\(//\)[^/]' \| \ 11983 X"$file" : 'X\(//\)$' \| \ 11984 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11985$as_echo X"$file" | 11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\(\/\/\)[^/].*/{ 11991 s//\1/ 11992 q 11993 } 11994 /^X\(\/\/\)$/{ 11995 s//\1/ 11996 q 11997 } 11998 /^X\(\/\).*/{ 11999 s//\1/ 12000 q 12001 } 12002 s/.*/./; q'` 12003 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12004 # echo "creating $dirpart/$file" 12005 echo '# dummy' > "$dirpart/$file" 12006 done 12007 done 12008} 12009 ;; 12010 12011 esac 12012done # for ac_tag 12013 12014 12015as_fn_exit 0 12016_ACEOF 12017ac_clean_files=$ac_clean_files_save 12018 12019test $ac_write_fail = 0 || 12020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12021 12022 12023# configure is writing to config.log, and then calls config.status. 12024# config.status does its own redirection, appending to config.log. 12025# Unfortunately, on DOS this fails, as config.log is still kept open 12026# by configure, so config.status won't be able to write to it; its 12027# output is simply discarded. So we exec the FD to /dev/null, 12028# effectively closing config.log, so it can be properly (re)opened and 12029# appended to by config.status. When coming back to configure, we 12030# need to make the FD available again. 12031if test "$no_create" != yes; then 12032 ac_cs_success=: 12033 ac_config_status_args= 12034 test "$silent" = yes && 12035 ac_config_status_args="$ac_config_status_args --quiet" 12036 exec 5>/dev/null 12037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12038 exec 5>>config.log 12039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12040 # would make configure fail if this is the last instruction. 12041 $ac_cs_success || as_fn_exit 1 12042fi 12043if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12045$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12046fi 12047 12048