configure revision fb4ebca8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for bdftopcf 1.0.5. 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.0.5' 585PACKAGE_STRING='bdftopcf 1.0.5' 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 634BDFTOPCF_LIBS 635BDFTOPCF_CFLAGS 636MAN_SUBSTS 637XORG_MAN_PAGE 638ADMIN_MAN_DIR 639DRIVER_MAN_DIR 640MISC_MAN_DIR 641FILE_MAN_DIR 642LIB_MAN_DIR 643APP_MAN_DIR 644ADMIN_MAN_SUFFIX 645DRIVER_MAN_SUFFIX 646MISC_MAN_SUFFIX 647FILE_MAN_SUFFIX 648LIB_MAN_SUFFIX 649APP_MAN_SUFFIX 650SED 651host_os 652host_vendor 653host_cpu 654host 655build_os 656build_vendor 657build_cpu 658build 659INSTALL_CMD 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 769BDFTOPCF_CFLAGS 770BDFTOPCF_LIBS 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.0.5 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.0.5:";; 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 BDFTOPCF_CFLAGS 1421 C compiler flags for BDFTOPCF, overriding pkg-config 1422 BDFTOPCF_LIBS 1423 linker flags for BDFTOPCF, overriding pkg-config 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.0.5 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.0.5, 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.14' 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}" != 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.0.5' 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. The system "awk" is bad on 2653# 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# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723DEPDIR="${am__leading_dot}deps" 2724 2725ac_config_commands="$ac_config_commands depfiles" 2726 2727 2728am_make=${MAKE-make} 2729cat > confinc << 'END' 2730am__doit: 2731 @echo this is the am__doit target 2732.PHONY: am__doit 2733END 2734# If we don't find an include directive, just comment out the code. 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2736$as_echo_n "checking for style of include used by $am_make... " >&6; } 2737am__include="#" 2738am__quote= 2739_am_result=none 2740# First try GNU make style include. 2741echo "include confinc" > confmf 2742# Ignore all kinds of additional output from 'make'. 2743case `$am_make -s -f confmf 2> /dev/null` in #( 2744*the\ am__doit\ target*) 2745 am__include=include 2746 am__quote= 2747 _am_result=GNU 2748 ;; 2749esac 2750# Now try BSD make style include. 2751if test "$am__include" = "#"; then 2752 echo '.include "confinc"' > confmf 2753 case `$am_make -s -f confmf 2> /dev/null` in #( 2754 *the\ am__doit\ target*) 2755 am__include=.include 2756 am__quote="\"" 2757 _am_result=BSD 2758 ;; 2759 esac 2760fi 2761 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2764$as_echo "$_am_result" >&6; } 2765rm -f confinc confmf 2766 2767# Check whether --enable-dependency-tracking was given. 2768if test "${enable_dependency_tracking+set}" = set; then : 2769 enableval=$enable_dependency_tracking; 2770fi 2771 2772if test "x$enable_dependency_tracking" != xno; then 2773 am_depcomp="$ac_aux_dir/depcomp" 2774 AMDEPBACKSLASH='\' 2775 am__nodep='_no' 2776fi 2777 if test "x$enable_dependency_tracking" != xno; then 2778 AMDEP_TRUE= 2779 AMDEP_FALSE='#' 2780else 2781 AMDEP_TRUE='#' 2782 AMDEP_FALSE= 2783fi 2784 2785 2786ac_ext=c 2787ac_cpp='$CPP $CPPFLAGS' 2788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2790ac_compiler_gnu=$ac_cv_c_compiler_gnu 2791if test -n "$ac_tool_prefix"; then 2792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2793set dummy ${ac_tool_prefix}gcc; ac_word=$2 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795$as_echo_n "checking for $ac_word... " >&6; } 2796if ${ac_cv_prog_CC+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test -n "$CC"; then 2800 ac_cv_prog_CC="$CC" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819CC=$ac_cv_prog_CC 2820if test -n "$CC"; then 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2822$as_echo "$CC" >&6; } 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829fi 2830if test -z "$ac_cv_prog_CC"; then 2831 ac_ct_CC=$CC 2832 # Extract the first word of "gcc", so it can be a program name with args. 2833set dummy gcc; ac_word=$2 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2835$as_echo_n "checking for $ac_word... " >&6; } 2836if ${ac_cv_prog_ac_ct_CC+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 if test -n "$ac_ct_CC"; then 2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2841else 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2849 ac_cv_prog_ac_ct_CC="gcc" 2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2851 break 2 2852 fi 2853done 2854 done 2855IFS=$as_save_IFS 2856 2857fi 2858fi 2859ac_ct_CC=$ac_cv_prog_ac_ct_CC 2860if test -n "$ac_ct_CC"; then 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2862$as_echo "$ac_ct_CC" >&6; } 2863else 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2865$as_echo "no" >&6; } 2866fi 2867 2868 if test "x$ac_ct_CC" = x; then 2869 CC="" 2870 else 2871 case $cross_compiling:$ac_tool_warned in 2872yes:) 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2875ac_tool_warned=yes ;; 2876esac 2877 CC=$ac_ct_CC 2878 fi 2879else 2880 CC="$ac_cv_prog_CC" 2881fi 2882 2883if test -z "$CC"; then 2884 if test -n "$ac_tool_prefix"; then 2885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2886set dummy ${ac_tool_prefix}cc; ac_word=$2 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888$as_echo_n "checking for $ac_word... " >&6; } 2889if ${ac_cv_prog_CC+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 if test -n "$CC"; then 2893 ac_cv_prog_CC="$CC" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2902 ac_cv_prog_CC="${ac_tool_prefix}cc" 2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911fi 2912CC=$ac_cv_prog_CC 2913if test -n "$CC"; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2915$as_echo "$CC" >&6; } 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918$as_echo "no" >&6; } 2919fi 2920 2921 2922 fi 2923fi 2924if test -z "$CC"; then 2925 # Extract the first word of "cc", so it can be a program name with args. 2926set dummy cc; ac_word=$2 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2928$as_echo_n "checking for $ac_word... " >&6; } 2929if ${ac_cv_prog_CC+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 if test -n "$CC"; then 2933 ac_cv_prog_CC="$CC" # Let the user override the test. 2934else 2935 ac_prog_rejected=no 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2944 ac_prog_rejected=yes 2945 continue 2946 fi 2947 ac_cv_prog_CC="cc" 2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2949 break 2 2950 fi 2951done 2952 done 2953IFS=$as_save_IFS 2954 2955if test $ac_prog_rejected = yes; then 2956 # We found a bogon in the path, so make sure we never use it. 2957 set dummy $ac_cv_prog_CC 2958 shift 2959 if test $# != 0; then 2960 # We chose a different compiler from the bogus one. 2961 # However, it has the same basename, so the bogon will be chosen 2962 # first if we set CC to just the basename; use the full file name. 2963 shift 2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2965 fi 2966fi 2967fi 2968fi 2969CC=$ac_cv_prog_CC 2970if test -n "$CC"; then 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2972$as_echo "$CC" >&6; } 2973else 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975$as_echo "no" >&6; } 2976fi 2977 2978 2979fi 2980if test -z "$CC"; then 2981 if test -n "$ac_tool_prefix"; then 2982 for ac_prog in cl.exe 2983 do 2984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2987$as_echo_n "checking for $ac_word... " >&6; } 2988if ${ac_cv_prog_CC+:} false; then : 2989 $as_echo_n "(cached) " >&6 2990else 2991 if test -n "$CC"; then 2992 ac_cv_prog_CC="$CC" # Let the user override the test. 2993else 2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995for as_dir in $PATH 2996do 2997 IFS=$as_save_IFS 2998 test -z "$as_dir" && as_dir=. 2999 for ac_exec_ext in '' $ac_executable_extensions; do 3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005done 3006 done 3007IFS=$as_save_IFS 3008 3009fi 3010fi 3011CC=$ac_cv_prog_CC 3012if test -n "$CC"; then 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3014$as_echo "$CC" >&6; } 3015else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017$as_echo "no" >&6; } 3018fi 3019 3020 3021 test -n "$CC" && break 3022 done 3023fi 3024if test -z "$CC"; then 3025 ac_ct_CC=$CC 3026 for ac_prog in cl.exe 3027do 3028 # Extract the first word of "$ac_prog", so it can be a program name with args. 3029set dummy $ac_prog; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_ac_ct_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$ac_ct_CC"; then 3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_ac_ct_CC="$ac_prog" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055ac_ct_CC=$ac_cv_prog_ac_ct_CC 3056if test -n "$ac_ct_CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3058$as_echo "$ac_ct_CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065 test -n "$ac_ct_CC" && break 3066done 3067 3068 if test "x$ac_ct_CC" = x; then 3069 CC="" 3070 else 3071 case $cross_compiling:$ac_tool_warned in 3072yes:) 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3075ac_tool_warned=yes ;; 3076esac 3077 CC=$ac_ct_CC 3078 fi 3079fi 3080 3081fi 3082 3083 3084test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086as_fn_error $? "no acceptable C compiler found in \$PATH 3087See \`config.log' for more details" "$LINENO" 5; } 3088 3089# Provide some information about the compiler. 3090$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3091set X $ac_compile 3092ac_compiler=$2 3093for ac_option in --version -v -V -qversion; do 3094 { { ac_try="$ac_compiler $ac_option >&5" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3100$as_echo "$ac_try_echo"; } >&5 3101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3102 ac_status=$? 3103 if test -s conftest.err; then 3104 sed '10a\ 3105... rest of stderr output deleted ... 3106 10q' conftest.err >conftest.er1 3107 cat conftest.er1 >&5 3108 fi 3109 rm -f conftest.er1 conftest.err 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; } 3112done 3113 3114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116 3117int 3118main () 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125ac_clean_files_save=$ac_clean_files 3126ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3127# Try to create an executable without -o first, disregard a.out. 3128# It will help us diagnose broken compilers, and finding out an intuition 3129# of exeext. 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3131$as_echo_n "checking whether the C compiler works... " >&6; } 3132ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3133 3134# The possible output files: 3135ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3136 3137ac_rmfiles= 3138for ac_file in $ac_files 3139do 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3142 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3143 esac 3144done 3145rm -f $ac_rmfiles 3146 3147if { { ac_try="$ac_link_default" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3153$as_echo "$ac_try_echo"; } >&5 3154 (eval "$ac_link_default") 2>&5 3155 ac_status=$? 3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3157 test $ac_status = 0; }; then : 3158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3159# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3160# in a Makefile. We should not override ac_cv_exeext if it was cached, 3161# so that the user can short-circuit this test for compilers unknown to 3162# Autoconf. 3163for ac_file in $ac_files '' 3164do 3165 test -f "$ac_file" || continue 3166 case $ac_file in 3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3168 ;; 3169 [ab].out ) 3170 # We found the default executable, but exeext='' is most 3171 # certainly right. 3172 break;; 3173 *.* ) 3174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3175 then :; else 3176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3177 fi 3178 # We set ac_cv_exeext here because the later test for it is not 3179 # safe: cross compilers may not add the suffix if given an `-o' 3180 # argument, so we may need to know it at that point already. 3181 # Even if this section looks crufty: it has the advantage of 3182 # actually working. 3183 break;; 3184 * ) 3185 break;; 3186 esac 3187done 3188test "$ac_cv_exeext" = no && ac_cv_exeext= 3189 3190else 3191 ac_file='' 3192fi 3193if test -z "$ac_file"; then : 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3195$as_echo "no" >&6; } 3196$as_echo "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error 77 "C compiler cannot create executables 3202See \`config.log' for more details" "$LINENO" 5; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3205$as_echo "yes" >&6; } 3206fi 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3208$as_echo_n "checking for C compiler default output file name... " >&6; } 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3210$as_echo "$ac_file" >&6; } 3211ac_exeext=$ac_cv_exeext 3212 3213rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3214ac_clean_files=$ac_clean_files_save 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3216$as_echo_n "checking for suffix of executables... " >&6; } 3217if { { ac_try="$ac_link" 3218case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3223$as_echo "$ac_try_echo"; } >&5 3224 (eval "$ac_link") 2>&5 3225 ac_status=$? 3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3227 test $ac_status = 0; }; then : 3228 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3230# work properly (i.e., refer to `conftest.exe'), while it won't with 3231# `rm'. 3232for ac_file in conftest.exe conftest conftest.*; do 3233 test -f "$ac_file" || continue 3234 case $ac_file in 3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3237 break;; 3238 * ) break;; 3239 esac 3240done 3241else 3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3245See \`config.log' for more details" "$LINENO" 5; } 3246fi 3247rm -f conftest conftest$ac_cv_exeext 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3249$as_echo "$ac_cv_exeext" >&6; } 3250 3251rm -f conftest.$ac_ext 3252EXEEXT=$ac_cv_exeext 3253ac_exeext=$EXEEXT 3254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3255/* end confdefs.h. */ 3256#include <stdio.h> 3257int 3258main () 3259{ 3260FILE *f = fopen ("conftest.out", "w"); 3261 return ferror (f) || fclose (f) != 0; 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267ac_clean_files="$ac_clean_files conftest.out" 3268# Check that the compiler produces executables we can run. If not, either 3269# the compiler is broken, or we cross compile. 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3271$as_echo_n "checking whether we are cross compiling... " >&6; } 3272if test "$cross_compiling" != yes; then 3273 { { ac_try="$ac_link" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279$as_echo "$ac_try_echo"; } >&5 3280 (eval "$ac_link") 2>&5 3281 ac_status=$? 3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; } 3284 if { ac_try='./conftest$ac_cv_exeext' 3285 { { case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3290$as_echo "$ac_try_echo"; } >&5 3291 (eval "$ac_try") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; }; }; then 3295 cross_compiling=no 3296 else 3297 if test "$cross_compiling" = maybe; then 3298 cross_compiling=yes 3299 else 3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302as_fn_error $? "cannot run C compiled programs. 3303If you meant to cross compile, use \`--host'. 3304See \`config.log' for more details" "$LINENO" 5; } 3305 fi 3306 fi 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3309$as_echo "$cross_compiling" >&6; } 3310 3311rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3312ac_clean_files=$ac_clean_files_save 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3314$as_echo_n "checking for suffix of object files... " >&6; } 3315if ${ac_cv_objext+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3319/* end confdefs.h. */ 3320 3321int 3322main () 3323{ 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329rm -f conftest.o conftest.obj 3330if { { ac_try="$ac_compile" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336$as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_compile") 2>&5 3338 ac_status=$? 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; }; then : 3341 for ac_file in conftest.o conftest.obj conftest.*; do 3342 test -f "$ac_file" || continue; 3343 case $ac_file in 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3346 break;; 3347 esac 3348done 3349else 3350 $as_echo "$as_me: failed program was:" >&5 3351sed 's/^/| /' conftest.$ac_ext >&5 3352 3353{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "cannot compute suffix of object files: cannot compile 3356See \`config.log' for more details" "$LINENO" 5; } 3357fi 3358rm -f conftest.$ac_cv_objext conftest.$ac_ext 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3361$as_echo "$ac_cv_objext" >&6; } 3362OBJEXT=$ac_cv_objext 3363ac_objext=$OBJEXT 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3365$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3366if ${ac_cv_c_compiler_gnu+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375#ifndef __GNUC__ 3376 choke me 3377#endif 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383if ac_fn_c_try_compile "$LINENO"; then : 3384 ac_compiler_gnu=yes 3385else 3386 ac_compiler_gnu=no 3387fi 3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3389ac_cv_c_compiler_gnu=$ac_compiler_gnu 3390 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3393$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3394if test $ac_compiler_gnu = yes; then 3395 GCC=yes 3396else 3397 GCC= 3398fi 3399ac_test_CFLAGS=${CFLAGS+set} 3400ac_save_CFLAGS=$CFLAGS 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3402$as_echo_n "checking whether $CC accepts -g... " >&6; } 3403if ${ac_cv_prog_cc_g+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405else 3406 ac_save_c_werror_flag=$ac_c_werror_flag 3407 ac_c_werror_flag=yes 3408 ac_cv_prog_cc_g=no 3409 CFLAGS="-g" 3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412 3413int 3414main () 3415{ 3416 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421if ac_fn_c_try_compile "$LINENO"; then : 3422 ac_cv_prog_cc_g=yes 3423else 3424 CFLAGS="" 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436if ac_fn_c_try_compile "$LINENO"; then : 3437 3438else 3439 ac_c_werror_flag=$ac_save_c_werror_flag 3440 CFLAGS="-g" 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443 3444int 3445main () 3446{ 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_c_try_compile "$LINENO"; then : 3453 ac_cv_prog_cc_g=yes 3454fi 3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3456fi 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458fi 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460 ac_c_werror_flag=$ac_save_c_werror_flag 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3463$as_echo "$ac_cv_prog_cc_g" >&6; } 3464if test "$ac_test_CFLAGS" = set; then 3465 CFLAGS=$ac_save_CFLAGS 3466elif test $ac_cv_prog_cc_g = yes; then 3467 if test "$GCC" = yes; then 3468 CFLAGS="-g -O2" 3469 else 3470 CFLAGS="-g" 3471 fi 3472else 3473 if test "$GCC" = yes; then 3474 CFLAGS="-O2" 3475 else 3476 CFLAGS= 3477 fi 3478fi 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3480$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3481if ${ac_cv_prog_cc_c89+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 ac_cv_prog_cc_c89=no 3485ac_save_CC=$CC 3486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487/* end confdefs.h. */ 3488#include <stdarg.h> 3489#include <stdio.h> 3490struct stat; 3491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3492struct buf { int x; }; 3493FILE * (*rcsopen) (struct buf *, struct stat *, int); 3494static char *e (p, i) 3495 char **p; 3496 int i; 3497{ 3498 return p[i]; 3499} 3500static char *f (char * (*g) (char **, int), char **p, ...) 3501{ 3502 char *s; 3503 va_list v; 3504 va_start (v,p); 3505 s = g (p, va_arg (v,int)); 3506 va_end (v); 3507 return s; 3508} 3509 3510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3511 function prototypes and stuff, but not '\xHH' hex character constants. 3512 These don't provoke an error unfortunately, instead are silently treated 3513 as 'x'. The following induces an error, until -std is added to get 3514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3515 array size at least. It's necessary to write '\x00'==0 to get something 3516 that's true only with -std. */ 3517int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3518 3519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3520 inside strings and character constants. */ 3521#define FOO(x) 'x' 3522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3523 3524int test (int i, double x); 3525struct s1 {int (*f) (int a);}; 3526struct s2 {int (*f) (double a);}; 3527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3528int argc; 3529char **argv; 3530int 3531main () 3532{ 3533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3540do 3541 CC="$ac_save_CC $ac_arg" 3542 if ac_fn_c_try_compile "$LINENO"; then : 3543 ac_cv_prog_cc_c89=$ac_arg 3544fi 3545rm -f core conftest.err conftest.$ac_objext 3546 test "x$ac_cv_prog_cc_c89" != "xno" && break 3547done 3548rm -f conftest.$ac_ext 3549CC=$ac_save_CC 3550 3551fi 3552# AC_CACHE_VAL 3553case "x$ac_cv_prog_cc_c89" in 3554 x) 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3556$as_echo "none needed" >&6; } ;; 3557 xno) 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3559$as_echo "unsupported" >&6; } ;; 3560 *) 3561 CC="$CC $ac_cv_prog_cc_c89" 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3563$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3564esac 3565if test "x$ac_cv_prog_cc_c89" != xno; then : 3566 3567fi 3568 3569ac_ext=c 3570ac_cpp='$CPP $CPPFLAGS' 3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3573ac_compiler_gnu=$ac_cv_c_compiler_gnu 3574 3575ac_ext=c 3576ac_cpp='$CPP $CPPFLAGS' 3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3579ac_compiler_gnu=$ac_cv_c_compiler_gnu 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3581$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3582if ${am_cv_prog_cc_c_o+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587 3588int 3589main () 3590{ 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596 # Make sure it works both with $CC and with simple cc. 3597 # Following AC_PROG_CC_C_O, we do the test twice because some 3598 # compilers refuse to overwrite an existing .o file with -o, 3599 # though they will create one. 3600 am_cv_prog_cc_c_o=yes 3601 for am_i in 1 2; do 3602 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3603 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3604 ac_status=$? 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3606 (exit $ac_status); } \ 3607 && test -f conftest2.$ac_objext; then 3608 : OK 3609 else 3610 am_cv_prog_cc_c_o=no 3611 break 3612 fi 3613 done 3614 rm -f core conftest* 3615 unset am_i 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3618$as_echo "$am_cv_prog_cc_c_o" >&6; } 3619if test "$am_cv_prog_cc_c_o" != yes; then 3620 # Losing compiler, so override with the script. 3621 # FIXME: It is wrong to rewrite CC. 3622 # But if we don't then we get into trouble of one sort or another. 3623 # A longer-term fix would be to have automake use am__CC in this case, 3624 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3625 CC="$am_aux_dir/compile $CC" 3626fi 3627ac_ext=c 3628ac_cpp='$CPP $CPPFLAGS' 3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3631ac_compiler_gnu=$ac_cv_c_compiler_gnu 3632 3633 3634depcc="$CC" am_compiler_list= 3635 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3637$as_echo_n "checking dependency style of $depcc... " >&6; } 3638if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3642 # We make a subdir and do the tests there. Otherwise we can end up 3643 # making bogus files that we don't know about and never remove. For 3644 # instance it was reported that on HP-UX the gcc test will end up 3645 # making a dummy file named 'D' -- because '-MD' means "put the output 3646 # in D". 3647 rm -rf conftest.dir 3648 mkdir conftest.dir 3649 # Copy depcomp to subdir because otherwise we won't find it if we're 3650 # using a relative directory. 3651 cp "$am_depcomp" conftest.dir 3652 cd conftest.dir 3653 # We will build objects and dependencies in a subdirectory because 3654 # it helps to detect inapplicable dependency modes. For instance 3655 # both Tru64's cc and ICC support -MD to output dependencies as a 3656 # side effect of compilation, but ICC will put the dependencies in 3657 # the current directory while Tru64 will put them in the object 3658 # directory. 3659 mkdir sub 3660 3661 am_cv_CC_dependencies_compiler_type=none 3662 if test "$am_compiler_list" = ""; then 3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3664 fi 3665 am__universal=false 3666 case " $depcc " in #( 3667 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3668 esac 3669 3670 for depmode in $am_compiler_list; do 3671 # Setup a source with many dependencies, because some compilers 3672 # like to wrap large dependency lists on column 80 (with \), and 3673 # we should not choose a depcomp mode which is confused by this. 3674 # 3675 # We need to recreate these files for each test, as the compiler may 3676 # overwrite some of them when testing with obscure command lines. 3677 # This happens at least with the AIX C compiler. 3678 : > sub/conftest.c 3679 for i in 1 2 3 4 5 6; do 3680 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3681 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3682 # Solaris 10 /bin/sh. 3683 echo '/* dummy */' > sub/conftst$i.h 3684 done 3685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3686 3687 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3688 # mode. It turns out that the SunPro C++ compiler does not properly 3689 # handle '-M -o', and we need to detect this. Also, some Intel 3690 # versions had trouble with output in subdirs. 3691 am__obj=sub/conftest.${OBJEXT-o} 3692 am__minus_obj="-o $am__obj" 3693 case $depmode in 3694 gcc) 3695 # This depmode causes a compiler race in universal mode. 3696 test "$am__universal" = false || continue 3697 ;; 3698 nosideeffect) 3699 # After this tag, mechanisms are not by side-effect, so they'll 3700 # only be used when explicitly requested. 3701 if test "x$enable_dependency_tracking" = xyes; then 3702 continue 3703 else 3704 break 3705 fi 3706 ;; 3707 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3708 # This compiler won't grok '-c -o', but also, the minuso test has 3709 # not run yet. These depmodes are late enough in the game, and 3710 # so weak that their functioning should not be impacted. 3711 am__obj=conftest.${OBJEXT-o} 3712 am__minus_obj= 3713 ;; 3714 none) break ;; 3715 esac 3716 if depmode=$depmode \ 3717 source=sub/conftest.c object=$am__obj \ 3718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3719 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3720 >/dev/null 2>conftest.err && 3721 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3723 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3725 # icc doesn't choke on unknown options, it will just issue warnings 3726 # or remarks (even with -Werror). So we grep stderr for any message 3727 # that says an option was ignored or not supported. 3728 # When given -MP, icc 7.0 and 7.1 complain thusly: 3729 # icc: Command line warning: ignoring option '-M'; no argument required 3730 # The diagnosis changed in icc 8.0: 3731 # icc: Command line remark: option '-MP' not supported 3732 if (grep 'ignoring option' conftest.err || 3733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3734 am_cv_CC_dependencies_compiler_type=$depmode 3735 break 3736 fi 3737 fi 3738 done 3739 3740 cd .. 3741 rm -rf conftest.dir 3742else 3743 am_cv_CC_dependencies_compiler_type=none 3744fi 3745 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3748$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3749CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3750 3751 if 3752 test "x$enable_dependency_tracking" != xno \ 3753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3754 am__fastdepCC_TRUE= 3755 am__fastdepCC_FALSE='#' 3756else 3757 am__fastdepCC_TRUE='#' 3758 am__fastdepCC_FALSE= 3759fi 3760 3761 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3763$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3764if ${ac_cv_prog_cc_c99+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 ac_cv_prog_cc_c99=no 3768ac_save_CC=$CC 3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771#include <stdarg.h> 3772#include <stdbool.h> 3773#include <stdlib.h> 3774#include <wchar.h> 3775#include <stdio.h> 3776 3777// Check varargs macros. These examples are taken from C99 6.10.3.5. 3778#define debug(...) fprintf (stderr, __VA_ARGS__) 3779#define showlist(...) puts (#__VA_ARGS__) 3780#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3781static void 3782test_varargs_macros (void) 3783{ 3784 int x = 1234; 3785 int y = 5678; 3786 debug ("Flag"); 3787 debug ("X = %d\n", x); 3788 showlist (The first, second, and third items.); 3789 report (x>y, "x is %d but y is %d", x, y); 3790} 3791 3792// Check long long types. 3793#define BIG64 18446744073709551615ull 3794#define BIG32 4294967295ul 3795#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3796#if !BIG_OK 3797 your preprocessor is broken; 3798#endif 3799#if BIG_OK 3800#else 3801 your preprocessor is broken; 3802#endif 3803static long long int bignum = -9223372036854775807LL; 3804static unsigned long long int ubignum = BIG64; 3805 3806struct incomplete_array 3807{ 3808 int datasize; 3809 double data[]; 3810}; 3811 3812struct named_init { 3813 int number; 3814 const wchar_t *name; 3815 double average; 3816}; 3817 3818typedef const char *ccp; 3819 3820static inline int 3821test_restrict (ccp restrict text) 3822{ 3823 // See if C++-style comments work. 3824 // Iterate through items via the restricted pointer. 3825 // Also check for declarations in for loops. 3826 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3827 continue; 3828 return 0; 3829} 3830 3831// Check varargs and va_copy. 3832static void 3833test_varargs (const char *format, ...) 3834{ 3835 va_list args; 3836 va_start (args, format); 3837 va_list args_copy; 3838 va_copy (args_copy, args); 3839 3840 const char *str; 3841 int number; 3842 float fnumber; 3843 3844 while (*format) 3845 { 3846 switch (*format++) 3847 { 3848 case 's': // string 3849 str = va_arg (args_copy, const char *); 3850 break; 3851 case 'd': // int 3852 number = va_arg (args_copy, int); 3853 break; 3854 case 'f': // float 3855 fnumber = va_arg (args_copy, double); 3856 break; 3857 default: 3858 break; 3859 } 3860 } 3861 va_end (args_copy); 3862 va_end (args); 3863} 3864 3865int 3866main () 3867{ 3868 3869 // Check bool. 3870 _Bool success = false; 3871 3872 // Check restrict. 3873 if (test_restrict ("String literal") == 0) 3874 success = true; 3875 char *restrict newvar = "Another string"; 3876 3877 // Check varargs. 3878 test_varargs ("s, d' f .", "string", 65, 34.234); 3879 test_varargs_macros (); 3880 3881 // Check flexible array members. 3882 struct incomplete_array *ia = 3883 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3884 ia->datasize = 10; 3885 for (int i = 0; i < ia->datasize; ++i) 3886 ia->data[i] = i * 1.234; 3887 3888 // Check named initializers. 3889 struct named_init ni = { 3890 .number = 34, 3891 .name = L"Test wide string", 3892 .average = 543.34343, 3893 }; 3894 3895 ni.number = 58; 3896 3897 int dynamic_array[ni.number]; 3898 dynamic_array[ni.number - 1] = 543; 3899 3900 // work around unused variable warnings 3901 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3902 || dynamic_array[ni.number - 1] != 543); 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3909do 3910 CC="$ac_save_CC $ac_arg" 3911 if ac_fn_c_try_compile "$LINENO"; then : 3912 ac_cv_prog_cc_c99=$ac_arg 3913fi 3914rm -f core conftest.err conftest.$ac_objext 3915 test "x$ac_cv_prog_cc_c99" != "xno" && break 3916done 3917rm -f conftest.$ac_ext 3918CC=$ac_save_CC 3919 3920fi 3921# AC_CACHE_VAL 3922case "x$ac_cv_prog_cc_c99" in 3923 x) 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3925$as_echo "none needed" >&6; } ;; 3926 xno) 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3928$as_echo "unsupported" >&6; } ;; 3929 *) 3930 CC="$CC $ac_cv_prog_cc_c99" 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3932$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3933esac 3934if test "x$ac_cv_prog_cc_c99" != xno; then : 3935 3936fi 3937 3938 3939 3940ac_ext=c 3941ac_cpp='$CPP $CPPFLAGS' 3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3944ac_compiler_gnu=$ac_cv_c_compiler_gnu 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3946$as_echo_n "checking how to run the C preprocessor... " >&6; } 3947# On Suns, sometimes $CPP names a directory. 3948if test -n "$CPP" && test -d "$CPP"; then 3949 CPP= 3950fi 3951if test -z "$CPP"; then 3952 if ${ac_cv_prog_CPP+:} false; then : 3953 $as_echo_n "(cached) " >&6 3954else 3955 # Double quotes because CPP needs to be expanded 3956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3957 do 3958 ac_preproc_ok=false 3959for ac_c_preproc_warn_flag in '' yes 3960do 3961 # Use a header file that comes with gcc, so configuring glibc 3962 # with a fresh cross-compiler works. 3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3964 # <limits.h> exists even on freestanding compilers. 3965 # On the NeXT, cc -E runs the code through the compiler's parser, 3966 # not just through cpp. "Syntax error" is here to catch this case. 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3968/* end confdefs.h. */ 3969#ifdef __STDC__ 3970# include <limits.h> 3971#else 3972# include <assert.h> 3973#endif 3974 Syntax error 3975_ACEOF 3976if ac_fn_c_try_cpp "$LINENO"; then : 3977 3978else 3979 # Broken: fails on valid input. 3980continue 3981fi 3982rm -f conftest.err conftest.i conftest.$ac_ext 3983 3984 # OK, works on sane cases. Now check whether nonexistent headers 3985 # can be detected and how. 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988#include <ac_nonexistent.h> 3989_ACEOF 3990if ac_fn_c_try_cpp "$LINENO"; then : 3991 # Broken: success on invalid input. 3992continue 3993else 3994 # Passes both tests. 3995ac_preproc_ok=: 3996break 3997fi 3998rm -f conftest.err conftest.i conftest.$ac_ext 3999 4000done 4001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4002rm -f conftest.i conftest.err conftest.$ac_ext 4003if $ac_preproc_ok; then : 4004 break 4005fi 4006 4007 done 4008 ac_cv_prog_CPP=$CPP 4009 4010fi 4011 CPP=$ac_cv_prog_CPP 4012else 4013 ac_cv_prog_CPP=$CPP 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4016$as_echo "$CPP" >&6; } 4017ac_preproc_ok=false 4018for ac_c_preproc_warn_flag in '' yes 4019do 4020 # Use a header file that comes with gcc, so configuring glibc 4021 # with a fresh cross-compiler works. 4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4023 # <limits.h> exists even on freestanding compilers. 4024 # On the NeXT, cc -E runs the code through the compiler's parser, 4025 # not just through cpp. "Syntax error" is here to catch this case. 4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4027/* end confdefs.h. */ 4028#ifdef __STDC__ 4029# include <limits.h> 4030#else 4031# include <assert.h> 4032#endif 4033 Syntax error 4034_ACEOF 4035if ac_fn_c_try_cpp "$LINENO"; then : 4036 4037else 4038 # Broken: fails on valid input. 4039continue 4040fi 4041rm -f conftest.err conftest.i conftest.$ac_ext 4042 4043 # OK, works on sane cases. Now check whether nonexistent headers 4044 # can be detected and how. 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047#include <ac_nonexistent.h> 4048_ACEOF 4049if ac_fn_c_try_cpp "$LINENO"; then : 4050 # Broken: success on invalid input. 4051continue 4052else 4053 # Passes both tests. 4054ac_preproc_ok=: 4055break 4056fi 4057rm -f conftest.err conftest.i conftest.$ac_ext 4058 4059done 4060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4061rm -f conftest.i conftest.err conftest.$ac_ext 4062if $ac_preproc_ok; then : 4063 4064else 4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4067as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4068See \`config.log' for more details" "$LINENO" 5; } 4069fi 4070 4071ac_ext=c 4072ac_cpp='$CPP $CPPFLAGS' 4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4075ac_compiler_gnu=$ac_cv_c_compiler_gnu 4076 4077 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4079$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4080if ${ac_cv_path_GREP+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 if test -z "$GREP"; then 4084 ac_path_GREP_found=false 4085 # Loop through the user's path and test for each of PROGNAME-LIST 4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4088do 4089 IFS=$as_save_IFS 4090 test -z "$as_dir" && as_dir=. 4091 for ac_prog in grep ggrep; do 4092 for ac_exec_ext in '' $ac_executable_extensions; do 4093 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4094 as_fn_executable_p "$ac_path_GREP" || continue 4095# Check for GNU ac_path_GREP and select it if it is found. 4096 # Check for GNU $ac_path_GREP 4097case `"$ac_path_GREP" --version 2>&1` in 4098*GNU*) 4099 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4100*) 4101 ac_count=0 4102 $as_echo_n 0123456789 >"conftest.in" 4103 while : 4104 do 4105 cat "conftest.in" "conftest.in" >"conftest.tmp" 4106 mv "conftest.tmp" "conftest.in" 4107 cp "conftest.in" "conftest.nl" 4108 $as_echo 'GREP' >> "conftest.nl" 4109 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4111 as_fn_arith $ac_count + 1 && ac_count=$as_val 4112 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4113 # Best one so far, save it but keep looking for a better one 4114 ac_cv_path_GREP="$ac_path_GREP" 4115 ac_path_GREP_max=$ac_count 4116 fi 4117 # 10*(2^10) chars as input seems more than enough 4118 test $ac_count -gt 10 && break 4119 done 4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4121esac 4122 4123 $ac_path_GREP_found && break 3 4124 done 4125 done 4126 done 4127IFS=$as_save_IFS 4128 if test -z "$ac_cv_path_GREP"; then 4129 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4130 fi 4131else 4132 ac_cv_path_GREP=$GREP 4133fi 4134 4135fi 4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4137$as_echo "$ac_cv_path_GREP" >&6; } 4138 GREP="$ac_cv_path_GREP" 4139 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4142$as_echo_n "checking for egrep... " >&6; } 4143if ${ac_cv_path_EGREP+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4147 then ac_cv_path_EGREP="$GREP -E" 4148 else 4149 if test -z "$EGREP"; then 4150 ac_path_EGREP_found=false 4151 # Loop through the user's path and test for each of PROGNAME-LIST 4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_prog in egrep; do 4158 for ac_exec_ext in '' $ac_executable_extensions; do 4159 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4160 as_fn_executable_p "$ac_path_EGREP" || continue 4161# Check for GNU ac_path_EGREP and select it if it is found. 4162 # Check for GNU $ac_path_EGREP 4163case `"$ac_path_EGREP" --version 2>&1` in 4164*GNU*) 4165 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4166*) 4167 ac_count=0 4168 $as_echo_n 0123456789 >"conftest.in" 4169 while : 4170 do 4171 cat "conftest.in" "conftest.in" >"conftest.tmp" 4172 mv "conftest.tmp" "conftest.in" 4173 cp "conftest.in" "conftest.nl" 4174 $as_echo 'EGREP' >> "conftest.nl" 4175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4177 as_fn_arith $ac_count + 1 && ac_count=$as_val 4178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4179 # Best one so far, save it but keep looking for a better one 4180 ac_cv_path_EGREP="$ac_path_EGREP" 4181 ac_path_EGREP_max=$ac_count 4182 fi 4183 # 10*(2^10) chars as input seems more than enough 4184 test $ac_count -gt 10 && break 4185 done 4186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4187esac 4188 4189 $ac_path_EGREP_found && break 3 4190 done 4191 done 4192 done 4193IFS=$as_save_IFS 4194 if test -z "$ac_cv_path_EGREP"; then 4195 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4196 fi 4197else 4198 ac_cv_path_EGREP=$EGREP 4199fi 4200 4201 fi 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4204$as_echo "$ac_cv_path_EGREP" >&6; } 4205 EGREP="$ac_cv_path_EGREP" 4206 4207 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4209$as_echo_n "checking for ANSI C header files... " >&6; } 4210if ${ac_cv_header_stdc+:} false; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214/* end confdefs.h. */ 4215#include <stdlib.h> 4216#include <stdarg.h> 4217#include <string.h> 4218#include <float.h> 4219 4220int 4221main () 4222{ 4223 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228if ac_fn_c_try_compile "$LINENO"; then : 4229 ac_cv_header_stdc=yes 4230else 4231 ac_cv_header_stdc=no 4232fi 4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4234 4235if test $ac_cv_header_stdc = yes; then 4236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4238/* end confdefs.h. */ 4239#include <string.h> 4240 4241_ACEOF 4242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4243 $EGREP "memchr" >/dev/null 2>&1; then : 4244 4245else 4246 ac_cv_header_stdc=no 4247fi 4248rm -f conftest* 4249 4250fi 4251 4252if test $ac_cv_header_stdc = yes; then 4253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4255/* end confdefs.h. */ 4256#include <stdlib.h> 4257 4258_ACEOF 4259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4260 $EGREP "free" >/dev/null 2>&1; then : 4261 4262else 4263 ac_cv_header_stdc=no 4264fi 4265rm -f conftest* 4266 4267fi 4268 4269if test $ac_cv_header_stdc = yes; then 4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4271 if test "$cross_compiling" = yes; then : 4272 : 4273else 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276#include <ctype.h> 4277#include <stdlib.h> 4278#if ((' ' & 0x0FF) == 0x020) 4279# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4280# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4281#else 4282# define ISLOWER(c) \ 4283 (('a' <= (c) && (c) <= 'i') \ 4284 || ('j' <= (c) && (c) <= 'r') \ 4285 || ('s' <= (c) && (c) <= 'z')) 4286# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4287#endif 4288 4289#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4290int 4291main () 4292{ 4293 int i; 4294 for (i = 0; i < 256; i++) 4295 if (XOR (islower (i), ISLOWER (i)) 4296 || toupper (i) != TOUPPER (i)) 4297 return 2; 4298 return 0; 4299} 4300_ACEOF 4301if ac_fn_c_try_run "$LINENO"; then : 4302 4303else 4304 ac_cv_header_stdc=no 4305fi 4306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4307 conftest.$ac_objext conftest.beam conftest.$ac_ext 4308fi 4309 4310fi 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4313$as_echo "$ac_cv_header_stdc" >&6; } 4314if test $ac_cv_header_stdc = yes; then 4315 4316$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4317 4318fi 4319 4320# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4322 inttypes.h stdint.h unistd.h 4323do : 4324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4325ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4326" 4327if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4328 cat >>confdefs.h <<_ACEOF 4329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4330_ACEOF 4331 4332fi 4333 4334done 4335 4336 4337 4338 4339 4340 4341ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4342if test "x$ac_cv_have_decl___clang__" = xyes; then : 4343 CLANGCC="yes" 4344else 4345 CLANGCC="no" 4346fi 4347 4348ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4349if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4350 INTELCC="yes" 4351else 4352 INTELCC="no" 4353fi 4354 4355ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4356if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4357 SUNCC="yes" 4358else 4359 SUNCC="no" 4360fi 4361 4362 4363 4364 4365if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4366 if test -n "$ac_tool_prefix"; then 4367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4370$as_echo_n "checking for $ac_word... " >&6; } 4371if ${ac_cv_path_PKG_CONFIG+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 case $PKG_CONFIG in 4375 [\\/]* | ?:[\\/]*) 4376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4377 ;; 4378 *) 4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4380for as_dir in $PATH 4381do 4382 IFS=$as_save_IFS 4383 test -z "$as_dir" && as_dir=. 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4388 break 2 4389 fi 4390done 4391 done 4392IFS=$as_save_IFS 4393 4394 ;; 4395esac 4396fi 4397PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4398if test -n "$PKG_CONFIG"; then 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4400$as_echo "$PKG_CONFIG" >&6; } 4401else 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4403$as_echo "no" >&6; } 4404fi 4405 4406 4407fi 4408if test -z "$ac_cv_path_PKG_CONFIG"; then 4409 ac_pt_PKG_CONFIG=$PKG_CONFIG 4410 # Extract the first word of "pkg-config", so it can be a program name with args. 4411set dummy pkg-config; ac_word=$2 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413$as_echo_n "checking for $ac_word... " >&6; } 4414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 case $ac_pt_PKG_CONFIG in 4418 [\\/]* | ?:[\\/]*) 4419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4420 ;; 4421 *) 4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4423for as_dir in $PATH 4424do 4425 IFS=$as_save_IFS 4426 test -z "$as_dir" && as_dir=. 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4431 break 2 4432 fi 4433done 4434 done 4435IFS=$as_save_IFS 4436 4437 ;; 4438esac 4439fi 4440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4441if test -n "$ac_pt_PKG_CONFIG"; then 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4443$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4444else 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446$as_echo "no" >&6; } 4447fi 4448 4449 if test "x$ac_pt_PKG_CONFIG" = x; then 4450 PKG_CONFIG="" 4451 else 4452 case $cross_compiling:$ac_tool_warned in 4453yes:) 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4456ac_tool_warned=yes ;; 4457esac 4458 PKG_CONFIG=$ac_pt_PKG_CONFIG 4459 fi 4460else 4461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4462fi 4463 4464fi 4465if test -n "$PKG_CONFIG"; then 4466 _pkg_min_version=0.9.0 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4468$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4469 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4471$as_echo "yes" >&6; } 4472 else 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4474$as_echo "no" >&6; } 4475 PKG_CONFIG="" 4476 fi 4477 4478fi 4479# Make sure we can run config.sub. 4480$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4481 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4482 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4484$as_echo_n "checking build system type... " >&6; } 4485if ${ac_cv_build+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 ac_build_alias=$build_alias 4489test "x$ac_build_alias" = x && 4490 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4491test "x$ac_build_alias" = x && 4492 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4493ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4495 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4498$as_echo "$ac_cv_build" >&6; } 4499case $ac_cv_build in 4500*-*-*) ;; 4501*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4502esac 4503build=$ac_cv_build 4504ac_save_IFS=$IFS; IFS='-' 4505set x $ac_cv_build 4506shift 4507build_cpu=$1 4508build_vendor=$2 4509shift; shift 4510# Remember, the first character of IFS is used to create $*, 4511# except with old shells: 4512build_os=$* 4513IFS=$ac_save_IFS 4514case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4515 4516 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4518$as_echo_n "checking host system type... " >&6; } 4519if ${ac_cv_host+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 if test "x$host_alias" = x; then 4523 ac_cv_host=$ac_cv_build 4524else 4525 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4527fi 4528 4529fi 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4531$as_echo "$ac_cv_host" >&6; } 4532case $ac_cv_host in 4533*-*-*) ;; 4534*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4535esac 4536host=$ac_cv_host 4537ac_save_IFS=$IFS; IFS='-' 4538set x $ac_cv_host 4539shift 4540host_cpu=$1 4541host_vendor=$2 4542shift; shift 4543# Remember, the first character of IFS is used to create $*, 4544# except with old shells: 4545host_os=$* 4546IFS=$ac_save_IFS 4547case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4548 4549 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4551$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4552if ${ac_cv_path_SED+:} false; then : 4553 $as_echo_n "(cached) " >&6 4554else 4555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4556 for ac_i in 1 2 3 4 5 6 7; do 4557 ac_script="$ac_script$as_nl$ac_script" 4558 done 4559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4560 { ac_script=; unset ac_script;} 4561 if test -z "$SED"; then 4562 ac_path_SED_found=false 4563 # Loop through the user's path and test for each of PROGNAME-LIST 4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_prog in sed gsed; do 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4572 as_fn_executable_p "$ac_path_SED" || continue 4573# Check for GNU ac_path_SED and select it if it is found. 4574 # Check for GNU $ac_path_SED 4575case `"$ac_path_SED" --version 2>&1` in 4576*GNU*) 4577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4578*) 4579 ac_count=0 4580 $as_echo_n 0123456789 >"conftest.in" 4581 while : 4582 do 4583 cat "conftest.in" "conftest.in" >"conftest.tmp" 4584 mv "conftest.tmp" "conftest.in" 4585 cp "conftest.in" "conftest.nl" 4586 $as_echo '' >> "conftest.nl" 4587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4589 as_fn_arith $ac_count + 1 && ac_count=$as_val 4590 if test $ac_count -gt ${ac_path_SED_max-0}; then 4591 # Best one so far, save it but keep looking for a better one 4592 ac_cv_path_SED="$ac_path_SED" 4593 ac_path_SED_max=$ac_count 4594 fi 4595 # 10*(2^10) chars as input seems more than enough 4596 test $ac_count -gt 10 && break 4597 done 4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4599esac 4600 4601 $ac_path_SED_found && break 3 4602 done 4603 done 4604 done 4605IFS=$as_save_IFS 4606 if test -z "$ac_cv_path_SED"; then 4607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4608 fi 4609else 4610 ac_cv_path_SED=$SED 4611fi 4612 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4615$as_echo "$ac_cv_path_SED" >&6; } 4616 SED="$ac_cv_path_SED" 4617 rm -f conftest.sed 4618 4619 4620 4621 4622 4623 4624# Check whether --enable-selective-werror was given. 4625if test "${enable_selective_werror+set}" = set; then : 4626 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4627else 4628 SELECTIVE_WERROR=yes 4629fi 4630 4631 4632 4633 4634 4635# -v is too short to test reliably with XORG_TESTSET_CFLAG 4636if test "x$SUNCC" = "xyes"; then 4637 BASE_CFLAGS="-v" 4638else 4639 BASE_CFLAGS="" 4640fi 4641 4642# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656xorg_testset_save_CFLAGS="$CFLAGS" 4657 4658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4663 $as_echo_n "(cached) " >&6 4664else 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666/* end confdefs.h. */ 4667int i; 4668_ACEOF 4669if ac_fn_c_try_compile "$LINENO"; then : 4670 xorg_cv_cc_flag_unknown_warning_option=yes 4671else 4672 xorg_cv_cc_flag_unknown_warning_option=no 4673fi 4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4675fi 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4679 CFLAGS="$xorg_testset_save_CFLAGS" 4680fi 4681 4682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4685 fi 4686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694int i; 4695_ACEOF 4696if ac_fn_c_try_compile "$LINENO"; then : 4697 xorg_cv_cc_flag_unused_command_line_argument=yes 4698else 4699 xorg_cv_cc_flag_unused_command_line_argument=no 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4706 CFLAGS="$xorg_testset_save_CFLAGS" 4707fi 4708 4709found="no" 4710 4711 if test $found = "no" ; then 4712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4714 fi 4715 4716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4718 fi 4719 4720 CFLAGS="$CFLAGS -Wall" 4721 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4723$as_echo_n "checking if $CC supports -Wall... " >&6; } 4724 cacheid=xorg_cv_cc_flag__Wall 4725 if eval \${$cacheid+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729/* end confdefs.h. */ 4730int i; 4731int 4732main () 4733{ 4734 4735 ; 4736 return 0; 4737} 4738_ACEOF 4739if ac_fn_c_try_link "$LINENO"; then : 4740 eval $cacheid=yes 4741else 4742 eval $cacheid=no 4743fi 4744rm -f core conftest.err conftest.$ac_objext \ 4745 conftest$ac_exeext conftest.$ac_ext 4746fi 4747 4748 4749 CFLAGS="$xorg_testset_save_CFLAGS" 4750 4751 eval supported=\$$cacheid 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4753$as_echo "$supported" >&6; } 4754 if test "$supported" = "yes" ; then 4755 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4756 found="yes" 4757 fi 4758 fi 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774xorg_testset_save_CFLAGS="$CFLAGS" 4775 4776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4781 $as_echo_n "(cached) " >&6 4782else 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784/* end confdefs.h. */ 4785int i; 4786_ACEOF 4787if ac_fn_c_try_compile "$LINENO"; then : 4788 xorg_cv_cc_flag_unknown_warning_option=yes 4789else 4790 xorg_cv_cc_flag_unknown_warning_option=no 4791fi 4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4797 CFLAGS="$xorg_testset_save_CFLAGS" 4798fi 4799 4800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4803 fi 4804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812int i; 4813_ACEOF 4814if ac_fn_c_try_compile "$LINENO"; then : 4815 xorg_cv_cc_flag_unused_command_line_argument=yes 4816else 4817 xorg_cv_cc_flag_unused_command_line_argument=no 4818fi 4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4824 CFLAGS="$xorg_testset_save_CFLAGS" 4825fi 4826 4827found="no" 4828 4829 if test $found = "no" ; then 4830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4832 fi 4833 4834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4836 fi 4837 4838 CFLAGS="$CFLAGS -Wpointer-arith" 4839 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4841$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4842 cacheid=xorg_cv_cc_flag__Wpointer_arith 4843 if eval \${$cacheid+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4847/* end confdefs.h. */ 4848int i; 4849int 4850main () 4851{ 4852 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857if ac_fn_c_try_link "$LINENO"; then : 4858 eval $cacheid=yes 4859else 4860 eval $cacheid=no 4861fi 4862rm -f core conftest.err conftest.$ac_objext \ 4863 conftest$ac_exeext conftest.$ac_ext 4864fi 4865 4866 4867 CFLAGS="$xorg_testset_save_CFLAGS" 4868 4869 eval supported=\$$cacheid 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4871$as_echo "$supported" >&6; } 4872 if test "$supported" = "yes" ; then 4873 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4874 found="yes" 4875 fi 4876 fi 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892xorg_testset_save_CFLAGS="$CFLAGS" 4893 4894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903int i; 4904_ACEOF 4905if ac_fn_c_try_compile "$LINENO"; then : 4906 xorg_cv_cc_flag_unknown_warning_option=yes 4907else 4908 xorg_cv_cc_flag_unknown_warning_option=no 4909fi 4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4915 CFLAGS="$xorg_testset_save_CFLAGS" 4916fi 4917 4918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4921 fi 4922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930int i; 4931_ACEOF 4932if ac_fn_c_try_compile "$LINENO"; then : 4933 xorg_cv_cc_flag_unused_command_line_argument=yes 4934else 4935 xorg_cv_cc_flag_unused_command_line_argument=no 4936fi 4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4938fi 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4942 CFLAGS="$xorg_testset_save_CFLAGS" 4943fi 4944 4945found="no" 4946 4947 if test $found = "no" ; then 4948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4950 fi 4951 4952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4954 fi 4955 4956 CFLAGS="$CFLAGS -Wmissing-declarations" 4957 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4959$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4960 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4961 if eval \${$cacheid+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966int i; 4967int 4968main () 4969{ 4970 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975if ac_fn_c_try_link "$LINENO"; then : 4976 eval $cacheid=yes 4977else 4978 eval $cacheid=no 4979fi 4980rm -f core conftest.err conftest.$ac_objext \ 4981 conftest$ac_exeext conftest.$ac_ext 4982fi 4983 4984 4985 CFLAGS="$xorg_testset_save_CFLAGS" 4986 4987 eval supported=\$$cacheid 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4989$as_echo "$supported" >&6; } 4990 if test "$supported" = "yes" ; then 4991 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4992 found="yes" 4993 fi 4994 fi 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010xorg_testset_save_CFLAGS="$CFLAGS" 5011 5012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021int i; 5022_ACEOF 5023if ac_fn_c_try_compile "$LINENO"; then : 5024 xorg_cv_cc_flag_unknown_warning_option=yes 5025else 5026 xorg_cv_cc_flag_unknown_warning_option=no 5027fi 5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5033 CFLAGS="$xorg_testset_save_CFLAGS" 5034fi 5035 5036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5039 fi 5040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048int i; 5049_ACEOF 5050if ac_fn_c_try_compile "$LINENO"; then : 5051 xorg_cv_cc_flag_unused_command_line_argument=yes 5052else 5053 xorg_cv_cc_flag_unused_command_line_argument=no 5054fi 5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5056fi 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5060 CFLAGS="$xorg_testset_save_CFLAGS" 5061fi 5062 5063found="no" 5064 5065 if test $found = "no" ; then 5066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5068 fi 5069 5070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5072 fi 5073 5074 CFLAGS="$CFLAGS -Wformat=2" 5075 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5077$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5078 cacheid=xorg_cv_cc_flag__Wformat_2 5079 if eval \${$cacheid+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084int i; 5085int 5086main () 5087{ 5088 5089 ; 5090 return 0; 5091} 5092_ACEOF 5093if ac_fn_c_try_link "$LINENO"; then : 5094 eval $cacheid=yes 5095else 5096 eval $cacheid=no 5097fi 5098rm -f core conftest.err conftest.$ac_objext \ 5099 conftest$ac_exeext conftest.$ac_ext 5100fi 5101 5102 5103 CFLAGS="$xorg_testset_save_CFLAGS" 5104 5105 eval supported=\$$cacheid 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5107$as_echo "$supported" >&6; } 5108 if test "$supported" = "yes" ; then 5109 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5110 found="yes" 5111 fi 5112 fi 5113 5114 if test $found = "no" ; then 5115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5117 fi 5118 5119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5121 fi 5122 5123 CFLAGS="$CFLAGS -Wformat" 5124 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5126$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5127 cacheid=xorg_cv_cc_flag__Wformat 5128 if eval \${$cacheid+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133int i; 5134int 5135main () 5136{ 5137 5138 ; 5139 return 0; 5140} 5141_ACEOF 5142if ac_fn_c_try_link "$LINENO"; then : 5143 eval $cacheid=yes 5144else 5145 eval $cacheid=no 5146fi 5147rm -f core conftest.err conftest.$ac_objext \ 5148 conftest$ac_exeext conftest.$ac_ext 5149fi 5150 5151 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153 5154 eval supported=\$$cacheid 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5156$as_echo "$supported" >&6; } 5157 if test "$supported" = "yes" ; then 5158 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5159 found="yes" 5160 fi 5161 fi 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179xorg_testset_save_CFLAGS="$CFLAGS" 5180 5181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190int i; 5191_ACEOF 5192if ac_fn_c_try_compile "$LINENO"; then : 5193 xorg_cv_cc_flag_unknown_warning_option=yes 5194else 5195 xorg_cv_cc_flag_unknown_warning_option=no 5196fi 5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5202 CFLAGS="$xorg_testset_save_CFLAGS" 5203fi 5204 5205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5208 fi 5209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217int i; 5218_ACEOF 5219if ac_fn_c_try_compile "$LINENO"; then : 5220 xorg_cv_cc_flag_unused_command_line_argument=yes 5221else 5222 xorg_cv_cc_flag_unused_command_line_argument=no 5223fi 5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5225fi 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5229 CFLAGS="$xorg_testset_save_CFLAGS" 5230fi 5231 5232found="no" 5233 5234 if test $found = "no" ; then 5235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 fi 5238 5239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5241 fi 5242 5243 CFLAGS="$CFLAGS -Wstrict-prototypes" 5244 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5246$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5247 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5248 if eval \${$cacheid+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5252/* end confdefs.h. */ 5253int i; 5254int 5255main () 5256{ 5257 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262if ac_fn_c_try_link "$LINENO"; then : 5263 eval $cacheid=yes 5264else 5265 eval $cacheid=no 5266fi 5267rm -f core conftest.err conftest.$ac_objext \ 5268 conftest$ac_exeext conftest.$ac_ext 5269fi 5270 5271 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273 5274 eval supported=\$$cacheid 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5276$as_echo "$supported" >&6; } 5277 if test "$supported" = "yes" ; then 5278 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5279 found="yes" 5280 fi 5281 fi 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297xorg_testset_save_CFLAGS="$CFLAGS" 5298 5299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307/* end confdefs.h. */ 5308int i; 5309_ACEOF 5310if ac_fn_c_try_compile "$LINENO"; then : 5311 xorg_cv_cc_flag_unknown_warning_option=yes 5312else 5313 xorg_cv_cc_flag_unknown_warning_option=no 5314fi 5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5316fi 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5320 CFLAGS="$xorg_testset_save_CFLAGS" 5321fi 5322 5323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5326 fi 5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335int i; 5336_ACEOF 5337if ac_fn_c_try_compile "$LINENO"; then : 5338 xorg_cv_cc_flag_unused_command_line_argument=yes 5339else 5340 xorg_cv_cc_flag_unused_command_line_argument=no 5341fi 5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5347 CFLAGS="$xorg_testset_save_CFLAGS" 5348fi 5349 5350found="no" 5351 5352 if test $found = "no" ; then 5353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5355 fi 5356 5357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5359 fi 5360 5361 CFLAGS="$CFLAGS -Wmissing-prototypes" 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5364$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5365 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5366 if eval \${$cacheid+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371int i; 5372int 5373main () 5374{ 5375 5376 ; 5377 return 0; 5378} 5379_ACEOF 5380if ac_fn_c_try_link "$LINENO"; then : 5381 eval $cacheid=yes 5382else 5383 eval $cacheid=no 5384fi 5385rm -f core conftest.err conftest.$ac_objext \ 5386 conftest$ac_exeext conftest.$ac_ext 5387fi 5388 5389 5390 CFLAGS="$xorg_testset_save_CFLAGS" 5391 5392 eval supported=\$$cacheid 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5394$as_echo "$supported" >&6; } 5395 if test "$supported" = "yes" ; then 5396 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5397 found="yes" 5398 fi 5399 fi 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415xorg_testset_save_CFLAGS="$CFLAGS" 5416 5417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO"; then : 5429 xorg_cv_cc_flag_unknown_warning_option=yes 5430else 5431 xorg_cv_cc_flag_unknown_warning_option=no 5432fi 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434fi 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5438 CFLAGS="$xorg_testset_save_CFLAGS" 5439fi 5440 5441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5444 fi 5445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453int i; 5454_ACEOF 5455if ac_fn_c_try_compile "$LINENO"; then : 5456 xorg_cv_cc_flag_unused_command_line_argument=yes 5457else 5458 xorg_cv_cc_flag_unused_command_line_argument=no 5459fi 5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5461fi 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5465 CFLAGS="$xorg_testset_save_CFLAGS" 5466fi 5467 5468found="no" 5469 5470 if test $found = "no" ; then 5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 fi 5474 5475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5477 fi 5478 5479 CFLAGS="$CFLAGS -Wnested-externs" 5480 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5482$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5483 cacheid=xorg_cv_cc_flag__Wnested_externs 5484 if eval \${$cacheid+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489int i; 5490int 5491main () 5492{ 5493 5494 ; 5495 return 0; 5496} 5497_ACEOF 5498if ac_fn_c_try_link "$LINENO"; then : 5499 eval $cacheid=yes 5500else 5501 eval $cacheid=no 5502fi 5503rm -f core conftest.err conftest.$ac_objext \ 5504 conftest$ac_exeext conftest.$ac_ext 5505fi 5506 5507 5508 CFLAGS="$xorg_testset_save_CFLAGS" 5509 5510 eval supported=\$$cacheid 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5512$as_echo "$supported" >&6; } 5513 if test "$supported" = "yes" ; then 5514 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5515 found="yes" 5516 fi 5517 fi 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533xorg_testset_save_CFLAGS="$CFLAGS" 5534 5535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545_ACEOF 5546if ac_fn_c_try_compile "$LINENO"; then : 5547 xorg_cv_cc_flag_unknown_warning_option=yes 5548else 5549 xorg_cv_cc_flag_unknown_warning_option=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552fi 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5556 CFLAGS="$xorg_testset_save_CFLAGS" 5557fi 5558 5559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5562 fi 5563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO"; then : 5574 xorg_cv_cc_flag_unused_command_line_argument=yes 5575else 5576 xorg_cv_cc_flag_unused_command_line_argument=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579fi 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584fi 5585 5586found="no" 5587 5588 if test $found = "no" ; then 5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5591 fi 5592 5593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5595 fi 5596 5597 CFLAGS="$CFLAGS -Wbad-function-cast" 5598 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5600$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5601 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5602 if eval \${$cacheid+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607int i; 5608int 5609main () 5610{ 5611 5612 ; 5613 return 0; 5614} 5615_ACEOF 5616if ac_fn_c_try_link "$LINENO"; then : 5617 eval $cacheid=yes 5618else 5619 eval $cacheid=no 5620fi 5621rm -f core conftest.err conftest.$ac_objext \ 5622 conftest$ac_exeext conftest.$ac_ext 5623fi 5624 5625 5626 CFLAGS="$xorg_testset_save_CFLAGS" 5627 5628 eval supported=\$$cacheid 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5630$as_echo "$supported" >&6; } 5631 if test "$supported" = "yes" ; then 5632 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5633 found="yes" 5634 fi 5635 fi 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651xorg_testset_save_CFLAGS="$CFLAGS" 5652 5653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663_ACEOF 5664if ac_fn_c_try_compile "$LINENO"; then : 5665 xorg_cv_cc_flag_unknown_warning_option=yes 5666else 5667 xorg_cv_cc_flag_unknown_warning_option=no 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670fi 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5674 CFLAGS="$xorg_testset_save_CFLAGS" 5675fi 5676 5677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5680 fi 5681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690_ACEOF 5691if ac_fn_c_try_compile "$LINENO"; then : 5692 xorg_cv_cc_flag_unused_command_line_argument=yes 5693else 5694 xorg_cv_cc_flag_unused_command_line_argument=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697fi 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702fi 5703 5704found="no" 5705 5706 if test $found = "no" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5713 fi 5714 5715 CFLAGS="$CFLAGS -Wold-style-definition" 5716 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5718$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5719 cacheid=xorg_cv_cc_flag__Wold_style_definition 5720 if eval \${$cacheid+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724/* end confdefs.h. */ 5725int i; 5726int 5727main () 5728{ 5729 5730 ; 5731 return 0; 5732} 5733_ACEOF 5734if ac_fn_c_try_link "$LINENO"; then : 5735 eval $cacheid=yes 5736else 5737 eval $cacheid=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext \ 5740 conftest$ac_exeext conftest.$ac_ext 5741fi 5742 5743 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745 5746 eval supported=\$$cacheid 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5748$as_echo "$supported" >&6; } 5749 if test "$supported" = "yes" ; then 5750 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5751 found="yes" 5752 fi 5753 fi 5754 5755 if test $found = "no" ; then 5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 fi 5759 5760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5762 fi 5763 5764 CFLAGS="$CFLAGS -fd" 5765 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5767$as_echo_n "checking if $CC supports -fd... " >&6; } 5768 cacheid=xorg_cv_cc_flag__fd 5769 if eval \${$cacheid+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773/* end confdefs.h. */ 5774int i; 5775int 5776main () 5777{ 5778 5779 ; 5780 return 0; 5781} 5782_ACEOF 5783if ac_fn_c_try_link "$LINENO"; then : 5784 eval $cacheid=yes 5785else 5786 eval $cacheid=no 5787fi 5788rm -f core conftest.err conftest.$ac_objext \ 5789 conftest$ac_exeext conftest.$ac_ext 5790fi 5791 5792 5793 CFLAGS="$xorg_testset_save_CFLAGS" 5794 5795 eval supported=\$$cacheid 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5797$as_echo "$supported" >&6; } 5798 if test "$supported" = "yes" ; then 5799 BASE_CFLAGS="$BASE_CFLAGS -fd" 5800 found="yes" 5801 fi 5802 fi 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818xorg_testset_save_CFLAGS="$CFLAGS" 5819 5820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5825 $as_echo_n "(cached) " >&6 5826else 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829int i; 5830_ACEOF 5831if ac_fn_c_try_compile "$LINENO"; then : 5832 xorg_cv_cc_flag_unknown_warning_option=yes 5833else 5834 xorg_cv_cc_flag_unknown_warning_option=no 5835fi 5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5841 CFLAGS="$xorg_testset_save_CFLAGS" 5842fi 5843 5844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5847 fi 5848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855/* end confdefs.h. */ 5856int i; 5857_ACEOF 5858if ac_fn_c_try_compile "$LINENO"; then : 5859 xorg_cv_cc_flag_unused_command_line_argument=yes 5860else 5861 xorg_cv_cc_flag_unused_command_line_argument=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5864fi 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869fi 5870 5871found="no" 5872 5873 if test $found = "no" ; then 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 fi 5877 5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5880 fi 5881 5882 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5883 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5885$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5886 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5887 if eval \${$cacheid+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892int i; 5893int 5894main () 5895{ 5896 5897 ; 5898 return 0; 5899} 5900_ACEOF 5901if ac_fn_c_try_link "$LINENO"; then : 5902 eval $cacheid=yes 5903else 5904 eval $cacheid=no 5905fi 5906rm -f core conftest.err conftest.$ac_objext \ 5907 conftest$ac_exeext conftest.$ac_ext 5908fi 5909 5910 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912 5913 eval supported=\$$cacheid 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5915$as_echo "$supported" >&6; } 5916 if test "$supported" = "yes" ; then 5917 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5918 found="yes" 5919 fi 5920 fi 5921 5922 5923 5924 5925 5926# This chunk adds additional warnings that could catch undesired effects. 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940xorg_testset_save_CFLAGS="$CFLAGS" 5941 5942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951int i; 5952_ACEOF 5953if ac_fn_c_try_compile "$LINENO"; then : 5954 xorg_cv_cc_flag_unknown_warning_option=yes 5955else 5956 xorg_cv_cc_flag_unknown_warning_option=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959fi 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978int i; 5979_ACEOF 5980if ac_fn_c_try_compile "$LINENO"; then : 5981 xorg_cv_cc_flag_unused_command_line_argument=yes 5982else 5983 xorg_cv_cc_flag_unused_command_line_argument=no 5984fi 5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5986fi 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991fi 5992 5993found="no" 5994 5995 if test $found = "no" ; then 5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 fi 6003 6004 CFLAGS="$CFLAGS -Wunused" 6005 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6007$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6008 cacheid=xorg_cv_cc_flag__Wunused 6009 if eval \${$cacheid+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015int 6016main () 6017{ 6018 6019 ; 6020 return 0; 6021} 6022_ACEOF 6023if ac_fn_c_try_link "$LINENO"; then : 6024 eval $cacheid=yes 6025else 6026 eval $cacheid=no 6027fi 6028rm -f core conftest.err conftest.$ac_objext \ 6029 conftest$ac_exeext conftest.$ac_ext 6030fi 6031 6032 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034 6035 eval supported=\$$cacheid 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6037$as_echo "$supported" >&6; } 6038 if test "$supported" = "yes" ; then 6039 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6040 found="yes" 6041 fi 6042 fi 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058xorg_testset_save_CFLAGS="$CFLAGS" 6059 6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068/* end confdefs.h. */ 6069int i; 6070_ACEOF 6071if ac_fn_c_try_compile "$LINENO"; then : 6072 xorg_cv_cc_flag_unknown_warning_option=yes 6073else 6074 xorg_cv_cc_flag_unknown_warning_option=no 6075fi 6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077fi 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6081 CFLAGS="$xorg_testset_save_CFLAGS" 6082fi 6083 6084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6087 fi 6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_cv_cc_flag_unused_command_line_argument=yes 6100else 6101 xorg_cv_cc_flag_unused_command_line_argument=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109fi 6110 6111found="no" 6112 6113 if test $found = "no" ; then 6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 fi 6117 6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 fi 6121 6122 CFLAGS="$CFLAGS -Wuninitialized" 6123 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6125$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6126 cacheid=xorg_cv_cc_flag__Wuninitialized 6127 if eval \${$cacheid+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133int 6134main () 6135{ 6136 6137 ; 6138 return 0; 6139} 6140_ACEOF 6141if ac_fn_c_try_link "$LINENO"; then : 6142 eval $cacheid=yes 6143else 6144 eval $cacheid=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext \ 6147 conftest$ac_exeext conftest.$ac_ext 6148fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155$as_echo "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6158 found="yes" 6159 fi 6160 fi 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176xorg_testset_save_CFLAGS="$CFLAGS" 6177 6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187int i; 6188_ACEOF 6189if ac_fn_c_try_compile "$LINENO"; then : 6190 xorg_cv_cc_flag_unknown_warning_option=yes 6191else 6192 xorg_cv_cc_flag_unknown_warning_option=no 6193fi 6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6195fi 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6199 CFLAGS="$xorg_testset_save_CFLAGS" 6200fi 6201 6202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 fi 6206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214int i; 6215_ACEOF 6216if ac_fn_c_try_compile "$LINENO"; then : 6217 xorg_cv_cc_flag_unused_command_line_argument=yes 6218else 6219 xorg_cv_cc_flag_unused_command_line_argument=no 6220fi 6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6222fi 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227fi 6228 6229found="no" 6230 6231 if test $found = "no" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 6236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6238 fi 6239 6240 CFLAGS="$CFLAGS -Wshadow" 6241 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6243$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6244 cacheid=xorg_cv_cc_flag__Wshadow 6245 if eval \${$cacheid+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251int 6252main () 6253{ 6254 6255 ; 6256 return 0; 6257} 6258_ACEOF 6259if ac_fn_c_try_link "$LINENO"; then : 6260 eval $cacheid=yes 6261else 6262 eval $cacheid=no 6263fi 6264rm -f core conftest.err conftest.$ac_objext \ 6265 conftest$ac_exeext conftest.$ac_ext 6266fi 6267 6268 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270 6271 eval supported=\$$cacheid 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6273$as_echo "$supported" >&6; } 6274 if test "$supported" = "yes" ; then 6275 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6276 found="yes" 6277 fi 6278 fi 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294xorg_testset_save_CFLAGS="$CFLAGS" 6295 6296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302else 6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6304/* end confdefs.h. */ 6305int i; 6306_ACEOF 6307if ac_fn_c_try_compile "$LINENO"; then : 6308 xorg_cv_cc_flag_unknown_warning_option=yes 6309else 6310 xorg_cv_cc_flag_unknown_warning_option=no 6311fi 6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6313fi 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6317 CFLAGS="$xorg_testset_save_CFLAGS" 6318fi 6319 6320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6323 fi 6324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333_ACEOF 6334if ac_fn_c_try_compile "$LINENO"; then : 6335 xorg_cv_cc_flag_unused_command_line_argument=yes 6336else 6337 xorg_cv_cc_flag_unused_command_line_argument=no 6338fi 6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6340fi 6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6344 CFLAGS="$xorg_testset_save_CFLAGS" 6345fi 6346 6347found="no" 6348 6349 if test $found = "no" ; then 6350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6352 fi 6353 6354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6356 fi 6357 6358 CFLAGS="$CFLAGS -Wmissing-noreturn" 6359 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6361$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6362 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6363 if eval \${$cacheid+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368int i; 6369int 6370main () 6371{ 6372 6373 ; 6374 return 0; 6375} 6376_ACEOF 6377if ac_fn_c_try_link "$LINENO"; then : 6378 eval $cacheid=yes 6379else 6380 eval $cacheid=no 6381fi 6382rm -f core conftest.err conftest.$ac_objext \ 6383 conftest$ac_exeext conftest.$ac_ext 6384fi 6385 6386 6387 CFLAGS="$xorg_testset_save_CFLAGS" 6388 6389 eval supported=\$$cacheid 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6391$as_echo "$supported" >&6; } 6392 if test "$supported" = "yes" ; then 6393 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6394 found="yes" 6395 fi 6396 fi 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412xorg_testset_save_CFLAGS="$CFLAGS" 6413 6414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6419 $as_echo_n "(cached) " >&6 6420else 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424_ACEOF 6425if ac_fn_c_try_compile "$LINENO"; then : 6426 xorg_cv_cc_flag_unknown_warning_option=yes 6427else 6428 xorg_cv_cc_flag_unknown_warning_option=no 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431fi 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6435 CFLAGS="$xorg_testset_save_CFLAGS" 6436fi 6437 6438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6441 fi 6442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451_ACEOF 6452if ac_fn_c_try_compile "$LINENO"; then : 6453 xorg_cv_cc_flag_unused_command_line_argument=yes 6454else 6455 xorg_cv_cc_flag_unused_command_line_argument=no 6456fi 6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6458fi 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6462 CFLAGS="$xorg_testset_save_CFLAGS" 6463fi 6464 6465found="no" 6466 6467 if test $found = "no" ; then 6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470 fi 6471 6472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6474 fi 6475 6476 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6477 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6479$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6480 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6481 if eval \${$cacheid+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483else 6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486int i; 6487int 6488main () 6489{ 6490 6491 ; 6492 return 0; 6493} 6494_ACEOF 6495if ac_fn_c_try_link "$LINENO"; then : 6496 eval $cacheid=yes 6497else 6498 eval $cacheid=no 6499fi 6500rm -f core conftest.err conftest.$ac_objext \ 6501 conftest$ac_exeext conftest.$ac_ext 6502fi 6503 6504 6505 CFLAGS="$xorg_testset_save_CFLAGS" 6506 6507 eval supported=\$$cacheid 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6509$as_echo "$supported" >&6; } 6510 if test "$supported" = "yes" ; then 6511 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6512 found="yes" 6513 fi 6514 fi 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530xorg_testset_save_CFLAGS="$CFLAGS" 6531 6532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540/* end confdefs.h. */ 6541int i; 6542_ACEOF 6543if ac_fn_c_try_compile "$LINENO"; then : 6544 xorg_cv_cc_flag_unknown_warning_option=yes 6545else 6546 xorg_cv_cc_flag_unknown_warning_option=no 6547fi 6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6549fi 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6553 CFLAGS="$xorg_testset_save_CFLAGS" 6554fi 6555 6556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 fi 6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569_ACEOF 6570if ac_fn_c_try_compile "$LINENO"; then : 6571 xorg_cv_cc_flag_unused_command_line_argument=yes 6572else 6573 xorg_cv_cc_flag_unused_command_line_argument=no 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6580 CFLAGS="$xorg_testset_save_CFLAGS" 6581fi 6582 6583found="no" 6584 6585 if test $found = "no" ; then 6586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 fi 6589 6590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6592 fi 6593 6594 CFLAGS="$CFLAGS -Wredundant-decls" 6595 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6597$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6598 cacheid=xorg_cv_cc_flag__Wredundant_decls 6599 if eval \${$cacheid+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605int 6606main () 6607{ 6608 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613if ac_fn_c_try_link "$LINENO"; then : 6614 eval $cacheid=yes 6615else 6616 eval $cacheid=no 6617fi 6618rm -f core conftest.err conftest.$ac_objext \ 6619 conftest$ac_exeext conftest.$ac_ext 6620fi 6621 6622 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624 6625 eval supported=\$$cacheid 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6627$as_echo "$supported" >&6; } 6628 if test "$supported" = "yes" ; then 6629 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6630 found="yes" 6631 fi 6632 fi 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648xorg_testset_save_CFLAGS="$CFLAGS" 6649 6650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658/* end confdefs.h. */ 6659int i; 6660_ACEOF 6661if ac_fn_c_try_compile "$LINENO"; then : 6662 xorg_cv_cc_flag_unknown_warning_option=yes 6663else 6664 xorg_cv_cc_flag_unknown_warning_option=no 6665fi 6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6667fi 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6671 CFLAGS="$xorg_testset_save_CFLAGS" 6672fi 6673 6674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6677 fi 6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687_ACEOF 6688if ac_fn_c_try_compile "$LINENO"; then : 6689 xorg_cv_cc_flag_unused_command_line_argument=yes 6690else 6691 xorg_cv_cc_flag_unused_command_line_argument=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699fi 6700 6701found="no" 6702 6703 if test $found = "no" ; then 6704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 fi 6707 6708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710 fi 6711 6712 CFLAGS="$CFLAGS -Wlogical-op" 6713 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6715$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6716 cacheid=xorg_cv_cc_flag__Wlogical_op 6717 if eval \${$cacheid+:} false; then : 6718 $as_echo_n "(cached) " >&6 6719else 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722int i; 6723int 6724main () 6725{ 6726 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_c_try_link "$LINENO"; then : 6732 eval $cacheid=yes 6733else 6734 eval $cacheid=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext \ 6737 conftest$ac_exeext conftest.$ac_ext 6738fi 6739 6740 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742 6743 eval supported=\$$cacheid 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6745$as_echo "$supported" >&6; } 6746 if test "$supported" = "yes" ; then 6747 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6748 found="yes" 6749 fi 6750 fi 6751 6752 6753 6754# These are currently disabled because they are noisy. They will be enabled 6755# in the future once the codebase is sufficiently modernized to silence 6756# them. For now, I don't want them to drown out the other warnings. 6757# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6758# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6759# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6760 6761# Turn some warnings into errors, so we don't accidently get successful builds 6762# when there are problems that should be fixed. 6763 6764if test "x$SELECTIVE_WERROR" = "xyes" ; then 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778xorg_testset_save_CFLAGS="$CFLAGS" 6779 6780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6788/* end confdefs.h. */ 6789int i; 6790_ACEOF 6791if ac_fn_c_try_compile "$LINENO"; then : 6792 xorg_cv_cc_flag_unknown_warning_option=yes 6793else 6794 xorg_cv_cc_flag_unknown_warning_option=no 6795fi 6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6797fi 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6801 CFLAGS="$xorg_testset_save_CFLAGS" 6802fi 6803 6804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 fi 6808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO"; then : 6819 xorg_cv_cc_flag_unused_command_line_argument=yes 6820else 6821 xorg_cv_cc_flag_unused_command_line_argument=no 6822fi 6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6824fi 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6828 CFLAGS="$xorg_testset_save_CFLAGS" 6829fi 6830 6831found="no" 6832 6833 if test $found = "no" ; then 6834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 fi 6837 6838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 fi 6841 6842 CFLAGS="$CFLAGS -Werror=implicit" 6843 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6845$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6846 cacheid=xorg_cv_cc_flag__Werror_implicit 6847 if eval \${$cacheid+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851/* end confdefs.h. */ 6852int i; 6853int 6854main () 6855{ 6856 6857 ; 6858 return 0; 6859} 6860_ACEOF 6861if ac_fn_c_try_link "$LINENO"; then : 6862 eval $cacheid=yes 6863else 6864 eval $cacheid=no 6865fi 6866rm -f core conftest.err conftest.$ac_objext \ 6867 conftest$ac_exeext conftest.$ac_ext 6868fi 6869 6870 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6872 6873 eval supported=\$$cacheid 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6875$as_echo "$supported" >&6; } 6876 if test "$supported" = "yes" ; then 6877 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6878 found="yes" 6879 fi 6880 fi 6881 6882 if test $found = "no" ; then 6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 fi 6886 6887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6889 fi 6890 6891 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6892 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6894$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6895 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6896 if eval \${$cacheid+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900/* end confdefs.h. */ 6901int i; 6902int 6903main () 6904{ 6905 6906 ; 6907 return 0; 6908} 6909_ACEOF 6910if ac_fn_c_try_link "$LINENO"; then : 6911 eval $cacheid=yes 6912else 6913 eval $cacheid=no 6914fi 6915rm -f core conftest.err conftest.$ac_objext \ 6916 conftest$ac_exeext conftest.$ac_ext 6917fi 6918 6919 6920 CFLAGS="$xorg_testset_save_CFLAGS" 6921 6922 eval supported=\$$cacheid 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6924$as_echo "$supported" >&6; } 6925 if test "$supported" = "yes" ; then 6926 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6927 found="yes" 6928 fi 6929 fi 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945xorg_testset_save_CFLAGS="$CFLAGS" 6946 6947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956int i; 6957_ACEOF 6958if ac_fn_c_try_compile "$LINENO"; then : 6959 xorg_cv_cc_flag_unknown_warning_option=yes 6960else 6961 xorg_cv_cc_flag_unknown_warning_option=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6964fi 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6968 CFLAGS="$xorg_testset_save_CFLAGS" 6969fi 6970 6971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 fi 6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983int i; 6984_ACEOF 6985if ac_fn_c_try_compile "$LINENO"; then : 6986 xorg_cv_cc_flag_unused_command_line_argument=yes 6987else 6988 xorg_cv_cc_flag_unused_command_line_argument=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6991fi 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996fi 6997 6998found="no" 6999 7000 if test $found = "no" ; then 7001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7003 fi 7004 7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7007 fi 7008 7009 CFLAGS="$CFLAGS -Werror=nonnull" 7010 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7012$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7013 cacheid=xorg_cv_cc_flag__Werror_nonnull 7014 if eval \${$cacheid+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020int 7021main () 7022{ 7023 7024 ; 7025 return 0; 7026} 7027_ACEOF 7028if ac_fn_c_try_link "$LINENO"; then : 7029 eval $cacheid=yes 7030else 7031 eval $cacheid=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext \ 7034 conftest$ac_exeext conftest.$ac_ext 7035fi 7036 7037 7038 CFLAGS="$xorg_testset_save_CFLAGS" 7039 7040 eval supported=\$$cacheid 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7042$as_echo "$supported" >&6; } 7043 if test "$supported" = "yes" ; then 7044 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7045 found="yes" 7046 fi 7047 fi 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063xorg_testset_save_CFLAGS="$CFLAGS" 7064 7065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074int i; 7075_ACEOF 7076if ac_fn_c_try_compile "$LINENO"; then : 7077 xorg_cv_cc_flag_unknown_warning_option=yes 7078else 7079 xorg_cv_cc_flag_unknown_warning_option=no 7080fi 7081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7082fi 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7086 CFLAGS="$xorg_testset_save_CFLAGS" 7087fi 7088 7089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7092 fi 7093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7100/* end confdefs.h. */ 7101int i; 7102_ACEOF 7103if ac_fn_c_try_compile "$LINENO"; then : 7104 xorg_cv_cc_flag_unused_command_line_argument=yes 7105else 7106 xorg_cv_cc_flag_unused_command_line_argument=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7109fi 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114fi 7115 7116found="no" 7117 7118 if test $found = "no" ; then 7119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7121 fi 7122 7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7125 fi 7126 7127 CFLAGS="$CFLAGS -Werror=init-self" 7128 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7130$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7131 cacheid=xorg_cv_cc_flag__Werror_init_self 7132 if eval \${$cacheid+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138int 7139main () 7140{ 7141 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146if ac_fn_c_try_link "$LINENO"; then : 7147 eval $cacheid=yes 7148else 7149 eval $cacheid=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext \ 7152 conftest$ac_exeext conftest.$ac_ext 7153fi 7154 7155 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 7158 eval supported=\$$cacheid 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7160$as_echo "$supported" >&6; } 7161 if test "$supported" = "yes" ; then 7162 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7163 found="yes" 7164 fi 7165 fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181xorg_testset_save_CFLAGS="$CFLAGS" 7182 7183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192int i; 7193_ACEOF 7194if ac_fn_c_try_compile "$LINENO"; then : 7195 xorg_cv_cc_flag_unknown_warning_option=yes 7196else 7197 xorg_cv_cc_flag_unknown_warning_option=no 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200fi 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7204 CFLAGS="$xorg_testset_save_CFLAGS" 7205fi 7206 7207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 fi 7211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219int i; 7220_ACEOF 7221if ac_fn_c_try_compile "$LINENO"; then : 7222 xorg_cv_cc_flag_unused_command_line_argument=yes 7223else 7224 xorg_cv_cc_flag_unused_command_line_argument=no 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227fi 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7231 CFLAGS="$xorg_testset_save_CFLAGS" 7232fi 7233 7234found="no" 7235 7236 if test $found = "no" ; then 7237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 fi 7240 7241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7243 fi 7244 7245 CFLAGS="$CFLAGS -Werror=main" 7246 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7248$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7249 cacheid=xorg_cv_cc_flag__Werror_main 7250 if eval \${$cacheid+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255int i; 7256int 7257main () 7258{ 7259 7260 ; 7261 return 0; 7262} 7263_ACEOF 7264if ac_fn_c_try_link "$LINENO"; then : 7265 eval $cacheid=yes 7266else 7267 eval $cacheid=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext \ 7270 conftest$ac_exeext conftest.$ac_ext 7271fi 7272 7273 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275 7276 eval supported=\$$cacheid 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7278$as_echo "$supported" >&6; } 7279 if test "$supported" = "yes" ; then 7280 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7281 found="yes" 7282 fi 7283 fi 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299xorg_testset_save_CFLAGS="$CFLAGS" 7300 7301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311_ACEOF 7312if ac_fn_c_try_compile "$LINENO"; then : 7313 xorg_cv_cc_flag_unknown_warning_option=yes 7314else 7315 xorg_cv_cc_flag_unknown_warning_option=no 7316fi 7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7322 CFLAGS="$xorg_testset_save_CFLAGS" 7323fi 7324 7325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7328 fi 7329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338_ACEOF 7339if ac_fn_c_try_compile "$LINENO"; then : 7340 xorg_cv_cc_flag_unused_command_line_argument=yes 7341else 7342 xorg_cv_cc_flag_unused_command_line_argument=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7345fi 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7349 CFLAGS="$xorg_testset_save_CFLAGS" 7350fi 7351 7352found="no" 7353 7354 if test $found = "no" ; then 7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 fi 7358 7359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7361 fi 7362 7363 CFLAGS="$CFLAGS -Werror=missing-braces" 7364 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7366$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7367 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7368 if eval \${$cacheid+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373int i; 7374int 7375main () 7376{ 7377 7378 ; 7379 return 0; 7380} 7381_ACEOF 7382if ac_fn_c_try_link "$LINENO"; then : 7383 eval $cacheid=yes 7384else 7385 eval $cacheid=no 7386fi 7387rm -f core conftest.err conftest.$ac_objext \ 7388 conftest$ac_exeext conftest.$ac_ext 7389fi 7390 7391 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7393 7394 eval supported=\$$cacheid 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7396$as_echo "$supported" >&6; } 7397 if test "$supported" = "yes" ; then 7398 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7399 found="yes" 7400 fi 7401 fi 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417xorg_testset_save_CFLAGS="$CFLAGS" 7418 7419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425else 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428int i; 7429_ACEOF 7430if ac_fn_c_try_compile "$LINENO"; then : 7431 xorg_cv_cc_flag_unknown_warning_option=yes 7432else 7433 xorg_cv_cc_flag_unknown_warning_option=no 7434fi 7435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7436fi 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7440 CFLAGS="$xorg_testset_save_CFLAGS" 7441fi 7442 7443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7446 fi 7447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456_ACEOF 7457if ac_fn_c_try_compile "$LINENO"; then : 7458 xorg_cv_cc_flag_unused_command_line_argument=yes 7459else 7460 xorg_cv_cc_flag_unused_command_line_argument=no 7461fi 7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7463fi 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468fi 7469 7470found="no" 7471 7472 if test $found = "no" ; then 7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 fi 7476 7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7479 fi 7480 7481 CFLAGS="$CFLAGS -Werror=sequence-point" 7482 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7484$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7485 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7486 if eval \${$cacheid+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491int i; 7492int 7493main () 7494{ 7495 7496 ; 7497 return 0; 7498} 7499_ACEOF 7500if ac_fn_c_try_link "$LINENO"; then : 7501 eval $cacheid=yes 7502else 7503 eval $cacheid=no 7504fi 7505rm -f core conftest.err conftest.$ac_objext \ 7506 conftest$ac_exeext conftest.$ac_ext 7507fi 7508 7509 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511 7512 eval supported=\$$cacheid 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7514$as_echo "$supported" >&6; } 7515 if test "$supported" = "yes" ; then 7516 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7517 found="yes" 7518 fi 7519 fi 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535xorg_testset_save_CFLAGS="$CFLAGS" 7536 7537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7545/* end confdefs.h. */ 7546int i; 7547_ACEOF 7548if ac_fn_c_try_compile "$LINENO"; then : 7549 xorg_cv_cc_flag_unknown_warning_option=yes 7550else 7551 xorg_cv_cc_flag_unknown_warning_option=no 7552fi 7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7554fi 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7558 CFLAGS="$xorg_testset_save_CFLAGS" 7559fi 7560 7561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564 fi 7565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO"; then : 7576 xorg_cv_cc_flag_unused_command_line_argument=yes 7577else 7578 xorg_cv_cc_flag_unused_command_line_argument=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7581fi 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586fi 7587 7588found="no" 7589 7590 if test $found = "no" ; then 7591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7593 fi 7594 7595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7597 fi 7598 7599 CFLAGS="$CFLAGS -Werror=return-type" 7600 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7602$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7603 cacheid=xorg_cv_cc_flag__Werror_return_type 7604 if eval \${$cacheid+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7608/* end confdefs.h. */ 7609int i; 7610int 7611main () 7612{ 7613 7614 ; 7615 return 0; 7616} 7617_ACEOF 7618if ac_fn_c_try_link "$LINENO"; then : 7619 eval $cacheid=yes 7620else 7621 eval $cacheid=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext \ 7624 conftest$ac_exeext conftest.$ac_ext 7625fi 7626 7627 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629 7630 eval supported=\$$cacheid 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7632$as_echo "$supported" >&6; } 7633 if test "$supported" = "yes" ; then 7634 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7635 found="yes" 7636 fi 7637 fi 7638 7639 if test $found = "no" ; then 7640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 fi 7643 7644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7646 fi 7647 7648 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7649 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7651$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7652 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7653 if eval \${$cacheid+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659int 7660main () 7661{ 7662 7663 ; 7664 return 0; 7665} 7666_ACEOF 7667if ac_fn_c_try_link "$LINENO"; then : 7668 eval $cacheid=yes 7669else 7670 eval $cacheid=no 7671fi 7672rm -f core conftest.err conftest.$ac_objext \ 7673 conftest$ac_exeext conftest.$ac_ext 7674fi 7675 7676 7677 CFLAGS="$xorg_testset_save_CFLAGS" 7678 7679 eval supported=\$$cacheid 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7681$as_echo "$supported" >&6; } 7682 if test "$supported" = "yes" ; then 7683 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7684 found="yes" 7685 fi 7686 fi 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702xorg_testset_save_CFLAGS="$CFLAGS" 7703 7704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710else 7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712/* end confdefs.h. */ 7713int i; 7714_ACEOF 7715if ac_fn_c_try_compile "$LINENO"; then : 7716 xorg_cv_cc_flag_unknown_warning_option=yes 7717else 7718 xorg_cv_cc_flag_unknown_warning_option=no 7719fi 7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7721fi 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7725 CFLAGS="$xorg_testset_save_CFLAGS" 7726fi 7727 7728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7731 fi 7732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO"; then : 7743 xorg_cv_cc_flag_unused_command_line_argument=yes 7744else 7745 xorg_cv_cc_flag_unused_command_line_argument=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753fi 7754 7755found="no" 7756 7757 if test $found = "no" ; then 7758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7760 fi 7761 7762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7764 fi 7765 7766 CFLAGS="$CFLAGS -Werror=trigraphs" 7767 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7769$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7770 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7771 if eval \${$cacheid+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777int 7778main () 7779{ 7780 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_link "$LINENO"; then : 7786 eval $cacheid=yes 7787else 7788 eval $cacheid=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext \ 7791 conftest$ac_exeext conftest.$ac_ext 7792fi 7793 7794 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796 7797 eval supported=\$$cacheid 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7799$as_echo "$supported" >&6; } 7800 if test "$supported" = "yes" ; then 7801 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7802 found="yes" 7803 fi 7804 fi 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820xorg_testset_save_CFLAGS="$CFLAGS" 7821 7822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7827 $as_echo_n "(cached) " >&6 7828else 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831int i; 7832_ACEOF 7833if ac_fn_c_try_compile "$LINENO"; then : 7834 xorg_cv_cc_flag_unknown_warning_option=yes 7835else 7836 xorg_cv_cc_flag_unknown_warning_option=no 7837fi 7838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7839fi 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7843 CFLAGS="$xorg_testset_save_CFLAGS" 7844fi 7845 7846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7849 fi 7850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859_ACEOF 7860if ac_fn_c_try_compile "$LINENO"; then : 7861 xorg_cv_cc_flag_unused_command_line_argument=yes 7862else 7863 xorg_cv_cc_flag_unused_command_line_argument=no 7864fi 7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7866fi 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7870 CFLAGS="$xorg_testset_save_CFLAGS" 7871fi 7872 7873found="no" 7874 7875 if test $found = "no" ; then 7876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 fi 7879 7880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7882 fi 7883 7884 CFLAGS="$CFLAGS -Werror=array-bounds" 7885 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7887$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7888 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7889 if eval \${$cacheid+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895int 7896main () 7897{ 7898 7899 ; 7900 return 0; 7901} 7902_ACEOF 7903if ac_fn_c_try_link "$LINENO"; then : 7904 eval $cacheid=yes 7905else 7906 eval $cacheid=no 7907fi 7908rm -f core conftest.err conftest.$ac_objext \ 7909 conftest$ac_exeext conftest.$ac_ext 7910fi 7911 7912 7913 CFLAGS="$xorg_testset_save_CFLAGS" 7914 7915 eval supported=\$$cacheid 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7917$as_echo "$supported" >&6; } 7918 if test "$supported" = "yes" ; then 7919 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7920 found="yes" 7921 fi 7922 fi 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938xorg_testset_save_CFLAGS="$CFLAGS" 7939 7940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7945 $as_echo_n "(cached) " >&6 7946else 7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949int i; 7950_ACEOF 7951if ac_fn_c_try_compile "$LINENO"; then : 7952 xorg_cv_cc_flag_unknown_warning_option=yes 7953else 7954 xorg_cv_cc_flag_unknown_warning_option=no 7955fi 7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7957fi 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962fi 7963 7964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7967 fi 7968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973else 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975/* end confdefs.h. */ 7976int i; 7977_ACEOF 7978if ac_fn_c_try_compile "$LINENO"; then : 7979 xorg_cv_cc_flag_unused_command_line_argument=yes 7980else 7981 xorg_cv_cc_flag_unused_command_line_argument=no 7982fi 7983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7984fi 7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989fi 7990 7991found="no" 7992 7993 if test $found = "no" ; then 7994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7996 fi 7997 7998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8000 fi 8001 8002 CFLAGS="$CFLAGS -Werror=write-strings" 8003 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8005$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8006 cacheid=xorg_cv_cc_flag__Werror_write_strings 8007 if eval \${$cacheid+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013int 8014main () 8015{ 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021if ac_fn_c_try_link "$LINENO"; then : 8022 eval $cacheid=yes 8023else 8024 eval $cacheid=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext \ 8027 conftest$ac_exeext conftest.$ac_ext 8028fi 8029 8030 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032 8033 eval supported=\$$cacheid 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8035$as_echo "$supported" >&6; } 8036 if test "$supported" = "yes" ; then 8037 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8038 found="yes" 8039 fi 8040 fi 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056xorg_testset_save_CFLAGS="$CFLAGS" 8057 8058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066/* end confdefs.h. */ 8067int i; 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO"; then : 8070 xorg_cv_cc_flag_unknown_warning_option=yes 8071else 8072 xorg_cv_cc_flag_unknown_warning_option=no 8073fi 8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8075fi 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8079 CFLAGS="$xorg_testset_save_CFLAGS" 8080fi 8081 8082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8085 fi 8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095_ACEOF 8096if ac_fn_c_try_compile "$LINENO"; then : 8097 xorg_cv_cc_flag_unused_command_line_argument=yes 8098else 8099 xorg_cv_cc_flag_unused_command_line_argument=no 8100fi 8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8102fi 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107fi 8108 8109found="no" 8110 8111 if test $found = "no" ; then 8112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 fi 8115 8116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 fi 8119 8120 CFLAGS="$CFLAGS -Werror=address" 8121 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8123$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8124 cacheid=xorg_cv_cc_flag__Werror_address 8125 if eval \${$cacheid+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131int 8132main () 8133{ 8134 8135 ; 8136 return 0; 8137} 8138_ACEOF 8139if ac_fn_c_try_link "$LINENO"; then : 8140 eval $cacheid=yes 8141else 8142 eval $cacheid=no 8143fi 8144rm -f core conftest.err conftest.$ac_objext \ 8145 conftest$ac_exeext conftest.$ac_ext 8146fi 8147 8148 8149 CFLAGS="$xorg_testset_save_CFLAGS" 8150 8151 eval supported=\$$cacheid 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8153$as_echo "$supported" >&6; } 8154 if test "$supported" = "yes" ; then 8155 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8156 found="yes" 8157 fi 8158 fi 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174xorg_testset_save_CFLAGS="$CFLAGS" 8175 8176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185int i; 8186_ACEOF 8187if ac_fn_c_try_compile "$LINENO"; then : 8188 xorg_cv_cc_flag_unknown_warning_option=yes 8189else 8190 xorg_cv_cc_flag_unknown_warning_option=no 8191fi 8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8193fi 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8197 CFLAGS="$xorg_testset_save_CFLAGS" 8198fi 8199 8200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8203 fi 8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213_ACEOF 8214if ac_fn_c_try_compile "$LINENO"; then : 8215 xorg_cv_cc_flag_unused_command_line_argument=yes 8216else 8217 xorg_cv_cc_flag_unused_command_line_argument=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225fi 8226 8227found="no" 8228 8229 if test $found = "no" ; then 8230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 fi 8233 8234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8236 fi 8237 8238 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8239 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8241$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8242 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8243 if eval \${$cacheid+:} false; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247/* end confdefs.h. */ 8248int i; 8249int 8250main () 8251{ 8252 8253 ; 8254 return 0; 8255} 8256_ACEOF 8257if ac_fn_c_try_link "$LINENO"; then : 8258 eval $cacheid=yes 8259else 8260 eval $cacheid=no 8261fi 8262rm -f core conftest.err conftest.$ac_objext \ 8263 conftest$ac_exeext conftest.$ac_ext 8264fi 8265 8266 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268 8269 eval supported=\$$cacheid 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8271$as_echo "$supported" >&6; } 8272 if test "$supported" = "yes" ; then 8273 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8274 found="yes" 8275 fi 8276 fi 8277 8278 if test $found = "no" ; then 8279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8281 fi 8282 8283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8285 fi 8286 8287 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8288 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8290$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8291 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8292 if eval \${$cacheid+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298int 8299main () 8300{ 8301 8302 ; 8303 return 0; 8304} 8305_ACEOF 8306if ac_fn_c_try_link "$LINENO"; then : 8307 eval $cacheid=yes 8308else 8309 eval $cacheid=no 8310fi 8311rm -f core conftest.err conftest.$ac_objext \ 8312 conftest$ac_exeext conftest.$ac_ext 8313fi 8314 8315 8316 CFLAGS="$xorg_testset_save_CFLAGS" 8317 8318 eval supported=\$$cacheid 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8320$as_echo "$supported" >&6; } 8321 if test "$supported" = "yes" ; then 8322 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8323 found="yes" 8324 fi 8325 fi 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341xorg_testset_save_CFLAGS="$CFLAGS" 8342 8343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352int i; 8353_ACEOF 8354if ac_fn_c_try_compile "$LINENO"; then : 8355 xorg_cv_cc_flag_unknown_warning_option=yes 8356else 8357 xorg_cv_cc_flag_unknown_warning_option=no 8358fi 8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8360fi 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8364 CFLAGS="$xorg_testset_save_CFLAGS" 8365fi 8366 8367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8370 fi 8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378/* end confdefs.h. */ 8379int i; 8380_ACEOF 8381if ac_fn_c_try_compile "$LINENO"; then : 8382 xorg_cv_cc_flag_unused_command_line_argument=yes 8383else 8384 xorg_cv_cc_flag_unused_command_line_argument=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8387fi 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392fi 8393 8394found="no" 8395 8396 if test $found = "no" ; then 8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 fi 8400 8401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8403 fi 8404 8405 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8406 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8408$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8409 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8410 if eval \${$cacheid+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415int i; 8416int 8417main () 8418{ 8419 8420 ; 8421 return 0; 8422} 8423_ACEOF 8424if ac_fn_c_try_link "$LINENO"; then : 8425 eval $cacheid=yes 8426else 8427 eval $cacheid=no 8428fi 8429rm -f core conftest.err conftest.$ac_objext \ 8430 conftest$ac_exeext conftest.$ac_ext 8431fi 8432 8433 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435 8436 eval supported=\$$cacheid 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8438$as_echo "$supported" >&6; } 8439 if test "$supported" = "yes" ; then 8440 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8441 found="yes" 8442 fi 8443 fi 8444 8445 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8446else 8447{ $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 8448$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;} 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462xorg_testset_save_CFLAGS="$CFLAGS" 8463 8464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8469 $as_echo_n "(cached) " >&6 8470else 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473int i; 8474_ACEOF 8475if ac_fn_c_try_compile "$LINENO"; then : 8476 xorg_cv_cc_flag_unknown_warning_option=yes 8477else 8478 xorg_cv_cc_flag_unknown_warning_option=no 8479fi 8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8481fi 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8485 CFLAGS="$xorg_testset_save_CFLAGS" 8486fi 8487 8488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8491 fi 8492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8499/* end confdefs.h. */ 8500int i; 8501_ACEOF 8502if ac_fn_c_try_compile "$LINENO"; then : 8503 xorg_cv_cc_flag_unused_command_line_argument=yes 8504else 8505 xorg_cv_cc_flag_unused_command_line_argument=no 8506fi 8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8512 CFLAGS="$xorg_testset_save_CFLAGS" 8513fi 8514 8515found="no" 8516 8517 if test $found = "no" ; then 8518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8520 fi 8521 8522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8524 fi 8525 8526 CFLAGS="$CFLAGS -Wimplicit" 8527 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8529$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8530 cacheid=xorg_cv_cc_flag__Wimplicit 8531 if eval \${$cacheid+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537int 8538main () 8539{ 8540 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545if ac_fn_c_try_link "$LINENO"; then : 8546 eval $cacheid=yes 8547else 8548 eval $cacheid=no 8549fi 8550rm -f core conftest.err conftest.$ac_objext \ 8551 conftest$ac_exeext conftest.$ac_ext 8552fi 8553 8554 8555 CFLAGS="$xorg_testset_save_CFLAGS" 8556 8557 eval supported=\$$cacheid 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8559$as_echo "$supported" >&6; } 8560 if test "$supported" = "yes" ; then 8561 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8562 found="yes" 8563 fi 8564 fi 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580xorg_testset_save_CFLAGS="$CFLAGS" 8581 8582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590/* end confdefs.h. */ 8591int i; 8592_ACEOF 8593if ac_fn_c_try_compile "$LINENO"; then : 8594 xorg_cv_cc_flag_unknown_warning_option=yes 8595else 8596 xorg_cv_cc_flag_unknown_warning_option=no 8597fi 8598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8599fi 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8603 CFLAGS="$xorg_testset_save_CFLAGS" 8604fi 8605 8606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8609 fi 8610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8614 $as_echo_n "(cached) " >&6 8615else 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617/* end confdefs.h. */ 8618int i; 8619_ACEOF 8620if ac_fn_c_try_compile "$LINENO"; then : 8621 xorg_cv_cc_flag_unused_command_line_argument=yes 8622else 8623 xorg_cv_cc_flag_unused_command_line_argument=no 8624fi 8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8626fi 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631fi 8632 8633found="no" 8634 8635 if test $found = "no" ; then 8636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8638 fi 8639 8640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8642 fi 8643 8644 CFLAGS="$CFLAGS -Wnonnull" 8645 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8647$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8648 cacheid=xorg_cv_cc_flag__Wnonnull 8649 if eval \${$cacheid+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655int 8656main () 8657{ 8658 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663if ac_fn_c_try_link "$LINENO"; then : 8664 eval $cacheid=yes 8665else 8666 eval $cacheid=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext \ 8669 conftest$ac_exeext conftest.$ac_ext 8670fi 8671 8672 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674 8675 eval supported=\$$cacheid 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8677$as_echo "$supported" >&6; } 8678 if test "$supported" = "yes" ; then 8679 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8680 found="yes" 8681 fi 8682 fi 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698xorg_testset_save_CFLAGS="$CFLAGS" 8699 8700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int i; 8710_ACEOF 8711if ac_fn_c_try_compile "$LINENO"; then : 8712 xorg_cv_cc_flag_unknown_warning_option=yes 8713else 8714 xorg_cv_cc_flag_unknown_warning_option=no 8715fi 8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8717fi 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8721 CFLAGS="$xorg_testset_save_CFLAGS" 8722fi 8723 8724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8727 fi 8728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733else 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736int i; 8737_ACEOF 8738if ac_fn_c_try_compile "$LINENO"; then : 8739 xorg_cv_cc_flag_unused_command_line_argument=yes 8740else 8741 xorg_cv_cc_flag_unused_command_line_argument=no 8742fi 8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8744fi 8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8748 CFLAGS="$xorg_testset_save_CFLAGS" 8749fi 8750 8751found="no" 8752 8753 if test $found = "no" ; then 8754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8756 fi 8757 8758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760 fi 8761 8762 CFLAGS="$CFLAGS -Winit-self" 8763 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8765$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8766 cacheid=xorg_cv_cc_flag__Winit_self 8767 if eval \${$cacheid+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773int 8774main () 8775{ 8776 8777 ; 8778 return 0; 8779} 8780_ACEOF 8781if ac_fn_c_try_link "$LINENO"; then : 8782 eval $cacheid=yes 8783else 8784 eval $cacheid=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext \ 8787 conftest$ac_exeext conftest.$ac_ext 8788fi 8789 8790 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792 8793 eval supported=\$$cacheid 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8795$as_echo "$supported" >&6; } 8796 if test "$supported" = "yes" ; then 8797 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8798 found="yes" 8799 fi 8800 fi 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816xorg_testset_save_CFLAGS="$CFLAGS" 8817 8818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8826/* end confdefs.h. */ 8827int i; 8828_ACEOF 8829if ac_fn_c_try_compile "$LINENO"; then : 8830 xorg_cv_cc_flag_unknown_warning_option=yes 8831else 8832 xorg_cv_cc_flag_unknown_warning_option=no 8833fi 8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8839 CFLAGS="$xorg_testset_save_CFLAGS" 8840fi 8841 8842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8845 fi 8846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851else 8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853/* end confdefs.h. */ 8854int i; 8855_ACEOF 8856if ac_fn_c_try_compile "$LINENO"; then : 8857 xorg_cv_cc_flag_unused_command_line_argument=yes 8858else 8859 xorg_cv_cc_flag_unused_command_line_argument=no 8860fi 8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8862fi 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8866 CFLAGS="$xorg_testset_save_CFLAGS" 8867fi 8868 8869found="no" 8870 8871 if test $found = "no" ; then 8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 fi 8875 8876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8878 fi 8879 8880 CFLAGS="$CFLAGS -Wmain" 8881 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8883$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8884 cacheid=xorg_cv_cc_flag__Wmain 8885 if eval \${$cacheid+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890int i; 8891int 8892main () 8893{ 8894 8895 ; 8896 return 0; 8897} 8898_ACEOF 8899if ac_fn_c_try_link "$LINENO"; then : 8900 eval $cacheid=yes 8901else 8902 eval $cacheid=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext \ 8905 conftest$ac_exeext conftest.$ac_ext 8906fi 8907 8908 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910 8911 eval supported=\$$cacheid 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8913$as_echo "$supported" >&6; } 8914 if test "$supported" = "yes" ; then 8915 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8916 found="yes" 8917 fi 8918 fi 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934xorg_testset_save_CFLAGS="$CFLAGS" 8935 8936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8941 $as_echo_n "(cached) " >&6 8942else 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945int i; 8946_ACEOF 8947if ac_fn_c_try_compile "$LINENO"; then : 8948 xorg_cv_cc_flag_unknown_warning_option=yes 8949else 8950 xorg_cv_cc_flag_unknown_warning_option=no 8951fi 8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8957 CFLAGS="$xorg_testset_save_CFLAGS" 8958fi 8959 8960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 fi 8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971/* end confdefs.h. */ 8972int i; 8973_ACEOF 8974if ac_fn_c_try_compile "$LINENO"; then : 8975 xorg_cv_cc_flag_unused_command_line_argument=yes 8976else 8977 xorg_cv_cc_flag_unused_command_line_argument=no 8978fi 8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8980fi 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985fi 8986 8987found="no" 8988 8989 if test $found = "no" ; then 8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8992 fi 8993 8994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8996 fi 8997 8998 CFLAGS="$CFLAGS -Wmissing-braces" 8999 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9001$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9002 cacheid=xorg_cv_cc_flag__Wmissing_braces 9003 if eval \${$cacheid+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009int 9010main () 9011{ 9012 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017if ac_fn_c_try_link "$LINENO"; then : 9018 eval $cacheid=yes 9019else 9020 eval $cacheid=no 9021fi 9022rm -f core conftest.err conftest.$ac_objext \ 9023 conftest$ac_exeext conftest.$ac_ext 9024fi 9025 9026 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028 9029 eval supported=\$$cacheid 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9031$as_echo "$supported" >&6; } 9032 if test "$supported" = "yes" ; then 9033 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9034 found="yes" 9035 fi 9036 fi 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052xorg_testset_save_CFLAGS="$CFLAGS" 9053 9054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9059 $as_echo_n "(cached) " >&6 9060else 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063int i; 9064_ACEOF 9065if ac_fn_c_try_compile "$LINENO"; then : 9066 xorg_cv_cc_flag_unknown_warning_option=yes 9067else 9068 xorg_cv_cc_flag_unknown_warning_option=no 9069fi 9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9071fi 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9075 CFLAGS="$xorg_testset_save_CFLAGS" 9076fi 9077 9078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9081 fi 9082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090int i; 9091_ACEOF 9092if ac_fn_c_try_compile "$LINENO"; then : 9093 xorg_cv_cc_flag_unused_command_line_argument=yes 9094else 9095 xorg_cv_cc_flag_unused_command_line_argument=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9098fi 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103fi 9104 9105found="no" 9106 9107 if test $found = "no" ; then 9108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 fi 9111 9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9114 fi 9115 9116 CFLAGS="$CFLAGS -Wsequence-point" 9117 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9119$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9120 cacheid=xorg_cv_cc_flag__Wsequence_point 9121 if eval \${$cacheid+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127int 9128main () 9129{ 9130 9131 ; 9132 return 0; 9133} 9134_ACEOF 9135if ac_fn_c_try_link "$LINENO"; then : 9136 eval $cacheid=yes 9137else 9138 eval $cacheid=no 9139fi 9140rm -f core conftest.err conftest.$ac_objext \ 9141 conftest$ac_exeext conftest.$ac_ext 9142fi 9143 9144 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146 9147 eval supported=\$$cacheid 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9149$as_echo "$supported" >&6; } 9150 if test "$supported" = "yes" ; then 9151 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9152 found="yes" 9153 fi 9154 fi 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170xorg_testset_save_CFLAGS="$CFLAGS" 9171 9172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9177 $as_echo_n "(cached) " >&6 9178else 9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180/* end confdefs.h. */ 9181int i; 9182_ACEOF 9183if ac_fn_c_try_compile "$LINENO"; then : 9184 xorg_cv_cc_flag_unknown_warning_option=yes 9185else 9186 xorg_cv_cc_flag_unknown_warning_option=no 9187fi 9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9189fi 9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9193 CFLAGS="$xorg_testset_save_CFLAGS" 9194fi 9195 9196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9199 fi 9200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int i; 9209_ACEOF 9210if ac_fn_c_try_compile "$LINENO"; then : 9211 xorg_cv_cc_flag_unused_command_line_argument=yes 9212else 9213 xorg_cv_cc_flag_unused_command_line_argument=no 9214fi 9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9216fi 9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221fi 9222 9223found="no" 9224 9225 if test $found = "no" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 fi 9233 9234 CFLAGS="$CFLAGS -Wreturn-type" 9235 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9237$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9238 cacheid=xorg_cv_cc_flag__Wreturn_type 9239 if eval \${$cacheid+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243/* end confdefs.h. */ 9244int i; 9245int 9246main () 9247{ 9248 9249 ; 9250 return 0; 9251} 9252_ACEOF 9253if ac_fn_c_try_link "$LINENO"; then : 9254 eval $cacheid=yes 9255else 9256 eval $cacheid=no 9257fi 9258rm -f core conftest.err conftest.$ac_objext \ 9259 conftest$ac_exeext conftest.$ac_ext 9260fi 9261 9262 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264 9265 eval supported=\$$cacheid 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9267$as_echo "$supported" >&6; } 9268 if test "$supported" = "yes" ; then 9269 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9270 found="yes" 9271 fi 9272 fi 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288xorg_testset_save_CFLAGS="$CFLAGS" 9289 9290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9295 $as_echo_n "(cached) " >&6 9296else 9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299int i; 9300_ACEOF 9301if ac_fn_c_try_compile "$LINENO"; then : 9302 xorg_cv_cc_flag_unknown_warning_option=yes 9303else 9304 xorg_cv_cc_flag_unknown_warning_option=no 9305fi 9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9307fi 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9311 CFLAGS="$xorg_testset_save_CFLAGS" 9312fi 9313 9314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9317 fi 9318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326int i; 9327_ACEOF 9328if ac_fn_c_try_compile "$LINENO"; then : 9329 xorg_cv_cc_flag_unused_command_line_argument=yes 9330else 9331 xorg_cv_cc_flag_unused_command_line_argument=no 9332fi 9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9338 CFLAGS="$xorg_testset_save_CFLAGS" 9339fi 9340 9341found="no" 9342 9343 if test $found = "no" ; then 9344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9346 fi 9347 9348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9350 fi 9351 9352 CFLAGS="$CFLAGS -Wtrigraphs" 9353 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9355$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9356 cacheid=xorg_cv_cc_flag__Wtrigraphs 9357 if eval \${$cacheid+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362int i; 9363int 9364main () 9365{ 9366 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371if ac_fn_c_try_link "$LINENO"; then : 9372 eval $cacheid=yes 9373else 9374 eval $cacheid=no 9375fi 9376rm -f core conftest.err conftest.$ac_objext \ 9377 conftest$ac_exeext conftest.$ac_ext 9378fi 9379 9380 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382 9383 eval supported=\$$cacheid 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9385$as_echo "$supported" >&6; } 9386 if test "$supported" = "yes" ; then 9387 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9388 found="yes" 9389 fi 9390 fi 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406xorg_testset_save_CFLAGS="$CFLAGS" 9407 9408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417int i; 9418_ACEOF 9419if ac_fn_c_try_compile "$LINENO"; then : 9420 xorg_cv_cc_flag_unknown_warning_option=yes 9421else 9422 xorg_cv_cc_flag_unknown_warning_option=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 fi 9436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443/* end confdefs.h. */ 9444int i; 9445_ACEOF 9446if ac_fn_c_try_compile "$LINENO"; then : 9447 xorg_cv_cc_flag_unused_command_line_argument=yes 9448else 9449 xorg_cv_cc_flag_unused_command_line_argument=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457fi 9458 9459found="no" 9460 9461 if test $found = "no" ; then 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 fi 9465 9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9468 fi 9469 9470 CFLAGS="$CFLAGS -Warray-bounds" 9471 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9473$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9474 cacheid=xorg_cv_cc_flag__Warray_bounds 9475 if eval \${$cacheid+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481int 9482main () 9483{ 9484 9485 ; 9486 return 0; 9487} 9488_ACEOF 9489if ac_fn_c_try_link "$LINENO"; then : 9490 eval $cacheid=yes 9491else 9492 eval $cacheid=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext \ 9495 conftest$ac_exeext conftest.$ac_ext 9496fi 9497 9498 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500 9501 eval supported=\$$cacheid 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9503$as_echo "$supported" >&6; } 9504 if test "$supported" = "yes" ; then 9505 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9506 found="yes" 9507 fi 9508 fi 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524xorg_testset_save_CFLAGS="$CFLAGS" 9525 9526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9531 $as_echo_n "(cached) " >&6 9532else 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9534/* end confdefs.h. */ 9535int i; 9536_ACEOF 9537if ac_fn_c_try_compile "$LINENO"; then : 9538 xorg_cv_cc_flag_unknown_warning_option=yes 9539else 9540 xorg_cv_cc_flag_unknown_warning_option=no 9541fi 9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9543fi 9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9547 CFLAGS="$xorg_testset_save_CFLAGS" 9548fi 9549 9550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9553 fi 9554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559else 9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561/* end confdefs.h. */ 9562int i; 9563_ACEOF 9564if ac_fn_c_try_compile "$LINENO"; then : 9565 xorg_cv_cc_flag_unused_command_line_argument=yes 9566else 9567 xorg_cv_cc_flag_unused_command_line_argument=no 9568fi 9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9570fi 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575fi 9576 9577found="no" 9578 9579 if test $found = "no" ; then 9580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9582 fi 9583 9584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9586 fi 9587 9588 CFLAGS="$CFLAGS -Wwrite-strings" 9589 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9591$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9592 cacheid=xorg_cv_cc_flag__Wwrite_strings 9593 if eval \${$cacheid+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598int i; 9599int 9600main () 9601{ 9602 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607if ac_fn_c_try_link "$LINENO"; then : 9608 eval $cacheid=yes 9609else 9610 eval $cacheid=no 9611fi 9612rm -f core conftest.err conftest.$ac_objext \ 9613 conftest$ac_exeext conftest.$ac_ext 9614fi 9615 9616 9617 CFLAGS="$xorg_testset_save_CFLAGS" 9618 9619 eval supported=\$$cacheid 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9621$as_echo "$supported" >&6; } 9622 if test "$supported" = "yes" ; then 9623 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9624 found="yes" 9625 fi 9626 fi 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642xorg_testset_save_CFLAGS="$CFLAGS" 9643 9644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653int i; 9654_ACEOF 9655if ac_fn_c_try_compile "$LINENO"; then : 9656 xorg_cv_cc_flag_unknown_warning_option=yes 9657else 9658 xorg_cv_cc_flag_unknown_warning_option=no 9659fi 9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9661fi 9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9665 CFLAGS="$xorg_testset_save_CFLAGS" 9666fi 9667 9668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9671 fi 9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680int i; 9681_ACEOF 9682if ac_fn_c_try_compile "$LINENO"; then : 9683 xorg_cv_cc_flag_unused_command_line_argument=yes 9684else 9685 xorg_cv_cc_flag_unused_command_line_argument=no 9686fi 9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9692 CFLAGS="$xorg_testset_save_CFLAGS" 9693fi 9694 9695found="no" 9696 9697 if test $found = "no" ; then 9698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 fi 9701 9702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9704 fi 9705 9706 CFLAGS="$CFLAGS -Waddress" 9707 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9709$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9710 cacheid=xorg_cv_cc_flag__Waddress 9711 if eval \${$cacheid+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716int i; 9717int 9718main () 9719{ 9720 9721 ; 9722 return 0; 9723} 9724_ACEOF 9725if ac_fn_c_try_link "$LINENO"; then : 9726 eval $cacheid=yes 9727else 9728 eval $cacheid=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext \ 9731 conftest$ac_exeext conftest.$ac_ext 9732fi 9733 9734 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736 9737 eval supported=\$$cacheid 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9739$as_echo "$supported" >&6; } 9740 if test "$supported" = "yes" ; then 9741 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9742 found="yes" 9743 fi 9744 fi 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760xorg_testset_save_CFLAGS="$CFLAGS" 9761 9762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9767 $as_echo_n "(cached) " >&6 9768else 9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772_ACEOF 9773if ac_fn_c_try_compile "$LINENO"; then : 9774 xorg_cv_cc_flag_unknown_warning_option=yes 9775else 9776 xorg_cv_cc_flag_unknown_warning_option=no 9777fi 9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9783 CFLAGS="$xorg_testset_save_CFLAGS" 9784fi 9785 9786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9789 fi 9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO"; then : 9801 xorg_cv_cc_flag_unused_command_line_argument=yes 9802else 9803 xorg_cv_cc_flag_unused_command_line_argument=no 9804fi 9805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9806fi 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811fi 9812 9813found="no" 9814 9815 if test $found = "no" ; then 9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 fi 9819 9820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9822 fi 9823 9824 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9825 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9827$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9828 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9829 if eval \${$cacheid+:} false; then : 9830 $as_echo_n "(cached) " >&6 9831else 9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9833/* end confdefs.h. */ 9834int i; 9835int 9836main () 9837{ 9838 9839 ; 9840 return 0; 9841} 9842_ACEOF 9843if ac_fn_c_try_link "$LINENO"; then : 9844 eval $cacheid=yes 9845else 9846 eval $cacheid=no 9847fi 9848rm -f core conftest.err conftest.$ac_objext \ 9849 conftest$ac_exeext conftest.$ac_ext 9850fi 9851 9852 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854 9855 eval supported=\$$cacheid 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9857$as_echo "$supported" >&6; } 9858 if test "$supported" = "yes" ; then 9859 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9860 found="yes" 9861 fi 9862 fi 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878xorg_testset_save_CFLAGS="$CFLAGS" 9879 9880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888/* end confdefs.h. */ 9889int i; 9890_ACEOF 9891if ac_fn_c_try_compile "$LINENO"; then : 9892 xorg_cv_cc_flag_unknown_warning_option=yes 9893else 9894 xorg_cv_cc_flag_unknown_warning_option=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902fi 9903 9904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9907 fi 9908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916int i; 9917_ACEOF 9918if ac_fn_c_try_compile "$LINENO"; then : 9919 xorg_cv_cc_flag_unused_command_line_argument=yes 9920else 9921 xorg_cv_cc_flag_unused_command_line_argument=no 9922fi 9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9924fi 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9928 CFLAGS="$xorg_testset_save_CFLAGS" 9929fi 9930 9931found="no" 9932 9933 if test $found = "no" ; then 9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9936 fi 9937 9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9940 fi 9941 9942 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9943 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9945$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9946 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9947 if eval \${$cacheid+:} false; then : 9948 $as_echo_n "(cached) " >&6 9949else 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952int i; 9953int 9954main () 9955{ 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961if ac_fn_c_try_link "$LINENO"; then : 9962 eval $cacheid=yes 9963else 9964 eval $cacheid=no 9965fi 9966rm -f core conftest.err conftest.$ac_objext \ 9967 conftest$ac_exeext conftest.$ac_ext 9968fi 9969 9970 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972 9973 eval supported=\$$cacheid 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9975$as_echo "$supported" >&6; } 9976 if test "$supported" = "yes" ; then 9977 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9978 found="yes" 9979 fi 9980 fi 9981 9982 9983fi 9984 9985 9986 9987 9988 9989 9990 9991 CWARNFLAGS="$BASE_CFLAGS" 9992 if test "x$GCC" = xyes ; then 9993 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9994 fi 9995 9996 9997 9998 9999 10000 10001 10002 10003# Check whether --enable-strict-compilation was given. 10004if test "${enable_strict_compilation+set}" = set; then : 10005 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10006else 10007 STRICT_COMPILE=no 10008fi 10009 10010 10011 10012 10013 10014 10015STRICT_CFLAGS="" 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029xorg_testset_save_CFLAGS="$CFLAGS" 10030 10031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10036 $as_echo_n "(cached) " >&6 10037else 10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040int i; 10041_ACEOF 10042if ac_fn_c_try_compile "$LINENO"; then : 10043 xorg_cv_cc_flag_unknown_warning_option=yes 10044else 10045 xorg_cv_cc_flag_unknown_warning_option=no 10046fi 10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10048fi 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10052 CFLAGS="$xorg_testset_save_CFLAGS" 10053fi 10054 10055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10058 fi 10059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067int i; 10068_ACEOF 10069if ac_fn_c_try_compile "$LINENO"; then : 10070 xorg_cv_cc_flag_unused_command_line_argument=yes 10071else 10072 xorg_cv_cc_flag_unused_command_line_argument=no 10073fi 10074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10075fi 10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10079 CFLAGS="$xorg_testset_save_CFLAGS" 10080fi 10081 10082found="no" 10083 10084 if test $found = "no" ; then 10085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10087 fi 10088 10089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10091 fi 10092 10093 CFLAGS="$CFLAGS -pedantic" 10094 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10096$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10097 cacheid=xorg_cv_cc_flag__pedantic 10098 if eval \${$cacheid+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100else 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103int i; 10104int 10105main () 10106{ 10107 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112if ac_fn_c_try_link "$LINENO"; then : 10113 eval $cacheid=yes 10114else 10115 eval $cacheid=no 10116fi 10117rm -f core conftest.err conftest.$ac_objext \ 10118 conftest$ac_exeext conftest.$ac_ext 10119fi 10120 10121 10122 CFLAGS="$xorg_testset_save_CFLAGS" 10123 10124 eval supported=\$$cacheid 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10126$as_echo "$supported" >&6; } 10127 if test "$supported" = "yes" ; then 10128 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10129 found="yes" 10130 fi 10131 fi 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147xorg_testset_save_CFLAGS="$CFLAGS" 10148 10149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10154 $as_echo_n "(cached) " >&6 10155else 10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO"; then : 10161 xorg_cv_cc_flag_unknown_warning_option=yes 10162else 10163 xorg_cv_cc_flag_unknown_warning_option=no 10164fi 10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10166fi 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10170 CFLAGS="$xorg_testset_save_CFLAGS" 10171fi 10172 10173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO"; then : 10188 xorg_cv_cc_flag_unused_command_line_argument=yes 10189else 10190 xorg_cv_cc_flag_unused_command_line_argument=no 10191fi 10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10193fi 10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10197 CFLAGS="$xorg_testset_save_CFLAGS" 10198fi 10199 10200found="no" 10201 10202 if test $found = "no" ; then 10203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10205 fi 10206 10207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10209 fi 10210 10211 CFLAGS="$CFLAGS -Werror" 10212 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10214$as_echo_n "checking if $CC supports -Werror... " >&6; } 10215 cacheid=xorg_cv_cc_flag__Werror 10216 if eval \${$cacheid+:} false; then : 10217 $as_echo_n "(cached) " >&6 10218else 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221int i; 10222int 10223main () 10224{ 10225 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230if ac_fn_c_try_link "$LINENO"; then : 10231 eval $cacheid=yes 10232else 10233 eval $cacheid=no 10234fi 10235rm -f core conftest.err conftest.$ac_objext \ 10236 conftest$ac_exeext conftest.$ac_ext 10237fi 10238 10239 10240 CFLAGS="$xorg_testset_save_CFLAGS" 10241 10242 eval supported=\$$cacheid 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10244$as_echo "$supported" >&6; } 10245 if test "$supported" = "yes" ; then 10246 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10247 found="yes" 10248 fi 10249 fi 10250 10251 if test $found = "no" ; then 10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10254 fi 10255 10256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10258 fi 10259 10260 CFLAGS="$CFLAGS -errwarn" 10261 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10263$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10264 cacheid=xorg_cv_cc_flag__errwarn 10265 if eval \${$cacheid+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10269/* end confdefs.h. */ 10270int i; 10271int 10272main () 10273{ 10274 10275 ; 10276 return 0; 10277} 10278_ACEOF 10279if ac_fn_c_try_link "$LINENO"; then : 10280 eval $cacheid=yes 10281else 10282 eval $cacheid=no 10283fi 10284rm -f core conftest.err conftest.$ac_objext \ 10285 conftest$ac_exeext conftest.$ac_ext 10286fi 10287 10288 10289 CFLAGS="$xorg_testset_save_CFLAGS" 10290 10291 eval supported=\$$cacheid 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10293$as_echo "$supported" >&6; } 10294 if test "$supported" = "yes" ; then 10295 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10296 found="yes" 10297 fi 10298 fi 10299 10300 10301 10302# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10303# activate it with -Werror, so we add it here explicitly. 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317xorg_testset_save_CFLAGS="$CFLAGS" 10318 10319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10324 $as_echo_n "(cached) " >&6 10325else 10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10327/* end confdefs.h. */ 10328int i; 10329_ACEOF 10330if ac_fn_c_try_compile "$LINENO"; then : 10331 xorg_cv_cc_flag_unknown_warning_option=yes 10332else 10333 xorg_cv_cc_flag_unknown_warning_option=no 10334fi 10335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10336fi 10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10340 CFLAGS="$xorg_testset_save_CFLAGS" 10341fi 10342 10343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346 fi 10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10351 $as_echo_n "(cached) " >&6 10352else 10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10354/* end confdefs.h. */ 10355int i; 10356_ACEOF 10357if ac_fn_c_try_compile "$LINENO"; then : 10358 xorg_cv_cc_flag_unused_command_line_argument=yes 10359else 10360 xorg_cv_cc_flag_unused_command_line_argument=no 10361fi 10362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10363fi 10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368fi 10369 10370found="no" 10371 10372 if test $found = "no" ; then 10373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10375 fi 10376 10377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10379 fi 10380 10381 CFLAGS="$CFLAGS -Werror=attributes" 10382 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10384$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10385 cacheid=xorg_cv_cc_flag__Werror_attributes 10386 if eval \${$cacheid+:} false; then : 10387 $as_echo_n "(cached) " >&6 10388else 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391int i; 10392int 10393main () 10394{ 10395 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_link "$LINENO"; then : 10401 eval $cacheid=yes 10402else 10403 eval $cacheid=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext \ 10406 conftest$ac_exeext conftest.$ac_ext 10407fi 10408 10409 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411 10412 eval supported=\$$cacheid 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10414$as_echo "$supported" >&6; } 10415 if test "$supported" = "yes" ; then 10416 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10417 found="yes" 10418 fi 10419 fi 10420 10421 10422 10423if test "x$STRICT_COMPILE" = "xyes"; then 10424 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10425 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10426fi 10427 10428 10429 10430 10431 10432 10433cat >>confdefs.h <<_ACEOF 10434#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10435_ACEOF 10436 10437 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10438 if test "x$PVM" = "x"; then 10439 PVM="0" 10440 fi 10441 10442cat >>confdefs.h <<_ACEOF 10443#define PACKAGE_VERSION_MINOR $PVM 10444_ACEOF 10445 10446 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10447 if test "x$PVP" = "x"; then 10448 PVP="0" 10449 fi 10450 10451cat >>confdefs.h <<_ACEOF 10452#define PACKAGE_VERSION_PATCHLEVEL $PVP 10453_ACEOF 10454 10455 10456 10457CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10458mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10459|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10460echo 'git directory not found: installing possibly empty changelog.' >&2)" 10461 10462 10463 10464 10465macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10466INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10467mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10468|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10469echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10470 10471 10472 10473 10474 10475 10476if test x$APP_MAN_SUFFIX = x ; then 10477 APP_MAN_SUFFIX=1 10478fi 10479if test x$APP_MAN_DIR = x ; then 10480 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10481fi 10482 10483if test x$LIB_MAN_SUFFIX = x ; then 10484 LIB_MAN_SUFFIX=3 10485fi 10486if test x$LIB_MAN_DIR = x ; then 10487 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10488fi 10489 10490if test x$FILE_MAN_SUFFIX = x ; then 10491 case $host_os in 10492 solaris*) FILE_MAN_SUFFIX=4 ;; 10493 *) FILE_MAN_SUFFIX=5 ;; 10494 esac 10495fi 10496if test x$FILE_MAN_DIR = x ; then 10497 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10498fi 10499 10500if test x$MISC_MAN_SUFFIX = x ; then 10501 case $host_os in 10502 solaris*) MISC_MAN_SUFFIX=5 ;; 10503 *) MISC_MAN_SUFFIX=7 ;; 10504 esac 10505fi 10506if test x$MISC_MAN_DIR = x ; then 10507 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10508fi 10509 10510if test x$DRIVER_MAN_SUFFIX = x ; then 10511 case $host_os in 10512 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10513 *) DRIVER_MAN_SUFFIX=4 ;; 10514 esac 10515fi 10516if test x$DRIVER_MAN_DIR = x ; then 10517 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10518fi 10519 10520if test x$ADMIN_MAN_SUFFIX = x ; then 10521 case $host_os in 10522 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10523 *) ADMIN_MAN_SUFFIX=8 ;; 10524 esac 10525fi 10526if test x$ADMIN_MAN_DIR = x ; then 10527 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10528fi 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544XORG_MAN_PAGE="X Version 11" 10545 10546MAN_SUBSTS="\ 10547 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10548 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10549 -e 's|__xservername__|Xorg|g' \ 10550 -e 's|__xconfigfile__|xorg.conf|g' \ 10551 -e 's|__projectroot__|\$(prefix)|g' \ 10552 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10553 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10554 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10555 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10556 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10557 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10558 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10559 10560 10561 10562# Check whether --enable-silent-rules was given. 10563if test "${enable_silent_rules+set}" = set; then : 10564 enableval=$enable_silent_rules; 10565fi 10566 10567case $enable_silent_rules in # ((( 10568 yes) AM_DEFAULT_VERBOSITY=0;; 10569 no) AM_DEFAULT_VERBOSITY=1;; 10570 *) AM_DEFAULT_VERBOSITY=0;; 10571esac 10572am_make=${MAKE-make} 10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10574$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10575if ${am_cv_make_support_nested_variables+:} false; then : 10576 $as_echo_n "(cached) " >&6 10577else 10578 if $as_echo 'TRUE=$(BAR$(V)) 10579BAR0=false 10580BAR1=true 10581V=1 10582am__doit: 10583 @$(TRUE) 10584.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10585 am_cv_make_support_nested_variables=yes 10586else 10587 am_cv_make_support_nested_variables=no 10588fi 10589fi 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10591$as_echo "$am_cv_make_support_nested_variables" >&6; } 10592if test $am_cv_make_support_nested_variables = yes; then 10593 AM_V='$(V)' 10594 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10595else 10596 AM_V=$AM_DEFAULT_VERBOSITY 10597 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10598fi 10599AM_BACKSLASH='\' 10600 10601 10602 10603# Checks for pkg-config packages 10604 10605pkg_failed=no 10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDFTOPCF" >&5 10607$as_echo_n "checking for BDFTOPCF... " >&6; } 10608 10609if test -n "$BDFTOPCF_CFLAGS"; then 10610 pkg_cv_BDFTOPCF_CFLAGS="$BDFTOPCF_CFLAGS" 10611 elif test -n "$PKG_CONFIG"; then 10612 if test -n "$PKG_CONFIG" && \ 10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont\""; } >&5 10614 ($PKG_CONFIG --exists --print-errors "xfont") 2>&5 10615 ac_status=$? 10616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10617 test $ac_status = 0; }; then 10618 pkg_cv_BDFTOPCF_CFLAGS=`$PKG_CONFIG --cflags "xfont" 2>/dev/null` 10619else 10620 pkg_failed=yes 10621fi 10622 else 10623 pkg_failed=untried 10624fi 10625if test -n "$BDFTOPCF_LIBS"; then 10626 pkg_cv_BDFTOPCF_LIBS="$BDFTOPCF_LIBS" 10627 elif test -n "$PKG_CONFIG"; then 10628 if test -n "$PKG_CONFIG" && \ 10629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont\""; } >&5 10630 ($PKG_CONFIG --exists --print-errors "xfont") 2>&5 10631 ac_status=$? 10632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10633 test $ac_status = 0; }; then 10634 pkg_cv_BDFTOPCF_LIBS=`$PKG_CONFIG --libs "xfont" 2>/dev/null` 10635else 10636 pkg_failed=yes 10637fi 10638 else 10639 pkg_failed=untried 10640fi 10641 10642 10643 10644if test $pkg_failed = yes; then 10645 10646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10647 _pkg_short_errors_supported=yes 10648else 10649 _pkg_short_errors_supported=no 10650fi 10651 if test $_pkg_short_errors_supported = yes; then 10652 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfont" 2>&1` 10653 else 10654 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfont" 2>&1` 10655 fi 10656 # Put the nasty error message in config.log where it belongs 10657 echo "$BDFTOPCF_PKG_ERRORS" >&5 10658 10659 as_fn_error $? "Package requirements (xfont) were not met: 10660 10661$BDFTOPCF_PKG_ERRORS 10662 10663Consider adjusting the PKG_CONFIG_PATH environment variable if you 10664installed software in a non-standard prefix. 10665 10666Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 10667and BDFTOPCF_LIBS to avoid the need to call pkg-config. 10668See the pkg-config man page for more details. 10669" "$LINENO" 5 10670elif test $pkg_failed = untried; then 10671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10673as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10674is in your PATH or set the PKG_CONFIG environment variable to the full 10675path to pkg-config. 10676 10677Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 10678and BDFTOPCF_LIBS to avoid the need to call pkg-config. 10679See the pkg-config man page for more details. 10680 10681To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10682See \`config.log' for more details" "$LINENO" 5; } 10683else 10684 BDFTOPCF_CFLAGS=$pkg_cv_BDFTOPCF_CFLAGS 10685 BDFTOPCF_LIBS=$pkg_cv_BDFTOPCF_LIBS 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10687$as_echo "yes" >&6; } 10688 : 10689fi 10690 10691 10692 10693 10694 10695 10696# Check whether --with-lint was given. 10697if test "${with_lint+set}" = set; then : 10698 withval=$with_lint; use_lint=$withval 10699else 10700 use_lint=no 10701fi 10702 10703 10704# Obtain platform specific info like program name and options 10705# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10706case $host_os in 10707 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10708 lint_name=splint 10709 lint_options="-badflag" 10710 ;; 10711 *freebsd* | *netbsd*) 10712 lint_name=lint 10713 lint_options="-u -b" 10714 ;; 10715 *solaris*) 10716 lint_name=lint 10717 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10718 ;; 10719esac 10720 10721# Test for the presence of the program (either guessed by the code or spelled out by the user) 10722if test "x$use_lint" = x"yes" ; then 10723 # Extract the first word of "$lint_name", so it can be a program name with args. 10724set dummy $lint_name; ac_word=$2 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10726$as_echo_n "checking for $ac_word... " >&6; } 10727if ${ac_cv_path_LINT+:} false; then : 10728 $as_echo_n "(cached) " >&6 10729else 10730 case $LINT in 10731 [\\/]* | ?:[\\/]*) 10732 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10733 ;; 10734 *) 10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10736for as_dir in $PATH 10737do 10738 IFS=$as_save_IFS 10739 test -z "$as_dir" && as_dir=. 10740 for ac_exec_ext in '' $ac_executable_extensions; do 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10742 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10744 break 2 10745 fi 10746done 10747 done 10748IFS=$as_save_IFS 10749 10750 ;; 10751esac 10752fi 10753LINT=$ac_cv_path_LINT 10754if test -n "$LINT"; then 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10756$as_echo "$LINT" >&6; } 10757else 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10759$as_echo "no" >&6; } 10760fi 10761 10762 10763 if test "x$LINT" = "x"; then 10764 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10765 fi 10766elif test "x$use_lint" = x"no" ; then 10767 if test "x$LINT" != "x"; then 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10769$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10770 fi 10771else 10772 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10773fi 10774 10775# User supplied flags override default flags 10776if test "x$LINT_FLAGS" != "x"; then 10777 lint_options=$LINT_FLAGS 10778fi 10779 10780LINT_FLAGS=$lint_options 10781 10782 if test "x$LINT" != x; then 10783 LINT_TRUE= 10784 LINT_FALSE='#' 10785else 10786 LINT_TRUE='#' 10787 LINT_FALSE= 10788fi 10789 10790 10791 10792 10793ac_config_files="$ac_config_files Makefile man/Makefile" 10794 10795cat >confcache <<\_ACEOF 10796# This file is a shell script that caches the results of configure 10797# tests run on this system so they can be shared between configure 10798# scripts and configure runs, see configure's option --config-cache. 10799# It is not useful on other systems. If it contains results you don't 10800# want to keep, you may remove or edit it. 10801# 10802# config.status only pays attention to the cache file if you give it 10803# the --recheck option to rerun configure. 10804# 10805# `ac_cv_env_foo' variables (set or unset) will be overridden when 10806# loading this file, other *unset* `ac_cv_foo' will be assigned the 10807# following values. 10808 10809_ACEOF 10810 10811# The following way of writing the cache mishandles newlines in values, 10812# but we know of no workaround that is simple, portable, and efficient. 10813# So, we kill variables containing newlines. 10814# Ultrix sh set writes to stderr and can't be redirected directly, 10815# and sets the high bit in the cache file unless we assign to the vars. 10816( 10817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10818 eval ac_val=\$$ac_var 10819 case $ac_val in #( 10820 *${as_nl}*) 10821 case $ac_var in #( 10822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10823$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10824 esac 10825 case $ac_var in #( 10826 _ | IFS | as_nl) ;; #( 10827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10828 *) { eval $ac_var=; unset $ac_var;} ;; 10829 esac ;; 10830 esac 10831 done 10832 10833 (set) 2>&1 | 10834 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10835 *${as_nl}ac_space=\ *) 10836 # `set' does not quote correctly, so add quotes: double-quote 10837 # substitution turns \\\\ into \\, and sed turns \\ into \. 10838 sed -n \ 10839 "s/'/'\\\\''/g; 10840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10841 ;; #( 10842 *) 10843 # `set' quotes correctly as required by POSIX, so do not add quotes. 10844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10845 ;; 10846 esac | 10847 sort 10848) | 10849 sed ' 10850 /^ac_cv_env_/b end 10851 t clear 10852 :clear 10853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10854 t end 10855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10856 :end' >>confcache 10857if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10858 if test -w "$cache_file"; then 10859 if test "x$cache_file" != "x/dev/null"; then 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10861$as_echo "$as_me: updating cache $cache_file" >&6;} 10862 if test ! -f "$cache_file" || test -h "$cache_file"; then 10863 cat confcache >"$cache_file" 10864 else 10865 case $cache_file in #( 10866 */* | ?:*) 10867 mv -f confcache "$cache_file"$$ && 10868 mv -f "$cache_file"$$ "$cache_file" ;; #( 10869 *) 10870 mv -f confcache "$cache_file" ;; 10871 esac 10872 fi 10873 fi 10874 else 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10876$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10877 fi 10878fi 10879rm -f confcache 10880 10881test "x$prefix" = xNONE && prefix=$ac_default_prefix 10882# Let make expand exec_prefix. 10883test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10884 10885DEFS=-DHAVE_CONFIG_H 10886 10887ac_libobjs= 10888ac_ltlibobjs= 10889U= 10890for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10891 # 1. Remove the extension, and $U if already installed. 10892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10895 # will be set to the directory where LIBOBJS objects are built. 10896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10898done 10899LIBOBJS=$ac_libobjs 10900 10901LTLIBOBJS=$ac_ltlibobjs 10902 10903 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10905$as_echo_n "checking that generated files are newer than configure... " >&6; } 10906 if test -n "$am_sleep_pid"; then 10907 # Hide warnings about reused PIDs. 10908 wait $am_sleep_pid 2>/dev/null 10909 fi 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10911$as_echo "done" >&6; } 10912 if test -n "$EXEEXT"; then 10913 am__EXEEXT_TRUE= 10914 am__EXEEXT_FALSE='#' 10915else 10916 am__EXEEXT_TRUE='#' 10917 am__EXEEXT_FALSE= 10918fi 10919 10920if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10921 as_fn_error $? "conditional \"AMDEP\" was never defined. 10922Usually this means the macro was only invoked conditionally." "$LINENO" 5 10923fi 10924if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10925 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10926Usually this means the macro was only invoked conditionally." "$LINENO" 5 10927fi 10928if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10929 as_fn_error $? "conditional \"LINT\" was never defined. 10930Usually this means the macro was only invoked conditionally." "$LINENO" 5 10931fi 10932 10933: "${CONFIG_STATUS=./config.status}" 10934ac_write_fail=0 10935ac_clean_files_save=$ac_clean_files 10936ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10937{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10938$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10939as_write_fail=0 10940cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10941#! $SHELL 10942# Generated by $as_me. 10943# Run this file to recreate the current configuration. 10944# Compiler output produced by configure, useful for debugging 10945# configure, is in config.log if it exists. 10946 10947debug=false 10948ac_cs_recheck=false 10949ac_cs_silent=false 10950 10951SHELL=\${CONFIG_SHELL-$SHELL} 10952export SHELL 10953_ASEOF 10954cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10955## -------------------- ## 10956## M4sh Initialization. ## 10957## -------------------- ## 10958 10959# Be more Bourne compatible 10960DUALCASE=1; export DUALCASE # for MKS sh 10961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10962 emulate sh 10963 NULLCMD=: 10964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10965 # is contrary to our usage. Disable this feature. 10966 alias -g '${1+"$@"}'='"$@"' 10967 setopt NO_GLOB_SUBST 10968else 10969 case `(set -o) 2>/dev/null` in #( 10970 *posix*) : 10971 set -o posix ;; #( 10972 *) : 10973 ;; 10974esac 10975fi 10976 10977 10978as_nl=' 10979' 10980export as_nl 10981# Printing a long string crashes Solaris 7 /usr/bin/printf. 10982as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10984as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10985# Prefer a ksh shell builtin over an external printf program on Solaris, 10986# but without wasting forks for bash or zsh. 10987if test -z "$BASH_VERSION$ZSH_VERSION" \ 10988 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10989 as_echo='print -r --' 10990 as_echo_n='print -rn --' 10991elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10992 as_echo='printf %s\n' 10993 as_echo_n='printf %s' 10994else 10995 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10996 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10997 as_echo_n='/usr/ucb/echo -n' 10998 else 10999 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11000 as_echo_n_body='eval 11001 arg=$1; 11002 case $arg in #( 11003 *"$as_nl"*) 11004 expr "X$arg" : "X\\(.*\\)$as_nl"; 11005 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11006 esac; 11007 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11008 ' 11009 export as_echo_n_body 11010 as_echo_n='sh -c $as_echo_n_body as_echo' 11011 fi 11012 export as_echo_body 11013 as_echo='sh -c $as_echo_body as_echo' 11014fi 11015 11016# The user is always right. 11017if test "${PATH_SEPARATOR+set}" != set; then 11018 PATH_SEPARATOR=: 11019 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11020 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11021 PATH_SEPARATOR=';' 11022 } 11023fi 11024 11025 11026# IFS 11027# We need space, tab and new line, in precisely that order. Quoting is 11028# there to prevent editors from complaining about space-tab. 11029# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11030# splitting by setting IFS to empty value.) 11031IFS=" "" $as_nl" 11032 11033# Find who we are. Look in the path if we contain no directory separator. 11034as_myself= 11035case $0 in #(( 11036 *[\\/]* ) as_myself=$0 ;; 11037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11038for as_dir in $PATH 11039do 11040 IFS=$as_save_IFS 11041 test -z "$as_dir" && as_dir=. 11042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11043 done 11044IFS=$as_save_IFS 11045 11046 ;; 11047esac 11048# We did not find ourselves, most probably we were run as `sh COMMAND' 11049# in which case we are not to be found in the path. 11050if test "x$as_myself" = x; then 11051 as_myself=$0 11052fi 11053if test ! -f "$as_myself"; then 11054 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11055 exit 1 11056fi 11057 11058# Unset variables that we do not need and which cause bugs (e.g. in 11059# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11060# suppresses any "Segmentation fault" message there. '((' could 11061# trigger a bug in pdksh 5.2.14. 11062for as_var in BASH_ENV ENV MAIL MAILPATH 11063do eval test x\${$as_var+set} = xset \ 11064 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11065done 11066PS1='$ ' 11067PS2='> ' 11068PS4='+ ' 11069 11070# NLS nuisances. 11071LC_ALL=C 11072export LC_ALL 11073LANGUAGE=C 11074export LANGUAGE 11075 11076# CDPATH. 11077(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11078 11079 11080# as_fn_error STATUS ERROR [LINENO LOG_FD] 11081# ---------------------------------------- 11082# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11083# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11084# script with STATUS, using 1 if that was 0. 11085as_fn_error () 11086{ 11087 as_status=$1; test $as_status -eq 0 && as_status=1 11088 if test "$4"; then 11089 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11090 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11091 fi 11092 $as_echo "$as_me: error: $2" >&2 11093 as_fn_exit $as_status 11094} # as_fn_error 11095 11096 11097# as_fn_set_status STATUS 11098# ----------------------- 11099# Set $? to STATUS, without forking. 11100as_fn_set_status () 11101{ 11102 return $1 11103} # as_fn_set_status 11104 11105# as_fn_exit STATUS 11106# ----------------- 11107# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11108as_fn_exit () 11109{ 11110 set +e 11111 as_fn_set_status $1 11112 exit $1 11113} # as_fn_exit 11114 11115# as_fn_unset VAR 11116# --------------- 11117# Portably unset VAR. 11118as_fn_unset () 11119{ 11120 { eval $1=; unset $1;} 11121} 11122as_unset=as_fn_unset 11123# as_fn_append VAR VALUE 11124# ---------------------- 11125# Append the text in VALUE to the end of the definition contained in VAR. Take 11126# advantage of any shell optimizations that allow amortized linear growth over 11127# repeated appends, instead of the typical quadratic growth present in naive 11128# implementations. 11129if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11130 eval 'as_fn_append () 11131 { 11132 eval $1+=\$2 11133 }' 11134else 11135 as_fn_append () 11136 { 11137 eval $1=\$$1\$2 11138 } 11139fi # as_fn_append 11140 11141# as_fn_arith ARG... 11142# ------------------ 11143# Perform arithmetic evaluation on the ARGs, and store the result in the 11144# global $as_val. Take advantage of shells that can avoid forks. The arguments 11145# must be portable across $(()) and expr. 11146if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11147 eval 'as_fn_arith () 11148 { 11149 as_val=$(( $* )) 11150 }' 11151else 11152 as_fn_arith () 11153 { 11154 as_val=`expr "$@" || test $? -eq 1` 11155 } 11156fi # as_fn_arith 11157 11158 11159if expr a : '\(a\)' >/dev/null 2>&1 && 11160 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11161 as_expr=expr 11162else 11163 as_expr=false 11164fi 11165 11166if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11167 as_basename=basename 11168else 11169 as_basename=false 11170fi 11171 11172if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11173 as_dirname=dirname 11174else 11175 as_dirname=false 11176fi 11177 11178as_me=`$as_basename -- "$0" || 11179$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11180 X"$0" : 'X\(//\)$' \| \ 11181 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11182$as_echo X/"$0" | 11183 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11184 s//\1/ 11185 q 11186 } 11187 /^X\/\(\/\/\)$/{ 11188 s//\1/ 11189 q 11190 } 11191 /^X\/\(\/\).*/{ 11192 s//\1/ 11193 q 11194 } 11195 s/.*/./; q'` 11196 11197# Avoid depending upon Character Ranges. 11198as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11199as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11200as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11201as_cr_digits='0123456789' 11202as_cr_alnum=$as_cr_Letters$as_cr_digits 11203 11204ECHO_C= ECHO_N= ECHO_T= 11205case `echo -n x` in #((((( 11206-n*) 11207 case `echo 'xy\c'` in 11208 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11209 xy) ECHO_C='\c';; 11210 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11211 ECHO_T=' ';; 11212 esac;; 11213*) 11214 ECHO_N='-n';; 11215esac 11216 11217rm -f conf$$ conf$$.exe conf$$.file 11218if test -d conf$$.dir; then 11219 rm -f conf$$.dir/conf$$.file 11220else 11221 rm -f conf$$.dir 11222 mkdir conf$$.dir 2>/dev/null 11223fi 11224if (echo >conf$$.file) 2>/dev/null; then 11225 if ln -s conf$$.file conf$$ 2>/dev/null; then 11226 as_ln_s='ln -s' 11227 # ... but there are two gotchas: 11228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11230 # In both cases, we have to default to `cp -pR'. 11231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11232 as_ln_s='cp -pR' 11233 elif ln conf$$.file conf$$ 2>/dev/null; then 11234 as_ln_s=ln 11235 else 11236 as_ln_s='cp -pR' 11237 fi 11238else 11239 as_ln_s='cp -pR' 11240fi 11241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11242rmdir conf$$.dir 2>/dev/null 11243 11244 11245# as_fn_mkdir_p 11246# ------------- 11247# Create "$as_dir" as a directory, including parents if necessary. 11248as_fn_mkdir_p () 11249{ 11250 11251 case $as_dir in #( 11252 -*) as_dir=./$as_dir;; 11253 esac 11254 test -d "$as_dir" || eval $as_mkdir_p || { 11255 as_dirs= 11256 while :; do 11257 case $as_dir in #( 11258 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11259 *) as_qdir=$as_dir;; 11260 esac 11261 as_dirs="'$as_qdir' $as_dirs" 11262 as_dir=`$as_dirname -- "$as_dir" || 11263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11264 X"$as_dir" : 'X\(//\)[^/]' \| \ 11265 X"$as_dir" : 'X\(//\)$' \| \ 11266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11267$as_echo X"$as_dir" | 11268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11269 s//\1/ 11270 q 11271 } 11272 /^X\(\/\/\)[^/].*/{ 11273 s//\1/ 11274 q 11275 } 11276 /^X\(\/\/\)$/{ 11277 s//\1/ 11278 q 11279 } 11280 /^X\(\/\).*/{ 11281 s//\1/ 11282 q 11283 } 11284 s/.*/./; q'` 11285 test -d "$as_dir" && break 11286 done 11287 test -z "$as_dirs" || eval "mkdir $as_dirs" 11288 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11289 11290 11291} # as_fn_mkdir_p 11292if mkdir -p . 2>/dev/null; then 11293 as_mkdir_p='mkdir -p "$as_dir"' 11294else 11295 test -d ./-p && rmdir ./-p 11296 as_mkdir_p=false 11297fi 11298 11299 11300# as_fn_executable_p FILE 11301# ----------------------- 11302# Test if FILE is an executable regular file. 11303as_fn_executable_p () 11304{ 11305 test -f "$1" && test -x "$1" 11306} # as_fn_executable_p 11307as_test_x='test -x' 11308as_executable_p=as_fn_executable_p 11309 11310# Sed expression to map a string onto a valid CPP name. 11311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11312 11313# Sed expression to map a string onto a valid variable name. 11314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11315 11316 11317exec 6>&1 11318## ----------------------------------- ## 11319## Main body of $CONFIG_STATUS script. ## 11320## ----------------------------------- ## 11321_ASEOF 11322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11323 11324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11325# Save the log message, to keep $0 and so on meaningful, and to 11326# report actual input values of CONFIG_FILES etc. instead of their 11327# values after options handling. 11328ac_log=" 11329This file was extended by bdftopcf $as_me 1.0.5, which was 11330generated by GNU Autoconf 2.69. Invocation command line was 11331 11332 CONFIG_FILES = $CONFIG_FILES 11333 CONFIG_HEADERS = $CONFIG_HEADERS 11334 CONFIG_LINKS = $CONFIG_LINKS 11335 CONFIG_COMMANDS = $CONFIG_COMMANDS 11336 $ $0 $@ 11337 11338on `(hostname || uname -n) 2>/dev/null | sed 1q` 11339" 11340 11341_ACEOF 11342 11343case $ac_config_files in *" 11344"*) set x $ac_config_files; shift; ac_config_files=$*;; 11345esac 11346 11347case $ac_config_headers in *" 11348"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11349esac 11350 11351 11352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11353# Files that config.status was made for. 11354config_files="$ac_config_files" 11355config_headers="$ac_config_headers" 11356config_commands="$ac_config_commands" 11357 11358_ACEOF 11359 11360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11361ac_cs_usage="\ 11362\`$as_me' instantiates files and other configuration actions 11363from templates according to the current configuration. Unless the files 11364and actions are specified as TAGs, all are instantiated by default. 11365 11366Usage: $0 [OPTION]... [TAG]... 11367 11368 -h, --help print this help, then exit 11369 -V, --version print version number and configuration settings, then exit 11370 --config print configuration, then exit 11371 -q, --quiet, --silent 11372 do not print progress messages 11373 -d, --debug don't remove temporary files 11374 --recheck update $as_me by reconfiguring in the same conditions 11375 --file=FILE[:TEMPLATE] 11376 instantiate the configuration file FILE 11377 --header=FILE[:TEMPLATE] 11378 instantiate the configuration header FILE 11379 11380Configuration files: 11381$config_files 11382 11383Configuration headers: 11384$config_headers 11385 11386Configuration commands: 11387$config_commands 11388 11389Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11390 11391_ACEOF 11392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11393ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11394ac_cs_version="\\ 11395bdftopcf config.status 1.0.5 11396configured by $0, generated by GNU Autoconf 2.69, 11397 with options \\"\$ac_cs_config\\" 11398 11399Copyright (C) 2012 Free Software Foundation, Inc. 11400This config.status script is free software; the Free Software Foundation 11401gives unlimited permission to copy, distribute and modify it." 11402 11403ac_pwd='$ac_pwd' 11404srcdir='$srcdir' 11405INSTALL='$INSTALL' 11406MKDIR_P='$MKDIR_P' 11407AWK='$AWK' 11408test -n "\$AWK" || AWK=awk 11409_ACEOF 11410 11411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11412# The default lists apply if the user does not specify any file. 11413ac_need_defaults=: 11414while test $# != 0 11415do 11416 case $1 in 11417 --*=?*) 11418 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11420 ac_shift=: 11421 ;; 11422 --*=) 11423 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11424 ac_optarg= 11425 ac_shift=: 11426 ;; 11427 *) 11428 ac_option=$1 11429 ac_optarg=$2 11430 ac_shift=shift 11431 ;; 11432 esac 11433 11434 case $ac_option in 11435 # Handling of the options. 11436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11437 ac_cs_recheck=: ;; 11438 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11439 $as_echo "$ac_cs_version"; exit ;; 11440 --config | --confi | --conf | --con | --co | --c ) 11441 $as_echo "$ac_cs_config"; exit ;; 11442 --debug | --debu | --deb | --de | --d | -d ) 11443 debug=: ;; 11444 --file | --fil | --fi | --f ) 11445 $ac_shift 11446 case $ac_optarg in 11447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11448 '') as_fn_error $? "missing file argument" ;; 11449 esac 11450 as_fn_append CONFIG_FILES " '$ac_optarg'" 11451 ac_need_defaults=false;; 11452 --header | --heade | --head | --hea ) 11453 $ac_shift 11454 case $ac_optarg in 11455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11456 esac 11457 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11458 ac_need_defaults=false;; 11459 --he | --h) 11460 # Conflict between --help and --header 11461 as_fn_error $? "ambiguous option: \`$1' 11462Try \`$0 --help' for more information.";; 11463 --help | --hel | -h ) 11464 $as_echo "$ac_cs_usage"; exit ;; 11465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11466 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11467 ac_cs_silent=: ;; 11468 11469 # This is an error. 11470 -*) as_fn_error $? "unrecognized option: \`$1' 11471Try \`$0 --help' for more information." ;; 11472 11473 *) as_fn_append ac_config_targets " $1" 11474 ac_need_defaults=false ;; 11475 11476 esac 11477 shift 11478done 11479 11480ac_configure_extra_args= 11481 11482if $ac_cs_silent; then 11483 exec 6>/dev/null 11484 ac_configure_extra_args="$ac_configure_extra_args --silent" 11485fi 11486 11487_ACEOF 11488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11489if \$ac_cs_recheck; then 11490 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11491 shift 11492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11493 CONFIG_SHELL='$SHELL' 11494 export CONFIG_SHELL 11495 exec "\$@" 11496fi 11497 11498_ACEOF 11499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11500exec 5>>config.log 11501{ 11502 echo 11503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11504## Running $as_me. ## 11505_ASBOX 11506 $as_echo "$ac_log" 11507} >&5 11508 11509_ACEOF 11510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11511# 11512# INIT-COMMANDS 11513# 11514AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11515 11516_ACEOF 11517 11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11519 11520# Handling of arguments. 11521for ac_config_target in $ac_config_targets 11522do 11523 case $ac_config_target in 11524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11526 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11527 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11528 11529 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11530 esac 11531done 11532 11533 11534# If the user did not use the arguments to specify the items to instantiate, 11535# then the envvar interface is used. Set only those that are not. 11536# We use the long form for the default assignment because of an extremely 11537# bizarre bug on SunOS 4.1.3. 11538if $ac_need_defaults; then 11539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11542fi 11543 11544# Have a temporary directory for convenience. Make it in the build tree 11545# simply because there is no reason against having it here, and in addition, 11546# creating and moving files from /tmp can sometimes cause problems. 11547# Hook for its removal unless debugging. 11548# Note that there is a small window in which the directory will not be cleaned: 11549# after its creation but before its name has been assigned to `$tmp'. 11550$debug || 11551{ 11552 tmp= ac_tmp= 11553 trap 'exit_status=$? 11554 : "${ac_tmp:=$tmp}" 11555 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11556' 0 11557 trap 'as_fn_exit 1' 1 2 13 15 11558} 11559# Create a (secure) tmp directory for tmp files. 11560 11561{ 11562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11563 test -d "$tmp" 11564} || 11565{ 11566 tmp=./conf$$-$RANDOM 11567 (umask 077 && mkdir "$tmp") 11568} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11569ac_tmp=$tmp 11570 11571# Set up the scripts for CONFIG_FILES section. 11572# No need to generate them if there are no CONFIG_FILES. 11573# This happens for instance with `./config.status config.h'. 11574if test -n "$CONFIG_FILES"; then 11575 11576 11577ac_cr=`echo X | tr X '\015'` 11578# On cygwin, bash can eat \r inside `` if the user requested igncr. 11579# But we know of no other shell where ac_cr would be empty at this 11580# point, so we can use a bashism as a fallback. 11581if test "x$ac_cr" = x; then 11582 eval ac_cr=\$\'\\r\' 11583fi 11584ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11585if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11586 ac_cs_awk_cr='\\r' 11587else 11588 ac_cs_awk_cr=$ac_cr 11589fi 11590 11591echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11592_ACEOF 11593 11594 11595{ 11596 echo "cat >conf$$subs.awk <<_ACEOF" && 11597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11598 echo "_ACEOF" 11599} >conf$$subs.sh || 11600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11601ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11602ac_delim='%!_!# ' 11603for ac_last_try in false false false false false :; do 11604 . ./conf$$subs.sh || 11605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11606 11607 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11608 if test $ac_delim_n = $ac_delim_num; then 11609 break 11610 elif $ac_last_try; then 11611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11612 else 11613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11614 fi 11615done 11616rm -f conf$$subs.sh 11617 11618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11619cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11620_ACEOF 11621sed -n ' 11622h 11623s/^/S["/; s/!.*/"]=/ 11624p 11625g 11626s/^[^!]*!// 11627:repl 11628t repl 11629s/'"$ac_delim"'$// 11630t delim 11631:nl 11632h 11633s/\(.\{148\}\)..*/\1/ 11634t more1 11635s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11636p 11637n 11638b repl 11639:more1 11640s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11641p 11642g 11643s/.\{148\}// 11644t nl 11645:delim 11646h 11647s/\(.\{148\}\)..*/\1/ 11648t more2 11649s/["\\]/\\&/g; s/^/"/; s/$/"/ 11650p 11651b 11652:more2 11653s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11654p 11655g 11656s/.\{148\}// 11657t delim 11658' <conf$$subs.awk | sed ' 11659/^[^""]/{ 11660 N 11661 s/\n// 11662} 11663' >>$CONFIG_STATUS || ac_write_fail=1 11664rm -f conf$$subs.awk 11665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11666_ACAWK 11667cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11668 for (key in S) S_is_set[key] = 1 11669 FS = "" 11670 11671} 11672{ 11673 line = $ 0 11674 nfields = split(line, field, "@") 11675 substed = 0 11676 len = length(field[1]) 11677 for (i = 2; i < nfields; i++) { 11678 key = field[i] 11679 keylen = length(key) 11680 if (S_is_set[key]) { 11681 value = S[key] 11682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11683 len += length(value) + length(field[++i]) 11684 substed = 1 11685 } else 11686 len += 1 + keylen 11687 } 11688 11689 print line 11690} 11691 11692_ACAWK 11693_ACEOF 11694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11695if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11696 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11697else 11698 cat 11699fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11700 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11701_ACEOF 11702 11703# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11704# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11705# trailing colons and then remove the whole line if VPATH becomes empty 11706# (actually we leave an empty line to preserve line numbers). 11707if test "x$srcdir" = x.; then 11708 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11709h 11710s/// 11711s/^/:/ 11712s/[ ]*$/:/ 11713s/:\$(srcdir):/:/g 11714s/:\${srcdir}:/:/g 11715s/:@srcdir@:/:/g 11716s/^:*// 11717s/:*$// 11718x 11719s/\(=[ ]*\).*/\1/ 11720G 11721s/\n// 11722s/^[^=]*=[ ]*$// 11723}' 11724fi 11725 11726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11727fi # test -n "$CONFIG_FILES" 11728 11729# Set up the scripts for CONFIG_HEADERS section. 11730# No need to generate them if there are no CONFIG_HEADERS. 11731# This happens for instance with `./config.status Makefile'. 11732if test -n "$CONFIG_HEADERS"; then 11733cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11734BEGIN { 11735_ACEOF 11736 11737# Transform confdefs.h into an awk script `defines.awk', embedded as 11738# here-document in config.status, that substitutes the proper values into 11739# config.h.in to produce config.h. 11740 11741# Create a delimiter string that does not exist in confdefs.h, to ease 11742# handling of long lines. 11743ac_delim='%!_!# ' 11744for ac_last_try in false false :; do 11745 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11746 if test -z "$ac_tt"; then 11747 break 11748 elif $ac_last_try; then 11749 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11750 else 11751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11752 fi 11753done 11754 11755# For the awk script, D is an array of macro values keyed by name, 11756# likewise P contains macro parameters if any. Preserve backslash 11757# newline sequences. 11758 11759ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11760sed -n ' 11761s/.\{148\}/&'"$ac_delim"'/g 11762t rset 11763:rset 11764s/^[ ]*#[ ]*define[ ][ ]*/ / 11765t def 11766d 11767:def 11768s/\\$// 11769t bsnl 11770s/["\\]/\\&/g 11771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11772D["\1"]=" \3"/p 11773s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11774d 11775:bsnl 11776s/["\\]/\\&/g 11777s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11778D["\1"]=" \3\\\\\\n"\\/p 11779t cont 11780s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11781t cont 11782d 11783:cont 11784n 11785s/.\{148\}/&'"$ac_delim"'/g 11786t clear 11787:clear 11788s/\\$// 11789t bsnlc 11790s/["\\]/\\&/g; s/^/"/; s/$/"/p 11791d 11792:bsnlc 11793s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11794b cont 11795' <confdefs.h | sed ' 11796s/'"$ac_delim"'/"\\\ 11797"/g' >>$CONFIG_STATUS || ac_write_fail=1 11798 11799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11800 for (key in D) D_is_set[key] = 1 11801 FS = "" 11802} 11803/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11804 line = \$ 0 11805 split(line, arg, " ") 11806 if (arg[1] == "#") { 11807 defundef = arg[2] 11808 mac1 = arg[3] 11809 } else { 11810 defundef = substr(arg[1], 2) 11811 mac1 = arg[2] 11812 } 11813 split(mac1, mac2, "(") #) 11814 macro = mac2[1] 11815 prefix = substr(line, 1, index(line, defundef) - 1) 11816 if (D_is_set[macro]) { 11817 # Preserve the white space surrounding the "#". 11818 print prefix "define", macro P[macro] D[macro] 11819 next 11820 } else { 11821 # Replace #undef with comments. This is necessary, for example, 11822 # in the case of _POSIX_SOURCE, which is predefined and required 11823 # on some systems where configure will not decide to define it. 11824 if (defundef == "undef") { 11825 print "/*", prefix defundef, macro, "*/" 11826 next 11827 } 11828 } 11829} 11830{ print } 11831_ACAWK 11832_ACEOF 11833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11834 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11835fi # test -n "$CONFIG_HEADERS" 11836 11837 11838eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11839shift 11840for ac_tag 11841do 11842 case $ac_tag in 11843 :[FHLC]) ac_mode=$ac_tag; continue;; 11844 esac 11845 case $ac_mode$ac_tag in 11846 :[FHL]*:*);; 11847 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11848 :[FH]-) ac_tag=-:-;; 11849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11850 esac 11851 ac_save_IFS=$IFS 11852 IFS=: 11853 set x $ac_tag 11854 IFS=$ac_save_IFS 11855 shift 11856 ac_file=$1 11857 shift 11858 11859 case $ac_mode in 11860 :L) ac_source=$1;; 11861 :[FH]) 11862 ac_file_inputs= 11863 for ac_f 11864 do 11865 case $ac_f in 11866 -) ac_f="$ac_tmp/stdin";; 11867 *) # Look for the file first in the build tree, then in the source tree 11868 # (if the path is not absolute). The absolute path cannot be DOS-style, 11869 # because $ac_f cannot contain `:'. 11870 test -f "$ac_f" || 11871 case $ac_f in 11872 [\\/$]*) false;; 11873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11874 esac || 11875 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11876 esac 11877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11878 as_fn_append ac_file_inputs " '$ac_f'" 11879 done 11880 11881 # Let's still pretend it is `configure' which instantiates (i.e., don't 11882 # use $as_me), people would be surprised to read: 11883 # /* config.h. Generated by config.status. */ 11884 configure_input='Generated from '` 11885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11886 `' by configure.' 11887 if test x"$ac_file" != x-; then 11888 configure_input="$ac_file. $configure_input" 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11890$as_echo "$as_me: creating $ac_file" >&6;} 11891 fi 11892 # Neutralize special characters interpreted by sed in replacement strings. 11893 case $configure_input in #( 11894 *\&* | *\|* | *\\* ) 11895 ac_sed_conf_input=`$as_echo "$configure_input" | 11896 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11897 *) ac_sed_conf_input=$configure_input;; 11898 esac 11899 11900 case $ac_tag in 11901 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11903 esac 11904 ;; 11905 esac 11906 11907 ac_dir=`$as_dirname -- "$ac_file" || 11908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11909 X"$ac_file" : 'X\(//\)[^/]' \| \ 11910 X"$ac_file" : 'X\(//\)$' \| \ 11911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11912$as_echo X"$ac_file" | 11913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11914 s//\1/ 11915 q 11916 } 11917 /^X\(\/\/\)[^/].*/{ 11918 s//\1/ 11919 q 11920 } 11921 /^X\(\/\/\)$/{ 11922 s//\1/ 11923 q 11924 } 11925 /^X\(\/\).*/{ 11926 s//\1/ 11927 q 11928 } 11929 s/.*/./; q'` 11930 as_dir="$ac_dir"; as_fn_mkdir_p 11931 ac_builddir=. 11932 11933case "$ac_dir" in 11934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11935*) 11936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11937 # A ".." for each directory in $ac_dir_suffix. 11938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11939 case $ac_top_builddir_sub in 11940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11942 esac ;; 11943esac 11944ac_abs_top_builddir=$ac_pwd 11945ac_abs_builddir=$ac_pwd$ac_dir_suffix 11946# for backward compatibility: 11947ac_top_builddir=$ac_top_build_prefix 11948 11949case $srcdir in 11950 .) # We are building in place. 11951 ac_srcdir=. 11952 ac_top_srcdir=$ac_top_builddir_sub 11953 ac_abs_top_srcdir=$ac_pwd ;; 11954 [\\/]* | ?:[\\/]* ) # Absolute name. 11955 ac_srcdir=$srcdir$ac_dir_suffix; 11956 ac_top_srcdir=$srcdir 11957 ac_abs_top_srcdir=$srcdir ;; 11958 *) # Relative name. 11959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11960 ac_top_srcdir=$ac_top_build_prefix$srcdir 11961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11962esac 11963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11964 11965 11966 case $ac_mode in 11967 :F) 11968 # 11969 # CONFIG_FILE 11970 # 11971 11972 case $INSTALL in 11973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11975 esac 11976 ac_MKDIR_P=$MKDIR_P 11977 case $MKDIR_P in 11978 [\\/$]* | ?:[\\/]* ) ;; 11979 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11980 esac 11981_ACEOF 11982 11983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11984# If the template does not know about datarootdir, expand it. 11985# FIXME: This hack should be removed a few years after 2.60. 11986ac_datarootdir_hack=; ac_datarootdir_seen= 11987ac_sed_dataroot=' 11988/datarootdir/ { 11989 p 11990 q 11991} 11992/@datadir@/p 11993/@docdir@/p 11994/@infodir@/p 11995/@localedir@/p 11996/@mandir@/p' 11997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11998*datarootdir*) ac_datarootdir_seen=yes;; 11999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12002_ACEOF 12003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12004 ac_datarootdir_hack=' 12005 s&@datadir@&$datadir&g 12006 s&@docdir@&$docdir&g 12007 s&@infodir@&$infodir&g 12008 s&@localedir@&$localedir&g 12009 s&@mandir@&$mandir&g 12010 s&\\\${datarootdir}&$datarootdir&g' ;; 12011esac 12012_ACEOF 12013 12014# Neutralize VPATH when `$srcdir' = `.'. 12015# Shell code in configure.ac might set extrasub. 12016# FIXME: do we really want to maintain this feature? 12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12018ac_sed_extra="$ac_vpsub 12019$extrasub 12020_ACEOF 12021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12022:t 12023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12024s|@configure_input@|$ac_sed_conf_input|;t t 12025s&@top_builddir@&$ac_top_builddir_sub&;t t 12026s&@top_build_prefix@&$ac_top_build_prefix&;t t 12027s&@srcdir@&$ac_srcdir&;t t 12028s&@abs_srcdir@&$ac_abs_srcdir&;t t 12029s&@top_srcdir@&$ac_top_srcdir&;t t 12030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12031s&@builddir@&$ac_builddir&;t t 12032s&@abs_builddir@&$ac_abs_builddir&;t t 12033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12034s&@INSTALL@&$ac_INSTALL&;t t 12035s&@MKDIR_P@&$ac_MKDIR_P&;t t 12036$ac_datarootdir_hack 12037" 12038eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12039 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12040 12041test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12042 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12044 "$ac_tmp/out"`; test -z "$ac_out"; } && 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12046which seems to be undefined. Please make sure it is defined" >&5 12047$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12048which seems to be undefined. Please make sure it is defined" >&2;} 12049 12050 rm -f "$ac_tmp/stdin" 12051 case $ac_file in 12052 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12053 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12054 esac \ 12055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12056 ;; 12057 :H) 12058 # 12059 # CONFIG_HEADER 12060 # 12061 if test x"$ac_file" != x-; then 12062 { 12063 $as_echo "/* $configure_input */" \ 12064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12065 } >"$ac_tmp/config.h" \ 12066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12067 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12069$as_echo "$as_me: $ac_file is unchanged" >&6;} 12070 else 12071 rm -f "$ac_file" 12072 mv "$ac_tmp/config.h" "$ac_file" \ 12073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12074 fi 12075 else 12076 $as_echo "/* $configure_input */" \ 12077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12078 || as_fn_error $? "could not create -" "$LINENO" 5 12079 fi 12080# Compute "$ac_file"'s index in $config_headers. 12081_am_arg="$ac_file" 12082_am_stamp_count=1 12083for _am_header in $config_headers :; do 12084 case $_am_header in 12085 $_am_arg | $_am_arg:* ) 12086 break ;; 12087 * ) 12088 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12089 esac 12090done 12091echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12092$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12093 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12094 X"$_am_arg" : 'X\(//\)$' \| \ 12095 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12096$as_echo X"$_am_arg" | 12097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12098 s//\1/ 12099 q 12100 } 12101 /^X\(\/\/\)[^/].*/{ 12102 s//\1/ 12103 q 12104 } 12105 /^X\(\/\/\)$/{ 12106 s//\1/ 12107 q 12108 } 12109 /^X\(\/\).*/{ 12110 s//\1/ 12111 q 12112 } 12113 s/.*/./; q'`/stamp-h$_am_stamp_count 12114 ;; 12115 12116 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12117$as_echo "$as_me: executing $ac_file commands" >&6;} 12118 ;; 12119 esac 12120 12121 12122 case $ac_file$ac_mode in 12123 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12124 # Older Autoconf quotes --file arguments for eval, but not when files 12125 # are listed without --file. Let's play safe and only enable the eval 12126 # if we detect the quoting. 12127 case $CONFIG_FILES in 12128 *\'*) eval set x "$CONFIG_FILES" ;; 12129 *) set x $CONFIG_FILES ;; 12130 esac 12131 shift 12132 for mf 12133 do 12134 # Strip MF so we end up with the name of the file. 12135 mf=`echo "$mf" | sed -e 's/:.*$//'` 12136 # Check whether this is an Automake generated Makefile or not. 12137 # We used to match only the files named 'Makefile.in', but 12138 # some people rename them; so instead we look at the file content. 12139 # Grep'ing the first line is not enough: some people post-process 12140 # each Makefile.in and add a new line on top of each file to say so. 12141 # Grep'ing the whole file is not good either: AIX grep has a line 12142 # limit of 2048, but all sed's we know have understand at least 4000. 12143 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12144 dirpart=`$as_dirname -- "$mf" || 12145$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12146 X"$mf" : 'X\(//\)[^/]' \| \ 12147 X"$mf" : 'X\(//\)$' \| \ 12148 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12149$as_echo X"$mf" | 12150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12151 s//\1/ 12152 q 12153 } 12154 /^X\(\/\/\)[^/].*/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\(\/\/\)$/{ 12159 s//\1/ 12160 q 12161 } 12162 /^X\(\/\).*/{ 12163 s//\1/ 12164 q 12165 } 12166 s/.*/./; q'` 12167 else 12168 continue 12169 fi 12170 # Extract the definition of DEPDIR, am__include, and am__quote 12171 # from the Makefile without running 'make'. 12172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12173 test -z "$DEPDIR" && continue 12174 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12175 test -z "$am__include" && continue 12176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12177 # Find all dependency output files, they are included files with 12178 # $(DEPDIR) in their names. We invoke sed twice because it is the 12179 # simplest approach to changing $(DEPDIR) to its actual value in the 12180 # expansion. 12181 for file in `sed -n " 12182 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12183 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12184 # Make sure the directory exists. 12185 test -f "$dirpart/$file" && continue 12186 fdir=`$as_dirname -- "$file" || 12187$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12188 X"$file" : 'X\(//\)[^/]' \| \ 12189 X"$file" : 'X\(//\)$' \| \ 12190 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12191$as_echo X"$file" | 12192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12193 s//\1/ 12194 q 12195 } 12196 /^X\(\/\/\)[^/].*/{ 12197 s//\1/ 12198 q 12199 } 12200 /^X\(\/\/\)$/{ 12201 s//\1/ 12202 q 12203 } 12204 /^X\(\/\).*/{ 12205 s//\1/ 12206 q 12207 } 12208 s/.*/./; q'` 12209 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12210 # echo "creating $dirpart/$file" 12211 echo '# dummy' > "$dirpart/$file" 12212 done 12213 done 12214} 12215 ;; 12216 12217 esac 12218done # for ac_tag 12219 12220 12221as_fn_exit 0 12222_ACEOF 12223ac_clean_files=$ac_clean_files_save 12224 12225test $ac_write_fail = 0 || 12226 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12227 12228 12229# configure is writing to config.log, and then calls config.status. 12230# config.status does its own redirection, appending to config.log. 12231# Unfortunately, on DOS this fails, as config.log is still kept open 12232# by configure, so config.status won't be able to write to it; its 12233# output is simply discarded. So we exec the FD to /dev/null, 12234# effectively closing config.log, so it can be properly (re)opened and 12235# appended to by config.status. When coming back to configure, we 12236# need to make the FD available again. 12237if test "$no_create" != yes; then 12238 ac_cs_success=: 12239 ac_config_status_args= 12240 test "$silent" = yes && 12241 ac_config_status_args="$ac_config_status_args --quiet" 12242 exec 5>/dev/null 12243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12244 exec 5>>config.log 12245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12246 # would make configure fail if this is the last instruction. 12247 $ac_cs_success || as_fn_exit 1 12248fi 12249if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12251$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12252fi 12253 12254