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