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