configure revision fa2b3b63
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for bdftopcf 1.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='bdftopcf' 583PACKAGE_TARNAME='bdftopcf' 584PACKAGE_VERSION='1.1' 585PACKAGE_STRING='bdftopcf 1.1' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630LINT_FALSE 631LINT_TRUE 632LINT_FLAGS 633LINT 634MAN_SUBSTS 635XORG_MAN_PAGE 636ADMIN_MAN_DIR 637DRIVER_MAN_DIR 638MISC_MAN_DIR 639FILE_MAN_DIR 640LIB_MAN_DIR 641APP_MAN_DIR 642ADMIN_MAN_SUFFIX 643DRIVER_MAN_SUFFIX 644MISC_MAN_SUFFIX 645FILE_MAN_SUFFIX 646LIB_MAN_SUFFIX 647APP_MAN_SUFFIX 648SED 649host_os 650host_vendor 651host_cpu 652host 653build_os 654build_vendor 655build_cpu 656build 657INSTALL_CMD 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661CHANGELOG_CMD 662STRICT_CFLAGS 663CWARNFLAGS 664BASE_CFLAGS 665EGREP 666GREP 667CPP 668am__fastdepCC_FALSE 669am__fastdepCC_TRUE 670CCDEPMODE 671am__nodep 672AMDEPBACKSLASH 673AMDEP_FALSE 674AMDEP_TRUE 675am__quote 676am__include 677DEPDIR 678OBJEXT 679EXEEXT 680ac_ct_CC 681CPPFLAGS 682LDFLAGS 683CFLAGS 684CC 685AM_BACKSLASH 686AM_DEFAULT_VERBOSITY 687AM_DEFAULT_V 688AM_V 689am__untar 690am__tar 691AMTAR 692am__leading_dot 693SET_MAKE 694AWK 695mkdir_p 696MKDIR_P 697INSTALL_STRIP_PROGRAM 698STRIP 699install_sh 700MAKEINFO 701AUTOHEADER 702AUTOMAKE 703AUTOCONF 704ACLOCAL 705VERSION 706PACKAGE 707CYGPATH_W 708am__isrc 709INSTALL_DATA 710INSTALL_SCRIPT 711INSTALL_PROGRAM 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753enable_silent_rules 754enable_dependency_tracking 755enable_selective_werror 756enable_strict_compilation 757with_lint 758' 759 ac_precious_vars='build_alias 760host_alias 761target_alias 762CC 763CFLAGS 764LDFLAGS 765LIBS 766CPPFLAGS 767CPP 768PKG_CONFIG 769PKG_CONFIG_PATH 770PKG_CONFIG_LIBDIR 771LINT 772LINT_FLAGS' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811includedir='${prefix}/include' 812oldincludedir='/usr/include' 813docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 814infodir='${datarootdir}/info' 815htmldir='${docdir}' 816dvidir='${docdir}' 817pdfdir='${docdir}' 818psdir='${docdir}' 819libdir='${exec_prefix}/lib' 820localedir='${datarootdir}/locale' 821mandir='${datarootdir}/man' 822 823ac_prev= 824ac_dashdash= 825for ac_option 826do 827 # If the previous option needs an argument, assign it. 828 if test -n "$ac_prev"; then 829 eval $ac_prev=\$ac_option 830 ac_prev= 831 continue 832 fi 833 834 case $ac_option in 835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 836 *=) ac_optarg= ;; 837 *) ac_optarg=yes ;; 838 esac 839 840 # Accept the important Cygnus configure options, so we can diagnose typos. 841 842 case $ac_dashdash$ac_option in 843 --) 844 ac_dashdash=yes ;; 845 846 -bindir | --bindir | --bindi | --bind | --bin | --bi) 847 ac_prev=bindir ;; 848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 849 bindir=$ac_optarg ;; 850 851 -build | --build | --buil | --bui | --bu) 852 ac_prev=build_alias ;; 853 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 854 build_alias=$ac_optarg ;; 855 856 -cache-file | --cache-file | --cache-fil | --cache-fi \ 857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 858 ac_prev=cache_file ;; 859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 861 cache_file=$ac_optarg ;; 862 863 --config-cache | -C) 864 cache_file=config.cache ;; 865 866 -datadir | --datadir | --datadi | --datad) 867 ac_prev=datadir ;; 868 -datadir=* | --datadir=* | --datadi=* | --datad=*) 869 datadir=$ac_optarg ;; 870 871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 872 | --dataroo | --dataro | --datar) 873 ac_prev=datarootdir ;; 874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 876 datarootdir=$ac_optarg ;; 877 878 -disable-* | --disable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error $? "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=no ;; 893 894 -docdir | --docdir | --docdi | --doc | --do) 895 ac_prev=docdir ;; 896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 897 docdir=$ac_optarg ;; 898 899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 900 ac_prev=dvidir ;; 901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 902 dvidir=$ac_optarg ;; 903 904 -enable-* | --enable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=\$ac_optarg ;; 919 920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 922 | --exec | --exe | --ex) 923 ac_prev=exec_prefix ;; 924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 926 | --exec=* | --exe=* | --ex=*) 927 exec_prefix=$ac_optarg ;; 928 929 -gas | --gas | --ga | --g) 930 # Obsolete; use --with-gas. 931 with_gas=yes ;; 932 933 -help | --help | --hel | --he | -h) 934 ac_init_help=long ;; 935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 936 ac_init_help=recursive ;; 937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 938 ac_init_help=short ;; 939 940 -host | --host | --hos | --ho) 941 ac_prev=host_alias ;; 942 -host=* | --host=* | --hos=* | --ho=*) 943 host_alias=$ac_optarg ;; 944 945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 946 ac_prev=htmldir ;; 947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 948 | --ht=*) 949 htmldir=$ac_optarg ;; 950 951 -includedir | --includedir | --includedi | --included | --include \ 952 | --includ | --inclu | --incl | --inc) 953 ac_prev=includedir ;; 954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 955 | --includ=* | --inclu=* | --incl=* | --inc=*) 956 includedir=$ac_optarg ;; 957 958 -infodir | --infodir | --infodi | --infod | --info | --inf) 959 ac_prev=infodir ;; 960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 961 infodir=$ac_optarg ;; 962 963 -libdir | --libdir | --libdi | --libd) 964 ac_prev=libdir ;; 965 -libdir=* | --libdir=* | --libdi=* | --libd=*) 966 libdir=$ac_optarg ;; 967 968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 969 | --libexe | --libex | --libe) 970 ac_prev=libexecdir ;; 971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 972 | --libexe=* | --libex=* | --libe=*) 973 libexecdir=$ac_optarg ;; 974 975 -localedir | --localedir | --localedi | --localed | --locale) 976 ac_prev=localedir ;; 977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 978 localedir=$ac_optarg ;; 979 980 -localstatedir | --localstatedir | --localstatedi | --localstated \ 981 | --localstate | --localstat | --localsta | --localst | --locals) 982 ac_prev=localstatedir ;; 983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 985 localstatedir=$ac_optarg ;; 986 987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 988 ac_prev=mandir ;; 989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 990 mandir=$ac_optarg ;; 991 992 -nfp | --nfp | --nf) 993 # Obsolete; use --without-fp. 994 with_fp=no ;; 995 996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 997 | --no-cr | --no-c | -n) 998 no_create=yes ;; 999 1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1002 no_recursion=yes ;; 1003 1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1006 | --oldin | --oldi | --old | --ol | --o) 1007 ac_prev=oldincludedir ;; 1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1011 oldincludedir=$ac_optarg ;; 1012 1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1014 ac_prev=prefix ;; 1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1016 prefix=$ac_optarg ;; 1017 1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1019 | --program-pre | --program-pr | --program-p) 1020 ac_prev=program_prefix ;; 1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1023 program_prefix=$ac_optarg ;; 1024 1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1026 | --program-suf | --program-su | --program-s) 1027 ac_prev=program_suffix ;; 1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1030 program_suffix=$ac_optarg ;; 1031 1032 -program-transform-name | --program-transform-name \ 1033 | --program-transform-nam | --program-transform-na \ 1034 | --program-transform-n | --program-transform- \ 1035 | --program-transform | --program-transfor \ 1036 | --program-transfo | --program-transf \ 1037 | --program-trans | --program-tran \ 1038 | --progr-tra | --program-tr | --program-t) 1039 ac_prev=program_transform_name ;; 1040 -program-transform-name=* | --program-transform-name=* \ 1041 | --program-transform-nam=* | --program-transform-na=* \ 1042 | --program-transform-n=* | --program-transform-=* \ 1043 | --program-transform=* | --program-transfor=* \ 1044 | --program-transfo=* | --program-transf=* \ 1045 | --program-trans=* | --program-tran=* \ 1046 | --progr-tra=* | --program-tr=* | --program-t=*) 1047 program_transform_name=$ac_optarg ;; 1048 1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1050 ac_prev=pdfdir ;; 1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1052 pdfdir=$ac_optarg ;; 1053 1054 -psdir | --psdir | --psdi | --psd | --ps) 1055 ac_prev=psdir ;; 1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1057 psdir=$ac_optarg ;; 1058 1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1060 | -silent | --silent | --silen | --sile | --sil) 1061 silent=yes ;; 1062 1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1064 ac_prev=sbindir ;; 1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1066 | --sbi=* | --sb=*) 1067 sbindir=$ac_optarg ;; 1068 1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1071 | --sharedst | --shareds | --shared | --share | --shar \ 1072 | --sha | --sh) 1073 ac_prev=sharedstatedir ;; 1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1077 | --sha=* | --sh=*) 1078 sharedstatedir=$ac_optarg ;; 1079 1080 -site | --site | --sit) 1081 ac_prev=site ;; 1082 -site=* | --site=* | --sit=*) 1083 site=$ac_optarg ;; 1084 1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1086 ac_prev=srcdir ;; 1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1088 srcdir=$ac_optarg ;; 1089 1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1091 | --syscon | --sysco | --sysc | --sys | --sy) 1092 ac_prev=sysconfdir ;; 1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1095 sysconfdir=$ac_optarg ;; 1096 1097 -target | --target | --targe | --targ | --tar | --ta | --t) 1098 ac_prev=target_alias ;; 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1100 target_alias=$ac_optarg ;; 1101 1102 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1103 verbose=yes ;; 1104 1105 -version | --version | --versio | --versi | --vers | -V) 1106 ac_init_version=: ;; 1107 1108 -with-* | --with-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=\$ac_optarg ;; 1123 1124 -without-* | --without-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=no ;; 1139 1140 --x) 1141 # Obsolete; use --with-x. 1142 with_x=yes ;; 1143 1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1145 | --x-incl | --x-inc | --x-in | --x-i) 1146 ac_prev=x_includes ;; 1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1149 x_includes=$ac_optarg ;; 1150 1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1153 ac_prev=x_libraries ;; 1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1156 x_libraries=$ac_optarg ;; 1157 1158 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1159Try \`$0 --help' for more information" 1160 ;; 1161 1162 *=*) 1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1164 # Reject names that are not valid shell variable names. 1165 case $ac_envvar in #( 1166 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1168 esac 1169 eval $ac_envvar=\$ac_optarg 1170 export $ac_envvar ;; 1171 1172 *) 1173 # FIXME: should be removed in autoconf 3.0. 1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1178 ;; 1179 1180 esac 1181done 1182 1183if test -n "$ac_prev"; then 1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1185 as_fn_error $? "missing argument to $ac_option" 1186fi 1187 1188if test -n "$ac_unrecognized_opts"; then 1189 case $enable_option_checking in 1190 no) ;; 1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1193 esac 1194fi 1195 1196# Check all directory arguments for consistency. 1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1198 datadir sysconfdir sharedstatedir localstatedir includedir \ 1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1200 libdir localedir mandir 1201do 1202 eval ac_val=\$$ac_var 1203 # Remove trailing slashes. 1204 case $ac_val in 1205 */ ) 1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1207 eval $ac_var=\$ac_val;; 1208 esac 1209 # Be sure to have absolute directory names. 1210 case $ac_val in 1211 [\\/$]* | ?:[\\/]* ) continue;; 1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1213 esac 1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1215done 1216 1217# There might be people who depend on the old broken behavior: `$host' 1218# used to hold the argument of --host etc. 1219# FIXME: To remove some day. 1220build=$build_alias 1221host=$host_alias 1222target=$target_alias 1223 1224# FIXME: To remove some day. 1225if test "x$host_alias" != x; then 1226 if test "x$build_alias" = x; then 1227 cross_compiling=maybe 1228 elif test "x$build_alias" != "x$host_alias"; then 1229 cross_compiling=yes 1230 fi 1231fi 1232 1233ac_tool_prefix= 1234test -n "$host_alias" && ac_tool_prefix=$host_alias- 1235 1236test "$silent" = yes && exec 6>/dev/null 1237 1238 1239ac_pwd=`pwd` && test -n "$ac_pwd" && 1240ac_ls_di=`ls -di .` && 1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1242 as_fn_error $? "working directory cannot be determined" 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 as_fn_error $? "pwd does not report name of working directory" 1245 1246 1247# Find the source files, if location was not specified. 1248if test -z "$srcdir"; then 1249 ac_srcdir_defaulted=yes 1250 # Try the directory containing this script, then the parent directory. 1251 ac_confdir=`$as_dirname -- "$as_myself" || 1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1253 X"$as_myself" : 'X\(//\)[^/]' \| \ 1254 X"$as_myself" : 'X\(//\)$' \| \ 1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1256$as_echo X"$as_myself" | 1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)[^/].*/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\).*/{ 1270 s//\1/ 1271 q 1272 } 1273 s/.*/./; q'` 1274 srcdir=$ac_confdir 1275 if test ! -r "$srcdir/$ac_unique_file"; then 1276 srcdir=.. 1277 fi 1278else 1279 ac_srcdir_defaulted=no 1280fi 1281if test ! -r "$srcdir/$ac_unique_file"; then 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1284fi 1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1288 pwd)` 1289# When building in place, set srcdir=. 1290if test "$ac_abs_confdir" = "$ac_pwd"; then 1291 srcdir=. 1292fi 1293# Remove unnecessary trailing slashes from srcdir. 1294# Double slashes in file names in object file debugging info 1295# mess up M-x gdb in Emacs. 1296case $srcdir in 1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1298esac 1299for ac_var in $ac_precious_vars; do 1300 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_env_${ac_var}_value=\$${ac_var} 1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1303 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1304done 1305 1306# 1307# Report the --help message. 1308# 1309if test "$ac_init_help" = "long"; then 1310 # Omit some internal or obsolete options to make the list less imposing. 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1312 cat <<_ACEOF 1313\`configure' configures bdftopcf 1.1 to adapt to many kinds of systems. 1314 1315Usage: $0 [OPTION]... [VAR=VALUE]... 1316 1317To assign environment variables (e.g., CC, CFLAGS...), specify them as 1318VAR=VALUE. See below for descriptions of some of the useful variables. 1319 1320Defaults for the options are specified in brackets. 1321 1322Configuration: 1323 -h, --help display this help and exit 1324 --help=short display options specific to this package 1325 --help=recursive display the short help of all the included packages 1326 -V, --version display version information and exit 1327 -q, --quiet, --silent do not print \`checking ...' messages 1328 --cache-file=FILE cache test results in FILE [disabled] 1329 -C, --config-cache alias for \`--cache-file=config.cache' 1330 -n, --no-create do not create output files 1331 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1332 1333Installation directories: 1334 --prefix=PREFIX install architecture-independent files in PREFIX 1335 [$ac_default_prefix] 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1337 [PREFIX] 1338 1339By default, \`make install' will install all the files in 1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1341an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1342for instance \`--prefix=\$HOME'. 1343 1344For better control, use the options below. 1345 1346Fine tuning of the installation directories: 1347 --bindir=DIR user executables [EPREFIX/bin] 1348 --sbindir=DIR system admin executables [EPREFIX/sbin] 1349 --libexecdir=DIR program executables [EPREFIX/libexec] 1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1353 --libdir=DIR object code libraries [EPREFIX/lib] 1354 --includedir=DIR C header files [PREFIX/include] 1355 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1358 --infodir=DIR info documentation [DATAROOTDIR/info] 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/bdftopcf] 1362 --htmldir=DIR html documentation [DOCDIR] 1363 --dvidir=DIR dvi documentation [DOCDIR] 1364 --pdfdir=DIR pdf documentation [DOCDIR] 1365 --psdir=DIR ps documentation [DOCDIR] 1366_ACEOF 1367 1368 cat <<\_ACEOF 1369 1370Program names: 1371 --program-prefix=PREFIX prepend PREFIX to installed program names 1372 --program-suffix=SUFFIX append SUFFIX to installed program names 1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1374 1375System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378_ACEOF 1379fi 1380 1381if test -n "$ac_init_help"; then 1382 case $ac_init_help in 1383 short | recursive ) echo "Configuration of bdftopcf 1.1:";; 1384 esac 1385 cat <<\_ACEOF 1386 1387Optional Features: 1388 --disable-option-checking ignore unrecognized --enable/--with options 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-silent-rules less verbose build output (undo: "make V=1") 1392 --disable-silent-rules verbose build output (undo: "make V=0") 1393 --enable-dependency-tracking 1394 do not reject slow dependency extractors 1395 --disable-dependency-tracking 1396 speeds up one-time build 1397 --disable-selective-werror 1398 Turn off selective compiler errors. (default: 1399 enabled) 1400 --enable-strict-compilation 1401 Enable all warnings from compiler and make them 1402 errors (default: disabled) 1403 1404Optional Packages: 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1407 --with-lint Use a lint-style source code checker (default: 1408 disabled) 1409 1410Some influential environment variables: 1411 CC C compiler command 1412 CFLAGS C compiler flags 1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1414 nonstandard directory <lib dir> 1415 LIBS libraries to pass to the linker, e.g. -l<library> 1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1417 you have headers in a nonstandard directory <include dir> 1418 CPP C preprocessor 1419 PKG_CONFIG path to pkg-config utility 1420 PKG_CONFIG_PATH 1421 directories to add to pkg-config's search path 1422 PKG_CONFIG_LIBDIR 1423 path overriding pkg-config's built-in search path 1424 LINT Path to a lint-style command 1425 LINT_FLAGS Flags for the lint-style command 1426 1427Use these variables to override the choices made by `configure' or to help 1428it to find libraries and programs with nonstandard names/locations. 1429 1430Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1431_ACEOF 1432ac_status=$? 1433fi 1434 1435if test "$ac_init_help" = "recursive"; then 1436 # If there are subdirs, report their specific --help. 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1438 test -d "$ac_dir" || 1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1440 continue 1441 ac_builddir=. 1442 1443case "$ac_dir" in 1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1445*) 1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1447 # A ".." for each directory in $ac_dir_suffix. 1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1449 case $ac_top_builddir_sub in 1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1452 esac ;; 1453esac 1454ac_abs_top_builddir=$ac_pwd 1455ac_abs_builddir=$ac_pwd$ac_dir_suffix 1456# for backward compatibility: 1457ac_top_builddir=$ac_top_build_prefix 1458 1459case $srcdir in 1460 .) # We are building in place. 1461 ac_srcdir=. 1462 ac_top_srcdir=$ac_top_builddir_sub 1463 ac_abs_top_srcdir=$ac_pwd ;; 1464 [\\/]* | ?:[\\/]* ) # Absolute name. 1465 ac_srcdir=$srcdir$ac_dir_suffix; 1466 ac_top_srcdir=$srcdir 1467 ac_abs_top_srcdir=$srcdir ;; 1468 *) # Relative name. 1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1470 ac_top_srcdir=$ac_top_build_prefix$srcdir 1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1472esac 1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1474 1475 cd "$ac_dir" || { ac_status=$?; continue; } 1476 # Check for guested configure. 1477 if test -f "$ac_srcdir/configure.gnu"; then 1478 echo && 1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1480 elif test -f "$ac_srcdir/configure"; then 1481 echo && 1482 $SHELL "$ac_srcdir/configure" --help=recursive 1483 else 1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1485 fi || ac_status=$? 1486 cd "$ac_pwd" || { ac_status=$?; break; } 1487 done 1488fi 1489 1490test -n "$ac_init_help" && exit $ac_status 1491if $ac_init_version; then 1492 cat <<\_ACEOF 1493bdftopcf configure 1.1 1494generated by GNU Autoconf 2.69 1495 1496Copyright (C) 2012 Free Software Foundation, Inc. 1497This configure script is free software; the Free Software Foundation 1498gives unlimited permission to copy, distribute and modify it. 1499_ACEOF 1500 exit 1501fi 1502 1503## ------------------------ ## 1504## Autoconf initialization. ## 1505## ------------------------ ## 1506 1507# ac_fn_c_try_compile LINENO 1508# -------------------------- 1509# Try to compile conftest.$ac_ext, and return whether this succeeded. 1510ac_fn_c_try_compile () 1511{ 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1513 rm -f conftest.$ac_objext 1514 if { { ac_try="$ac_compile" 1515case "(($ac_try" in 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1517 *) ac_try_echo=$ac_try;; 1518esac 1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1520$as_echo "$ac_try_echo"; } >&5 1521 (eval "$ac_compile") 2>conftest.err 1522 ac_status=$? 1523 if test -s conftest.err; then 1524 grep -v '^ *+' conftest.err >conftest.er1 1525 cat conftest.er1 >&5 1526 mv -f conftest.er1 conftest.err 1527 fi 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } && { 1530 test -z "$ac_c_werror_flag" || 1531 test ! -s conftest.err 1532 } && test -s conftest.$ac_objext; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1546# --------------------------------------------- 1547# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1548# accordingly. 1549ac_fn_c_check_decl () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 as_decl_name=`echo $2|sed 's/ *(.*//'` 1553 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1555$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1556if eval \${$3+:} false; then : 1557 $as_echo_n "(cached) " >&6 1558else 1559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1560/* end confdefs.h. */ 1561$4 1562int 1563main () 1564{ 1565#ifndef $as_decl_name 1566#ifdef __cplusplus 1567 (void) $as_decl_use; 1568#else 1569 (void) $as_decl_name; 1570#endif 1571#endif 1572 1573 ; 1574 return 0; 1575} 1576_ACEOF 1577if ac_fn_c_try_compile "$LINENO"; then : 1578 eval "$3=yes" 1579else 1580 eval "$3=no" 1581fi 1582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1583fi 1584eval ac_res=\$$3 1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1586$as_echo "$ac_res" >&6; } 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 1589} # ac_fn_c_check_decl 1590 1591# ac_fn_c_try_cpp LINENO 1592# ---------------------- 1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_cpp () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 if { { ac_try="$ac_cpp conftest.$ac_ext" 1598case "(($ac_try" in 1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600 *) ac_try_echo=$ac_try;; 1601esac 1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603$as_echo "$ac_try_echo"; } >&5 1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1605 ac_status=$? 1606 if test -s conftest.err; then 1607 grep -v '^ *+' conftest.err >conftest.er1 1608 cat conftest.er1 >&5 1609 mv -f conftest.er1 conftest.err 1610 fi 1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1612 test $ac_status = 0; } > conftest.i && { 1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1614 test ! -s conftest.err 1615 }; then : 1616 ac_retval=0 1617else 1618 $as_echo "$as_me: failed program was:" >&5 1619sed 's/^/| /' conftest.$ac_ext >&5 1620 1621 ac_retval=1 1622fi 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_cpp 1627 1628# ac_fn_c_try_run LINENO 1629# ---------------------- 1630# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1631# that executables *can* be run. 1632ac_fn_c_try_run () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 if { { ac_try="$ac_link" 1636case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_link") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1646 { { case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_try") 2>&5 1653 ac_status=$? 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; }; }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: program exited with status $ac_status" >&5 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=$ac_status 1663fi 1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_run 1669 1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1671# ------------------------------------------------------- 1672# Tests whether HEADER exists and can be compiled using the include files in 1673# INCLUDES, setting the cache variable VAR accordingly. 1674ac_fn_c_check_header_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678$as_echo_n "checking for $2... " >&6; } 1679if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681else 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683/* end confdefs.h. */ 1684$4 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_compile "$LINENO"; then : 1688 eval "$3=yes" 1689else 1690 eval "$3=no" 1691fi 1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1693fi 1694eval ac_res=\$$3 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696$as_echo "$ac_res" >&6; } 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699} # ac_fn_c_check_header_compile 1700 1701# ac_fn_c_try_link LINENO 1702# ----------------------- 1703# Try to link conftest.$ac_ext, and return whether this succeeded. 1704ac_fn_c_try_link () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 rm -f conftest.$ac_objext conftest$ac_exeext 1708 if { { ac_try="$ac_link" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_link") 2>conftest.err 1716 ac_status=$? 1717 if test -s conftest.err; then 1718 grep -v '^ *+' conftest.err >conftest.er1 1719 cat conftest.er1 >&5 1720 mv -f conftest.er1 conftest.err 1721 fi 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { 1724 test -z "$ac_c_werror_flag" || 1725 test ! -s conftest.err 1726 } && test -s conftest$ac_exeext && { 1727 test "$cross_compiling" = yes || 1728 test -x conftest$ac_exeext 1729 }; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1739 # interfere with the next link command; also delete a directory that is 1740 # left behind by Apple's compiler. We do this before executing the actions. 1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_link 1746cat >config.log <<_ACEOF 1747This file contains any messages produced by compilers while 1748running configure, to aid debugging if configure makes a mistake. 1749 1750It was created by bdftopcf $as_me 1.1, which was 1751generated by GNU Autoconf 2.69. Invocation command line was 1752 1753 $ $0 $@ 1754 1755_ACEOF 1756exec 5>>config.log 1757{ 1758cat <<_ASUNAME 1759## --------- ## 1760## Platform. ## 1761## --------- ## 1762 1763hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1764uname -m = `(uname -m) 2>/dev/null || echo unknown` 1765uname -r = `(uname -r) 2>/dev/null || echo unknown` 1766uname -s = `(uname -s) 2>/dev/null || echo unknown` 1767uname -v = `(uname -v) 2>/dev/null || echo unknown` 1768 1769/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1770/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1771 1772/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1773/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1774/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1775/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1776/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1777/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1778/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1779 1780_ASUNAME 1781 1782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1783for as_dir in $PATH 1784do 1785 IFS=$as_save_IFS 1786 test -z "$as_dir" && as_dir=. 1787 $as_echo "PATH: $as_dir" 1788 done 1789IFS=$as_save_IFS 1790 1791} >&5 1792 1793cat >&5 <<_ACEOF 1794 1795 1796## ----------- ## 1797## Core tests. ## 1798## ----------- ## 1799 1800_ACEOF 1801 1802 1803# Keep a trace of the command line. 1804# Strip out --no-create and --no-recursion so they do not pile up. 1805# Strip out --silent because we don't want to record it for future runs. 1806# Also quote any args containing shell meta-characters. 1807# Make two passes to allow for proper duplicate-argument suppression. 1808ac_configure_args= 1809ac_configure_args0= 1810ac_configure_args1= 1811ac_must_keep_next=false 1812for ac_pass in 1 2 1813do 1814 for ac_arg 1815 do 1816 case $ac_arg in 1817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1819 | -silent | --silent | --silen | --sile | --sil) 1820 continue ;; 1821 *\'*) 1822 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1823 esac 1824 case $ac_pass in 1825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1826 2) 1827 as_fn_append ac_configure_args1 " '$ac_arg'" 1828 if test $ac_must_keep_next = true; then 1829 ac_must_keep_next=false # Got value, back to normal. 1830 else 1831 case $ac_arg in 1832 *=* | --config-cache | -C | -disable-* | --disable-* \ 1833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1835 | -with-* | --with-* | -without-* | --without-* | --x) 1836 case "$ac_configure_args0 " in 1837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1838 esac 1839 ;; 1840 -* ) ac_must_keep_next=true ;; 1841 esac 1842 fi 1843 as_fn_append ac_configure_args " '$ac_arg'" 1844 ;; 1845 esac 1846 done 1847done 1848{ ac_configure_args0=; unset ac_configure_args0;} 1849{ ac_configure_args1=; unset ac_configure_args1;} 1850 1851# When interrupted or exit'd, cleanup temporary files, and complete 1852# config.log. We remove comments because anyway the quotes in there 1853# would cause problems or look ugly. 1854# WARNING: Use '\'' to represent an apostrophe within the trap. 1855# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1856trap 'exit_status=$? 1857 # Save into config.log some information that might help in debugging. 1858 { 1859 echo 1860 1861 $as_echo "## ---------------- ## 1862## Cache variables. ## 1863## ---------------- ##" 1864 echo 1865 # The following way of writing the cache mishandles newlines in values, 1866( 1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in #( 1870 *${as_nl}*) 1871 case $ac_var in #( 1872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1873$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1874 esac 1875 case $ac_var in #( 1876 _ | IFS | as_nl) ;; #( 1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1878 *) { eval $ac_var=; unset $ac_var;} ;; 1879 esac ;; 1880 esac 1881 done 1882 (set) 2>&1 | 1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1884 *${as_nl}ac_space=\ *) 1885 sed -n \ 1886 "s/'\''/'\''\\\\'\'''\''/g; 1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1888 ;; #( 1889 *) 1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1891 ;; 1892 esac | 1893 sort 1894) 1895 echo 1896 1897 $as_echo "## ----------------- ## 1898## Output variables. ## 1899## ----------------- ##" 1900 echo 1901 for ac_var in $ac_subst_vars 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 1911 if test -n "$ac_subst_files"; then 1912 $as_echo "## ------------------- ## 1913## File substitutions. ## 1914## ------------------- ##" 1915 echo 1916 for ac_var in $ac_subst_files 1917 do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in 1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1921 esac 1922 $as_echo "$ac_var='\''$ac_val'\''" 1923 done | sort 1924 echo 1925 fi 1926 1927 if test -s confdefs.h; then 1928 $as_echo "## ----------- ## 1929## confdefs.h. ## 1930## ----------- ##" 1931 echo 1932 cat confdefs.h 1933 echo 1934 fi 1935 test "$ac_signal" != 0 && 1936 $as_echo "$as_me: caught signal $ac_signal" 1937 $as_echo "$as_me: exit $exit_status" 1938 } >&5 1939 rm -f core *.core core.conftest.* && 1940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1941 exit $exit_status 1942' 0 1943for ac_signal in 1 2 13 15; do 1944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1945done 1946ac_signal=0 1947 1948# confdefs.h avoids OS command line length limits that DEFS can exceed. 1949rm -f -r conftest* confdefs.h 1950 1951$as_echo "/* confdefs.h */" > confdefs.h 1952 1953# Predefined preprocessor variables. 1954 1955cat >>confdefs.h <<_ACEOF 1956#define PACKAGE_NAME "$PACKAGE_NAME" 1957_ACEOF 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1961_ACEOF 1962 1963cat >>confdefs.h <<_ACEOF 1964#define PACKAGE_VERSION "$PACKAGE_VERSION" 1965_ACEOF 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_STRING "$PACKAGE_STRING" 1969_ACEOF 1970 1971cat >>confdefs.h <<_ACEOF 1972#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1973_ACEOF 1974 1975cat >>confdefs.h <<_ACEOF 1976#define PACKAGE_URL "$PACKAGE_URL" 1977_ACEOF 1978 1979 1980# Let the site file select an alternate cache file if it wants to. 1981# Prefer an explicitly selected file to automatically selected ones. 1982ac_site_file1=NONE 1983ac_site_file2=NONE 1984if test -n "$CONFIG_SITE"; then 1985 # We do not want a PATH search for config.site. 1986 case $CONFIG_SITE in #(( 1987 -*) ac_site_file1=./$CONFIG_SITE;; 1988 */*) ac_site_file1=$CONFIG_SITE;; 1989 *) ac_site_file1=./$CONFIG_SITE;; 1990 esac 1991elif test "x$prefix" != xNONE; then 1992 ac_site_file1=$prefix/share/config.site 1993 ac_site_file2=$prefix/etc/config.site 1994else 1995 ac_site_file1=$ac_default_prefix/share/config.site 1996 ac_site_file2=$ac_default_prefix/etc/config.site 1997fi 1998for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1999do 2000 test "x$ac_site_file" = xNONE && continue 2001 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2003$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2004 sed 's/^/| /' "$ac_site_file" >&5 2005 . "$ac_site_file" \ 2006 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2008as_fn_error $? "failed to load site script $ac_site_file 2009See \`config.log' for more details" "$LINENO" 5; } 2010 fi 2011done 2012 2013if test -r "$cache_file"; then 2014 # Some versions of bash will fail to source /dev/null (special files 2015 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2016 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2018$as_echo "$as_me: loading cache $cache_file" >&6;} 2019 case $cache_file in 2020 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2021 *) . "./$cache_file";; 2022 esac 2023 fi 2024else 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2026$as_echo "$as_me: creating cache $cache_file" >&6;} 2027 >$cache_file 2028fi 2029 2030# Check that the precious variables saved in the cache have kept the same 2031# value. 2032ac_cache_corrupted=false 2033for ac_var in $ac_precious_vars; do 2034 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2035 eval ac_new_set=\$ac_env_${ac_var}_set 2036 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2037 eval ac_new_val=\$ac_env_${ac_var}_value 2038 case $ac_old_set,$ac_new_set in 2039 set,) 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2041$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2042 ac_cache_corrupted=: ;; 2043 ,set) 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2045$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2046 ac_cache_corrupted=: ;; 2047 ,);; 2048 *) 2049 if test "x$ac_old_val" != "x$ac_new_val"; then 2050 # differences in whitespace do not lead to failure. 2051 ac_old_val_w=`echo x $ac_old_val` 2052 ac_new_val_w=`echo x $ac_new_val` 2053 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2055$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2056 ac_cache_corrupted=: 2057 else 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2059$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2060 eval $ac_var=\$ac_old_val 2061 fi 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2063$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2065$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2066 fi;; 2067 esac 2068 # Pass precious variables to config.status. 2069 if test "$ac_new_set" = set; then 2070 case $ac_new_val in 2071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2072 *) ac_arg=$ac_var=$ac_new_val ;; 2073 esac 2074 case " $ac_configure_args " in 2075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2076 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2077 esac 2078 fi 2079done 2080if $ac_cache_corrupted; then 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2084$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2085 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2086fi 2087## -------------------- ## 2088## Main body of script. ## 2089## -------------------- ## 2090 2091ac_ext=c 2092ac_cpp='$CPP $CPPFLAGS' 2093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2095ac_compiler_gnu=$ac_cv_c_compiler_gnu 2096 2097 2098 2099ac_config_headers="$ac_config_headers config.h" 2100 2101 2102# Initialize Automake 2103am__api_version='1.15' 2104 2105ac_aux_dir= 2106for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2107 if test -f "$ac_dir/install-sh"; then 2108 ac_aux_dir=$ac_dir 2109 ac_install_sh="$ac_aux_dir/install-sh -c" 2110 break 2111 elif test -f "$ac_dir/install.sh"; then 2112 ac_aux_dir=$ac_dir 2113 ac_install_sh="$ac_aux_dir/install.sh -c" 2114 break 2115 elif test -f "$ac_dir/shtool"; then 2116 ac_aux_dir=$ac_dir 2117 ac_install_sh="$ac_aux_dir/shtool install -c" 2118 break 2119 fi 2120done 2121if test -z "$ac_aux_dir"; then 2122 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2123fi 2124 2125# These three variables are undocumented and unsupported, 2126# and are intended to be withdrawn in a future Autoconf release. 2127# They can cause serious problems if a builder's source tree is in a directory 2128# whose full name contains unusual characters. 2129ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2130ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2131ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2132 2133 2134# Find a good install program. We prefer a C program (faster), 2135# so one script is as good as another. But avoid the broken or 2136# incompatible versions: 2137# SysV /etc/install, /usr/sbin/install 2138# SunOS /usr/etc/install 2139# IRIX /sbin/install 2140# AIX /bin/install 2141# AmigaOS /C/install, which installs bootblocks on floppy discs 2142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2143# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2145# OS/2's system install, which has a completely different semantic 2146# ./install, which can be erroneously created by make from ./install.sh. 2147# Reject install programs that cannot install multiple files. 2148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2149$as_echo_n "checking for a BSD-compatible install... " >&6; } 2150if test -z "$INSTALL"; then 2151if ${ac_cv_path_install+:} false; then : 2152 $as_echo_n "(cached) " >&6 2153else 2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2155for as_dir in $PATH 2156do 2157 IFS=$as_save_IFS 2158 test -z "$as_dir" && as_dir=. 2159 # Account for people who put trailing slashes in PATH elements. 2160case $as_dir/ in #(( 2161 ./ | .// | /[cC]/* | \ 2162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2164 /usr/ucb/* ) ;; 2165 *) 2166 # OSF1 and SCO ODT 3.0 have their own names for install. 2167 # Don't use installbsd from OSF since it installs stuff as root 2168 # by default. 2169 for ac_prog in ginstall scoinst install; do 2170 for ac_exec_ext in '' $ac_executable_extensions; do 2171 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2172 if test $ac_prog = install && 2173 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2174 # AIX install. It has an incompatible calling convention. 2175 : 2176 elif test $ac_prog = install && 2177 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2178 # program-specific install script used by HP pwplus--don't use. 2179 : 2180 else 2181 rm -rf conftest.one conftest.two conftest.dir 2182 echo one > conftest.one 2183 echo two > conftest.two 2184 mkdir conftest.dir 2185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2186 test -s conftest.one && test -s conftest.two && 2187 test -s conftest.dir/conftest.one && 2188 test -s conftest.dir/conftest.two 2189 then 2190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2191 break 3 2192 fi 2193 fi 2194 fi 2195 done 2196 done 2197 ;; 2198esac 2199 2200 done 2201IFS=$as_save_IFS 2202 2203rm -rf conftest.one conftest.two conftest.dir 2204 2205fi 2206 if test "${ac_cv_path_install+set}" = set; then 2207 INSTALL=$ac_cv_path_install 2208 else 2209 # As a last resort, use the slow shell script. Don't cache a 2210 # value for INSTALL within a source directory, because that will 2211 # break other packages using the cache if that directory is 2212 # removed, or if the value is a relative name. 2213 INSTALL=$ac_install_sh 2214 fi 2215fi 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2217$as_echo "$INSTALL" >&6; } 2218 2219# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2220# It thinks the first close brace ends the variable substitution. 2221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2222 2223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2224 2225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2226 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2228$as_echo_n "checking whether build environment is sane... " >&6; } 2229# Reject unsafe characters in $srcdir or the absolute working directory 2230# name. Accept space and tab only in the latter. 2231am_lf=' 2232' 2233case `pwd` in 2234 *[\\\"\#\$\&\'\`$am_lf]*) 2235 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2236esac 2237case $srcdir in 2238 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2239 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2240esac 2241 2242# Do 'set' in a subshell so we don't clobber the current shell's 2243# arguments. Must try -L first in case configure is actually a 2244# symlink; some systems play weird games with the mod time of symlinks 2245# (eg FreeBSD returns the mod time of the symlink's containing 2246# directory). 2247if ( 2248 am_has_slept=no 2249 for am_try in 1 2; do 2250 echo "timestamp, slept: $am_has_slept" > conftest.file 2251 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2252 if test "$*" = "X"; then 2253 # -L didn't work. 2254 set X `ls -t "$srcdir/configure" conftest.file` 2255 fi 2256 if test "$*" != "X $srcdir/configure conftest.file" \ 2257 && test "$*" != "X conftest.file $srcdir/configure"; then 2258 2259 # If neither matched, then we have a broken ls. This can happen 2260 # if, for instance, CONFIG_SHELL is bash and it inherits a 2261 # broken ls alias from the environment. This has actually 2262 # happened. Such a system could not be considered "sane". 2263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2264 alias in your environment" "$LINENO" 5 2265 fi 2266 if test "$2" = conftest.file || test $am_try -eq 2; then 2267 break 2268 fi 2269 # Just in case. 2270 sleep 1 2271 am_has_slept=yes 2272 done 2273 test "$2" = conftest.file 2274 ) 2275then 2276 # Ok. 2277 : 2278else 2279 as_fn_error $? "newly created file is older than distributed files! 2280Check your system clock" "$LINENO" 5 2281fi 2282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2283$as_echo "yes" >&6; } 2284# If we didn't sleep, we still need to ensure time stamps of config.status and 2285# generated files are strictly newer. 2286am_sleep_pid= 2287if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2288 ( sleep 1 ) & 2289 am_sleep_pid=$! 2290fi 2291 2292rm -f conftest.file 2293 2294test "$program_prefix" != NONE && 2295 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2296# Use a double $ so make ignores it. 2297test "$program_suffix" != NONE && 2298 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2299# Double any \ or $. 2300# By default was `s,x,x', remove it if useless. 2301ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2302program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2303 2304# Expand $ac_aux_dir to an absolute path. 2305am_aux_dir=`cd "$ac_aux_dir" && pwd` 2306 2307if test x"${MISSING+set}" != xset; then 2308 case $am_aux_dir in 2309 *\ * | *\ *) 2310 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2311 *) 2312 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2313 esac 2314fi 2315# Use eval to expand $SHELL 2316if eval "$MISSING --is-lightweight"; then 2317 am_missing_run="$MISSING " 2318else 2319 am_missing_run= 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2321$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2322fi 2323 2324if test x"${install_sh+set}" != xset; then 2325 case $am_aux_dir in 2326 *\ * | *\ *) 2327 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2328 *) 2329 install_sh="\${SHELL} $am_aux_dir/install-sh" 2330 esac 2331fi 2332 2333# Installed binaries are usually stripped using 'strip' when the user 2334# run "make install-strip". However 'strip' might not be the right 2335# tool to use in cross-compilation environments, therefore Automake 2336# will honor the 'STRIP' environment variable to overrule this program. 2337if test "$cross_compiling" != no; then 2338 if test -n "$ac_tool_prefix"; then 2339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2340set dummy ${ac_tool_prefix}strip; ac_word=$2 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2342$as_echo_n "checking for $ac_word... " >&6; } 2343if ${ac_cv_prog_STRIP+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 if test -n "$STRIP"; then 2347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2348else 2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350for as_dir in $PATH 2351do 2352 IFS=$as_save_IFS 2353 test -z "$as_dir" && as_dir=. 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2356 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2358 break 2 2359 fi 2360done 2361 done 2362IFS=$as_save_IFS 2363 2364fi 2365fi 2366STRIP=$ac_cv_prog_STRIP 2367if test -n "$STRIP"; then 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2369$as_echo "$STRIP" >&6; } 2370else 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2372$as_echo "no" >&6; } 2373fi 2374 2375 2376fi 2377if test -z "$ac_cv_prog_STRIP"; then 2378 ac_ct_STRIP=$STRIP 2379 # Extract the first word of "strip", so it can be a program name with args. 2380set dummy strip; ac_word=$2 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2382$as_echo_n "checking for $ac_word... " >&6; } 2383if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 if test -n "$ac_ct_STRIP"; then 2387 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2388else 2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2390for as_dir in $PATH 2391do 2392 IFS=$as_save_IFS 2393 test -z "$as_dir" && as_dir=. 2394 for ac_exec_ext in '' $ac_executable_extensions; do 2395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2396 ac_cv_prog_ac_ct_STRIP="strip" 2397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2398 break 2 2399 fi 2400done 2401 done 2402IFS=$as_save_IFS 2403 2404fi 2405fi 2406ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2407if test -n "$ac_ct_STRIP"; then 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2409$as_echo "$ac_ct_STRIP" >&6; } 2410else 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2412$as_echo "no" >&6; } 2413fi 2414 2415 if test "x$ac_ct_STRIP" = x; then 2416 STRIP=":" 2417 else 2418 case $cross_compiling:$ac_tool_warned in 2419yes:) 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2422ac_tool_warned=yes ;; 2423esac 2424 STRIP=$ac_ct_STRIP 2425 fi 2426else 2427 STRIP="$ac_cv_prog_STRIP" 2428fi 2429 2430fi 2431INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2432 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2434$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2435if test -z "$MKDIR_P"; then 2436 if ${ac_cv_path_mkdir+:} false; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_prog in mkdir gmkdir; do 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2447 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2448 'mkdir (GNU coreutils) '* | \ 2449 'mkdir (coreutils) '* | \ 2450 'mkdir (fileutils) '4.1*) 2451 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2452 break 3;; 2453 esac 2454 done 2455 done 2456 done 2457IFS=$as_save_IFS 2458 2459fi 2460 2461 test -d ./--version && rmdir ./--version 2462 if test "${ac_cv_path_mkdir+set}" = set; then 2463 MKDIR_P="$ac_cv_path_mkdir -p" 2464 else 2465 # As a last resort, use the slow shell script. Don't cache a 2466 # value for MKDIR_P within a source directory, because that will 2467 # break other packages using the cache if that directory is 2468 # removed, or if the value is a relative name. 2469 MKDIR_P="$ac_install_sh -d" 2470 fi 2471fi 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2473$as_echo "$MKDIR_P" >&6; } 2474 2475for ac_prog in gawk mawk nawk awk 2476do 2477 # Extract the first word of "$ac_prog", so it can be a program name with args. 2478set dummy $ac_prog; ac_word=$2 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if ${ac_cv_prog_AWK+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$AWK"; then 2485 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2494 ac_cv_prog_AWK="$ac_prog" 2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504AWK=$ac_cv_prog_AWK 2505if test -n "$AWK"; then 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2507$as_echo "$AWK" >&6; } 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 2514 test -n "$AWK" && break 2515done 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2518$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2519set x ${MAKE-make} 2520ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2521if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 cat >conftest.make <<\_ACEOF 2525SHELL = /bin/sh 2526all: 2527 @echo '@@@%%%=$(MAKE)=@@@%%%' 2528_ACEOF 2529# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2530case `${MAKE-make} -f conftest.make 2>/dev/null` in 2531 *@@@%%%=?*=@@@%%%*) 2532 eval ac_cv_prog_make_${ac_make}_set=yes;; 2533 *) 2534 eval ac_cv_prog_make_${ac_make}_set=no;; 2535esac 2536rm -f conftest.make 2537fi 2538if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2540$as_echo "yes" >&6; } 2541 SET_MAKE= 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2544$as_echo "no" >&6; } 2545 SET_MAKE="MAKE=${MAKE-make}" 2546fi 2547 2548rm -rf .tst 2>/dev/null 2549mkdir .tst 2>/dev/null 2550if test -d .tst; then 2551 am__leading_dot=. 2552else 2553 am__leading_dot=_ 2554fi 2555rmdir .tst 2>/dev/null 2556 2557# Check whether --enable-silent-rules was given. 2558if test "${enable_silent_rules+set}" = set; then : 2559 enableval=$enable_silent_rules; 2560fi 2561 2562case $enable_silent_rules in # ((( 2563 yes) AM_DEFAULT_VERBOSITY=0;; 2564 no) AM_DEFAULT_VERBOSITY=1;; 2565 *) AM_DEFAULT_VERBOSITY=1;; 2566esac 2567am_make=${MAKE-make} 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2569$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2570if ${am_cv_make_support_nested_variables+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if $as_echo 'TRUE=$(BAR$(V)) 2574BAR0=false 2575BAR1=true 2576V=1 2577am__doit: 2578 @$(TRUE) 2579.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2580 am_cv_make_support_nested_variables=yes 2581else 2582 am_cv_make_support_nested_variables=no 2583fi 2584fi 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2586$as_echo "$am_cv_make_support_nested_variables" >&6; } 2587if test $am_cv_make_support_nested_variables = yes; then 2588 AM_V='$(V)' 2589 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2590else 2591 AM_V=$AM_DEFAULT_VERBOSITY 2592 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2593fi 2594AM_BACKSLASH='\' 2595 2596if test "`cd $srcdir && pwd`" != "`pwd`"; then 2597 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2598 # is not polluted with repeated "-I." 2599 am__isrc=' -I$(srcdir)' 2600 # test to see if srcdir already configured 2601 if test -f $srcdir/config.status; then 2602 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2603 fi 2604fi 2605 2606# test whether we have cygpath 2607if test -z "$CYGPATH_W"; then 2608 if (cygpath --version) >/dev/null 2>/dev/null; then 2609 CYGPATH_W='cygpath -w' 2610 else 2611 CYGPATH_W=echo 2612 fi 2613fi 2614 2615 2616# Define the identity of the package. 2617 PACKAGE='bdftopcf' 2618 VERSION='1.1' 2619 2620 2621cat >>confdefs.h <<_ACEOF 2622#define PACKAGE "$PACKAGE" 2623_ACEOF 2624 2625 2626cat >>confdefs.h <<_ACEOF 2627#define VERSION "$VERSION" 2628_ACEOF 2629 2630# Some tools Automake needs. 2631 2632ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2633 2634 2635AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2636 2637 2638AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2639 2640 2641AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2642 2643 2644MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2645 2646# For better backward compatibility. To be removed once Automake 1.9.x 2647# dies out for good. For more background, see: 2648# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2649# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2650mkdir_p='$(MKDIR_P)' 2651 2652# We need awk for the "check" target (and possibly the TAP driver). The 2653# system "awk" is bad on some platforms. 2654# Always define AMTAR for backward compatibility. Yes, it's still used 2655# in the wild :-( We should find a proper way to deprecate it ... 2656AMTAR='$${TAR-tar}' 2657 2658 2659# We'll loop over all known methods to create a tar archive until one works. 2660_am_tools='gnutar pax cpio none' 2661 2662am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2663 2664 2665 2666 2667 2668 2669# POSIX will say in a future version that running "rm -f" with no argument 2670# is OK; and we want to be able to make that assumption in our Makefile 2671# recipes. So use an aggressive probe to check that the usage we want is 2672# actually supported "in the wild" to an acceptable degree. 2673# See automake bug#10828. 2674# To make any issue more visible, cause the running configure to be aborted 2675# by default if the 'rm' program in use doesn't match our expectations; the 2676# user can still override this though. 2677if rm -f && rm -fr && rm -rf; then : OK; else 2678 cat >&2 <<'END' 2679Oops! 2680 2681Your 'rm' program seems unable to run without file operands specified 2682on the command line, even when the '-f' option is present. This is contrary 2683to the behaviour of most rm programs out there, and not conforming with 2684the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2685 2686Please tell bug-automake@gnu.org about your system, including the value 2687of your $PATH and any error possibly output before this message. This 2688can help us improve future automake versions. 2689 2690END 2691 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2692 echo 'Configuration will proceed anyway, since you have set the' >&2 2693 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2694 echo >&2 2695 else 2696 cat >&2 <<'END' 2697Aborting the configuration process, to ensure you take notice of the issue. 2698 2699You can download and install GNU coreutils to get an 'rm' implementation 2700that behaves properly: <http://www.gnu.org/software/coreutils/>. 2701 2702If you want to complete the configuration process using your problematic 2703'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2704to "yes", and re-run configure. 2705 2706END 2707 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2708 fi 2709fi 2710 2711 2712# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724DEPDIR="${am__leading_dot}deps" 2725 2726ac_config_commands="$ac_config_commands depfiles" 2727 2728 2729am_make=${MAKE-make} 2730cat > confinc << 'END' 2731am__doit: 2732 @echo this is the am__doit target 2733.PHONY: am__doit 2734END 2735# If we don't find an include directive, just comment out the code. 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2737$as_echo_n "checking for style of include used by $am_make... " >&6; } 2738am__include="#" 2739am__quote= 2740_am_result=none 2741# First try GNU make style include. 2742echo "include confinc" > confmf 2743# Ignore all kinds of additional output from 'make'. 2744case `$am_make -s -f confmf 2> /dev/null` in #( 2745*the\ am__doit\ target*) 2746 am__include=include 2747 am__quote= 2748 _am_result=GNU 2749 ;; 2750esac 2751# Now try BSD make style include. 2752if test "$am__include" = "#"; then 2753 echo '.include "confinc"' > confmf 2754 case `$am_make -s -f confmf 2> /dev/null` in #( 2755 *the\ am__doit\ target*) 2756 am__include=.include 2757 am__quote="\"" 2758 _am_result=BSD 2759 ;; 2760 esac 2761fi 2762 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2765$as_echo "$_am_result" >&6; } 2766rm -f confinc confmf 2767 2768# Check whether --enable-dependency-tracking was given. 2769if test "${enable_dependency_tracking+set}" = set; then : 2770 enableval=$enable_dependency_tracking; 2771fi 2772 2773if test "x$enable_dependency_tracking" != xno; then 2774 am_depcomp="$ac_aux_dir/depcomp" 2775 AMDEPBACKSLASH='\' 2776 am__nodep='_no' 2777fi 2778 if test "x$enable_dependency_tracking" != xno; then 2779 AMDEP_TRUE= 2780 AMDEP_FALSE='#' 2781else 2782 AMDEP_TRUE='#' 2783 AMDEP_FALSE= 2784fi 2785 2786 2787ac_ext=c 2788ac_cpp='$CPP $CPPFLAGS' 2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2791ac_compiler_gnu=$ac_cv_c_compiler_gnu 2792if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2794set dummy ${ac_tool_prefix}gcc; ac_word=$2 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796$as_echo_n "checking for $ac_word... " >&6; } 2797if ${ac_cv_prog_CC+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2810 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815 done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823$as_echo "$CC" >&6; } 2824else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 2830fi 2831if test -z "$ac_cv_prog_CC"; then 2832 ac_ct_CC=$CC 2833 # Extract the first word of "gcc", so it can be a program name with args. 2834set dummy gcc; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if ${ac_cv_prog_ac_ct_CC+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$ac_ct_CC"; then 2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2842else 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2850 ac_cv_prog_ac_ct_CC="gcc" 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852 break 2 2853 fi 2854done 2855 done 2856IFS=$as_save_IFS 2857 2858fi 2859fi 2860ac_ct_CC=$ac_cv_prog_ac_ct_CC 2861if test -n "$ac_ct_CC"; then 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2863$as_echo "$ac_ct_CC" >&6; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866$as_echo "no" >&6; } 2867fi 2868 2869 if test "x$ac_ct_CC" = x; then 2870 CC="" 2871 else 2872 case $cross_compiling:$ac_tool_warned in 2873yes:) 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2876ac_tool_warned=yes ;; 2877esac 2878 CC=$ac_ct_CC 2879 fi 2880else 2881 CC="$ac_cv_prog_CC" 2882fi 2883 2884if test -z "$CC"; then 2885 if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}cc; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$CC"; then 2894 ac_cv_prog_CC="$CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_CC="${ac_tool_prefix}cc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913CC=$ac_cv_prog_CC 2914if test -n "$CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2916$as_echo "$CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 fi 2924fi 2925if test -z "$CC"; then 2926 # Extract the first word of "cc", so it can be a program name with args. 2927set dummy cc; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_prog_CC+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$CC"; then 2934 ac_cv_prog_CC="$CC" # Let the user override the test. 2935else 2936 ac_prog_rejected=no 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2945 ac_prog_rejected=yes 2946 continue 2947 fi 2948 ac_cv_prog_CC="cc" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956if test $ac_prog_rejected = yes; then 2957 # We found a bogon in the path, so make sure we never use it. 2958 set dummy $ac_cv_prog_CC 2959 shift 2960 if test $# != 0; then 2961 # We chose a different compiler from the bogus one. 2962 # However, it has the same basename, so the bogon will be chosen 2963 # first if we set CC to just the basename; use the full file name. 2964 shift 2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2966 fi 2967fi 2968fi 2969fi 2970CC=$ac_cv_prog_CC 2971if test -n "$CC"; then 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2973$as_echo "$CC" >&6; } 2974else 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976$as_echo "no" >&6; } 2977fi 2978 2979 2980fi 2981if test -z "$CC"; then 2982 if test -n "$ac_tool_prefix"; then 2983 for ac_prog in cl.exe 2984 do 2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_CC+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$CC"; then 2993 ac_cv_prog_CC="$CC" # Let the user override the test. 2994else 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012CC=$ac_cv_prog_CC 3013if test -n "$CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3015$as_echo "$CC" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 3022 test -n "$CC" && break 3023 done 3024fi 3025if test -z "$CC"; then 3026 ac_ct_CC=$CC 3027 for ac_prog in cl.exe 3028do 3029 # Extract the first word of "$ac_prog", so it can be a program name with args. 3030set dummy $ac_prog; ac_word=$2 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if ${ac_cv_prog_ac_ct_CC+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$ac_ct_CC"; then 3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 test -z "$as_dir" && as_dir=. 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_ac_ct_CC="$ac_prog" 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056ac_ct_CC=$ac_cv_prog_ac_ct_CC 3057if test -n "$ac_ct_CC"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3059$as_echo "$ac_ct_CC" >&6; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 3066 test -n "$ac_ct_CC" && break 3067done 3068 3069 if test "x$ac_ct_CC" = x; then 3070 CC="" 3071 else 3072 case $cross_compiling:$ac_tool_warned in 3073yes:) 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3076ac_tool_warned=yes ;; 3077esac 3078 CC=$ac_ct_CC 3079 fi 3080fi 3081 3082fi 3083 3084 3085test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3087as_fn_error $? "no acceptable C compiler found in \$PATH 3088See \`config.log' for more details" "$LINENO" 5; } 3089 3090# Provide some information about the compiler. 3091$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3092set X $ac_compile 3093ac_compiler=$2 3094for ac_option in --version -v -V -qversion; do 3095 { { ac_try="$ac_compiler $ac_option >&5" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3101$as_echo "$ac_try_echo"; } >&5 3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3103 ac_status=$? 3104 if test -s conftest.err; then 3105 sed '10a\ 3106... rest of stderr output deleted ... 3107 10q' conftest.err >conftest.er1 3108 cat conftest.er1 >&5 3109 fi 3110 rm -f conftest.er1 conftest.err 3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3112 test $ac_status = 0; } 3113done 3114 3115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126ac_clean_files_save=$ac_clean_files 3127ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3128# Try to create an executable without -o first, disregard a.out. 3129# It will help us diagnose broken compilers, and finding out an intuition 3130# of exeext. 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3132$as_echo_n "checking whether the C compiler works... " >&6; } 3133ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3134 3135# The possible output files: 3136ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3137 3138ac_rmfiles= 3139for ac_file in $ac_files 3140do 3141 case $ac_file in 3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3144 esac 3145done 3146rm -f $ac_rmfiles 3147 3148if { { ac_try="$ac_link_default" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154$as_echo "$ac_try_echo"; } >&5 3155 (eval "$ac_link_default") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3158 test $ac_status = 0; }; then : 3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3161# in a Makefile. We should not override ac_cv_exeext if it was cached, 3162# so that the user can short-circuit this test for compilers unknown to 3163# Autoconf. 3164for ac_file in $ac_files '' 3165do 3166 test -f "$ac_file" || continue 3167 case $ac_file in 3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3169 ;; 3170 [ab].out ) 3171 # We found the default executable, but exeext='' is most 3172 # certainly right. 3173 break;; 3174 *.* ) 3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3176 then :; else 3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 fi 3179 # We set ac_cv_exeext here because the later test for it is not 3180 # safe: cross compilers may not add the suffix if given an `-o' 3181 # argument, so we may need to know it at that point already. 3182 # Even if this section looks crufty: it has the advantage of 3183 # actually working. 3184 break;; 3185 * ) 3186 break;; 3187 esac 3188done 3189test "$ac_cv_exeext" = no && ac_cv_exeext= 3190 3191else 3192 ac_file='' 3193fi 3194if test -z "$ac_file"; then : 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197$as_echo "$as_me: failed program was:" >&5 3198sed 's/^/| /' conftest.$ac_ext >&5 3199 3200{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3202as_fn_error 77 "C compiler cannot create executables 3203See \`config.log' for more details" "$LINENO" 5; } 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3206$as_echo "yes" >&6; } 3207fi 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3209$as_echo_n "checking for C compiler default output file name... " >&6; } 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3211$as_echo "$ac_file" >&6; } 3212ac_exeext=$ac_cv_exeext 3213 3214rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3215ac_clean_files=$ac_clean_files_save 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3217$as_echo_n "checking for suffix of executables... " >&6; } 3218if { { ac_try="$ac_link" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224$as_echo "$ac_try_echo"; } >&5 3225 (eval "$ac_link") 2>&5 3226 ac_status=$? 3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3228 test $ac_status = 0; }; then : 3229 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3230# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3231# work properly (i.e., refer to `conftest.exe'), while it won't with 3232# `rm'. 3233for ac_file in conftest.exe conftest conftest.*; do 3234 test -f "$ac_file" || continue 3235 case $ac_file in 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3238 break;; 3239 * ) break;; 3240 esac 3241done 3242else 3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3245as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3246See \`config.log' for more details" "$LINENO" 5; } 3247fi 3248rm -f conftest conftest$ac_cv_exeext 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3250$as_echo "$ac_cv_exeext" >&6; } 3251 3252rm -f conftest.$ac_ext 3253EXEEXT=$ac_cv_exeext 3254ac_exeext=$EXEEXT 3255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257#include <stdio.h> 3258int 3259main () 3260{ 3261FILE *f = fopen ("conftest.out", "w"); 3262 return ferror (f) || fclose (f) != 0; 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files="$ac_clean_files conftest.out" 3269# Check that the compiler produces executables we can run. If not, either 3270# the compiler is broken, or we cross compile. 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3272$as_echo_n "checking whether we are cross compiling... " >&6; } 3273if test "$cross_compiling" != yes; then 3274 { { ac_try="$ac_link" 3275case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280$as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_link") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; } 3285 if { ac_try='./conftest$ac_cv_exeext' 3286 { { case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3291$as_echo "$ac_try_echo"; } >&5 3292 (eval "$ac_try") 2>&5 3293 ac_status=$? 3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3295 test $ac_status = 0; }; }; then 3296 cross_compiling=no 3297 else 3298 if test "$cross_compiling" = maybe; then 3299 cross_compiling=yes 3300 else 3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error $? "cannot run C compiled programs. 3304If you meant to cross compile, use \`--host'. 3305See \`config.log' for more details" "$LINENO" 5; } 3306 fi 3307 fi 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3310$as_echo "$cross_compiling" >&6; } 3311 3312rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3313ac_clean_files=$ac_clean_files_save 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3315$as_echo_n "checking for suffix of object files... " >&6; } 3316if ${ac_cv_objext+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321 3322int 3323main () 3324{ 3325 3326 ; 3327 return 0; 3328} 3329_ACEOF 3330rm -f conftest.o conftest.obj 3331if { { ac_try="$ac_compile" 3332case "(($ac_try" in 3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3334 *) ac_try_echo=$ac_try;; 3335esac 3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3337$as_echo "$ac_try_echo"; } >&5 3338 (eval "$ac_compile") 2>&5 3339 ac_status=$? 3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3341 test $ac_status = 0; }; then : 3342 for ac_file in conftest.o conftest.obj conftest.*; do 3343 test -f "$ac_file" || continue; 3344 case $ac_file in 3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3347 break;; 3348 esac 3349done 3350else 3351 $as_echo "$as_me: failed program was:" >&5 3352sed 's/^/| /' conftest.$ac_ext >&5 3353 3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356as_fn_error $? "cannot compute suffix of object files: cannot compile 3357See \`config.log' for more details" "$LINENO" 5; } 3358fi 3359rm -f conftest.$ac_cv_objext conftest.$ac_ext 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3362$as_echo "$ac_cv_objext" >&6; } 3363OBJEXT=$ac_cv_objext 3364ac_objext=$OBJEXT 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3366$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3367if ${ac_cv_c_compiler_gnu+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372 3373int 3374main () 3375{ 3376#ifndef __GNUC__ 3377 choke me 3378#endif 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384if ac_fn_c_try_compile "$LINENO"; then : 3385 ac_compiler_gnu=yes 3386else 3387 ac_compiler_gnu=no 3388fi 3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3390ac_cv_c_compiler_gnu=$ac_compiler_gnu 3391 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3394$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3395if test $ac_compiler_gnu = yes; then 3396 GCC=yes 3397else 3398 GCC= 3399fi 3400ac_test_CFLAGS=${CFLAGS+set} 3401ac_save_CFLAGS=$CFLAGS 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3403$as_echo_n "checking whether $CC accepts -g... " >&6; } 3404if ${ac_cv_prog_cc_g+:} false; then : 3405 $as_echo_n "(cached) " >&6 3406else 3407 ac_save_c_werror_flag=$ac_c_werror_flag 3408 ac_c_werror_flag=yes 3409 ac_cv_prog_cc_g=no 3410 CFLAGS="-g" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main () 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 ac_cv_prog_cc_g=yes 3424else 3425 CFLAGS="" 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437if ac_fn_c_try_compile "$LINENO"; then : 3438 3439else 3440 ac_c_werror_flag=$ac_save_c_werror_flag 3441 CFLAGS="-g" 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444 3445int 3446main () 3447{ 3448 3449 ; 3450 return 0; 3451} 3452_ACEOF 3453if ac_fn_c_try_compile "$LINENO"; then : 3454 ac_cv_prog_cc_g=yes 3455fi 3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3457fi 3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3459fi 3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3461 ac_c_werror_flag=$ac_save_c_werror_flag 3462fi 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3464$as_echo "$ac_cv_prog_cc_g" >&6; } 3465if test "$ac_test_CFLAGS" = set; then 3466 CFLAGS=$ac_save_CFLAGS 3467elif test $ac_cv_prog_cc_g = yes; then 3468 if test "$GCC" = yes; then 3469 CFLAGS="-g -O2" 3470 else 3471 CFLAGS="-g" 3472 fi 3473else 3474 if test "$GCC" = yes; then 3475 CFLAGS="-O2" 3476 else 3477 CFLAGS= 3478 fi 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3481$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3482if ${ac_cv_prog_cc_c89+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 ac_cv_prog_cc_c89=no 3486ac_save_CC=$CC 3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489#include <stdarg.h> 3490#include <stdio.h> 3491struct stat; 3492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3493struct buf { int x; }; 3494FILE * (*rcsopen) (struct buf *, struct stat *, int); 3495static char *e (p, i) 3496 char **p; 3497 int i; 3498{ 3499 return p[i]; 3500} 3501static char *f (char * (*g) (char **, int), char **p, ...) 3502{ 3503 char *s; 3504 va_list v; 3505 va_start (v,p); 3506 s = g (p, va_arg (v,int)); 3507 va_end (v); 3508 return s; 3509} 3510 3511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3512 function prototypes and stuff, but not '\xHH' hex character constants. 3513 These don't provoke an error unfortunately, instead are silently treated 3514 as 'x'. The following induces an error, until -std is added to get 3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3516 array size at least. It's necessary to write '\x00'==0 to get something 3517 that's true only with -std. */ 3518int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3519 3520/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3521 inside strings and character constants. */ 3522#define FOO(x) 'x' 3523int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3524 3525int test (int i, double x); 3526struct s1 {int (*f) (int a);}; 3527struct s2 {int (*f) (double a);}; 3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3529int argc; 3530char **argv; 3531int 3532main () 3533{ 3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3541do 3542 CC="$ac_save_CC $ac_arg" 3543 if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_cv_prog_cc_c89=$ac_arg 3545fi 3546rm -f core conftest.err conftest.$ac_objext 3547 test "x$ac_cv_prog_cc_c89" != "xno" && break 3548done 3549rm -f conftest.$ac_ext 3550CC=$ac_save_CC 3551 3552fi 3553# AC_CACHE_VAL 3554case "x$ac_cv_prog_cc_c89" in 3555 x) 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3557$as_echo "none needed" >&6; } ;; 3558 xno) 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3560$as_echo "unsupported" >&6; } ;; 3561 *) 3562 CC="$CC $ac_cv_prog_cc_c89" 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3564$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3565esac 3566if test "x$ac_cv_prog_cc_c89" != xno; then : 3567 3568fi 3569 3570ac_ext=c 3571ac_cpp='$CPP $CPPFLAGS' 3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ac_compiler_gnu=$ac_cv_c_compiler_gnu 3575 3576ac_ext=c 3577ac_cpp='$CPP $CPPFLAGS' 3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3582$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3583if ${am_cv_prog_cc_c_o+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597 # Make sure it works both with $CC and with simple cc. 3598 # Following AC_PROG_CC_C_O, we do the test twice because some 3599 # compilers refuse to overwrite an existing .o file with -o, 3600 # though they will create one. 3601 am_cv_prog_cc_c_o=yes 3602 for am_i in 1 2; do 3603 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3604 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3605 ac_status=$? 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); } \ 3608 && test -f conftest2.$ac_objext; then 3609 : OK 3610 else 3611 am_cv_prog_cc_c_o=no 3612 break 3613 fi 3614 done 3615 rm -f core conftest* 3616 unset am_i 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3619$as_echo "$am_cv_prog_cc_c_o" >&6; } 3620if test "$am_cv_prog_cc_c_o" != yes; then 3621 # Losing compiler, so override with the script. 3622 # FIXME: It is wrong to rewrite CC. 3623 # But if we don't then we get into trouble of one sort or another. 3624 # A longer-term fix would be to have automake use am__CC in this case, 3625 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3626 CC="$am_aux_dir/compile $CC" 3627fi 3628ac_ext=c 3629ac_cpp='$CPP $CPPFLAGS' 3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3632ac_compiler_gnu=$ac_cv_c_compiler_gnu 3633 3634 3635depcc="$CC" am_compiler_list= 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3638$as_echo_n "checking dependency style of $depcc... " >&6; } 3639if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3643 # We make a subdir and do the tests there. Otherwise we can end up 3644 # making bogus files that we don't know about and never remove. For 3645 # instance it was reported that on HP-UX the gcc test will end up 3646 # making a dummy file named 'D' -- because '-MD' means "put the output 3647 # in D". 3648 rm -rf conftest.dir 3649 mkdir conftest.dir 3650 # Copy depcomp to subdir because otherwise we won't find it if we're 3651 # using a relative directory. 3652 cp "$am_depcomp" conftest.dir 3653 cd conftest.dir 3654 # We will build objects and dependencies in a subdirectory because 3655 # it helps to detect inapplicable dependency modes. For instance 3656 # both Tru64's cc and ICC support -MD to output dependencies as a 3657 # side effect of compilation, but ICC will put the dependencies in 3658 # the current directory while Tru64 will put them in the object 3659 # directory. 3660 mkdir sub 3661 3662 am_cv_CC_dependencies_compiler_type=none 3663 if test "$am_compiler_list" = ""; then 3664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3665 fi 3666 am__universal=false 3667 case " $depcc " in #( 3668 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3669 esac 3670 3671 for depmode in $am_compiler_list; do 3672 # Setup a source with many dependencies, because some compilers 3673 # like to wrap large dependency lists on column 80 (with \), and 3674 # we should not choose a depcomp mode which is confused by this. 3675 # 3676 # We need to recreate these files for each test, as the compiler may 3677 # overwrite some of them when testing with obscure command lines. 3678 # This happens at least with the AIX C compiler. 3679 : > sub/conftest.c 3680 for i in 1 2 3 4 5 6; do 3681 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3682 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3683 # Solaris 10 /bin/sh. 3684 echo '/* dummy */' > sub/conftst$i.h 3685 done 3686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3687 3688 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3689 # mode. It turns out that the SunPro C++ compiler does not properly 3690 # handle '-M -o', and we need to detect this. Also, some Intel 3691 # versions had trouble with output in subdirs. 3692 am__obj=sub/conftest.${OBJEXT-o} 3693 am__minus_obj="-o $am__obj" 3694 case $depmode in 3695 gcc) 3696 # This depmode causes a compiler race in universal mode. 3697 test "$am__universal" = false || continue 3698 ;; 3699 nosideeffect) 3700 # After this tag, mechanisms are not by side-effect, so they'll 3701 # only be used when explicitly requested. 3702 if test "x$enable_dependency_tracking" = xyes; then 3703 continue 3704 else 3705 break 3706 fi 3707 ;; 3708 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3709 # This compiler won't grok '-c -o', but also, the minuso test has 3710 # not run yet. These depmodes are late enough in the game, and 3711 # so weak that their functioning should not be impacted. 3712 am__obj=conftest.${OBJEXT-o} 3713 am__minus_obj= 3714 ;; 3715 none) break ;; 3716 esac 3717 if depmode=$depmode \ 3718 source=sub/conftest.c object=$am__obj \ 3719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3720 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3721 >/dev/null 2>conftest.err && 3722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3724 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3726 # icc doesn't choke on unknown options, it will just issue warnings 3727 # or remarks (even with -Werror). So we grep stderr for any message 3728 # that says an option was ignored or not supported. 3729 # When given -MP, icc 7.0 and 7.1 complain thusly: 3730 # icc: Command line warning: ignoring option '-M'; no argument required 3731 # The diagnosis changed in icc 8.0: 3732 # icc: Command line remark: option '-MP' not supported 3733 if (grep 'ignoring option' conftest.err || 3734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3735 am_cv_CC_dependencies_compiler_type=$depmode 3736 break 3737 fi 3738 fi 3739 done 3740 3741 cd .. 3742 rm -rf conftest.dir 3743else 3744 am_cv_CC_dependencies_compiler_type=none 3745fi 3746 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3749$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3750CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3751 3752 if 3753 test "x$enable_dependency_tracking" != xno \ 3754 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3755 am__fastdepCC_TRUE= 3756 am__fastdepCC_FALSE='#' 3757else 3758 am__fastdepCC_TRUE='#' 3759 am__fastdepCC_FALSE= 3760fi 3761 3762 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3764$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3765if ${ac_cv_prog_cc_c99+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 ac_cv_prog_cc_c99=no 3769ac_save_CC=$CC 3770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772#include <stdarg.h> 3773#include <stdbool.h> 3774#include <stdlib.h> 3775#include <wchar.h> 3776#include <stdio.h> 3777 3778// Check varargs macros. These examples are taken from C99 6.10.3.5. 3779#define debug(...) fprintf (stderr, __VA_ARGS__) 3780#define showlist(...) puts (#__VA_ARGS__) 3781#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3782static void 3783test_varargs_macros (void) 3784{ 3785 int x = 1234; 3786 int y = 5678; 3787 debug ("Flag"); 3788 debug ("X = %d\n", x); 3789 showlist (The first, second, and third items.); 3790 report (x>y, "x is %d but y is %d", x, y); 3791} 3792 3793// Check long long types. 3794#define BIG64 18446744073709551615ull 3795#define BIG32 4294967295ul 3796#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3797#if !BIG_OK 3798 your preprocessor is broken; 3799#endif 3800#if BIG_OK 3801#else 3802 your preprocessor is broken; 3803#endif 3804static long long int bignum = -9223372036854775807LL; 3805static unsigned long long int ubignum = BIG64; 3806 3807struct incomplete_array 3808{ 3809 int datasize; 3810 double data[]; 3811}; 3812 3813struct named_init { 3814 int number; 3815 const wchar_t *name; 3816 double average; 3817}; 3818 3819typedef const char *ccp; 3820 3821static inline int 3822test_restrict (ccp restrict text) 3823{ 3824 // See if C++-style comments work. 3825 // Iterate through items via the restricted pointer. 3826 // Also check for declarations in for loops. 3827 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3828 continue; 3829 return 0; 3830} 3831 3832// Check varargs and va_copy. 3833static void 3834test_varargs (const char *format, ...) 3835{ 3836 va_list args; 3837 va_start (args, format); 3838 va_list args_copy; 3839 va_copy (args_copy, args); 3840 3841 const char *str; 3842 int number; 3843 float fnumber; 3844 3845 while (*format) 3846 { 3847 switch (*format++) 3848 { 3849 case 's': // string 3850 str = va_arg (args_copy, const char *); 3851 break; 3852 case 'd': // int 3853 number = va_arg (args_copy, int); 3854 break; 3855 case 'f': // float 3856 fnumber = va_arg (args_copy, double); 3857 break; 3858 default: 3859 break; 3860 } 3861 } 3862 va_end (args_copy); 3863 va_end (args); 3864} 3865 3866int 3867main () 3868{ 3869 3870 // Check bool. 3871 _Bool success = false; 3872 3873 // Check restrict. 3874 if (test_restrict ("String literal") == 0) 3875 success = true; 3876 char *restrict newvar = "Another string"; 3877 3878 // Check varargs. 3879 test_varargs ("s, d' f .", "string", 65, 34.234); 3880 test_varargs_macros (); 3881 3882 // Check flexible array members. 3883 struct incomplete_array *ia = 3884 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3885 ia->datasize = 10; 3886 for (int i = 0; i < ia->datasize; ++i) 3887 ia->data[i] = i * 1.234; 3888 3889 // Check named initializers. 3890 struct named_init ni = { 3891 .number = 34, 3892 .name = L"Test wide string", 3893 .average = 543.34343, 3894 }; 3895 3896 ni.number = 58; 3897 3898 int dynamic_array[ni.number]; 3899 dynamic_array[ni.number - 1] = 543; 3900 3901 // work around unused variable warnings 3902 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3903 || dynamic_array[ni.number - 1] != 543); 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3910do 3911 CC="$ac_save_CC $ac_arg" 3912 if ac_fn_c_try_compile "$LINENO"; then : 3913 ac_cv_prog_cc_c99=$ac_arg 3914fi 3915rm -f core conftest.err conftest.$ac_objext 3916 test "x$ac_cv_prog_cc_c99" != "xno" && break 3917done 3918rm -f conftest.$ac_ext 3919CC=$ac_save_CC 3920 3921fi 3922# AC_CACHE_VAL 3923case "x$ac_cv_prog_cc_c99" in 3924 x) 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3926$as_echo "none needed" >&6; } ;; 3927 xno) 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3929$as_echo "unsupported" >&6; } ;; 3930 *) 3931 CC="$CC $ac_cv_prog_cc_c99" 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3933$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3934esac 3935if test "x$ac_cv_prog_cc_c99" != xno; then : 3936 3937fi 3938 3939 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3947$as_echo_n "checking how to run the C preprocessor... " >&6; } 3948# On Suns, sometimes $CPP names a directory. 3949if test -n "$CPP" && test -d "$CPP"; then 3950 CPP= 3951fi 3952if test -z "$CPP"; then 3953 if ${ac_cv_prog_CPP+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 # Double quotes because CPP needs to be expanded 3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3958 do 3959 ac_preproc_ok=false 3960for ac_c_preproc_warn_flag in '' yes 3961do 3962 # Use a header file that comes with gcc, so configuring glibc 3963 # with a fresh cross-compiler works. 3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3965 # <limits.h> exists even on freestanding compilers. 3966 # On the NeXT, cc -E runs the code through the compiler's parser, 3967 # not just through cpp. "Syntax error" is here to catch this case. 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970#ifdef __STDC__ 3971# include <limits.h> 3972#else 3973# include <assert.h> 3974#endif 3975 Syntax error 3976_ACEOF 3977if ac_fn_c_try_cpp "$LINENO"; then : 3978 3979else 3980 # Broken: fails on valid input. 3981continue 3982fi 3983rm -f conftest.err conftest.i conftest.$ac_ext 3984 3985 # OK, works on sane cases. Now check whether nonexistent headers 3986 # can be detected and how. 3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3988/* end confdefs.h. */ 3989#include <ac_nonexistent.h> 3990_ACEOF 3991if ac_fn_c_try_cpp "$LINENO"; then : 3992 # Broken: success on invalid input. 3993continue 3994else 3995 # Passes both tests. 3996ac_preproc_ok=: 3997break 3998fi 3999rm -f conftest.err conftest.i conftest.$ac_ext 4000 4001done 4002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4003rm -f conftest.i conftest.err conftest.$ac_ext 4004if $ac_preproc_ok; then : 4005 break 4006fi 4007 4008 done 4009 ac_cv_prog_CPP=$CPP 4010 4011fi 4012 CPP=$ac_cv_prog_CPP 4013else 4014 ac_cv_prog_CPP=$CPP 4015fi 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4017$as_echo "$CPP" >&6; } 4018ac_preproc_ok=false 4019for ac_c_preproc_warn_flag in '' yes 4020do 4021 # Use a header file that comes with gcc, so configuring glibc 4022 # with a fresh cross-compiler works. 4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4024 # <limits.h> exists even on freestanding compilers. 4025 # On the NeXT, cc -E runs the code through the compiler's parser, 4026 # not just through cpp. "Syntax error" is here to catch this case. 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#ifdef __STDC__ 4030# include <limits.h> 4031#else 4032# include <assert.h> 4033#endif 4034 Syntax error 4035_ACEOF 4036if ac_fn_c_try_cpp "$LINENO"; then : 4037 4038else 4039 # Broken: fails on valid input. 4040continue 4041fi 4042rm -f conftest.err conftest.i conftest.$ac_ext 4043 4044 # OK, works on sane cases. Now check whether nonexistent headers 4045 # can be detected and how. 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048#include <ac_nonexistent.h> 4049_ACEOF 4050if ac_fn_c_try_cpp "$LINENO"; then : 4051 # Broken: success on invalid input. 4052continue 4053else 4054 # Passes both tests. 4055ac_preproc_ok=: 4056break 4057fi 4058rm -f conftest.err conftest.i conftest.$ac_ext 4059 4060done 4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4062rm -f conftest.i conftest.err conftest.$ac_ext 4063if $ac_preproc_ok; then : 4064 4065else 4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4068as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4069See \`config.log' for more details" "$LINENO" 5; } 4070fi 4071 4072ac_ext=c 4073ac_cpp='$CPP $CPPFLAGS' 4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4076ac_compiler_gnu=$ac_cv_c_compiler_gnu 4077 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4080$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4081if ${ac_cv_path_GREP+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -z "$GREP"; then 4085 ac_path_GREP_found=false 4086 # Loop through the user's path and test for each of PROGNAME-LIST 4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4089do 4090 IFS=$as_save_IFS 4091 test -z "$as_dir" && as_dir=. 4092 for ac_prog in grep ggrep; do 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4095 as_fn_executable_p "$ac_path_GREP" || continue 4096# Check for GNU ac_path_GREP and select it if it is found. 4097 # Check for GNU $ac_path_GREP 4098case `"$ac_path_GREP" --version 2>&1` in 4099*GNU*) 4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4101*) 4102 ac_count=0 4103 $as_echo_n 0123456789 >"conftest.in" 4104 while : 4105 do 4106 cat "conftest.in" "conftest.in" >"conftest.tmp" 4107 mv "conftest.tmp" "conftest.in" 4108 cp "conftest.in" "conftest.nl" 4109 $as_echo 'GREP' >> "conftest.nl" 4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4112 as_fn_arith $ac_count + 1 && ac_count=$as_val 4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4114 # Best one so far, save it but keep looking for a better one 4115 ac_cv_path_GREP="$ac_path_GREP" 4116 ac_path_GREP_max=$ac_count 4117 fi 4118 # 10*(2^10) chars as input seems more than enough 4119 test $ac_count -gt 10 && break 4120 done 4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4122esac 4123 4124 $ac_path_GREP_found && break 3 4125 done 4126 done 4127 done 4128IFS=$as_save_IFS 4129 if test -z "$ac_cv_path_GREP"; then 4130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4131 fi 4132else 4133 ac_cv_path_GREP=$GREP 4134fi 4135 4136fi 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4138$as_echo "$ac_cv_path_GREP" >&6; } 4139 GREP="$ac_cv_path_GREP" 4140 4141 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4143$as_echo_n "checking for egrep... " >&6; } 4144if ${ac_cv_path_EGREP+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4148 then ac_cv_path_EGREP="$GREP -E" 4149 else 4150 if test -z "$EGREP"; then 4151 ac_path_EGREP_found=false 4152 # Loop through the user's path and test for each of PROGNAME-LIST 4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4155do 4156 IFS=$as_save_IFS 4157 test -z "$as_dir" && as_dir=. 4158 for ac_prog in egrep; do 4159 for ac_exec_ext in '' $ac_executable_extensions; do 4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4161 as_fn_executable_p "$ac_path_EGREP" || continue 4162# Check for GNU ac_path_EGREP and select it if it is found. 4163 # Check for GNU $ac_path_EGREP 4164case `"$ac_path_EGREP" --version 2>&1` in 4165*GNU*) 4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4167*) 4168 ac_count=0 4169 $as_echo_n 0123456789 >"conftest.in" 4170 while : 4171 do 4172 cat "conftest.in" "conftest.in" >"conftest.tmp" 4173 mv "conftest.tmp" "conftest.in" 4174 cp "conftest.in" "conftest.nl" 4175 $as_echo 'EGREP' >> "conftest.nl" 4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4178 as_fn_arith $ac_count + 1 && ac_count=$as_val 4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4180 # Best one so far, save it but keep looking for a better one 4181 ac_cv_path_EGREP="$ac_path_EGREP" 4182 ac_path_EGREP_max=$ac_count 4183 fi 4184 # 10*(2^10) chars as input seems more than enough 4185 test $ac_count -gt 10 && break 4186 done 4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4188esac 4189 4190 $ac_path_EGREP_found && break 3 4191 done 4192 done 4193 done 4194IFS=$as_save_IFS 4195 if test -z "$ac_cv_path_EGREP"; then 4196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4197 fi 4198else 4199 ac_cv_path_EGREP=$EGREP 4200fi 4201 4202 fi 4203fi 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4205$as_echo "$ac_cv_path_EGREP" >&6; } 4206 EGREP="$ac_cv_path_EGREP" 4207 4208 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4210$as_echo_n "checking for ANSI C header files... " >&6; } 4211if ${ac_cv_header_stdc+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216#include <stdlib.h> 4217#include <stdarg.h> 4218#include <string.h> 4219#include <float.h> 4220 4221int 4222main () 4223{ 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229if ac_fn_c_try_compile "$LINENO"; then : 4230 ac_cv_header_stdc=yes 4231else 4232 ac_cv_header_stdc=no 4233fi 4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4235 4236if test $ac_cv_header_stdc = yes; then 4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#include <string.h> 4241 4242_ACEOF 4243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4244 $EGREP "memchr" >/dev/null 2>&1; then : 4245 4246else 4247 ac_cv_header_stdc=no 4248fi 4249rm -f conftest* 4250 4251fi 4252 4253if test $ac_cv_header_stdc = yes; then 4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257#include <stdlib.h> 4258 4259_ACEOF 4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4261 $EGREP "free" >/dev/null 2>&1; then : 4262 4263else 4264 ac_cv_header_stdc=no 4265fi 4266rm -f conftest* 4267 4268fi 4269 4270if test $ac_cv_header_stdc = yes; then 4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4272 if test "$cross_compiling" = yes; then : 4273 : 4274else 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277#include <ctype.h> 4278#include <stdlib.h> 4279#if ((' ' & 0x0FF) == 0x020) 4280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4282#else 4283# define ISLOWER(c) \ 4284 (('a' <= (c) && (c) <= 'i') \ 4285 || ('j' <= (c) && (c) <= 'r') \ 4286 || ('s' <= (c) && (c) <= 'z')) 4287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4288#endif 4289 4290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4291int 4292main () 4293{ 4294 int i; 4295 for (i = 0; i < 256; i++) 4296 if (XOR (islower (i), ISLOWER (i)) 4297 || toupper (i) != TOUPPER (i)) 4298 return 2; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_run "$LINENO"; then : 4303 4304else 4305 ac_cv_header_stdc=no 4306fi 4307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4308 conftest.$ac_objext conftest.beam conftest.$ac_ext 4309fi 4310 4311fi 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4314$as_echo "$ac_cv_header_stdc" >&6; } 4315if test $ac_cv_header_stdc = yes; then 4316 4317$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4318 4319fi 4320 4321# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4323 inttypes.h stdint.h unistd.h 4324do : 4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4327" 4328if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4329 cat >>confdefs.h <<_ACEOF 4330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4331_ACEOF 4332 4333fi 4334 4335done 4336 4337 4338 4339 4340 4341 4342ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4343if test "x$ac_cv_have_decl___clang__" = xyes; then : 4344 CLANGCC="yes" 4345else 4346 CLANGCC="no" 4347fi 4348 4349ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4350if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4351 INTELCC="yes" 4352else 4353 INTELCC="no" 4354fi 4355 4356ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4357if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4358 SUNCC="yes" 4359else 4360 SUNCC="no" 4361fi 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4372 if test -n "$ac_tool_prefix"; then 4373 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4374set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4376$as_echo_n "checking for $ac_word... " >&6; } 4377if ${ac_cv_path_PKG_CONFIG+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 case $PKG_CONFIG in 4381 [\\/]* | ?:[\\/]*) 4382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4383 ;; 4384 *) 4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4386for as_dir in $PATH 4387do 4388 IFS=$as_save_IFS 4389 test -z "$as_dir" && as_dir=. 4390 for ac_exec_ext in '' $ac_executable_extensions; do 4391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4394 break 2 4395 fi 4396done 4397 done 4398IFS=$as_save_IFS 4399 4400 ;; 4401esac 4402fi 4403PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4404if test -n "$PKG_CONFIG"; then 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4406$as_echo "$PKG_CONFIG" >&6; } 4407else 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4409$as_echo "no" >&6; } 4410fi 4411 4412 4413fi 4414if test -z "$ac_cv_path_PKG_CONFIG"; then 4415 ac_pt_PKG_CONFIG=$PKG_CONFIG 4416 # Extract the first word of "pkg-config", so it can be a program name with args. 4417set dummy pkg-config; ac_word=$2 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4419$as_echo_n "checking for $ac_word... " >&6; } 4420if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 case $ac_pt_PKG_CONFIG in 4424 [\\/]* | ?:[\\/]*) 4425 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4426 ;; 4427 *) 4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4435 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439done 4440 done 4441IFS=$as_save_IFS 4442 4443 ;; 4444esac 4445fi 4446ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4447if test -n "$ac_pt_PKG_CONFIG"; then 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4449$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4450else 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4452$as_echo "no" >&6; } 4453fi 4454 4455 if test "x$ac_pt_PKG_CONFIG" = x; then 4456 PKG_CONFIG="" 4457 else 4458 case $cross_compiling:$ac_tool_warned in 4459yes:) 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4462ac_tool_warned=yes ;; 4463esac 4464 PKG_CONFIG=$ac_pt_PKG_CONFIG 4465 fi 4466else 4467 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4468fi 4469 4470fi 4471if test -n "$PKG_CONFIG"; then 4472 _pkg_min_version=0.9.0 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4474$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4475 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4477$as_echo "yes" >&6; } 4478 else 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4480$as_echo "no" >&6; } 4481 PKG_CONFIG="" 4482 fi 4483fi 4484# Make sure we can run config.sub. 4485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4487 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4489$as_echo_n "checking build system type... " >&6; } 4490if ${ac_cv_build+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 ac_build_alias=$build_alias 4494test "x$ac_build_alias" = x && 4495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4496test "x$ac_build_alias" = x && 4497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4500 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4503$as_echo "$ac_cv_build" >&6; } 4504case $ac_cv_build in 4505*-*-*) ;; 4506*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4507esac 4508build=$ac_cv_build 4509ac_save_IFS=$IFS; IFS='-' 4510set x $ac_cv_build 4511shift 4512build_cpu=$1 4513build_vendor=$2 4514shift; shift 4515# Remember, the first character of IFS is used to create $*, 4516# except with old shells: 4517build_os=$* 4518IFS=$ac_save_IFS 4519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4523$as_echo_n "checking host system type... " >&6; } 4524if ${ac_cv_host+:} false; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 if test "x$host_alias" = x; then 4528 ac_cv_host=$ac_cv_build 4529else 4530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4532fi 4533 4534fi 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4536$as_echo "$ac_cv_host" >&6; } 4537case $ac_cv_host in 4538*-*-*) ;; 4539*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4540esac 4541host=$ac_cv_host 4542ac_save_IFS=$IFS; IFS='-' 4543set x $ac_cv_host 4544shift 4545host_cpu=$1 4546host_vendor=$2 4547shift; shift 4548# Remember, the first character of IFS is used to create $*, 4549# except with old shells: 4550host_os=$* 4551IFS=$ac_save_IFS 4552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4553 4554 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4556$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4557if ${ac_cv_path_SED+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4561 for ac_i in 1 2 3 4 5 6 7; do 4562 ac_script="$ac_script$as_nl$ac_script" 4563 done 4564 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4565 { ac_script=; unset ac_script;} 4566 if test -z "$SED"; then 4567 ac_path_SED_found=false 4568 # Loop through the user's path and test for each of PROGNAME-LIST 4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4570for as_dir in $PATH 4571do 4572 IFS=$as_save_IFS 4573 test -z "$as_dir" && as_dir=. 4574 for ac_prog in sed gsed; do 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4577 as_fn_executable_p "$ac_path_SED" || continue 4578# Check for GNU ac_path_SED and select it if it is found. 4579 # Check for GNU $ac_path_SED 4580case `"$ac_path_SED" --version 2>&1` in 4581*GNU*) 4582 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4583*) 4584 ac_count=0 4585 $as_echo_n 0123456789 >"conftest.in" 4586 while : 4587 do 4588 cat "conftest.in" "conftest.in" >"conftest.tmp" 4589 mv "conftest.tmp" "conftest.in" 4590 cp "conftest.in" "conftest.nl" 4591 $as_echo '' >> "conftest.nl" 4592 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4594 as_fn_arith $ac_count + 1 && ac_count=$as_val 4595 if test $ac_count -gt ${ac_path_SED_max-0}; then 4596 # Best one so far, save it but keep looking for a better one 4597 ac_cv_path_SED="$ac_path_SED" 4598 ac_path_SED_max=$ac_count 4599 fi 4600 # 10*(2^10) chars as input seems more than enough 4601 test $ac_count -gt 10 && break 4602 done 4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4604esac 4605 4606 $ac_path_SED_found && break 3 4607 done 4608 done 4609 done 4610IFS=$as_save_IFS 4611 if test -z "$ac_cv_path_SED"; then 4612 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4613 fi 4614else 4615 ac_cv_path_SED=$SED 4616fi 4617 4618fi 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4620$as_echo "$ac_cv_path_SED" >&6; } 4621 SED="$ac_cv_path_SED" 4622 rm -f conftest.sed 4623 4624 4625 4626 4627 4628 4629# Check whether --enable-selective-werror was given. 4630if test "${enable_selective_werror+set}" = set; then : 4631 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4632else 4633 SELECTIVE_WERROR=yes 4634fi 4635 4636 4637 4638 4639 4640# -v is too short to test reliably with XORG_TESTSET_CFLAG 4641if test "x$SUNCC" = "xyes"; then 4642 BASE_CFLAGS="-v" 4643else 4644 BASE_CFLAGS="" 4645fi 4646 4647# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661xorg_testset_save_CFLAGS="$CFLAGS" 4662 4663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4671/* end confdefs.h. */ 4672int i; 4673_ACEOF 4674if ac_fn_c_try_compile "$LINENO"; then : 4675 xorg_cv_cc_flag_unknown_warning_option=yes 4676else 4677 xorg_cv_cc_flag_unknown_warning_option=no 4678fi 4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4680fi 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4684 CFLAGS="$xorg_testset_save_CFLAGS" 4685fi 4686 4687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4690 fi 4691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699int i; 4700_ACEOF 4701if ac_fn_c_try_compile "$LINENO"; then : 4702 xorg_cv_cc_flag_unused_command_line_argument=yes 4703else 4704 xorg_cv_cc_flag_unused_command_line_argument=no 4705fi 4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4707fi 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4711 CFLAGS="$xorg_testset_save_CFLAGS" 4712fi 4713 4714found="no" 4715 4716 if test $found = "no" ; then 4717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4719 fi 4720 4721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4723 fi 4724 4725 CFLAGS="$CFLAGS -Wall" 4726 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4728$as_echo_n "checking if $CC supports -Wall... " >&6; } 4729 cacheid=xorg_cv_cc_flag__Wall 4730 if eval \${$cacheid+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4734/* end confdefs.h. */ 4735int i; 4736int 4737main () 4738{ 4739 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744if ac_fn_c_try_link "$LINENO"; then : 4745 eval $cacheid=yes 4746else 4747 eval $cacheid=no 4748fi 4749rm -f core conftest.err conftest.$ac_objext \ 4750 conftest$ac_exeext conftest.$ac_ext 4751fi 4752 4753 4754 CFLAGS="$xorg_testset_save_CFLAGS" 4755 4756 eval supported=\$$cacheid 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4758$as_echo "$supported" >&6; } 4759 if test "$supported" = "yes" ; then 4760 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4761 found="yes" 4762 fi 4763 fi 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779xorg_testset_save_CFLAGS="$CFLAGS" 4780 4781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4789/* end confdefs.h. */ 4790int i; 4791_ACEOF 4792if ac_fn_c_try_compile "$LINENO"; then : 4793 xorg_cv_cc_flag_unknown_warning_option=yes 4794else 4795 xorg_cv_cc_flag_unknown_warning_option=no 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798fi 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4802 CFLAGS="$xorg_testset_save_CFLAGS" 4803fi 4804 4805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4808 fi 4809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817int i; 4818_ACEOF 4819if ac_fn_c_try_compile "$LINENO"; then : 4820 xorg_cv_cc_flag_unused_command_line_argument=yes 4821else 4822 xorg_cv_cc_flag_unused_command_line_argument=no 4823fi 4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4829 CFLAGS="$xorg_testset_save_CFLAGS" 4830fi 4831 4832found="no" 4833 4834 if test $found = "no" ; then 4835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4837 fi 4838 4839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4841 fi 4842 4843 CFLAGS="$CFLAGS -Wpointer-arith" 4844 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4846$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4847 cacheid=xorg_cv_cc_flag__Wpointer_arith 4848 if eval \${$cacheid+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853int i; 4854int 4855main () 4856{ 4857 4858 ; 4859 return 0; 4860} 4861_ACEOF 4862if ac_fn_c_try_link "$LINENO"; then : 4863 eval $cacheid=yes 4864else 4865 eval $cacheid=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext \ 4868 conftest$ac_exeext conftest.$ac_ext 4869fi 4870 4871 4872 CFLAGS="$xorg_testset_save_CFLAGS" 4873 4874 eval supported=\$$cacheid 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4876$as_echo "$supported" >&6; } 4877 if test "$supported" = "yes" ; then 4878 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4879 found="yes" 4880 fi 4881 fi 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897xorg_testset_save_CFLAGS="$CFLAGS" 4898 4899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908int i; 4909_ACEOF 4910if ac_fn_c_try_compile "$LINENO"; then : 4911 xorg_cv_cc_flag_unknown_warning_option=yes 4912else 4913 xorg_cv_cc_flag_unknown_warning_option=no 4914fi 4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4920 CFLAGS="$xorg_testset_save_CFLAGS" 4921fi 4922 4923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4926 fi 4927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935int i; 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 xorg_cv_cc_flag_unused_command_line_argument=yes 4939else 4940 xorg_cv_cc_flag_unused_command_line_argument=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950found="no" 4951 4952 if test $found = "no" ; then 4953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4955 fi 4956 4957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4959 fi 4960 4961 CFLAGS="$CFLAGS -Wmissing-declarations" 4962 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4964$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4965 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4966 if eval \${$cacheid+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971int i; 4972int 4973main () 4974{ 4975 4976 ; 4977 return 0; 4978} 4979_ACEOF 4980if ac_fn_c_try_link "$LINENO"; then : 4981 eval $cacheid=yes 4982else 4983 eval $cacheid=no 4984fi 4985rm -f core conftest.err conftest.$ac_objext \ 4986 conftest$ac_exeext conftest.$ac_ext 4987fi 4988 4989 4990 CFLAGS="$xorg_testset_save_CFLAGS" 4991 4992 eval supported=\$$cacheid 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4994$as_echo "$supported" >&6; } 4995 if test "$supported" = "yes" ; then 4996 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4997 found="yes" 4998 fi 4999 fi 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015xorg_testset_save_CFLAGS="$CFLAGS" 5016 5017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026int i; 5027_ACEOF 5028if ac_fn_c_try_compile "$LINENO"; then : 5029 xorg_cv_cc_flag_unknown_warning_option=yes 5030else 5031 xorg_cv_cc_flag_unknown_warning_option=no 5032fi 5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5038 CFLAGS="$xorg_testset_save_CFLAGS" 5039fi 5040 5041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5044 fi 5045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053int i; 5054_ACEOF 5055if ac_fn_c_try_compile "$LINENO"; then : 5056 xorg_cv_cc_flag_unused_command_line_argument=yes 5057else 5058 xorg_cv_cc_flag_unused_command_line_argument=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068found="no" 5069 5070 if test $found = "no" ; then 5071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5073 fi 5074 5075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5077 fi 5078 5079 CFLAGS="$CFLAGS -Wformat=2" 5080 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5082$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5083 cacheid=xorg_cv_cc_flag__Wformat_2 5084 if eval \${$cacheid+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089int i; 5090int 5091main () 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098if ac_fn_c_try_link "$LINENO"; then : 5099 eval $cacheid=yes 5100else 5101 eval $cacheid=no 5102fi 5103rm -f core conftest.err conftest.$ac_objext \ 5104 conftest$ac_exeext conftest.$ac_ext 5105fi 5106 5107 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109 5110 eval supported=\$$cacheid 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5112$as_echo "$supported" >&6; } 5113 if test "$supported" = "yes" ; then 5114 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5115 found="yes" 5116 fi 5117 fi 5118 5119 if test $found = "no" ; then 5120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5122 fi 5123 5124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5126 fi 5127 5128 CFLAGS="$CFLAGS -Wformat" 5129 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5131$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5132 cacheid=xorg_cv_cc_flag__Wformat 5133 if eval \${$cacheid+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139int 5140main () 5141{ 5142 5143 ; 5144 return 0; 5145} 5146_ACEOF 5147if ac_fn_c_try_link "$LINENO"; then : 5148 eval $cacheid=yes 5149else 5150 eval $cacheid=no 5151fi 5152rm -f core conftest.err conftest.$ac_objext \ 5153 conftest$ac_exeext conftest.$ac_ext 5154fi 5155 5156 5157 CFLAGS="$xorg_testset_save_CFLAGS" 5158 5159 eval supported=\$$cacheid 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5161$as_echo "$supported" >&6; } 5162 if test "$supported" = "yes" ; then 5163 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5164 found="yes" 5165 fi 5166 fi 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184xorg_testset_save_CFLAGS="$CFLAGS" 5185 5186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196_ACEOF 5197if ac_fn_c_try_compile "$LINENO"; then : 5198 xorg_cv_cc_flag_unknown_warning_option=yes 5199else 5200 xorg_cv_cc_flag_unknown_warning_option=no 5201fi 5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5203fi 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208fi 5209 5210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222int i; 5223_ACEOF 5224if ac_fn_c_try_compile "$LINENO"; then : 5225 xorg_cv_cc_flag_unused_command_line_argument=yes 5226else 5227 xorg_cv_cc_flag_unused_command_line_argument=no 5228fi 5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5230fi 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5235fi 5236 5237found="no" 5238 5239 if test $found = "no" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 5244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5246 fi 5247 5248 CFLAGS="$CFLAGS -Wstrict-prototypes" 5249 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5251$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5252 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5253 if eval \${$cacheid+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258int i; 5259int 5260main () 5261{ 5262 5263 ; 5264 return 0; 5265} 5266_ACEOF 5267if ac_fn_c_try_link "$LINENO"; then : 5268 eval $cacheid=yes 5269else 5270 eval $cacheid=no 5271fi 5272rm -f core conftest.err conftest.$ac_objext \ 5273 conftest$ac_exeext conftest.$ac_ext 5274fi 5275 5276 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278 5279 eval supported=\$$cacheid 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5281$as_echo "$supported" >&6; } 5282 if test "$supported" = "yes" ; then 5283 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5284 found="yes" 5285 fi 5286 fi 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302xorg_testset_save_CFLAGS="$CFLAGS" 5303 5304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO"; then : 5316 xorg_cv_cc_flag_unknown_warning_option=yes 5317else 5318 xorg_cv_cc_flag_unknown_warning_option=no 5319fi 5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326fi 5327 5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340int i; 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 xorg_cv_cc_flag_unused_command_line_argument=yes 5344else 5345 xorg_cv_cc_flag_unused_command_line_argument=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353fi 5354 5355found="no" 5356 5357 if test $found = "no" ; then 5358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5360 fi 5361 5362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5364 fi 5365 5366 CFLAGS="$CFLAGS -Wmissing-prototypes" 5367 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5369$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5370 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5371 if eval \${$cacheid+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376int i; 5377int 5378main () 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_link "$LINENO"; then : 5386 eval $cacheid=yes 5387else 5388 eval $cacheid=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext \ 5391 conftest$ac_exeext conftest.$ac_ext 5392fi 5393 5394 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396 5397 eval supported=\$$cacheid 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5399$as_echo "$supported" >&6; } 5400 if test "$supported" = "yes" ; then 5401 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5402 found="yes" 5403 fi 5404 fi 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420xorg_testset_save_CFLAGS="$CFLAGS" 5421 5422if test "x$xorg_testset_cc_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_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5447 if test "x$xorg_testset_cc_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_cc_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_cc_unknown_warning_option" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5478 fi 5479 5480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5482 fi 5483 5484 CFLAGS="$CFLAGS -Wnested-externs" 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5487$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5488 cacheid=xorg_cv_cc_flag__Wnested_externs 5489 if eval \${$cacheid+:} 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 $cacheid=yes 5505else 5506 eval $cacheid=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=\$$cacheid 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 -Wnested-externs" 5520 found="yes" 5521 fi 5522 fi 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538xorg_testset_save_CFLAGS="$CFLAGS" 5539 5540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549int i; 5550_ACEOF 5551if ac_fn_c_try_compile "$LINENO"; then : 5552 xorg_cv_cc_flag_unknown_warning_option=yes 5553else 5554 xorg_cv_cc_flag_unknown_warning_option=no 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5561 CFLAGS="$xorg_testset_save_CFLAGS" 5562fi 5563 5564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 xorg_cv_cc_flag_unused_command_line_argument=yes 5580else 5581 xorg_cv_cc_flag_unused_command_line_argument=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5588 CFLAGS="$xorg_testset_save_CFLAGS" 5589fi 5590 5591found="no" 5592 5593 if test $found = "no" ; then 5594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5596 fi 5597 5598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600 fi 5601 5602 CFLAGS="$CFLAGS -Wbad-function-cast" 5603 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5605$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5606 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5607 if eval \${$cacheid+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5611/* end confdefs.h. */ 5612int i; 5613int 5614main () 5615{ 5616 5617 ; 5618 return 0; 5619} 5620_ACEOF 5621if ac_fn_c_try_link "$LINENO"; then : 5622 eval $cacheid=yes 5623else 5624 eval $cacheid=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext \ 5627 conftest$ac_exeext conftest.$ac_ext 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635$as_echo "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656xorg_testset_save_CFLAGS="$CFLAGS" 5657 5658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668_ACEOF 5669if ac_fn_c_try_compile "$LINENO"; then : 5670 xorg_cv_cc_flag_unknown_warning_option=yes 5671else 5672 xorg_cv_cc_flag_unknown_warning_option=no 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680fi 5681 5682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 fi 5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693/* end confdefs.h. */ 5694int i; 5695_ACEOF 5696if ac_fn_c_try_compile "$LINENO"; then : 5697 xorg_cv_cc_flag_unused_command_line_argument=yes 5698else 5699 xorg_cv_cc_flag_unused_command_line_argument=no 5700fi 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5702fi 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5706 CFLAGS="$xorg_testset_save_CFLAGS" 5707fi 5708 5709found="no" 5710 5711 if test $found = "no" ; then 5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 fi 5715 5716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5718 fi 5719 5720 CFLAGS="$CFLAGS -Wold-style-definition" 5721 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5723$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5724 cacheid=xorg_cv_cc_flag__Wold_style_definition 5725 if eval \${$cacheid+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5729/* end confdefs.h. */ 5730int i; 5731int 5732main () 5733{ 5734 5735 ; 5736 return 0; 5737} 5738_ACEOF 5739if ac_fn_c_try_link "$LINENO"; then : 5740 eval $cacheid=yes 5741else 5742 eval $cacheid=no 5743fi 5744rm -f core conftest.err conftest.$ac_objext \ 5745 conftest$ac_exeext conftest.$ac_ext 5746fi 5747 5748 5749 CFLAGS="$xorg_testset_save_CFLAGS" 5750 5751 eval supported=\$$cacheid 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5753$as_echo "$supported" >&6; } 5754 if test "$supported" = "yes" ; then 5755 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5756 found="yes" 5757 fi 5758 fi 5759 5760 if test $found = "no" ; then 5761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5763 fi 5764 5765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 fi 5768 5769 CFLAGS="$CFLAGS -fd" 5770 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5772$as_echo_n "checking if $CC supports -fd... " >&6; } 5773 cacheid=xorg_cv_cc_flag__fd 5774 if eval \${$cacheid+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780int 5781main () 5782{ 5783 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_link "$LINENO"; then : 5789 eval $cacheid=yes 5790else 5791 eval $cacheid=no 5792fi 5793rm -f core conftest.err conftest.$ac_objext \ 5794 conftest$ac_exeext conftest.$ac_ext 5795fi 5796 5797 5798 CFLAGS="$xorg_testset_save_CFLAGS" 5799 5800 eval supported=\$$cacheid 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5802$as_echo "$supported" >&6; } 5803 if test "$supported" = "yes" ; then 5804 BASE_CFLAGS="$BASE_CFLAGS -fd" 5805 found="yes" 5806 fi 5807 fi 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823xorg_testset_save_CFLAGS="$CFLAGS" 5824 5825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO"; then : 5837 xorg_cv_cc_flag_unknown_warning_option=yes 5838else 5839 xorg_cv_cc_flag_unknown_warning_option=no 5840fi 5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842fi 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847fi 5848 5849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5860/* end confdefs.h. */ 5861int i; 5862_ACEOF 5863if ac_fn_c_try_compile "$LINENO"; then : 5864 xorg_cv_cc_flag_unused_command_line_argument=yes 5865else 5866 xorg_cv_cc_flag_unused_command_line_argument=no 5867fi 5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5869fi 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5873 CFLAGS="$xorg_testset_save_CFLAGS" 5874fi 5875 5876found="no" 5877 5878 if test $found = "no" ; then 5879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881 fi 5882 5883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5885 fi 5886 5887 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5888 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5890$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5891 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5892 if eval \${$cacheid+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898int 5899main () 5900{ 5901 5902 ; 5903 return 0; 5904} 5905_ACEOF 5906if ac_fn_c_try_link "$LINENO"; then : 5907 eval $cacheid=yes 5908else 5909 eval $cacheid=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext \ 5912 conftest$ac_exeext conftest.$ac_ext 5913fi 5914 5915 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917 5918 eval supported=\$$cacheid 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920$as_echo "$supported" >&6; } 5921 if test "$supported" = "yes" ; then 5922 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5923 found="yes" 5924 fi 5925 fi 5926 5927 5928 5929 5930 5931# This chunk adds additional warnings that could catch undesired effects. 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945xorg_testset_save_CFLAGS="$CFLAGS" 5946 5947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5955/* end confdefs.h. */ 5956int i; 5957_ACEOF 5958if ac_fn_c_try_compile "$LINENO"; then : 5959 xorg_cv_cc_flag_unknown_warning_option=yes 5960else 5961 xorg_cv_cc_flag_unknown_warning_option=no 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5964fi 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969fi 5970 5971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 fi 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 5987else 5988 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996fi 5997 5998found="no" 5999 6000 if test $found = "no" ; then 6001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 fi 6004 6005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 fi 6008 6009 CFLAGS="$CFLAGS -Wunused" 6010 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6012$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6013 cacheid=xorg_cv_cc_flag__Wunused 6014 if eval \${$cacheid+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020int 6021main () 6022{ 6023 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028if ac_fn_c_try_link "$LINENO"; then : 6029 eval $cacheid=yes 6030else 6031 eval $cacheid=no 6032fi 6033rm -f core conftest.err conftest.$ac_objext \ 6034 conftest$ac_exeext conftest.$ac_ext 6035fi 6036 6037 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039 6040 eval supported=\$$cacheid 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6042$as_echo "$supported" >&6; } 6043 if test "$supported" = "yes" ; then 6044 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6045 found="yes" 6046 fi 6047 fi 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063xorg_testset_save_CFLAGS="$CFLAGS" 6064 6065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074int i; 6075_ACEOF 6076if ac_fn_c_try_compile "$LINENO"; then : 6077 xorg_cv_cc_flag_unknown_warning_option=yes 6078else 6079 xorg_cv_cc_flag_unknown_warning_option=no 6080fi 6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6082fi 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6086 CFLAGS="$xorg_testset_save_CFLAGS" 6087fi 6088 6089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 fi 6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6100/* end confdefs.h. */ 6101int i; 6102_ACEOF 6103if ac_fn_c_try_compile "$LINENO"; then : 6104 xorg_cv_cc_flag_unused_command_line_argument=yes 6105else 6106 xorg_cv_cc_flag_unused_command_line_argument=no 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109fi 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114fi 6115 6116found="no" 6117 6118 if test $found = "no" ; then 6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 fi 6126 6127 CFLAGS="$CFLAGS -Wuninitialized" 6128 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6130$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6131 cacheid=xorg_cv_cc_flag__Wuninitialized 6132 if eval \${$cacheid+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6136/* end confdefs.h. */ 6137int i; 6138int 6139main () 6140{ 6141 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146if ac_fn_c_try_link "$LINENO"; then : 6147 eval $cacheid=yes 6148else 6149 eval $cacheid=no 6150fi 6151rm -f core conftest.err conftest.$ac_objext \ 6152 conftest$ac_exeext conftest.$ac_ext 6153fi 6154 6155 6156 CFLAGS="$xorg_testset_save_CFLAGS" 6157 6158 eval supported=\$$cacheid 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6160$as_echo "$supported" >&6; } 6161 if test "$supported" = "yes" ; then 6162 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6163 found="yes" 6164 fi 6165 fi 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181xorg_testset_save_CFLAGS="$CFLAGS" 6182 6183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192int i; 6193_ACEOF 6194if ac_fn_c_try_compile "$LINENO"; then : 6195 xorg_cv_cc_flag_unknown_warning_option=yes 6196else 6197 xorg_cv_cc_flag_unknown_warning_option=no 6198fi 6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6200fi 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6204 CFLAGS="$xorg_testset_save_CFLAGS" 6205fi 6206 6207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 fi 6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219int i; 6220_ACEOF 6221if ac_fn_c_try_compile "$LINENO"; then : 6222 xorg_cv_cc_flag_unused_command_line_argument=yes 6223else 6224 xorg_cv_cc_flag_unused_command_line_argument=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232fi 6233 6234found="no" 6235 6236 if test $found = "no" ; then 6237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6239 fi 6240 6241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6243 fi 6244 6245 CFLAGS="$CFLAGS -Wshadow" 6246 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6248$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6249 cacheid=xorg_cv_cc_flag__Wshadow 6250 if eval \${$cacheid+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256int 6257main () 6258{ 6259 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264if ac_fn_c_try_link "$LINENO"; then : 6265 eval $cacheid=yes 6266else 6267 eval $cacheid=no 6268fi 6269rm -f core conftest.err conftest.$ac_objext \ 6270 conftest$ac_exeext conftest.$ac_ext 6271fi 6272 6273 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275 6276 eval supported=\$$cacheid 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6278$as_echo "$supported" >&6; } 6279 if test "$supported" = "yes" ; then 6280 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6281 found="yes" 6282 fi 6283 fi 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299xorg_testset_save_CFLAGS="$CFLAGS" 6300 6301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311_ACEOF 6312if ac_fn_c_try_compile "$LINENO"; then : 6313 xorg_cv_cc_flag_unknown_warning_option=yes 6314else 6315 xorg_cv_cc_flag_unknown_warning_option=no 6316fi 6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6318fi 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6322 CFLAGS="$xorg_testset_save_CFLAGS" 6323fi 6324 6325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 fi 6329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338_ACEOF 6339if ac_fn_c_try_compile "$LINENO"; then : 6340 xorg_cv_cc_flag_unused_command_line_argument=yes 6341else 6342 xorg_cv_cc_flag_unused_command_line_argument=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6345fi 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350fi 6351 6352found="no" 6353 6354 if test $found = "no" ; then 6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 fi 6362 6363 CFLAGS="$CFLAGS -Wmissing-noreturn" 6364 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6366$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6367 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6368 if eval \${$cacheid+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373int i; 6374int 6375main () 6376{ 6377 6378 ; 6379 return 0; 6380} 6381_ACEOF 6382if ac_fn_c_try_link "$LINENO"; then : 6383 eval $cacheid=yes 6384else 6385 eval $cacheid=no 6386fi 6387rm -f core conftest.err conftest.$ac_objext \ 6388 conftest$ac_exeext conftest.$ac_ext 6389fi 6390 6391 6392 CFLAGS="$xorg_testset_save_CFLAGS" 6393 6394 eval supported=\$$cacheid 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6396$as_echo "$supported" >&6; } 6397 if test "$supported" = "yes" ; then 6398 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6399 found="yes" 6400 fi 6401 fi 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417xorg_testset_save_CFLAGS="$CFLAGS" 6418 6419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428int i; 6429_ACEOF 6430if ac_fn_c_try_compile "$LINENO"; then : 6431 xorg_cv_cc_flag_unknown_warning_option=yes 6432else 6433 xorg_cv_cc_flag_unknown_warning_option=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6436fi 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441fi 6442 6443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 fi 6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455int i; 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO"; then : 6458 xorg_cv_cc_flag_unused_command_line_argument=yes 6459else 6460 xorg_cv_cc_flag_unused_command_line_argument=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468fi 6469 6470found="no" 6471 6472 if test $found = "no" ; then 6473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 fi 6476 6477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6479 fi 6480 6481 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6482 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6484$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6485 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6486 if eval \${$cacheid+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491int i; 6492int 6493main () 6494{ 6495 6496 ; 6497 return 0; 6498} 6499_ACEOF 6500if ac_fn_c_try_link "$LINENO"; then : 6501 eval $cacheid=yes 6502else 6503 eval $cacheid=no 6504fi 6505rm -f core conftest.err conftest.$ac_objext \ 6506 conftest$ac_exeext conftest.$ac_ext 6507fi 6508 6509 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511 6512 eval supported=\$$cacheid 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6514$as_echo "$supported" >&6; } 6515 if test "$supported" = "yes" ; then 6516 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6517 found="yes" 6518 fi 6519 fi 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535xorg_testset_save_CFLAGS="$CFLAGS" 6536 6537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547_ACEOF 6548if ac_fn_c_try_compile "$LINENO"; then : 6549 xorg_cv_cc_flag_unknown_warning_option=yes 6550else 6551 xorg_cv_cc_flag_unknown_warning_option=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6554fi 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573int i; 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO"; then : 6576 xorg_cv_cc_flag_unused_command_line_argument=yes 6577else 6578 xorg_cv_cc_flag_unused_command_line_argument=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6581fi 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6585 CFLAGS="$xorg_testset_save_CFLAGS" 6586fi 6587 6588found="no" 6589 6590 if test $found = "no" ; then 6591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6593 fi 6594 6595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6597 fi 6598 6599 CFLAGS="$CFLAGS -Wredundant-decls" 6600 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6602$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6603 cacheid=xorg_cv_cc_flag__Wredundant_decls 6604 if eval \${$cacheid+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610int 6611main () 6612{ 6613 6614 ; 6615 return 0; 6616} 6617_ACEOF 6618if ac_fn_c_try_link "$LINENO"; then : 6619 eval $cacheid=yes 6620else 6621 eval $cacheid=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext \ 6624 conftest$ac_exeext conftest.$ac_ext 6625fi 6626 6627 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629 6630 eval supported=\$$cacheid 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6632$as_echo "$supported" >&6; } 6633 if test "$supported" = "yes" ; then 6634 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6635 found="yes" 6636 fi 6637 fi 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653xorg_testset_save_CFLAGS="$CFLAGS" 6654 6655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663/* end confdefs.h. */ 6664int i; 6665_ACEOF 6666if ac_fn_c_try_compile "$LINENO"; then : 6667 xorg_cv_cc_flag_unknown_warning_option=yes 6668else 6669 xorg_cv_cc_flag_unknown_warning_option=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6672fi 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6676 CFLAGS="$xorg_testset_save_CFLAGS" 6677fi 6678 6679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6682 fi 6683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691int i; 6692_ACEOF 6693if ac_fn_c_try_compile "$LINENO"; then : 6694 xorg_cv_cc_flag_unused_command_line_argument=yes 6695else 6696 xorg_cv_cc_flag_unused_command_line_argument=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6699fi 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6703 CFLAGS="$xorg_testset_save_CFLAGS" 6704fi 6705 6706found="no" 6707 6708 if test $found = "no" ; then 6709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6711 fi 6712 6713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6715 fi 6716 6717 CFLAGS="$CFLAGS -Wlogical-op" 6718 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6720$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6721 cacheid=xorg_cv_cc_flag__Wlogical_op 6722 if eval \${$cacheid+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728int 6729main () 6730{ 6731 6732 ; 6733 return 0; 6734} 6735_ACEOF 6736if ac_fn_c_try_link "$LINENO"; then : 6737 eval $cacheid=yes 6738else 6739 eval $cacheid=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext \ 6742 conftest$ac_exeext conftest.$ac_ext 6743fi 6744 6745 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747 6748 eval supported=\$$cacheid 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6750$as_echo "$supported" >&6; } 6751 if test "$supported" = "yes" ; then 6752 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6753 found="yes" 6754 fi 6755 fi 6756 6757 6758 6759# These are currently disabled because they are noisy. They will be enabled 6760# in the future once the codebase is sufficiently modernized to silence 6761# them. For now, I don't want them to drown out the other warnings. 6762# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6763# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6764# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6765 6766# Turn some warnings into errors, so we don't accidently get successful builds 6767# when there are problems that should be fixed. 6768 6769if test "x$SELECTIVE_WERROR" = "xyes" ; then 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783xorg_testset_save_CFLAGS="$CFLAGS" 6784 6785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794int i; 6795_ACEOF 6796if ac_fn_c_try_compile "$LINENO"; then : 6797 xorg_cv_cc_flag_unknown_warning_option=yes 6798else 6799 xorg_cv_cc_flag_unknown_warning_option=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6802fi 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6806 CFLAGS="$xorg_testset_save_CFLAGS" 6807fi 6808 6809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6812 fi 6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821int i; 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO"; then : 6824 xorg_cv_cc_flag_unused_command_line_argument=yes 6825else 6826 xorg_cv_cc_flag_unused_command_line_argument=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829fi 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6833 CFLAGS="$xorg_testset_save_CFLAGS" 6834fi 6835 6836found="no" 6837 6838 if test $found = "no" ; then 6839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6841 fi 6842 6843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6845 fi 6846 6847 CFLAGS="$CFLAGS -Werror=implicit" 6848 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6850$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6851 cacheid=xorg_cv_cc_flag__Werror_implicit 6852 if eval \${$cacheid+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856/* end confdefs.h. */ 6857int i; 6858int 6859main () 6860{ 6861 6862 ; 6863 return 0; 6864} 6865_ACEOF 6866if ac_fn_c_try_link "$LINENO"; then : 6867 eval $cacheid=yes 6868else 6869 eval $cacheid=no 6870fi 6871rm -f core conftest.err conftest.$ac_objext \ 6872 conftest$ac_exeext conftest.$ac_ext 6873fi 6874 6875 6876 CFLAGS="$xorg_testset_save_CFLAGS" 6877 6878 eval supported=\$$cacheid 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6880$as_echo "$supported" >&6; } 6881 if test "$supported" = "yes" ; then 6882 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6883 found="yes" 6884 fi 6885 fi 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6897 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6899$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6900 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6901 if eval \${$cacheid+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907int 6908main () 6909{ 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_link "$LINENO"; then : 6916 eval $cacheid=yes 6917else 6918 eval $cacheid=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext \ 6921 conftest$ac_exeext conftest.$ac_ext 6922fi 6923 6924 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926 6927 eval supported=\$$cacheid 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6929$as_echo "$supported" >&6; } 6930 if test "$supported" = "yes" ; then 6931 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6932 found="yes" 6933 fi 6934 fi 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950xorg_testset_save_CFLAGS="$CFLAGS" 6951 6952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO"; then : 6964 xorg_cv_cc_flag_unknown_warning_option=yes 6965else 6966 xorg_cv_cc_flag_unknown_warning_option=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974fi 6975 6976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988int i; 6989_ACEOF 6990if ac_fn_c_try_compile "$LINENO"; then : 6991 xorg_cv_cc_flag_unused_command_line_argument=yes 6992else 6993 xorg_cv_cc_flag_unused_command_line_argument=no 6994fi 6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6996fi 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001fi 7002 7003found="no" 7004 7005 if test $found = "no" ; then 7006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 fi 7009 7010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 fi 7013 7014 CFLAGS="$CFLAGS -Werror=nonnull" 7015 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7017$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7018 cacheid=xorg_cv_cc_flag__Werror_nonnull 7019 if eval \${$cacheid+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025int 7026main () 7027{ 7028 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_link "$LINENO"; then : 7034 eval $cacheid=yes 7035else 7036 eval $cacheid=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext \ 7039 conftest$ac_exeext conftest.$ac_ext 7040fi 7041 7042 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044 7045 eval supported=\$$cacheid 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7047$as_echo "$supported" >&6; } 7048 if test "$supported" = "yes" ; then 7049 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7050 found="yes" 7051 fi 7052 fi 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068xorg_testset_save_CFLAGS="$CFLAGS" 7069 7070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO"; then : 7082 xorg_cv_cc_flag_unknown_warning_option=yes 7083else 7084 xorg_cv_cc_flag_unknown_warning_option=no 7085fi 7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7087fi 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092fi 7093 7094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 fi 7098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7105/* end confdefs.h. */ 7106int i; 7107_ACEOF 7108if ac_fn_c_try_compile "$LINENO"; then : 7109 xorg_cv_cc_flag_unused_command_line_argument=yes 7110else 7111 xorg_cv_cc_flag_unused_command_line_argument=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119fi 7120 7121found="no" 7122 7123 if test $found = "no" ; then 7124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7126 fi 7127 7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 fi 7131 7132 CFLAGS="$CFLAGS -Werror=init-self" 7133 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7135$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7136 cacheid=xorg_cv_cc_flag__Werror_init_self 7137 if eval \${$cacheid+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7141/* end confdefs.h. */ 7142int i; 7143int 7144main () 7145{ 7146 7147 ; 7148 return 0; 7149} 7150_ACEOF 7151if ac_fn_c_try_link "$LINENO"; then : 7152 eval $cacheid=yes 7153else 7154 eval $cacheid=no 7155fi 7156rm -f core conftest.err conftest.$ac_objext \ 7157 conftest$ac_exeext conftest.$ac_ext 7158fi 7159 7160 7161 CFLAGS="$xorg_testset_save_CFLAGS" 7162 7163 eval supported=\$$cacheid 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7165$as_echo "$supported" >&6; } 7166 if test "$supported" = "yes" ; then 7167 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7168 found="yes" 7169 fi 7170 fi 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186xorg_testset_save_CFLAGS="$CFLAGS" 7187 7188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO"; then : 7200 xorg_cv_cc_flag_unknown_warning_option=yes 7201else 7202 xorg_cv_cc_flag_unknown_warning_option=no 7203fi 7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7205fi 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210fi 7211 7212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 fi 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225_ACEOF 7226if ac_fn_c_try_compile "$LINENO"; then : 7227 xorg_cv_cc_flag_unused_command_line_argument=yes 7228else 7229 xorg_cv_cc_flag_unused_command_line_argument=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7232fi 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237fi 7238 7239found="no" 7240 7241 if test $found = "no" ; then 7242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7244 fi 7245 7246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7248 fi 7249 7250 CFLAGS="$CFLAGS -Werror=main" 7251 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7253$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7254 cacheid=xorg_cv_cc_flag__Werror_main 7255 if eval \${$cacheid+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260int i; 7261int 7262main () 7263{ 7264 7265 ; 7266 return 0; 7267} 7268_ACEOF 7269if ac_fn_c_try_link "$LINENO"; then : 7270 eval $cacheid=yes 7271else 7272 eval $cacheid=no 7273fi 7274rm -f core conftest.err conftest.$ac_objext \ 7275 conftest$ac_exeext conftest.$ac_ext 7276fi 7277 7278 7279 CFLAGS="$xorg_testset_save_CFLAGS" 7280 7281 eval supported=\$$cacheid 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7283$as_echo "$supported" >&6; } 7284 if test "$supported" = "yes" ; then 7285 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7286 found="yes" 7287 fi 7288 fi 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304xorg_testset_save_CFLAGS="$CFLAGS" 7305 7306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316_ACEOF 7317if ac_fn_c_try_compile "$LINENO"; then : 7318 xorg_cv_cc_flag_unknown_warning_option=yes 7319else 7320 xorg_cv_cc_flag_unknown_warning_option=no 7321fi 7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7327 CFLAGS="$xorg_testset_save_CFLAGS" 7328fi 7329 7330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7333 fi 7334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7341/* end confdefs.h. */ 7342int i; 7343_ACEOF 7344if ac_fn_c_try_compile "$LINENO"; then : 7345 xorg_cv_cc_flag_unused_command_line_argument=yes 7346else 7347 xorg_cv_cc_flag_unused_command_line_argument=no 7348fi 7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7350fi 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355fi 7356 7357found="no" 7358 7359 if test $found = "no" ; then 7360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7362 fi 7363 7364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7366 fi 7367 7368 CFLAGS="$CFLAGS -Werror=missing-braces" 7369 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7371$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7372 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7373 if eval \${$cacheid+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379int 7380main () 7381{ 7382 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387if ac_fn_c_try_link "$LINENO"; then : 7388 eval $cacheid=yes 7389else 7390 eval $cacheid=no 7391fi 7392rm -f core conftest.err conftest.$ac_objext \ 7393 conftest$ac_exeext conftest.$ac_ext 7394fi 7395 7396 7397 CFLAGS="$xorg_testset_save_CFLAGS" 7398 7399 eval supported=\$$cacheid 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7401$as_echo "$supported" >&6; } 7402 if test "$supported" = "yes" ; then 7403 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7404 found="yes" 7405 fi 7406 fi 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422xorg_testset_save_CFLAGS="$CFLAGS" 7423 7424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433int i; 7434_ACEOF 7435if ac_fn_c_try_compile "$LINENO"; then : 7436 xorg_cv_cc_flag_unknown_warning_option=yes 7437else 7438 xorg_cv_cc_flag_unknown_warning_option=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 xorg_cv_cc_flag_unused_command_line_argument=yes 7464else 7465 xorg_cv_cc_flag_unused_command_line_argument=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473fi 7474 7475found="no" 7476 7477 if test $found = "no" ; then 7478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7480 fi 7481 7482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7484 fi 7485 7486 CFLAGS="$CFLAGS -Werror=sequence-point" 7487 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7489$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7490 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7491 if eval \${$cacheid+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497int 7498main () 7499{ 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505if ac_fn_c_try_link "$LINENO"; then : 7506 eval $cacheid=yes 7507else 7508 eval $cacheid=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext \ 7511 conftest$ac_exeext conftest.$ac_ext 7512fi 7513 7514 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 7517 eval supported=\$$cacheid 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7519$as_echo "$supported" >&6; } 7520 if test "$supported" = "yes" ; then 7521 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7522 found="yes" 7523 fi 7524 fi 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540xorg_testset_save_CFLAGS="$CFLAGS" 7541 7542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552_ACEOF 7553if ac_fn_c_try_compile "$LINENO"; then : 7554 xorg_cv_cc_flag_unknown_warning_option=yes 7555else 7556 xorg_cv_cc_flag_unknown_warning_option=no 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7559fi 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564fi 7565 7566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579_ACEOF 7580if ac_fn_c_try_compile "$LINENO"; then : 7581 xorg_cv_cc_flag_unused_command_line_argument=yes 7582else 7583 xorg_cv_cc_flag_unused_command_line_argument=no 7584fi 7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7591fi 7592 7593found="no" 7594 7595 if test $found = "no" ; then 7596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7598 fi 7599 7600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7602 fi 7603 7604 CFLAGS="$CFLAGS -Werror=return-type" 7605 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7607$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7608 cacheid=xorg_cv_cc_flag__Werror_return_type 7609 if eval \${$cacheid+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614int i; 7615int 7616main () 7617{ 7618 7619 ; 7620 return 0; 7621} 7622_ACEOF 7623if ac_fn_c_try_link "$LINENO"; then : 7624 eval $cacheid=yes 7625else 7626 eval $cacheid=no 7627fi 7628rm -f core conftest.err conftest.$ac_objext \ 7629 conftest$ac_exeext conftest.$ac_ext 7630fi 7631 7632 7633 CFLAGS="$xorg_testset_save_CFLAGS" 7634 7635 eval supported=\$$cacheid 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7637$as_echo "$supported" >&6; } 7638 if test "$supported" = "yes" ; then 7639 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7640 found="yes" 7641 fi 7642 fi 7643 7644 if test $found = "no" ; then 7645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7647 fi 7648 7649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 fi 7652 7653 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7656$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7657 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7658 if eval \${$cacheid+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664int 7665main () 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 eval $cacheid=yes 7674else 7675 eval $cacheid=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679fi 7680 7681 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683 7684 eval supported=\$$cacheid 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7686$as_echo "$supported" >&6; } 7687 if test "$supported" = "yes" ; then 7688 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7689 found="yes" 7690 fi 7691 fi 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707xorg_testset_save_CFLAGS="$CFLAGS" 7708 7709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unknown_warning_option=yes 7722else 7723 xorg_cv_cc_flag_unknown_warning_option=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7736 fi 7737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745int i; 7746_ACEOF 7747if ac_fn_c_try_compile "$LINENO"; then : 7748 xorg_cv_cc_flag_unused_command_line_argument=yes 7749else 7750 xorg_cv_cc_flag_unused_command_line_argument=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758fi 7759 7760found="no" 7761 7762 if test $found = "no" ; then 7763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7765 fi 7766 7767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7769 fi 7770 7771 CFLAGS="$CFLAGS -Werror=trigraphs" 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7774$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7775 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7776 if eval \${$cacheid+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782int 7783main () 7784{ 7785 7786 ; 7787 return 0; 7788} 7789_ACEOF 7790if ac_fn_c_try_link "$LINENO"; then : 7791 eval $cacheid=yes 7792else 7793 eval $cacheid=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext \ 7796 conftest$ac_exeext conftest.$ac_ext 7797fi 7798 7799 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801 7802 eval supported=\$$cacheid 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7804$as_echo "$supported" >&6; } 7805 if test "$supported" = "yes" ; then 7806 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7807 found="yes" 7808 fi 7809 fi 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825xorg_testset_save_CFLAGS="$CFLAGS" 7826 7827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO"; then : 7839 xorg_cv_cc_flag_unknown_warning_option=yes 7840else 7841 xorg_cv_cc_flag_unknown_warning_option=no 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864_ACEOF 7865if ac_fn_c_try_compile "$LINENO"; then : 7866 xorg_cv_cc_flag_unused_command_line_argument=yes 7867else 7868 xorg_cv_cc_flag_unused_command_line_argument=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7871fi 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876fi 7877 7878found="no" 7879 7880 if test $found = "no" ; then 7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7883 fi 7884 7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7887 fi 7888 7889 CFLAGS="$CFLAGS -Werror=array-bounds" 7890 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7892$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7893 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7894 if eval \${$cacheid+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899int i; 7900int 7901main () 7902{ 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908if ac_fn_c_try_link "$LINENO"; then : 7909 eval $cacheid=yes 7910else 7911 eval $cacheid=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext \ 7914 conftest$ac_exeext conftest.$ac_ext 7915fi 7916 7917 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919 7920 eval supported=\$$cacheid 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7922$as_echo "$supported" >&6; } 7923 if test "$supported" = "yes" ; then 7924 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7925 found="yes" 7926 fi 7927 fi 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943xorg_testset_save_CFLAGS="$CFLAGS" 7944 7945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954int i; 7955_ACEOF 7956if ac_fn_c_try_compile "$LINENO"; then : 7957 xorg_cv_cc_flag_unknown_warning_option=yes 7958else 7959 xorg_cv_cc_flag_unknown_warning_option=no 7960fi 7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7962fi 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7966 CFLAGS="$xorg_testset_save_CFLAGS" 7967fi 7968 7969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7972 fi 7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982_ACEOF 7983if ac_fn_c_try_compile "$LINENO"; then : 7984 xorg_cv_cc_flag_unused_command_line_argument=yes 7985else 7986 xorg_cv_cc_flag_unused_command_line_argument=no 7987fi 7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7989fi 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7993 CFLAGS="$xorg_testset_save_CFLAGS" 7994fi 7995 7996found="no" 7997 7998 if test $found = "no" ; then 7999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8001 fi 8002 8003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8005 fi 8006 8007 CFLAGS="$CFLAGS -Werror=write-strings" 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8010$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8011 cacheid=xorg_cv_cc_flag__Werror_write_strings 8012 if eval \${$cacheid+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017int i; 8018int 8019main () 8020{ 8021 8022 ; 8023 return 0; 8024} 8025_ACEOF 8026if ac_fn_c_try_link "$LINENO"; then : 8027 eval $cacheid=yes 8028else 8029 eval $cacheid=no 8030fi 8031rm -f core conftest.err conftest.$ac_objext \ 8032 conftest$ac_exeext conftest.$ac_ext 8033fi 8034 8035 8036 CFLAGS="$xorg_testset_save_CFLAGS" 8037 8038 eval supported=\$$cacheid 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8040$as_echo "$supported" >&6; } 8041 if test "$supported" = "yes" ; then 8042 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8043 found="yes" 8044 fi 8045 fi 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061xorg_testset_save_CFLAGS="$CFLAGS" 8062 8063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073_ACEOF 8074if ac_fn_c_try_compile "$LINENO"; then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076else 8077 xorg_cv_cc_flag_unknown_warning_option=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100_ACEOF 8101if ac_fn_c_try_compile "$LINENO"; then : 8102 xorg_cv_cc_flag_unused_command_line_argument=yes 8103else 8104 xorg_cv_cc_flag_unused_command_line_argument=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112fi 8113 8114found="no" 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -Werror=address" 8126 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8128$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8129 cacheid=xorg_cv_cc_flag__Werror_address 8130 if eval \${$cacheid+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136int 8137main () 8138{ 8139 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144if ac_fn_c_try_link "$LINENO"; then : 8145 eval $cacheid=yes 8146else 8147 eval $cacheid=no 8148fi 8149rm -f core conftest.err conftest.$ac_objext \ 8150 conftest$ac_exeext conftest.$ac_ext 8151fi 8152 8153 8154 CFLAGS="$xorg_testset_save_CFLAGS" 8155 8156 eval supported=\$$cacheid 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8158$as_echo "$supported" >&6; } 8159 if test "$supported" = "yes" ; then 8160 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8161 found="yes" 8162 fi 8163 fi 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179xorg_testset_save_CFLAGS="$CFLAGS" 8180 8181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189/* end confdefs.h. */ 8190int i; 8191_ACEOF 8192if ac_fn_c_try_compile "$LINENO"; then : 8193 xorg_cv_cc_flag_unknown_warning_option=yes 8194else 8195 xorg_cv_cc_flag_unknown_warning_option=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8202 CFLAGS="$xorg_testset_save_CFLAGS" 8203fi 8204 8205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217int i; 8218_ACEOF 8219if ac_fn_c_try_compile "$LINENO"; then : 8220 xorg_cv_cc_flag_unused_command_line_argument=yes 8221else 8222 xorg_cv_cc_flag_unused_command_line_argument=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8229 CFLAGS="$xorg_testset_save_CFLAGS" 8230fi 8231 8232found="no" 8233 8234 if test $found = "no" ; then 8235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8237 fi 8238 8239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8241 fi 8242 8243 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8244 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8246$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8247 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8248 if eval \${$cacheid+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254int 8255main () 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO"; then : 8263 eval $cacheid=yes 8264else 8265 eval $cacheid=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269fi 8270 8271 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273 8274 eval supported=\$$cacheid 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8276$as_echo "$supported" >&6; } 8277 if test "$supported" = "yes" ; then 8278 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8279 found="yes" 8280 fi 8281 fi 8282 8283 if test $found = "no" ; then 8284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 fi 8287 8288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 fi 8291 8292 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8293 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8295$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8296 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8297 if eval \${$cacheid+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303int 8304main () 8305{ 8306 8307 ; 8308 return 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_link "$LINENO"; then : 8312 eval $cacheid=yes 8313else 8314 eval $cacheid=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext \ 8317 conftest$ac_exeext conftest.$ac_ext 8318fi 8319 8320 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322 8323 eval supported=\$$cacheid 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8325$as_echo "$supported" >&6; } 8326 if test "$supported" = "yes" ; then 8327 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8328 found="yes" 8329 fi 8330 fi 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346xorg_testset_save_CFLAGS="$CFLAGS" 8347 8348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356/* end confdefs.h. */ 8357int i; 8358_ACEOF 8359if ac_fn_c_try_compile "$LINENO"; then : 8360 xorg_cv_cc_flag_unknown_warning_option=yes 8361else 8362 xorg_cv_cc_flag_unknown_warning_option=no 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370fi 8371 8372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8375 fi 8376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385_ACEOF 8386if ac_fn_c_try_compile "$LINENO"; then : 8387 xorg_cv_cc_flag_unused_command_line_argument=yes 8388else 8389 xorg_cv_cc_flag_unused_command_line_argument=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8392fi 8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397fi 8398 8399found="no" 8400 8401 if test $found = "no" ; then 8402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 fi 8405 8406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 fi 8409 8410 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8413$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8414 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8415 if eval \${$cacheid+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421int 8422main () 8423{ 8424 8425 ; 8426 return 0; 8427} 8428_ACEOF 8429if ac_fn_c_try_link "$LINENO"; then : 8430 eval $cacheid=yes 8431else 8432 eval $cacheid=no 8433fi 8434rm -f core conftest.err conftest.$ac_objext \ 8435 conftest$ac_exeext conftest.$ac_ext 8436fi 8437 8438 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440 8441 eval supported=\$$cacheid 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8443$as_echo "$supported" >&6; } 8444 if test "$supported" = "yes" ; then 8445 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8446 found="yes" 8447 fi 8448 fi 8449 8450 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8451else 8452{ $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 8453$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;} 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467xorg_testset_save_CFLAGS="$CFLAGS" 8468 8469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479_ACEOF 8480if ac_fn_c_try_compile "$LINENO"; then : 8481 xorg_cv_cc_flag_unknown_warning_option=yes 8482else 8483 xorg_cv_cc_flag_unknown_warning_option=no 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8490 CFLAGS="$xorg_testset_save_CFLAGS" 8491fi 8492 8493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8496 fi 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8504/* end confdefs.h. */ 8505int i; 8506_ACEOF 8507if ac_fn_c_try_compile "$LINENO"; then : 8508 xorg_cv_cc_flag_unused_command_line_argument=yes 8509else 8510 xorg_cv_cc_flag_unused_command_line_argument=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8513fi 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518fi 8519 8520found="no" 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -Wimplicit" 8532 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8534$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8535 cacheid=xorg_cv_cc_flag__Wimplicit 8536 if eval \${$cacheid+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542int 8543main () 8544{ 8545 8546 ; 8547 return 0; 8548} 8549_ACEOF 8550if ac_fn_c_try_link "$LINENO"; then : 8551 eval $cacheid=yes 8552else 8553 eval $cacheid=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext \ 8556 conftest$ac_exeext conftest.$ac_ext 8557fi 8558 8559 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561 8562 eval supported=\$$cacheid 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8564$as_echo "$supported" >&6; } 8565 if test "$supported" = "yes" ; then 8566 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8567 found="yes" 8568 fi 8569 fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585xorg_testset_save_CFLAGS="$CFLAGS" 8586 8587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597_ACEOF 8598if ac_fn_c_try_compile "$LINENO"; then : 8599 xorg_cv_cc_flag_unknown_warning_option=yes 8600else 8601 xorg_cv_cc_flag_unknown_warning_option=no 8602fi 8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8604fi 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609fi 8610 8611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 fi 8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620else 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622/* end confdefs.h. */ 8623int i; 8624_ACEOF 8625if ac_fn_c_try_compile "$LINENO"; then : 8626 xorg_cv_cc_flag_unused_command_line_argument=yes 8627else 8628 xorg_cv_cc_flag_unused_command_line_argument=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8631fi 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636fi 8637 8638found="no" 8639 8640 if test $found = "no" ; then 8641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8643 fi 8644 8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 fi 8648 8649 CFLAGS="$CFLAGS -Wnonnull" 8650 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8652$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8653 cacheid=xorg_cv_cc_flag__Wnonnull 8654 if eval \${$cacheid+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660int 8661main () 8662{ 8663 8664 ; 8665 return 0; 8666} 8667_ACEOF 8668if ac_fn_c_try_link "$LINENO"; then : 8669 eval $cacheid=yes 8670else 8671 eval $cacheid=no 8672fi 8673rm -f core conftest.err conftest.$ac_objext \ 8674 conftest$ac_exeext conftest.$ac_ext 8675fi 8676 8677 8678 CFLAGS="$xorg_testset_save_CFLAGS" 8679 8680 eval supported=\$$cacheid 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8682$as_echo "$supported" >&6; } 8683 if test "$supported" = "yes" ; then 8684 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8685 found="yes" 8686 fi 8687 fi 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703xorg_testset_save_CFLAGS="$CFLAGS" 8704 8705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713/* end confdefs.h. */ 8714int i; 8715_ACEOF 8716if ac_fn_c_try_compile "$LINENO"; then : 8717 xorg_cv_cc_flag_unknown_warning_option=yes 8718else 8719 xorg_cv_cc_flag_unknown_warning_option=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8726 CFLAGS="$xorg_testset_save_CFLAGS" 8727fi 8728 8729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8732 fi 8733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741int i; 8742_ACEOF 8743if ac_fn_c_try_compile "$LINENO"; then : 8744 xorg_cv_cc_flag_unused_command_line_argument=yes 8745else 8746 xorg_cv_cc_flag_unused_command_line_argument=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8749fi 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754fi 8755 8756found="no" 8757 8758 if test $found = "no" ; then 8759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8761 fi 8762 8763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 fi 8766 8767 CFLAGS="$CFLAGS -Winit-self" 8768 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8770$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8771 cacheid=xorg_cv_cc_flag__Winit_self 8772 if eval \${$cacheid+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778int 8779main () 8780{ 8781 8782 ; 8783 return 0; 8784} 8785_ACEOF 8786if ac_fn_c_try_link "$LINENO"; then : 8787 eval $cacheid=yes 8788else 8789 eval $cacheid=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext \ 8792 conftest$ac_exeext conftest.$ac_ext 8793fi 8794 8795 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797 8798 eval supported=\$$cacheid 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8800$as_echo "$supported" >&6; } 8801 if test "$supported" = "yes" ; then 8802 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8803 found="yes" 8804 fi 8805 fi 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821xorg_testset_save_CFLAGS="$CFLAGS" 8822 8823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 xorg_cv_cc_flag_unknown_warning_option=yes 8836else 8837 xorg_cv_cc_flag_unknown_warning_option=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845fi 8846 8847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 fi 8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859int i; 8860_ACEOF 8861if ac_fn_c_try_compile "$LINENO"; then : 8862 xorg_cv_cc_flag_unused_command_line_argument=yes 8863else 8864 xorg_cv_cc_flag_unused_command_line_argument=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8867fi 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872fi 8873 8874found="no" 8875 8876 if test $found = "no" ; then 8877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8879 fi 8880 8881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8883 fi 8884 8885 CFLAGS="$CFLAGS -Wmain" 8886 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8888$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8889 cacheid=xorg_cv_cc_flag__Wmain 8890 if eval \${$cacheid+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896int 8897main () 8898{ 8899 8900 ; 8901 return 0; 8902} 8903_ACEOF 8904if ac_fn_c_try_link "$LINENO"; then : 8905 eval $cacheid=yes 8906else 8907 eval $cacheid=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext \ 8910 conftest$ac_exeext conftest.$ac_ext 8911fi 8912 8913 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915 8916 eval supported=\$$cacheid 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8918$as_echo "$supported" >&6; } 8919 if test "$supported" = "yes" ; then 8920 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8921 found="yes" 8922 fi 8923 fi 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939xorg_testset_save_CFLAGS="$CFLAGS" 8940 8941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8949/* end confdefs.h. */ 8950int i; 8951_ACEOF 8952if ac_fn_c_try_compile "$LINENO"; then : 8953 xorg_cv_cc_flag_unknown_warning_option=yes 8954else 8955 xorg_cv_cc_flag_unknown_warning_option=no 8956fi 8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8958fi 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8962 CFLAGS="$xorg_testset_save_CFLAGS" 8963fi 8964 8965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 fi 8969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978_ACEOF 8979if ac_fn_c_try_compile "$LINENO"; then : 8980 xorg_cv_cc_flag_unused_command_line_argument=yes 8981else 8982 xorg_cv_cc_flag_unused_command_line_argument=no 8983fi 8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8985fi 8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990fi 8991 8992found="no" 8993 8994 if test $found = "no" ; then 8995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8997 fi 8998 8999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9001 fi 9002 9003 CFLAGS="$CFLAGS -Wmissing-braces" 9004 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9006$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9007 cacheid=xorg_cv_cc_flag__Wmissing_braces 9008 if eval \${$cacheid+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014int 9015main () 9016{ 9017 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_c_try_link "$LINENO"; then : 9023 eval $cacheid=yes 9024else 9025 eval $cacheid=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext \ 9028 conftest$ac_exeext conftest.$ac_ext 9029fi 9030 9031 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033 9034 eval supported=\$$cacheid 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9036$as_echo "$supported" >&6; } 9037 if test "$supported" = "yes" ; then 9038 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9039 found="yes" 9040 fi 9041 fi 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057xorg_testset_save_CFLAGS="$CFLAGS" 9058 9059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067/* end confdefs.h. */ 9068int i; 9069_ACEOF 9070if ac_fn_c_try_compile "$LINENO"; then : 9071 xorg_cv_cc_flag_unknown_warning_option=yes 9072else 9073 xorg_cv_cc_flag_unknown_warning_option=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9076fi 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081fi 9082 9083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9086 fi 9087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO"; then : 9098 xorg_cv_cc_flag_unused_command_line_argument=yes 9099else 9100 xorg_cv_cc_flag_unused_command_line_argument=no 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9103fi 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108fi 9109 9110found="no" 9111 9112 if test $found = "no" ; then 9113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9115 fi 9116 9117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9119 fi 9120 9121 CFLAGS="$CFLAGS -Wsequence-point" 9122 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9124$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9125 cacheid=xorg_cv_cc_flag__Wsequence_point 9126 if eval \${$cacheid+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132int 9133main () 9134{ 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_link "$LINENO"; then : 9141 eval $cacheid=yes 9142else 9143 eval $cacheid=no 9144fi 9145rm -f core conftest.err conftest.$ac_objext \ 9146 conftest$ac_exeext conftest.$ac_ext 9147fi 9148 9149 9150 CFLAGS="$xorg_testset_save_CFLAGS" 9151 9152 eval supported=\$$cacheid 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9154$as_echo "$supported" >&6; } 9155 if test "$supported" = "yes" ; then 9156 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9157 found="yes" 9158 fi 9159 fi 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175xorg_testset_save_CFLAGS="$CFLAGS" 9176 9177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187_ACEOF 9188if ac_fn_c_try_compile "$LINENO"; then : 9189 xorg_cv_cc_flag_unknown_warning_option=yes 9190else 9191 xorg_cv_cc_flag_unknown_warning_option=no 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9194fi 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199fi 9200 9201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 fi 9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213int i; 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO"; then : 9216 xorg_cv_cc_flag_unused_command_line_argument=yes 9217else 9218 xorg_cv_cc_flag_unused_command_line_argument=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9221fi 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9225 CFLAGS="$xorg_testset_save_CFLAGS" 9226fi 9227 9228found="no" 9229 9230 if test $found = "no" ; then 9231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9233 fi 9234 9235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9237 fi 9238 9239 CFLAGS="$CFLAGS -Wreturn-type" 9240 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9242$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9243 cacheid=xorg_cv_cc_flag__Wreturn_type 9244 if eval \${$cacheid+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248/* end confdefs.h. */ 9249int i; 9250int 9251main () 9252{ 9253 9254 ; 9255 return 0; 9256} 9257_ACEOF 9258if ac_fn_c_try_link "$LINENO"; then : 9259 eval $cacheid=yes 9260else 9261 eval $cacheid=no 9262fi 9263rm -f core conftest.err conftest.$ac_objext \ 9264 conftest$ac_exeext conftest.$ac_ext 9265fi 9266 9267 9268 CFLAGS="$xorg_testset_save_CFLAGS" 9269 9270 eval supported=\$$cacheid 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9272$as_echo "$supported" >&6; } 9273 if test "$supported" = "yes" ; then 9274 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9275 found="yes" 9276 fi 9277 fi 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293xorg_testset_save_CFLAGS="$CFLAGS" 9294 9295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305_ACEOF 9306if ac_fn_c_try_compile "$LINENO"; then : 9307 xorg_cv_cc_flag_unknown_warning_option=yes 9308else 9309 xorg_cv_cc_flag_unknown_warning_option=no 9310fi 9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9312fi 9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9316 CFLAGS="$xorg_testset_save_CFLAGS" 9317fi 9318 9319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 fi 9323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9327 $as_echo_n "(cached) " >&6 9328else 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331int i; 9332_ACEOF 9333if ac_fn_c_try_compile "$LINENO"; then : 9334 xorg_cv_cc_flag_unused_command_line_argument=yes 9335else 9336 xorg_cv_cc_flag_unused_command_line_argument=no 9337fi 9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9339fi 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9343 CFLAGS="$xorg_testset_save_CFLAGS" 9344fi 9345 9346found="no" 9347 9348 if test $found = "no" ; then 9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 9353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9355 fi 9356 9357 CFLAGS="$CFLAGS -Wtrigraphs" 9358 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9360$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9361 cacheid=xorg_cv_cc_flag__Wtrigraphs 9362 if eval \${$cacheid+:} false; then : 9363 $as_echo_n "(cached) " >&6 9364else 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9366/* end confdefs.h. */ 9367int i; 9368int 9369main () 9370{ 9371 9372 ; 9373 return 0; 9374} 9375_ACEOF 9376if ac_fn_c_try_link "$LINENO"; then : 9377 eval $cacheid=yes 9378else 9379 eval $cacheid=no 9380fi 9381rm -f core conftest.err conftest.$ac_objext \ 9382 conftest$ac_exeext conftest.$ac_ext 9383fi 9384 9385 9386 CFLAGS="$xorg_testset_save_CFLAGS" 9387 9388 eval supported=\$$cacheid 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9390$as_echo "$supported" >&6; } 9391 if test "$supported" = "yes" ; then 9392 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9393 found="yes" 9394 fi 9395 fi 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411xorg_testset_save_CFLAGS="$CFLAGS" 9412 9413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422int i; 9423_ACEOF 9424if ac_fn_c_try_compile "$LINENO"; then : 9425 xorg_cv_cc_flag_unknown_warning_option=yes 9426else 9427 xorg_cv_cc_flag_unknown_warning_option=no 9428fi 9429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9430fi 9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9434 CFLAGS="$xorg_testset_save_CFLAGS" 9435fi 9436 9437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 fi 9441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449int i; 9450_ACEOF 9451if ac_fn_c_try_compile "$LINENO"; then : 9452 xorg_cv_cc_flag_unused_command_line_argument=yes 9453else 9454 xorg_cv_cc_flag_unused_command_line_argument=no 9455fi 9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9461 CFLAGS="$xorg_testset_save_CFLAGS" 9462fi 9463 9464found="no" 9465 9466 if test $found = "no" ; then 9467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 fi 9470 9471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9473 fi 9474 9475 CFLAGS="$CFLAGS -Warray-bounds" 9476 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9478$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9479 cacheid=xorg_cv_cc_flag__Warray_bounds 9480 if eval \${$cacheid+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486int 9487main () 9488{ 9489 9490 ; 9491 return 0; 9492} 9493_ACEOF 9494if ac_fn_c_try_link "$LINENO"; then : 9495 eval $cacheid=yes 9496else 9497 eval $cacheid=no 9498fi 9499rm -f core conftest.err conftest.$ac_objext \ 9500 conftest$ac_exeext conftest.$ac_ext 9501fi 9502 9503 9504 CFLAGS="$xorg_testset_save_CFLAGS" 9505 9506 eval supported=\$$cacheid 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9508$as_echo "$supported" >&6; } 9509 if test "$supported" = "yes" ; then 9510 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9511 found="yes" 9512 fi 9513 fi 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529xorg_testset_save_CFLAGS="$CFLAGS" 9530 9531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9536 $as_echo_n "(cached) " >&6 9537else 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO"; then : 9543 xorg_cv_cc_flag_unknown_warning_option=yes 9544else 9545 xorg_cv_cc_flag_unknown_warning_option=no 9546fi 9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9548fi 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9553fi 9554 9555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 fi 9559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568_ACEOF 9569if ac_fn_c_try_compile "$LINENO"; then : 9570 xorg_cv_cc_flag_unused_command_line_argument=yes 9571else 9572 xorg_cv_cc_flag_unused_command_line_argument=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9575fi 9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580fi 9581 9582found="no" 9583 9584 if test $found = "no" ; then 9585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9587 fi 9588 9589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9591 fi 9592 9593 CFLAGS="$CFLAGS -Wwrite-strings" 9594 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9596$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9597 cacheid=xorg_cv_cc_flag__Wwrite_strings 9598 if eval \${$cacheid+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604int 9605main () 9606{ 9607 9608 ; 9609 return 0; 9610} 9611_ACEOF 9612if ac_fn_c_try_link "$LINENO"; then : 9613 eval $cacheid=yes 9614else 9615 eval $cacheid=no 9616fi 9617rm -f core conftest.err conftest.$ac_objext \ 9618 conftest$ac_exeext conftest.$ac_ext 9619fi 9620 9621 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623 9624 eval supported=\$$cacheid 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9626$as_echo "$supported" >&6; } 9627 if test "$supported" = "yes" ; then 9628 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9629 found="yes" 9630 fi 9631 fi 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647xorg_testset_save_CFLAGS="$CFLAGS" 9648 9649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659_ACEOF 9660if ac_fn_c_try_compile "$LINENO"; then : 9661 xorg_cv_cc_flag_unknown_warning_option=yes 9662else 9663 xorg_cv_cc_flag_unknown_warning_option=no 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9666fi 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671fi 9672 9673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 fi 9677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9684/* end confdefs.h. */ 9685int i; 9686_ACEOF 9687if ac_fn_c_try_compile "$LINENO"; then : 9688 xorg_cv_cc_flag_unused_command_line_argument=yes 9689else 9690 xorg_cv_cc_flag_unused_command_line_argument=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9693fi 9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698fi 9699 9700found="no" 9701 9702 if test $found = "no" ; then 9703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9705 fi 9706 9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9709 fi 9710 9711 CFLAGS="$CFLAGS -Waddress" 9712 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9714$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9715 cacheid=xorg_cv_cc_flag__Waddress 9716 if eval \${$cacheid+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721int i; 9722int 9723main () 9724{ 9725 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730if ac_fn_c_try_link "$LINENO"; then : 9731 eval $cacheid=yes 9732else 9733 eval $cacheid=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext \ 9736 conftest$ac_exeext conftest.$ac_ext 9737fi 9738 9739 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 9742 eval supported=\$$cacheid 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9744$as_echo "$supported" >&6; } 9745 if test "$supported" = "yes" ; then 9746 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9747 found="yes" 9748 fi 9749 fi 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765xorg_testset_save_CFLAGS="$CFLAGS" 9766 9767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int i; 9777_ACEOF 9778if ac_fn_c_try_compile "$LINENO"; then : 9779 xorg_cv_cc_flag_unknown_warning_option=yes 9780else 9781 xorg_cv_cc_flag_unknown_warning_option=no 9782fi 9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9788 CFLAGS="$xorg_testset_save_CFLAGS" 9789fi 9790 9791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 fi 9795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802/* end confdefs.h. */ 9803int i; 9804_ACEOF 9805if ac_fn_c_try_compile "$LINENO"; then : 9806 xorg_cv_cc_flag_unused_command_line_argument=yes 9807else 9808 xorg_cv_cc_flag_unused_command_line_argument=no 9809fi 9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9811fi 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9815 CFLAGS="$xorg_testset_save_CFLAGS" 9816fi 9817 9818found="no" 9819 9820 if test $found = "no" ; then 9821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9823 fi 9824 9825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9827 fi 9828 9829 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9830 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9832$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9833 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9834 if eval \${$cacheid+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840int 9841main () 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_c_try_link "$LINENO"; then : 9849 eval $cacheid=yes 9850else 9851 eval $cacheid=no 9852fi 9853rm -f core conftest.err conftest.$ac_objext \ 9854 conftest$ac_exeext conftest.$ac_ext 9855fi 9856 9857 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859 9860 eval supported=\$$cacheid 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9862$as_echo "$supported" >&6; } 9863 if test "$supported" = "yes" ; then 9864 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9865 found="yes" 9866 fi 9867 fi 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883xorg_testset_save_CFLAGS="$CFLAGS" 9884 9885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9890 $as_echo_n "(cached) " >&6 9891else 9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893/* end confdefs.h. */ 9894int i; 9895_ACEOF 9896if ac_fn_c_try_compile "$LINENO"; then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898else 9899 xorg_cv_cc_flag_unknown_warning_option=no 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9902fi 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907fi 9908 9909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921int i; 9922_ACEOF 9923if ac_fn_c_try_compile "$LINENO"; then : 9924 xorg_cv_cc_flag_unused_command_line_argument=yes 9925else 9926 xorg_cv_cc_flag_unused_command_line_argument=no 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9929fi 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9933 CFLAGS="$xorg_testset_save_CFLAGS" 9934fi 9935 9936found="no" 9937 9938 if test $found = "no" ; then 9939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9941 fi 9942 9943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9945 fi 9946 9947 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9948 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9950$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9951 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9952 if eval \${$cacheid+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957int i; 9958int 9959main () 9960{ 9961 9962 ; 9963 return 0; 9964} 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO"; then : 9967 eval $cacheid=yes 9968else 9969 eval $cacheid=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext \ 9972 conftest$ac_exeext conftest.$ac_ext 9973fi 9974 9975 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977 9978 eval supported=\$$cacheid 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9980$as_echo "$supported" >&6; } 9981 if test "$supported" = "yes" ; then 9982 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9983 found="yes" 9984 fi 9985 fi 9986 9987 9988fi 9989 9990 9991 9992 9993 9994 9995 9996 CWARNFLAGS="$BASE_CFLAGS" 9997 if test "x$GCC" = xyes ; then 9998 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9999 fi 10000 10001 10002 10003 10004 10005 10006 10007 10008# Check whether --enable-strict-compilation was given. 10009if test "${enable_strict_compilation+set}" = set; then : 10010 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10011else 10012 STRICT_COMPILE=no 10013fi 10014 10015 10016 10017 10018 10019 10020STRICT_CFLAGS="" 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034xorg_testset_save_CFLAGS="$CFLAGS" 10035 10036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10041 $as_echo_n "(cached) " >&6 10042else 10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044/* end confdefs.h. */ 10045int i; 10046_ACEOF 10047if ac_fn_c_try_compile "$LINENO"; then : 10048 xorg_cv_cc_flag_unknown_warning_option=yes 10049else 10050 xorg_cv_cc_flag_unknown_warning_option=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058fi 10059 10060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10063 fi 10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069else 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072int i; 10073_ACEOF 10074if ac_fn_c_try_compile "$LINENO"; then : 10075 xorg_cv_cc_flag_unused_command_line_argument=yes 10076else 10077 xorg_cv_cc_flag_unused_command_line_argument=no 10078fi 10079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10080fi 10081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085fi 10086 10087found="no" 10088 10089 if test $found = "no" ; then 10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10092 fi 10093 10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 fi 10097 10098 CFLAGS="$CFLAGS -pedantic" 10099 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10101$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10102 cacheid=xorg_cv_cc_flag__pedantic 10103 if eval \${$cacheid+:} false; then : 10104 $as_echo_n "(cached) " >&6 10105else 10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10107/* end confdefs.h. */ 10108int i; 10109int 10110main () 10111{ 10112 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117if ac_fn_c_try_link "$LINENO"; then : 10118 eval $cacheid=yes 10119else 10120 eval $cacheid=no 10121fi 10122rm -f core conftest.err conftest.$ac_objext \ 10123 conftest$ac_exeext conftest.$ac_ext 10124fi 10125 10126 10127 CFLAGS="$xorg_testset_save_CFLAGS" 10128 10129 eval supported=\$$cacheid 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10131$as_echo "$supported" >&6; } 10132 if test "$supported" = "yes" ; then 10133 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10134 found="yes" 10135 fi 10136 fi 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152xorg_testset_save_CFLAGS="$CFLAGS" 10153 10154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10159 $as_echo_n "(cached) " >&6 10160else 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164_ACEOF 10165if ac_fn_c_try_compile "$LINENO"; then : 10166 xorg_cv_cc_flag_unknown_warning_option=yes 10167else 10168 xorg_cv_cc_flag_unknown_warning_option=no 10169fi 10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10171fi 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10175 CFLAGS="$xorg_testset_save_CFLAGS" 10176fi 10177 10178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189/* end confdefs.h. */ 10190int i; 10191_ACEOF 10192if ac_fn_c_try_compile "$LINENO"; then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194else 10195 xorg_cv_cc_flag_unused_command_line_argument=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10198fi 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203fi 10204 10205found="no" 10206 10207 if test $found = "no" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 fi 10215 10216 CFLAGS="$CFLAGS -Werror" 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10219$as_echo_n "checking if $CC supports -Werror... " >&6; } 10220 cacheid=xorg_cv_cc_flag__Werror 10221 if eval \${$cacheid+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225/* end confdefs.h. */ 10226int i; 10227int 10228main () 10229{ 10230 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_link "$LINENO"; then : 10236 eval $cacheid=yes 10237else 10238 eval $cacheid=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext \ 10241 conftest$ac_exeext conftest.$ac_ext 10242fi 10243 10244 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246 10247 eval supported=\$$cacheid 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10249$as_echo "$supported" >&6; } 10250 if test "$supported" = "yes" ; then 10251 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10252 found="yes" 10253 fi 10254 fi 10255 10256 if test $found = "no" ; then 10257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10259 fi 10260 10261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10263 fi 10264 10265 CFLAGS="$CFLAGS -errwarn" 10266 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10268$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10269 cacheid=xorg_cv_cc_flag__errwarn 10270 if eval \${$cacheid+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_link "$LINENO"; then : 10285 eval $cacheid=yes 10286else 10287 eval $cacheid=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext \ 10290 conftest$ac_exeext conftest.$ac_ext 10291fi 10292 10293 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295 10296 eval supported=\$$cacheid 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10298$as_echo "$supported" >&6; } 10299 if test "$supported" = "yes" ; then 10300 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10301 found="yes" 10302 fi 10303 fi 10304 10305 10306 10307# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10308# activate it with -Werror, so we add it here explicitly. 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322xorg_testset_save_CFLAGS="$CFLAGS" 10323 10324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333int i; 10334_ACEOF 10335if ac_fn_c_try_compile "$LINENO"; then : 10336 xorg_cv_cc_flag_unknown_warning_option=yes 10337else 10338 xorg_cv_cc_flag_unknown_warning_option=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10341fi 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346fi 10347 10348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 fi 10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10356 $as_echo_n "(cached) " >&6 10357else 10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10359/* end confdefs.h. */ 10360int i; 10361_ACEOF 10362if ac_fn_c_try_compile "$LINENO"; then : 10363 xorg_cv_cc_flag_unused_command_line_argument=yes 10364else 10365 xorg_cv_cc_flag_unused_command_line_argument=no 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10368fi 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10372 CFLAGS="$xorg_testset_save_CFLAGS" 10373fi 10374 10375found="no" 10376 10377 if test $found = "no" ; then 10378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10380 fi 10381 10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10384 fi 10385 10386 CFLAGS="$CFLAGS -Werror=attributes" 10387 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10389$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10390 cacheid=xorg_cv_cc_flag__Werror_attributes 10391 if eval \${$cacheid+:} false; then : 10392 $as_echo_n "(cached) " >&6 10393else 10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10395/* end confdefs.h. */ 10396int i; 10397int 10398main () 10399{ 10400 10401 ; 10402 return 0; 10403} 10404_ACEOF 10405if ac_fn_c_try_link "$LINENO"; then : 10406 eval $cacheid=yes 10407else 10408 eval $cacheid=no 10409fi 10410rm -f core conftest.err conftest.$ac_objext \ 10411 conftest$ac_exeext conftest.$ac_ext 10412fi 10413 10414 10415 CFLAGS="$xorg_testset_save_CFLAGS" 10416 10417 eval supported=\$$cacheid 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10419$as_echo "$supported" >&6; } 10420 if test "$supported" = "yes" ; then 10421 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10422 found="yes" 10423 fi 10424 fi 10425 10426 10427 10428if test "x$STRICT_COMPILE" = "xyes"; then 10429 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10430 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10431fi 10432 10433 10434 10435 10436 10437 10438cat >>confdefs.h <<_ACEOF 10439#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10440_ACEOF 10441 10442 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10443 if test "x$PVM" = "x"; then 10444 PVM="0" 10445 fi 10446 10447cat >>confdefs.h <<_ACEOF 10448#define PACKAGE_VERSION_MINOR $PVM 10449_ACEOF 10450 10451 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10452 if test "x$PVP" = "x"; then 10453 PVP="0" 10454 fi 10455 10456cat >>confdefs.h <<_ACEOF 10457#define PACKAGE_VERSION_PATCHLEVEL $PVP 10458_ACEOF 10459 10460 10461 10462CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10463mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10464|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10465echo 'git directory not found: installing possibly empty changelog.' >&2)" 10466 10467 10468 10469 10470macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10471INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10472mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10473|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10474echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10475 10476 10477 10478 10479 10480 10481if test x$APP_MAN_SUFFIX = x ; then 10482 APP_MAN_SUFFIX=1 10483fi 10484if test x$APP_MAN_DIR = x ; then 10485 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10486fi 10487 10488if test x$LIB_MAN_SUFFIX = x ; then 10489 LIB_MAN_SUFFIX=3 10490fi 10491if test x$LIB_MAN_DIR = x ; then 10492 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10493fi 10494 10495if test x$FILE_MAN_SUFFIX = x ; then 10496 case $host_os in 10497 solaris*) FILE_MAN_SUFFIX=4 ;; 10498 *) FILE_MAN_SUFFIX=5 ;; 10499 esac 10500fi 10501if test x$FILE_MAN_DIR = x ; then 10502 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10503fi 10504 10505if test x$MISC_MAN_SUFFIX = x ; then 10506 case $host_os in 10507 solaris*) MISC_MAN_SUFFIX=5 ;; 10508 *) MISC_MAN_SUFFIX=7 ;; 10509 esac 10510fi 10511if test x$MISC_MAN_DIR = x ; then 10512 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10513fi 10514 10515if test x$DRIVER_MAN_SUFFIX = x ; then 10516 case $host_os in 10517 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10518 *) DRIVER_MAN_SUFFIX=4 ;; 10519 esac 10520fi 10521if test x$DRIVER_MAN_DIR = x ; then 10522 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10523fi 10524 10525if test x$ADMIN_MAN_SUFFIX = x ; then 10526 case $host_os in 10527 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10528 *) ADMIN_MAN_SUFFIX=8 ;; 10529 esac 10530fi 10531if test x$ADMIN_MAN_DIR = x ; then 10532 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10533fi 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549XORG_MAN_PAGE="X Version 11" 10550 10551MAN_SUBSTS="\ 10552 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10553 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10554 -e 's|__xservername__|Xorg|g' \ 10555 -e 's|__xconfigfile__|xorg.conf|g' \ 10556 -e 's|__projectroot__|\$(prefix)|g' \ 10557 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10558 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10559 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10560 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10561 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10562 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10563 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10564 10565 10566 10567# Check whether --enable-silent-rules was given. 10568if test "${enable_silent_rules+set}" = set; then : 10569 enableval=$enable_silent_rules; 10570fi 10571 10572case $enable_silent_rules in # ((( 10573 yes) AM_DEFAULT_VERBOSITY=0;; 10574 no) AM_DEFAULT_VERBOSITY=1;; 10575 *) AM_DEFAULT_VERBOSITY=0;; 10576esac 10577am_make=${MAKE-make} 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10579$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10580if ${am_cv_make_support_nested_variables+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 if $as_echo 'TRUE=$(BAR$(V)) 10584BAR0=false 10585BAR1=true 10586V=1 10587am__doit: 10588 @$(TRUE) 10589.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10590 am_cv_make_support_nested_variables=yes 10591else 10592 am_cv_make_support_nested_variables=no 10593fi 10594fi 10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10596$as_echo "$am_cv_make_support_nested_variables" >&6; } 10597if test $am_cv_make_support_nested_variables = yes; then 10598 AM_V='$(V)' 10599 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10600else 10601 AM_V=$AM_DEFAULT_VERBOSITY 10602 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10603fi 10604AM_BACKSLASH='\' 10605 10606 10607 10608 10609 10610 10611 10612 10613# Check whether --with-lint was given. 10614if test "${with_lint+set}" = set; then : 10615 withval=$with_lint; use_lint=$withval 10616else 10617 use_lint=no 10618fi 10619 10620 10621# Obtain platform specific info like program name and options 10622# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10623case $host_os in 10624 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10625 lint_name=splint 10626 lint_options="-badflag" 10627 ;; 10628 *freebsd* | *netbsd*) 10629 lint_name=lint 10630 lint_options="-u -b" 10631 ;; 10632 *solaris*) 10633 lint_name=lint 10634 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10635 ;; 10636esac 10637 10638# Test for the presence of the program (either guessed by the code or spelled out by the user) 10639if test "x$use_lint" = x"yes" ; then 10640 # Extract the first word of "$lint_name", so it can be a program name with args. 10641set dummy $lint_name; ac_word=$2 10642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10643$as_echo_n "checking for $ac_word... " >&6; } 10644if ${ac_cv_path_LINT+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 case $LINT in 10648 [\\/]* | ?:[\\/]*) 10649 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10650 ;; 10651 *) 10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10653for as_dir in $PATH 10654do 10655 IFS=$as_save_IFS 10656 test -z "$as_dir" && as_dir=. 10657 for ac_exec_ext in '' $ac_executable_extensions; do 10658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10659 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10661 break 2 10662 fi 10663done 10664 done 10665IFS=$as_save_IFS 10666 10667 ;; 10668esac 10669fi 10670LINT=$ac_cv_path_LINT 10671if test -n "$LINT"; then 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10673$as_echo "$LINT" >&6; } 10674else 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10676$as_echo "no" >&6; } 10677fi 10678 10679 10680 if test "x$LINT" = "x"; then 10681 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10682 fi 10683elif test "x$use_lint" = x"no" ; then 10684 if test "x$LINT" != "x"; then 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10686$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10687 fi 10688else 10689 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10690fi 10691 10692# User supplied flags override default flags 10693if test "x$LINT_FLAGS" != "x"; then 10694 lint_options=$LINT_FLAGS 10695fi 10696 10697LINT_FLAGS=$lint_options 10698 10699 if test "x$LINT" != x; then 10700 LINT_TRUE= 10701 LINT_FALSE='#' 10702else 10703 LINT_TRUE='#' 10704 LINT_FALSE= 10705fi 10706 10707 10708 10709 10710ac_config_files="$ac_config_files Makefile man/Makefile" 10711 10712cat >confcache <<\_ACEOF 10713# This file is a shell script that caches the results of configure 10714# tests run on this system so they can be shared between configure 10715# scripts and configure runs, see configure's option --config-cache. 10716# It is not useful on other systems. If it contains results you don't 10717# want to keep, you may remove or edit it. 10718# 10719# config.status only pays attention to the cache file if you give it 10720# the --recheck option to rerun configure. 10721# 10722# `ac_cv_env_foo' variables (set or unset) will be overridden when 10723# loading this file, other *unset* `ac_cv_foo' will be assigned the 10724# following values. 10725 10726_ACEOF 10727 10728# The following way of writing the cache mishandles newlines in values, 10729# but we know of no workaround that is simple, portable, and efficient. 10730# So, we kill variables containing newlines. 10731# Ultrix sh set writes to stderr and can't be redirected directly, 10732# and sets the high bit in the cache file unless we assign to the vars. 10733( 10734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10735 eval ac_val=\$$ac_var 10736 case $ac_val in #( 10737 *${as_nl}*) 10738 case $ac_var in #( 10739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10741 esac 10742 case $ac_var in #( 10743 _ | IFS | as_nl) ;; #( 10744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10745 *) { eval $ac_var=; unset $ac_var;} ;; 10746 esac ;; 10747 esac 10748 done 10749 10750 (set) 2>&1 | 10751 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10752 *${as_nl}ac_space=\ *) 10753 # `set' does not quote correctly, so add quotes: double-quote 10754 # substitution turns \\\\ into \\, and sed turns \\ into \. 10755 sed -n \ 10756 "s/'/'\\\\''/g; 10757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10758 ;; #( 10759 *) 10760 # `set' quotes correctly as required by POSIX, so do not add quotes. 10761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10762 ;; 10763 esac | 10764 sort 10765) | 10766 sed ' 10767 /^ac_cv_env_/b end 10768 t clear 10769 :clear 10770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10771 t end 10772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10773 :end' >>confcache 10774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10775 if test -w "$cache_file"; then 10776 if test "x$cache_file" != "x/dev/null"; then 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10778$as_echo "$as_me: updating cache $cache_file" >&6;} 10779 if test ! -f "$cache_file" || test -h "$cache_file"; then 10780 cat confcache >"$cache_file" 10781 else 10782 case $cache_file in #( 10783 */* | ?:*) 10784 mv -f confcache "$cache_file"$$ && 10785 mv -f "$cache_file"$$ "$cache_file" ;; #( 10786 *) 10787 mv -f confcache "$cache_file" ;; 10788 esac 10789 fi 10790 fi 10791 else 10792 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10793$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10794 fi 10795fi 10796rm -f confcache 10797 10798test "x$prefix" = xNONE && prefix=$ac_default_prefix 10799# Let make expand exec_prefix. 10800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10801 10802DEFS=-DHAVE_CONFIG_H 10803 10804ac_libobjs= 10805ac_ltlibobjs= 10806U= 10807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10808 # 1. Remove the extension, and $U if already installed. 10809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10810 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10812 # will be set to the directory where LIBOBJS objects are built. 10813 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10814 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10815done 10816LIBOBJS=$ac_libobjs 10817 10818LTLIBOBJS=$ac_ltlibobjs 10819 10820 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10822$as_echo_n "checking that generated files are newer than configure... " >&6; } 10823 if test -n "$am_sleep_pid"; then 10824 # Hide warnings about reused PIDs. 10825 wait $am_sleep_pid 2>/dev/null 10826 fi 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10828$as_echo "done" >&6; } 10829 if test -n "$EXEEXT"; then 10830 am__EXEEXT_TRUE= 10831 am__EXEEXT_FALSE='#' 10832else 10833 am__EXEEXT_TRUE='#' 10834 am__EXEEXT_FALSE= 10835fi 10836 10837if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10838 as_fn_error $? "conditional \"AMDEP\" was never defined. 10839Usually this means the macro was only invoked conditionally." "$LINENO" 5 10840fi 10841if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10842 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10843Usually this means the macro was only invoked conditionally." "$LINENO" 5 10844fi 10845if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10846 as_fn_error $? "conditional \"LINT\" was never defined. 10847Usually this means the macro was only invoked conditionally." "$LINENO" 5 10848fi 10849 10850: "${CONFIG_STATUS=./config.status}" 10851ac_write_fail=0 10852ac_clean_files_save=$ac_clean_files 10853ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10854{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10855$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10856as_write_fail=0 10857cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10858#! $SHELL 10859# Generated by $as_me. 10860# Run this file to recreate the current configuration. 10861# Compiler output produced by configure, useful for debugging 10862# configure, is in config.log if it exists. 10863 10864debug=false 10865ac_cs_recheck=false 10866ac_cs_silent=false 10867 10868SHELL=\${CONFIG_SHELL-$SHELL} 10869export SHELL 10870_ASEOF 10871cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10872## -------------------- ## 10873## M4sh Initialization. ## 10874## -------------------- ## 10875 10876# Be more Bourne compatible 10877DUALCASE=1; export DUALCASE # for MKS sh 10878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10879 emulate sh 10880 NULLCMD=: 10881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10882 # is contrary to our usage. Disable this feature. 10883 alias -g '${1+"$@"}'='"$@"' 10884 setopt NO_GLOB_SUBST 10885else 10886 case `(set -o) 2>/dev/null` in #( 10887 *posix*) : 10888 set -o posix ;; #( 10889 *) : 10890 ;; 10891esac 10892fi 10893 10894 10895as_nl=' 10896' 10897export as_nl 10898# Printing a long string crashes Solaris 7 /usr/bin/printf. 10899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10902# Prefer a ksh shell builtin over an external printf program on Solaris, 10903# but without wasting forks for bash or zsh. 10904if test -z "$BASH_VERSION$ZSH_VERSION" \ 10905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10906 as_echo='print -r --' 10907 as_echo_n='print -rn --' 10908elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10909 as_echo='printf %s\n' 10910 as_echo_n='printf %s' 10911else 10912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10914 as_echo_n='/usr/ucb/echo -n' 10915 else 10916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10917 as_echo_n_body='eval 10918 arg=$1; 10919 case $arg in #( 10920 *"$as_nl"*) 10921 expr "X$arg" : "X\\(.*\\)$as_nl"; 10922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10923 esac; 10924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10925 ' 10926 export as_echo_n_body 10927 as_echo_n='sh -c $as_echo_n_body as_echo' 10928 fi 10929 export as_echo_body 10930 as_echo='sh -c $as_echo_body as_echo' 10931fi 10932 10933# The user is always right. 10934if test "${PATH_SEPARATOR+set}" != set; then 10935 PATH_SEPARATOR=: 10936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10938 PATH_SEPARATOR=';' 10939 } 10940fi 10941 10942 10943# IFS 10944# We need space, tab and new line, in precisely that order. Quoting is 10945# there to prevent editors from complaining about space-tab. 10946# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10947# splitting by setting IFS to empty value.) 10948IFS=" "" $as_nl" 10949 10950# Find who we are. Look in the path if we contain no directory separator. 10951as_myself= 10952case $0 in #(( 10953 *[\\/]* ) as_myself=$0 ;; 10954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10955for as_dir in $PATH 10956do 10957 IFS=$as_save_IFS 10958 test -z "$as_dir" && as_dir=. 10959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10960 done 10961IFS=$as_save_IFS 10962 10963 ;; 10964esac 10965# We did not find ourselves, most probably we were run as `sh COMMAND' 10966# in which case we are not to be found in the path. 10967if test "x$as_myself" = x; then 10968 as_myself=$0 10969fi 10970if test ! -f "$as_myself"; then 10971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10972 exit 1 10973fi 10974 10975# Unset variables that we do not need and which cause bugs (e.g. in 10976# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10977# suppresses any "Segmentation fault" message there. '((' could 10978# trigger a bug in pdksh 5.2.14. 10979for as_var in BASH_ENV ENV MAIL MAILPATH 10980do eval test x\${$as_var+set} = xset \ 10981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10982done 10983PS1='$ ' 10984PS2='> ' 10985PS4='+ ' 10986 10987# NLS nuisances. 10988LC_ALL=C 10989export LC_ALL 10990LANGUAGE=C 10991export LANGUAGE 10992 10993# CDPATH. 10994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10995 10996 10997# as_fn_error STATUS ERROR [LINENO LOG_FD] 10998# ---------------------------------------- 10999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11001# script with STATUS, using 1 if that was 0. 11002as_fn_error () 11003{ 11004 as_status=$1; test $as_status -eq 0 && as_status=1 11005 if test "$4"; then 11006 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11008 fi 11009 $as_echo "$as_me: error: $2" >&2 11010 as_fn_exit $as_status 11011} # as_fn_error 11012 11013 11014# as_fn_set_status STATUS 11015# ----------------------- 11016# Set $? to STATUS, without forking. 11017as_fn_set_status () 11018{ 11019 return $1 11020} # as_fn_set_status 11021 11022# as_fn_exit STATUS 11023# ----------------- 11024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11025as_fn_exit () 11026{ 11027 set +e 11028 as_fn_set_status $1 11029 exit $1 11030} # as_fn_exit 11031 11032# as_fn_unset VAR 11033# --------------- 11034# Portably unset VAR. 11035as_fn_unset () 11036{ 11037 { eval $1=; unset $1;} 11038} 11039as_unset=as_fn_unset 11040# as_fn_append VAR VALUE 11041# ---------------------- 11042# Append the text in VALUE to the end of the definition contained in VAR. Take 11043# advantage of any shell optimizations that allow amortized linear growth over 11044# repeated appends, instead of the typical quadratic growth present in naive 11045# implementations. 11046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11047 eval 'as_fn_append () 11048 { 11049 eval $1+=\$2 11050 }' 11051else 11052 as_fn_append () 11053 { 11054 eval $1=\$$1\$2 11055 } 11056fi # as_fn_append 11057 11058# as_fn_arith ARG... 11059# ------------------ 11060# Perform arithmetic evaluation on the ARGs, and store the result in the 11061# global $as_val. Take advantage of shells that can avoid forks. The arguments 11062# must be portable across $(()) and expr. 11063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11064 eval 'as_fn_arith () 11065 { 11066 as_val=$(( $* )) 11067 }' 11068else 11069 as_fn_arith () 11070 { 11071 as_val=`expr "$@" || test $? -eq 1` 11072 } 11073fi # as_fn_arith 11074 11075 11076if expr a : '\(a\)' >/dev/null 2>&1 && 11077 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11078 as_expr=expr 11079else 11080 as_expr=false 11081fi 11082 11083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11084 as_basename=basename 11085else 11086 as_basename=false 11087fi 11088 11089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11090 as_dirname=dirname 11091else 11092 as_dirname=false 11093fi 11094 11095as_me=`$as_basename -- "$0" || 11096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11097 X"$0" : 'X\(//\)$' \| \ 11098 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11099$as_echo X/"$0" | 11100 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11101 s//\1/ 11102 q 11103 } 11104 /^X\/\(\/\/\)$/{ 11105 s//\1/ 11106 q 11107 } 11108 /^X\/\(\/\).*/{ 11109 s//\1/ 11110 q 11111 } 11112 s/.*/./; q'` 11113 11114# Avoid depending upon Character Ranges. 11115as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11117as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11118as_cr_digits='0123456789' 11119as_cr_alnum=$as_cr_Letters$as_cr_digits 11120 11121ECHO_C= ECHO_N= ECHO_T= 11122case `echo -n x` in #((((( 11123-n*) 11124 case `echo 'xy\c'` in 11125 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11126 xy) ECHO_C='\c';; 11127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11128 ECHO_T=' ';; 11129 esac;; 11130*) 11131 ECHO_N='-n';; 11132esac 11133 11134rm -f conf$$ conf$$.exe conf$$.file 11135if test -d conf$$.dir; then 11136 rm -f conf$$.dir/conf$$.file 11137else 11138 rm -f conf$$.dir 11139 mkdir conf$$.dir 2>/dev/null 11140fi 11141if (echo >conf$$.file) 2>/dev/null; then 11142 if ln -s conf$$.file conf$$ 2>/dev/null; then 11143 as_ln_s='ln -s' 11144 # ... but there are two gotchas: 11145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11147 # In both cases, we have to default to `cp -pR'. 11148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11149 as_ln_s='cp -pR' 11150 elif ln conf$$.file conf$$ 2>/dev/null; then 11151 as_ln_s=ln 11152 else 11153 as_ln_s='cp -pR' 11154 fi 11155else 11156 as_ln_s='cp -pR' 11157fi 11158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11159rmdir conf$$.dir 2>/dev/null 11160 11161 11162# as_fn_mkdir_p 11163# ------------- 11164# Create "$as_dir" as a directory, including parents if necessary. 11165as_fn_mkdir_p () 11166{ 11167 11168 case $as_dir in #( 11169 -*) as_dir=./$as_dir;; 11170 esac 11171 test -d "$as_dir" || eval $as_mkdir_p || { 11172 as_dirs= 11173 while :; do 11174 case $as_dir in #( 11175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11176 *) as_qdir=$as_dir;; 11177 esac 11178 as_dirs="'$as_qdir' $as_dirs" 11179 as_dir=`$as_dirname -- "$as_dir" || 11180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11181 X"$as_dir" : 'X\(//\)[^/]' \| \ 11182 X"$as_dir" : 'X\(//\)$' \| \ 11183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11184$as_echo X"$as_dir" | 11185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11186 s//\1/ 11187 q 11188 } 11189 /^X\(\/\/\)[^/].*/{ 11190 s//\1/ 11191 q 11192 } 11193 /^X\(\/\/\)$/{ 11194 s//\1/ 11195 q 11196 } 11197 /^X\(\/\).*/{ 11198 s//\1/ 11199 q 11200 } 11201 s/.*/./; q'` 11202 test -d "$as_dir" && break 11203 done 11204 test -z "$as_dirs" || eval "mkdir $as_dirs" 11205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11206 11207 11208} # as_fn_mkdir_p 11209if mkdir -p . 2>/dev/null; then 11210 as_mkdir_p='mkdir -p "$as_dir"' 11211else 11212 test -d ./-p && rmdir ./-p 11213 as_mkdir_p=false 11214fi 11215 11216 11217# as_fn_executable_p FILE 11218# ----------------------- 11219# Test if FILE is an executable regular file. 11220as_fn_executable_p () 11221{ 11222 test -f "$1" && test -x "$1" 11223} # as_fn_executable_p 11224as_test_x='test -x' 11225as_executable_p=as_fn_executable_p 11226 11227# Sed expression to map a string onto a valid CPP name. 11228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11229 11230# Sed expression to map a string onto a valid variable name. 11231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11232 11233 11234exec 6>&1 11235## ----------------------------------- ## 11236## Main body of $CONFIG_STATUS script. ## 11237## ----------------------------------- ## 11238_ASEOF 11239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11240 11241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11242# Save the log message, to keep $0 and so on meaningful, and to 11243# report actual input values of CONFIG_FILES etc. instead of their 11244# values after options handling. 11245ac_log=" 11246This file was extended by bdftopcf $as_me 1.1, which was 11247generated by GNU Autoconf 2.69. Invocation command line was 11248 11249 CONFIG_FILES = $CONFIG_FILES 11250 CONFIG_HEADERS = $CONFIG_HEADERS 11251 CONFIG_LINKS = $CONFIG_LINKS 11252 CONFIG_COMMANDS = $CONFIG_COMMANDS 11253 $ $0 $@ 11254 11255on `(hostname || uname -n) 2>/dev/null | sed 1q` 11256" 11257 11258_ACEOF 11259 11260case $ac_config_files in *" 11261"*) set x $ac_config_files; shift; ac_config_files=$*;; 11262esac 11263 11264case $ac_config_headers in *" 11265"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11266esac 11267 11268 11269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11270# Files that config.status was made for. 11271config_files="$ac_config_files" 11272config_headers="$ac_config_headers" 11273config_commands="$ac_config_commands" 11274 11275_ACEOF 11276 11277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11278ac_cs_usage="\ 11279\`$as_me' instantiates files and other configuration actions 11280from templates according to the current configuration. Unless the files 11281and actions are specified as TAGs, all are instantiated by default. 11282 11283Usage: $0 [OPTION]... [TAG]... 11284 11285 -h, --help print this help, then exit 11286 -V, --version print version number and configuration settings, then exit 11287 --config print configuration, then exit 11288 -q, --quiet, --silent 11289 do not print progress messages 11290 -d, --debug don't remove temporary files 11291 --recheck update $as_me by reconfiguring in the same conditions 11292 --file=FILE[:TEMPLATE] 11293 instantiate the configuration file FILE 11294 --header=FILE[:TEMPLATE] 11295 instantiate the configuration header FILE 11296 11297Configuration files: 11298$config_files 11299 11300Configuration headers: 11301$config_headers 11302 11303Configuration commands: 11304$config_commands 11305 11306Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11307 11308_ACEOF 11309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11310ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11311ac_cs_version="\\ 11312bdftopcf config.status 1.1 11313configured by $0, generated by GNU Autoconf 2.69, 11314 with options \\"\$ac_cs_config\\" 11315 11316Copyright (C) 2012 Free Software Foundation, Inc. 11317This config.status script is free software; the Free Software Foundation 11318gives unlimited permission to copy, distribute and modify it." 11319 11320ac_pwd='$ac_pwd' 11321srcdir='$srcdir' 11322INSTALL='$INSTALL' 11323MKDIR_P='$MKDIR_P' 11324AWK='$AWK' 11325test -n "\$AWK" || AWK=awk 11326_ACEOF 11327 11328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11329# The default lists apply if the user does not specify any file. 11330ac_need_defaults=: 11331while test $# != 0 11332do 11333 case $1 in 11334 --*=?*) 11335 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11337 ac_shift=: 11338 ;; 11339 --*=) 11340 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11341 ac_optarg= 11342 ac_shift=: 11343 ;; 11344 *) 11345 ac_option=$1 11346 ac_optarg=$2 11347 ac_shift=shift 11348 ;; 11349 esac 11350 11351 case $ac_option in 11352 # Handling of the options. 11353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11354 ac_cs_recheck=: ;; 11355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11356 $as_echo "$ac_cs_version"; exit ;; 11357 --config | --confi | --conf | --con | --co | --c ) 11358 $as_echo "$ac_cs_config"; exit ;; 11359 --debug | --debu | --deb | --de | --d | -d ) 11360 debug=: ;; 11361 --file | --fil | --fi | --f ) 11362 $ac_shift 11363 case $ac_optarg in 11364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11365 '') as_fn_error $? "missing file argument" ;; 11366 esac 11367 as_fn_append CONFIG_FILES " '$ac_optarg'" 11368 ac_need_defaults=false;; 11369 --header | --heade | --head | --hea ) 11370 $ac_shift 11371 case $ac_optarg in 11372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11373 esac 11374 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11375 ac_need_defaults=false;; 11376 --he | --h) 11377 # Conflict between --help and --header 11378 as_fn_error $? "ambiguous option: \`$1' 11379Try \`$0 --help' for more information.";; 11380 --help | --hel | -h ) 11381 $as_echo "$ac_cs_usage"; exit ;; 11382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11383 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11384 ac_cs_silent=: ;; 11385 11386 # This is an error. 11387 -*) as_fn_error $? "unrecognized option: \`$1' 11388Try \`$0 --help' for more information." ;; 11389 11390 *) as_fn_append ac_config_targets " $1" 11391 ac_need_defaults=false ;; 11392 11393 esac 11394 shift 11395done 11396 11397ac_configure_extra_args= 11398 11399if $ac_cs_silent; then 11400 exec 6>/dev/null 11401 ac_configure_extra_args="$ac_configure_extra_args --silent" 11402fi 11403 11404_ACEOF 11405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11406if \$ac_cs_recheck; then 11407 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11408 shift 11409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11410 CONFIG_SHELL='$SHELL' 11411 export CONFIG_SHELL 11412 exec "\$@" 11413fi 11414 11415_ACEOF 11416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11417exec 5>>config.log 11418{ 11419 echo 11420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11421## Running $as_me. ## 11422_ASBOX 11423 $as_echo "$ac_log" 11424} >&5 11425 11426_ACEOF 11427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11428# 11429# INIT-COMMANDS 11430# 11431AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11432 11433_ACEOF 11434 11435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11436 11437# Handling of arguments. 11438for ac_config_target in $ac_config_targets 11439do 11440 case $ac_config_target in 11441 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11442 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11444 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11445 11446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11447 esac 11448done 11449 11450 11451# If the user did not use the arguments to specify the items to instantiate, 11452# then the envvar interface is used. Set only those that are not. 11453# We use the long form for the default assignment because of an extremely 11454# bizarre bug on SunOS 4.1.3. 11455if $ac_need_defaults; then 11456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11459fi 11460 11461# Have a temporary directory for convenience. Make it in the build tree 11462# simply because there is no reason against having it here, and in addition, 11463# creating and moving files from /tmp can sometimes cause problems. 11464# Hook for its removal unless debugging. 11465# Note that there is a small window in which the directory will not be cleaned: 11466# after its creation but before its name has been assigned to `$tmp'. 11467$debug || 11468{ 11469 tmp= ac_tmp= 11470 trap 'exit_status=$? 11471 : "${ac_tmp:=$tmp}" 11472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11473' 0 11474 trap 'as_fn_exit 1' 1 2 13 15 11475} 11476# Create a (secure) tmp directory for tmp files. 11477 11478{ 11479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11480 test -d "$tmp" 11481} || 11482{ 11483 tmp=./conf$$-$RANDOM 11484 (umask 077 && mkdir "$tmp") 11485} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11486ac_tmp=$tmp 11487 11488# Set up the scripts for CONFIG_FILES section. 11489# No need to generate them if there are no CONFIG_FILES. 11490# This happens for instance with `./config.status config.h'. 11491if test -n "$CONFIG_FILES"; then 11492 11493 11494ac_cr=`echo X | tr X '\015'` 11495# On cygwin, bash can eat \r inside `` if the user requested igncr. 11496# But we know of no other shell where ac_cr would be empty at this 11497# point, so we can use a bashism as a fallback. 11498if test "x$ac_cr" = x; then 11499 eval ac_cr=\$\'\\r\' 11500fi 11501ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11502if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11503 ac_cs_awk_cr='\\r' 11504else 11505 ac_cs_awk_cr=$ac_cr 11506fi 11507 11508echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11509_ACEOF 11510 11511 11512{ 11513 echo "cat >conf$$subs.awk <<_ACEOF" && 11514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11515 echo "_ACEOF" 11516} >conf$$subs.sh || 11517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11518ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11519ac_delim='%!_!# ' 11520for ac_last_try in false false false false false :; do 11521 . ./conf$$subs.sh || 11522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11523 11524 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11525 if test $ac_delim_n = $ac_delim_num; then 11526 break 11527 elif $ac_last_try; then 11528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11529 else 11530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11531 fi 11532done 11533rm -f conf$$subs.sh 11534 11535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11536cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11537_ACEOF 11538sed -n ' 11539h 11540s/^/S["/; s/!.*/"]=/ 11541p 11542g 11543s/^[^!]*!// 11544:repl 11545t repl 11546s/'"$ac_delim"'$// 11547t delim 11548:nl 11549h 11550s/\(.\{148\}\)..*/\1/ 11551t more1 11552s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11553p 11554n 11555b repl 11556:more1 11557s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11558p 11559g 11560s/.\{148\}// 11561t nl 11562:delim 11563h 11564s/\(.\{148\}\)..*/\1/ 11565t more2 11566s/["\\]/\\&/g; s/^/"/; s/$/"/ 11567p 11568b 11569:more2 11570s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11571p 11572g 11573s/.\{148\}// 11574t delim 11575' <conf$$subs.awk | sed ' 11576/^[^""]/{ 11577 N 11578 s/\n// 11579} 11580' >>$CONFIG_STATUS || ac_write_fail=1 11581rm -f conf$$subs.awk 11582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11583_ACAWK 11584cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11585 for (key in S) S_is_set[key] = 1 11586 FS = "" 11587 11588} 11589{ 11590 line = $ 0 11591 nfields = split(line, field, "@") 11592 substed = 0 11593 len = length(field[1]) 11594 for (i = 2; i < nfields; i++) { 11595 key = field[i] 11596 keylen = length(key) 11597 if (S_is_set[key]) { 11598 value = S[key] 11599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11600 len += length(value) + length(field[++i]) 11601 substed = 1 11602 } else 11603 len += 1 + keylen 11604 } 11605 11606 print line 11607} 11608 11609_ACAWK 11610_ACEOF 11611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11612if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11613 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11614else 11615 cat 11616fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11617 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11618_ACEOF 11619 11620# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11621# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11622# trailing colons and then remove the whole line if VPATH becomes empty 11623# (actually we leave an empty line to preserve line numbers). 11624if test "x$srcdir" = x.; then 11625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11626h 11627s/// 11628s/^/:/ 11629s/[ ]*$/:/ 11630s/:\$(srcdir):/:/g 11631s/:\${srcdir}:/:/g 11632s/:@srcdir@:/:/g 11633s/^:*// 11634s/:*$// 11635x 11636s/\(=[ ]*\).*/\1/ 11637G 11638s/\n// 11639s/^[^=]*=[ ]*$// 11640}' 11641fi 11642 11643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11644fi # test -n "$CONFIG_FILES" 11645 11646# Set up the scripts for CONFIG_HEADERS section. 11647# No need to generate them if there are no CONFIG_HEADERS. 11648# This happens for instance with `./config.status Makefile'. 11649if test -n "$CONFIG_HEADERS"; then 11650cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11651BEGIN { 11652_ACEOF 11653 11654# Transform confdefs.h into an awk script `defines.awk', embedded as 11655# here-document in config.status, that substitutes the proper values into 11656# config.h.in to produce config.h. 11657 11658# Create a delimiter string that does not exist in confdefs.h, to ease 11659# handling of long lines. 11660ac_delim='%!_!# ' 11661for ac_last_try in false false :; do 11662 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11663 if test -z "$ac_tt"; then 11664 break 11665 elif $ac_last_try; then 11666 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11667 else 11668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11669 fi 11670done 11671 11672# For the awk script, D is an array of macro values keyed by name, 11673# likewise P contains macro parameters if any. Preserve backslash 11674# newline sequences. 11675 11676ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11677sed -n ' 11678s/.\{148\}/&'"$ac_delim"'/g 11679t rset 11680:rset 11681s/^[ ]*#[ ]*define[ ][ ]*/ / 11682t def 11683d 11684:def 11685s/\\$// 11686t bsnl 11687s/["\\]/\\&/g 11688s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11689D["\1"]=" \3"/p 11690s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11691d 11692:bsnl 11693s/["\\]/\\&/g 11694s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11695D["\1"]=" \3\\\\\\n"\\/p 11696t cont 11697s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11698t cont 11699d 11700:cont 11701n 11702s/.\{148\}/&'"$ac_delim"'/g 11703t clear 11704:clear 11705s/\\$// 11706t bsnlc 11707s/["\\]/\\&/g; s/^/"/; s/$/"/p 11708d 11709:bsnlc 11710s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11711b cont 11712' <confdefs.h | sed ' 11713s/'"$ac_delim"'/"\\\ 11714"/g' >>$CONFIG_STATUS || ac_write_fail=1 11715 11716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11717 for (key in D) D_is_set[key] = 1 11718 FS = "" 11719} 11720/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11721 line = \$ 0 11722 split(line, arg, " ") 11723 if (arg[1] == "#") { 11724 defundef = arg[2] 11725 mac1 = arg[3] 11726 } else { 11727 defundef = substr(arg[1], 2) 11728 mac1 = arg[2] 11729 } 11730 split(mac1, mac2, "(") #) 11731 macro = mac2[1] 11732 prefix = substr(line, 1, index(line, defundef) - 1) 11733 if (D_is_set[macro]) { 11734 # Preserve the white space surrounding the "#". 11735 print prefix "define", macro P[macro] D[macro] 11736 next 11737 } else { 11738 # Replace #undef with comments. This is necessary, for example, 11739 # in the case of _POSIX_SOURCE, which is predefined and required 11740 # on some systems where configure will not decide to define it. 11741 if (defundef == "undef") { 11742 print "/*", prefix defundef, macro, "*/" 11743 next 11744 } 11745 } 11746} 11747{ print } 11748_ACAWK 11749_ACEOF 11750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11751 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11752fi # test -n "$CONFIG_HEADERS" 11753 11754 11755eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11756shift 11757for ac_tag 11758do 11759 case $ac_tag in 11760 :[FHLC]) ac_mode=$ac_tag; continue;; 11761 esac 11762 case $ac_mode$ac_tag in 11763 :[FHL]*:*);; 11764 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11765 :[FH]-) ac_tag=-:-;; 11766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11767 esac 11768 ac_save_IFS=$IFS 11769 IFS=: 11770 set x $ac_tag 11771 IFS=$ac_save_IFS 11772 shift 11773 ac_file=$1 11774 shift 11775 11776 case $ac_mode in 11777 :L) ac_source=$1;; 11778 :[FH]) 11779 ac_file_inputs= 11780 for ac_f 11781 do 11782 case $ac_f in 11783 -) ac_f="$ac_tmp/stdin";; 11784 *) # Look for the file first in the build tree, then in the source tree 11785 # (if the path is not absolute). The absolute path cannot be DOS-style, 11786 # because $ac_f cannot contain `:'. 11787 test -f "$ac_f" || 11788 case $ac_f in 11789 [\\/$]*) false;; 11790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11791 esac || 11792 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11793 esac 11794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11795 as_fn_append ac_file_inputs " '$ac_f'" 11796 done 11797 11798 # Let's still pretend it is `configure' which instantiates (i.e., don't 11799 # use $as_me), people would be surprised to read: 11800 # /* config.h. Generated by config.status. */ 11801 configure_input='Generated from '` 11802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11803 `' by configure.' 11804 if test x"$ac_file" != x-; then 11805 configure_input="$ac_file. $configure_input" 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11807$as_echo "$as_me: creating $ac_file" >&6;} 11808 fi 11809 # Neutralize special characters interpreted by sed in replacement strings. 11810 case $configure_input in #( 11811 *\&* | *\|* | *\\* ) 11812 ac_sed_conf_input=`$as_echo "$configure_input" | 11813 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11814 *) ac_sed_conf_input=$configure_input;; 11815 esac 11816 11817 case $ac_tag in 11818 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11820 esac 11821 ;; 11822 esac 11823 11824 ac_dir=`$as_dirname -- "$ac_file" || 11825$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11826 X"$ac_file" : 'X\(//\)[^/]' \| \ 11827 X"$ac_file" : 'X\(//\)$' \| \ 11828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11829$as_echo X"$ac_file" | 11830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11831 s//\1/ 11832 q 11833 } 11834 /^X\(\/\/\)[^/].*/{ 11835 s//\1/ 11836 q 11837 } 11838 /^X\(\/\/\)$/{ 11839 s//\1/ 11840 q 11841 } 11842 /^X\(\/\).*/{ 11843 s//\1/ 11844 q 11845 } 11846 s/.*/./; q'` 11847 as_dir="$ac_dir"; as_fn_mkdir_p 11848 ac_builddir=. 11849 11850case "$ac_dir" in 11851.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11852*) 11853 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11854 # A ".." for each directory in $ac_dir_suffix. 11855 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11856 case $ac_top_builddir_sub in 11857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11859 esac ;; 11860esac 11861ac_abs_top_builddir=$ac_pwd 11862ac_abs_builddir=$ac_pwd$ac_dir_suffix 11863# for backward compatibility: 11864ac_top_builddir=$ac_top_build_prefix 11865 11866case $srcdir in 11867 .) # We are building in place. 11868 ac_srcdir=. 11869 ac_top_srcdir=$ac_top_builddir_sub 11870 ac_abs_top_srcdir=$ac_pwd ;; 11871 [\\/]* | ?:[\\/]* ) # Absolute name. 11872 ac_srcdir=$srcdir$ac_dir_suffix; 11873 ac_top_srcdir=$srcdir 11874 ac_abs_top_srcdir=$srcdir ;; 11875 *) # Relative name. 11876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11877 ac_top_srcdir=$ac_top_build_prefix$srcdir 11878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11879esac 11880ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11881 11882 11883 case $ac_mode in 11884 :F) 11885 # 11886 # CONFIG_FILE 11887 # 11888 11889 case $INSTALL in 11890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11892 esac 11893 ac_MKDIR_P=$MKDIR_P 11894 case $MKDIR_P in 11895 [\\/$]* | ?:[\\/]* ) ;; 11896 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11897 esac 11898_ACEOF 11899 11900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11901# If the template does not know about datarootdir, expand it. 11902# FIXME: This hack should be removed a few years after 2.60. 11903ac_datarootdir_hack=; ac_datarootdir_seen= 11904ac_sed_dataroot=' 11905/datarootdir/ { 11906 p 11907 q 11908} 11909/@datadir@/p 11910/@docdir@/p 11911/@infodir@/p 11912/@localedir@/p 11913/@mandir@/p' 11914case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11915*datarootdir*) ac_datarootdir_seen=yes;; 11916*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11918$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11919_ACEOF 11920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11921 ac_datarootdir_hack=' 11922 s&@datadir@&$datadir&g 11923 s&@docdir@&$docdir&g 11924 s&@infodir@&$infodir&g 11925 s&@localedir@&$localedir&g 11926 s&@mandir@&$mandir&g 11927 s&\\\${datarootdir}&$datarootdir&g' ;; 11928esac 11929_ACEOF 11930 11931# Neutralize VPATH when `$srcdir' = `.'. 11932# Shell code in configure.ac might set extrasub. 11933# FIXME: do we really want to maintain this feature? 11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11935ac_sed_extra="$ac_vpsub 11936$extrasub 11937_ACEOF 11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11939:t 11940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11941s|@configure_input@|$ac_sed_conf_input|;t t 11942s&@top_builddir@&$ac_top_builddir_sub&;t t 11943s&@top_build_prefix@&$ac_top_build_prefix&;t t 11944s&@srcdir@&$ac_srcdir&;t t 11945s&@abs_srcdir@&$ac_abs_srcdir&;t t 11946s&@top_srcdir@&$ac_top_srcdir&;t t 11947s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11948s&@builddir@&$ac_builddir&;t t 11949s&@abs_builddir@&$ac_abs_builddir&;t t 11950s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11951s&@INSTALL@&$ac_INSTALL&;t t 11952s&@MKDIR_P@&$ac_MKDIR_P&;t t 11953$ac_datarootdir_hack 11954" 11955eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11957 11958test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11961 "$ac_tmp/out"`; test -z "$ac_out"; } && 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11963which seems to be undefined. Please make sure it is defined" >&5 11964$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11965which seems to be undefined. Please make sure it is defined" >&2;} 11966 11967 rm -f "$ac_tmp/stdin" 11968 case $ac_file in 11969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11971 esac \ 11972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11973 ;; 11974 :H) 11975 # 11976 # CONFIG_HEADER 11977 # 11978 if test x"$ac_file" != x-; then 11979 { 11980 $as_echo "/* $configure_input */" \ 11981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11982 } >"$ac_tmp/config.h" \ 11983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11986$as_echo "$as_me: $ac_file is unchanged" >&6;} 11987 else 11988 rm -f "$ac_file" 11989 mv "$ac_tmp/config.h" "$ac_file" \ 11990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11991 fi 11992 else 11993 $as_echo "/* $configure_input */" \ 11994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11995 || as_fn_error $? "could not create -" "$LINENO" 5 11996 fi 11997# Compute "$ac_file"'s index in $config_headers. 11998_am_arg="$ac_file" 11999_am_stamp_count=1 12000for _am_header in $config_headers :; do 12001 case $_am_header in 12002 $_am_arg | $_am_arg:* ) 12003 break ;; 12004 * ) 12005 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12006 esac 12007done 12008echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12009$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12010 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12011 X"$_am_arg" : 'X\(//\)$' \| \ 12012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12013$as_echo X"$_am_arg" | 12014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12015 s//\1/ 12016 q 12017 } 12018 /^X\(\/\/\)[^/].*/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\(\/\/\)$/{ 12023 s//\1/ 12024 q 12025 } 12026 /^X\(\/\).*/{ 12027 s//\1/ 12028 q 12029 } 12030 s/.*/./; q'`/stamp-h$_am_stamp_count 12031 ;; 12032 12033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12034$as_echo "$as_me: executing $ac_file commands" >&6;} 12035 ;; 12036 esac 12037 12038 12039 case $ac_file$ac_mode in 12040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12041 # Older Autoconf quotes --file arguments for eval, but not when files 12042 # are listed without --file. Let's play safe and only enable the eval 12043 # if we detect the quoting. 12044 case $CONFIG_FILES in 12045 *\'*) eval set x "$CONFIG_FILES" ;; 12046 *) set x $CONFIG_FILES ;; 12047 esac 12048 shift 12049 for mf 12050 do 12051 # Strip MF so we end up with the name of the file. 12052 mf=`echo "$mf" | sed -e 's/:.*$//'` 12053 # Check whether this is an Automake generated Makefile or not. 12054 # We used to match only the files named 'Makefile.in', but 12055 # some people rename them; so instead we look at the file content. 12056 # Grep'ing the first line is not enough: some people post-process 12057 # each Makefile.in and add a new line on top of each file to say so. 12058 # Grep'ing the whole file is not good either: AIX grep has a line 12059 # limit of 2048, but all sed's we know have understand at least 4000. 12060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12061 dirpart=`$as_dirname -- "$mf" || 12062$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12063 X"$mf" : 'X\(//\)[^/]' \| \ 12064 X"$mf" : 'X\(//\)$' \| \ 12065 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12066$as_echo X"$mf" | 12067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12068 s//\1/ 12069 q 12070 } 12071 /^X\(\/\/\)[^/].*/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)$/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\).*/{ 12080 s//\1/ 12081 q 12082 } 12083 s/.*/./; q'` 12084 else 12085 continue 12086 fi 12087 # Extract the definition of DEPDIR, am__include, and am__quote 12088 # from the Makefile without running 'make'. 12089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12090 test -z "$DEPDIR" && continue 12091 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12092 test -z "$am__include" && continue 12093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12094 # Find all dependency output files, they are included files with 12095 # $(DEPDIR) in their names. We invoke sed twice because it is the 12096 # simplest approach to changing $(DEPDIR) to its actual value in the 12097 # expansion. 12098 for file in `sed -n " 12099 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12100 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12101 # Make sure the directory exists. 12102 test -f "$dirpart/$file" && continue 12103 fdir=`$as_dirname -- "$file" || 12104$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$file" : 'X\(//\)[^/]' \| \ 12106 X"$file" : 'X\(//\)$' \| \ 12107 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12108$as_echo X"$file" | 12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12110 s//\1/ 12111 q 12112 } 12113 /^X\(\/\/\)[^/].*/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)$/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\).*/{ 12122 s//\1/ 12123 q 12124 } 12125 s/.*/./; q'` 12126 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12127 # echo "creating $dirpart/$file" 12128 echo '# dummy' > "$dirpart/$file" 12129 done 12130 done 12131} 12132 ;; 12133 12134 esac 12135done # for ac_tag 12136 12137 12138as_fn_exit 0 12139_ACEOF 12140ac_clean_files=$ac_clean_files_save 12141 12142test $ac_write_fail = 0 || 12143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12144 12145 12146# configure is writing to config.log, and then calls config.status. 12147# config.status does its own redirection, appending to config.log. 12148# Unfortunately, on DOS this fails, as config.log is still kept open 12149# by configure, so config.status won't be able to write to it; its 12150# output is simply discarded. So we exec the FD to /dev/null, 12151# effectively closing config.log, so it can be properly (re)opened and 12152# appended to by config.status. When coming back to configure, we 12153# need to make the FD available again. 12154if test "$no_create" != yes; then 12155 ac_cs_success=: 12156 ac_config_status_args= 12157 test "$silent" = yes && 12158 ac_config_status_args="$ac_config_status_args --quiet" 12159 exec 5>/dev/null 12160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12161 exec 5>>config.log 12162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12163 # would make configure fail if this is the last instruction. 12164 $ac_cs_success || as_fn_exit 1 12165fi 12166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12168$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12169fi 12170 12171