configure revision e45ace2b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xtrans 1.5.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 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'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591as_awk_strverscmp=' 592 # Use only awk features that work with 7th edition Unix awk (1978). 593 # My, what an old awk you have, Mr. Solaris! 594 END { 595 while (length(v1) && length(v2)) { 596 # Set d1 to be the next thing to compare from v1, and likewise for d2. 597 # Normally this is a single character, but if v1 and v2 contain digits, 598 # compare them as integers and fractions as strverscmp does. 599 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 600 # Split v1 and v2 into their leading digit string components d1 and d2, 601 # and advance v1 and v2 past the leading digit strings. 602 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 603 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 604 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 605 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 606 if (d1 ~ /^0/) { 607 if (d2 ~ /^0/) { 608 # Compare two fractions. 609 while (d1 ~ /^0/ && d2 ~ /^0/) { 610 d1 = substr(d1, 2); len1-- 611 d2 = substr(d2, 2); len2-- 612 } 613 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 614 # The two components differ in length, and the common prefix 615 # contains only leading zeros. Consider the longer to be less. 616 d1 = -len1 617 d2 = -len2 618 } else { 619 # Otherwise, compare as strings. 620 d1 = "x" d1 621 d2 = "x" d2 622 } 623 } else { 624 # A fraction is less than an integer. 625 exit 1 626 } 627 } else { 628 if (d2 ~ /^0/) { 629 # An integer is greater than a fraction. 630 exit 2 631 } else { 632 # Compare two integers. 633 d1 += 0 634 d2 += 0 635 } 636 } 637 } else { 638 # The normal case, without worrying about digits. 639 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 640 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 641 } 642 if (d1 < d2) exit 1 643 if (d1 > d2) exit 2 644 } 645 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 646 # which mishandles some comparisons of empty strings to integers. 647 if (length(v2)) exit 1 648 if (length(v1)) exit 2 649 } 650' 651 652test -n "$DJDIR" || exec 7<&0 </dev/null 653exec 6>&1 654 655# Name of the host. 656# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 657# so uname gets run too. 658ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 659 660# 661# Initializations. 662# 663ac_default_prefix=/usr/local 664ac_clean_files= 665ac_config_libobj_dir=. 666LIBOBJS= 667cross_compiling=no 668subdirs= 669MFLAGS= 670MAKEFLAGS= 671 672# Identity of this package. 673PACKAGE_NAME='xtrans' 674PACKAGE_TARNAME='xtrans' 675PACKAGE_VERSION='1.5.0' 676PACKAGE_STRING='xtrans 1.5.0' 677PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues' 678PACKAGE_URL='' 679 680ac_unique_file="Makefile.am" 681# Factoring default headers for most tests. 682ac_includes_default="\ 683#include <stddef.h> 684#ifdef HAVE_STDIO_H 685# include <stdio.h> 686#endif 687#ifdef HAVE_STDLIB_H 688# include <stdlib.h> 689#endif 690#ifdef HAVE_STRING_H 691# include <string.h> 692#endif 693#ifdef HAVE_INTTYPES_H 694# include <inttypes.h> 695#endif 696#ifdef HAVE_STDINT_H 697# include <stdint.h> 698#endif 699#ifdef HAVE_STRINGS_H 700# include <strings.h> 701#endif 702#ifdef HAVE_SYS_TYPES_H 703# include <sys/types.h> 704#endif 705#ifdef HAVE_SYS_STAT_H 706# include <sys/stat.h> 707#endif 708#ifdef HAVE_UNISTD_H 709# include <unistd.h> 710#endif" 711 712ac_header_c_list= 713ac_subst_vars='am__EXEEXT_FALSE 714am__EXEEXT_TRUE 715LTLIBOBJS 716LIBOBJS 717sticky_bit_define 718fchown_define 719HAVE_STYLESHEETS_FALSE 720HAVE_STYLESHEETS_TRUE 721XSL_STYLESHEET 722STYLESHEET_SRCDIR 723XORG_SGML_PATH 724HAVE_XSLTPROC_FALSE 725HAVE_XSLTPROC_TRUE 726XSLTPROC 727HAVE_FOP_FALSE 728HAVE_FOP_TRUE 729FOP 730HAVE_XMLTO_FALSE 731HAVE_XMLTO_TRUE 732HAVE_XMLTO_TEXT_FALSE 733HAVE_XMLTO_TEXT_TRUE 734XMLTO 735ENABLE_DOCS_FALSE 736ENABLE_DOCS_TRUE 737MAN_SUBSTS 738XORG_MAN_PAGE 739ADMIN_MAN_DIR 740DRIVER_MAN_DIR 741MISC_MAN_DIR 742FILE_MAN_DIR 743LIB_MAN_DIR 744APP_MAN_DIR 745ADMIN_MAN_SUFFIX 746DRIVER_MAN_SUFFIX 747MISC_MAN_SUFFIX 748FILE_MAN_SUFFIX 749LIB_MAN_SUFFIX 750APP_MAN_SUFFIX 751SED 752host_os 753host_vendor 754host_cpu 755host 756build_os 757build_vendor 758build_cpu 759build 760INSTALL_CMD 761PKG_CONFIG_LIBDIR 762PKG_CONFIG_PATH 763PKG_CONFIG 764CHANGELOG_CMD 765STRICT_CFLAGS 766CWARNFLAGS 767BASE_CFLAGS 768am__fastdepCC_FALSE 769am__fastdepCC_TRUE 770CCDEPMODE 771am__nodep 772AMDEPBACKSLASH 773AMDEP_FALSE 774AMDEP_TRUE 775am__include 776DEPDIR 777OBJEXT 778EXEEXT 779ac_ct_CC 780CPPFLAGS 781LDFLAGS 782CFLAGS 783CC 784AM_BACKSLASH 785AM_DEFAULT_VERBOSITY 786AM_DEFAULT_V 787AM_V 788CSCOPE 789ETAGS 790CTAGS 791am__untar 792am__tar 793AMTAR 794am__leading_dot 795SET_MAKE 796AWK 797mkdir_p 798MKDIR_P 799INSTALL_STRIP_PROGRAM 800STRIP 801install_sh 802MAKEINFO 803AUTOHEADER 804AUTOMAKE 805AUTOCONF 806ACLOCAL 807VERSION 808PACKAGE 809CYGPATH_W 810am__isrc 811INSTALL_DATA 812INSTALL_SCRIPT 813INSTALL_PROGRAM 814target_alias 815host_alias 816build_alias 817LIBS 818ECHO_T 819ECHO_N 820ECHO_C 821DEFS 822mandir 823localedir 824libdir 825psdir 826pdfdir 827dvidir 828htmldir 829infodir 830docdir 831oldincludedir 832includedir 833runstatedir 834localstatedir 835sharedstatedir 836sysconfdir 837datadir 838datarootdir 839libexecdir 840sbindir 841bindir 842program_transform_name 843prefix 844exec_prefix 845PACKAGE_URL 846PACKAGE_BUGREPORT 847PACKAGE_STRING 848PACKAGE_VERSION 849PACKAGE_TARNAME 850PACKAGE_NAME 851PATH_SEPARATOR 852SHELL 853am__quote' 854ac_subst_files='' 855ac_user_opts=' 856enable_option_checking 857enable_silent_rules 858enable_dependency_tracking 859enable_selective_werror 860enable_strict_compilation 861enable_docs 862with_xmlto 863with_fop 864with_xsltproc 865' 866 ac_precious_vars='build_alias 867host_alias 868target_alias 869CC 870CFLAGS 871LDFLAGS 872LIBS 873CPPFLAGS 874PKG_CONFIG 875PKG_CONFIG_PATH 876PKG_CONFIG_LIBDIR 877XMLTO 878FOP 879XSLTPROC' 880 881 882# Initialize some variables set by options. 883ac_init_help= 884ac_init_version=false 885ac_unrecognized_opts= 886ac_unrecognized_sep= 887# The variables have the same names as the options, with 888# dashes changed to underlines. 889cache_file=/dev/null 890exec_prefix=NONE 891no_create= 892no_recursion= 893prefix=NONE 894program_prefix=NONE 895program_suffix=NONE 896program_transform_name=s,x,x, 897silent= 898site= 899srcdir= 900verbose= 901x_includes=NONE 902x_libraries=NONE 903 904# Installation directory options. 905# These are left unexpanded so users can "make install exec_prefix=/foo" 906# and all the variables that are supposed to be based on exec_prefix 907# by default will actually change. 908# Use braces instead of parens because sh, perl, etc. also accept them. 909# (The list follows the same order as the GNU Coding Standards.) 910bindir='${exec_prefix}/bin' 911sbindir='${exec_prefix}/sbin' 912libexecdir='${exec_prefix}/libexec' 913datarootdir='${prefix}/share' 914datadir='${datarootdir}' 915sysconfdir='${prefix}/etc' 916sharedstatedir='${prefix}/com' 917localstatedir='${prefix}/var' 918runstatedir='${localstatedir}/run' 919includedir='${prefix}/include' 920oldincludedir='/usr/include' 921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 922infodir='${datarootdir}/info' 923htmldir='${docdir}' 924dvidir='${docdir}' 925pdfdir='${docdir}' 926psdir='${docdir}' 927libdir='${exec_prefix}/lib' 928localedir='${datarootdir}/locale' 929mandir='${datarootdir}/man' 930 931ac_prev= 932ac_dashdash= 933for ac_option 934do 935 # If the previous option needs an argument, assign it. 936 if test -n "$ac_prev"; then 937 eval $ac_prev=\$ac_option 938 ac_prev= 939 continue 940 fi 941 942 case $ac_option in 943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 944 *=) ac_optarg= ;; 945 *) ac_optarg=yes ;; 946 esac 947 948 case $ac_dashdash$ac_option in 949 --) 950 ac_dashdash=yes ;; 951 952 -bindir | --bindir | --bindi | --bind | --bin | --bi) 953 ac_prev=bindir ;; 954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 955 bindir=$ac_optarg ;; 956 957 -build | --build | --buil | --bui | --bu) 958 ac_prev=build_alias ;; 959 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 960 build_alias=$ac_optarg ;; 961 962 -cache-file | --cache-file | --cache-fil | --cache-fi \ 963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 964 ac_prev=cache_file ;; 965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 967 cache_file=$ac_optarg ;; 968 969 --config-cache | -C) 970 cache_file=config.cache ;; 971 972 -datadir | --datadir | --datadi | --datad) 973 ac_prev=datadir ;; 974 -datadir=* | --datadir=* | --datadi=* | --datad=*) 975 datadir=$ac_optarg ;; 976 977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 978 | --dataroo | --dataro | --datar) 979 ac_prev=datarootdir ;; 980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 982 datarootdir=$ac_optarg ;; 983 984 -disable-* | --disable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1014 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1015 ac_useropt_orig=$ac_useropt 1016 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1017 case $ac_user_opts in 1018 *" 1019"enable_$ac_useropt" 1020"*) ;; 1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1022 ac_unrecognized_sep=', ';; 1023 esac 1024 eval enable_$ac_useropt=\$ac_optarg ;; 1025 1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1028 | --exec | --exe | --ex) 1029 ac_prev=exec_prefix ;; 1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1032 | --exec=* | --exe=* | --ex=*) 1033 exec_prefix=$ac_optarg ;; 1034 1035 -gas | --gas | --ga | --g) 1036 # Obsolete; use --with-gas. 1037 with_gas=yes ;; 1038 1039 -help | --help | --hel | --he | -h) 1040 ac_init_help=long ;; 1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1042 ac_init_help=recursive ;; 1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1044 ac_init_help=short ;; 1045 1046 -host | --host | --hos | --ho) 1047 ac_prev=host_alias ;; 1048 -host=* | --host=* | --hos=* | --ho=*) 1049 host_alias=$ac_optarg ;; 1050 1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1052 ac_prev=htmldir ;; 1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1054 | --ht=*) 1055 htmldir=$ac_optarg ;; 1056 1057 -includedir | --includedir | --includedi | --included | --include \ 1058 | --includ | --inclu | --incl | --inc) 1059 ac_prev=includedir ;; 1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1061 | --includ=* | --inclu=* | --incl=* | --inc=*) 1062 includedir=$ac_optarg ;; 1063 1064 -infodir | --infodir | --infodi | --infod | --info | --inf) 1065 ac_prev=infodir ;; 1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1067 infodir=$ac_optarg ;; 1068 1069 -libdir | --libdir | --libdi | --libd) 1070 ac_prev=libdir ;; 1071 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1072 libdir=$ac_optarg ;; 1073 1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1075 | --libexe | --libex | --libe) 1076 ac_prev=libexecdir ;; 1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1078 | --libexe=* | --libex=* | --libe=*) 1079 libexecdir=$ac_optarg ;; 1080 1081 -localedir | --localedir | --localedi | --localed | --locale) 1082 ac_prev=localedir ;; 1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1084 localedir=$ac_optarg ;; 1085 1086 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1087 | --localstate | --localstat | --localsta | --localst | --locals) 1088 ac_prev=localstatedir ;; 1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1091 localstatedir=$ac_optarg ;; 1092 1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1094 ac_prev=mandir ;; 1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1096 mandir=$ac_optarg ;; 1097 1098 -nfp | --nfp | --nf) 1099 # Obsolete; use --without-fp. 1100 with_fp=no ;; 1101 1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1103 | --no-cr | --no-c | -n) 1104 no_create=yes ;; 1105 1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1108 no_recursion=yes ;; 1109 1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1112 | --oldin | --oldi | --old | --ol | --o) 1113 ac_prev=oldincludedir ;; 1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1117 oldincludedir=$ac_optarg ;; 1118 1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1120 ac_prev=prefix ;; 1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1122 prefix=$ac_optarg ;; 1123 1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1125 | --program-pre | --program-pr | --program-p) 1126 ac_prev=program_prefix ;; 1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1129 program_prefix=$ac_optarg ;; 1130 1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1132 | --program-suf | --program-su | --program-s) 1133 ac_prev=program_suffix ;; 1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1136 program_suffix=$ac_optarg ;; 1137 1138 -program-transform-name | --program-transform-name \ 1139 | --program-transform-nam | --program-transform-na \ 1140 | --program-transform-n | --program-transform- \ 1141 | --program-transform | --program-transfor \ 1142 | --program-transfo | --program-transf \ 1143 | --program-trans | --program-tran \ 1144 | --progr-tra | --program-tr | --program-t) 1145 ac_prev=program_transform_name ;; 1146 -program-transform-name=* | --program-transform-name=* \ 1147 | --program-transform-nam=* | --program-transform-na=* \ 1148 | --program-transform-n=* | --program-transform-=* \ 1149 | --program-transform=* | --program-transfor=* \ 1150 | --program-transfo=* | --program-transf=* \ 1151 | --program-trans=* | --program-tran=* \ 1152 | --progr-tra=* | --program-tr=* | --program-t=*) 1153 program_transform_name=$ac_optarg ;; 1154 1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1156 ac_prev=pdfdir ;; 1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1158 pdfdir=$ac_optarg ;; 1159 1160 -psdir | --psdir | --psdi | --psd | --ps) 1161 ac_prev=psdir ;; 1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1163 psdir=$ac_optarg ;; 1164 1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1166 | -silent | --silent | --silen | --sile | --sil) 1167 silent=yes ;; 1168 1169 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1170 | --runstate | --runstat | --runsta | --runst | --runs \ 1171 | --run | --ru | --r) 1172 ac_prev=runstatedir ;; 1173 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1174 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1175 | --run=* | --ru=* | --r=*) 1176 runstatedir=$ac_optarg ;; 1177 1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1179 ac_prev=sbindir ;; 1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1181 | --sbi=* | --sb=*) 1182 sbindir=$ac_optarg ;; 1183 1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1186 | --sharedst | --shareds | --shared | --share | --shar \ 1187 | --sha | --sh) 1188 ac_prev=sharedstatedir ;; 1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1192 | --sha=* | --sh=*) 1193 sharedstatedir=$ac_optarg ;; 1194 1195 -site | --site | --sit) 1196 ac_prev=site ;; 1197 -site=* | --site=* | --sit=*) 1198 site=$ac_optarg ;; 1199 1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1201 ac_prev=srcdir ;; 1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1203 srcdir=$ac_optarg ;; 1204 1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1206 | --syscon | --sysco | --sysc | --sys | --sy) 1207 ac_prev=sysconfdir ;; 1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1210 sysconfdir=$ac_optarg ;; 1211 1212 -target | --target | --targe | --targ | --tar | --ta | --t) 1213 ac_prev=target_alias ;; 1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1215 target_alias=$ac_optarg ;; 1216 1217 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1218 verbose=yes ;; 1219 1220 -version | --version | --versio | --versi | --vers | -V) 1221 ac_init_version=: ;; 1222 1223 -with-* | --with-*) 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1225 # Reject names that are not valid shell variable names. 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error $? "invalid package name: \`$ac_useropt'" 1228 ac_useropt_orig=$ac_useropt 1229 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1230 case $ac_user_opts in 1231 *" 1232"with_$ac_useropt" 1233"*) ;; 1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1235 ac_unrecognized_sep=', ';; 1236 esac 1237 eval with_$ac_useropt=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error $? "invalid package name: \`$ac_useropt'" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248"with_$ac_useropt" 1249"*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1274Try \`$0 --help' for more information" 1275 ;; 1276 1277 *=*) 1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1279 # Reject names that are not valid shell variable names. 1280 case $ac_envvar in #( 1281 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1283 esac 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 as_fn_error $? "missing argument to $ac_option" 1301fi 1302 1303if test -n "$ac_unrecognized_opts"; then 1304 case $enable_option_checking in 1305 no) ;; 1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1307 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1308 esac 1309fi 1310 1311# Check all directory arguments for consistency. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir runstatedir 1316do 1317 eval ac_val=\$$ac_var 1318 # Remove trailing slashes. 1319 case $ac_val in 1320 */ ) 1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1322 eval $ac_var=\$ac_val;; 1323 esac 1324 # Be sure to have absolute directory names. 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 elif test "x$build_alias" != "x$host_alias"; then 1344 cross_compiling=yes 1345 fi 1346fi 1347 1348ac_tool_prefix= 1349test -n "$host_alias" && ac_tool_prefix=$host_alias- 1350 1351test "$silent" = yes && exec 6>/dev/null 1352 1353 1354ac_pwd=`pwd` && test -n "$ac_pwd" && 1355ac_ls_di=`ls -di .` && 1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1357 as_fn_error $? "working directory cannot be determined" 1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1359 as_fn_error $? "pwd does not report name of working directory" 1360 1361 1362# Find the source files, if location was not specified. 1363if test -z "$srcdir"; then 1364 ac_srcdir_defaulted=yes 1365 # Try the directory containing this script, then the parent directory. 1366 ac_confdir=`$as_dirname -- "$as_myself" || 1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1368 X"$as_myself" : 'X\(//\)[^/]' \| \ 1369 X"$as_myself" : 'X\(//\)$' \| \ 1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1371printf "%s\n" X"$as_myself" | 1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\/\)[^/].*/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)$/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\).*/{ 1385 s//\1/ 1386 q 1387 } 1388 s/.*/./; q'` 1389 srcdir=$ac_confdir 1390 if test ! -r "$srcdir/$ac_unique_file"; then 1391 srcdir=.. 1392 fi 1393else 1394 ac_srcdir_defaulted=no 1395fi 1396if test ! -r "$srcdir/$ac_unique_file"; then 1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1399fi 1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_abs_confdir=`( 1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1403 pwd)` 1404# When building in place, set srcdir=. 1405if test "$ac_abs_confdir" = "$ac_pwd"; then 1406 srcdir=. 1407fi 1408# Remove unnecessary trailing slashes from srcdir. 1409# Double slashes in file names in object file debugging info 1410# mess up M-x gdb in Emacs. 1411case $srcdir in 1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1413esac 1414for ac_var in $ac_precious_vars; do 1415 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_env_${ac_var}_value=\$${ac_var} 1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1419done 1420 1421# 1422# Report the --help message. 1423# 1424if test "$ac_init_help" = "long"; then 1425 # Omit some internal or obsolete options to make the list less imposing. 1426 # This message is too long to be a string in the A/UX 3.1 sh. 1427 cat <<_ACEOF 1428\`configure' configures xtrans 1.5.0 to adapt to many kinds of systems. 1429 1430Usage: $0 [OPTION]... [VAR=VALUE]... 1431 1432To assign environment variables (e.g., CC, CFLAGS...), specify them as 1433VAR=VALUE. See below for descriptions of some of the useful variables. 1434 1435Defaults for the options are specified in brackets. 1436 1437Configuration: 1438 -h, --help display this help and exit 1439 --help=short display options specific to this package 1440 --help=recursive display the short help of all the included packages 1441 -V, --version display version information and exit 1442 -q, --quiet, --silent do not print \`checking ...' messages 1443 --cache-file=FILE cache test results in FILE [disabled] 1444 -C, --config-cache alias for \`--cache-file=config.cache' 1445 -n, --no-create do not create output files 1446 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1447 1448Installation directories: 1449 --prefix=PREFIX install architecture-independent files in PREFIX 1450 [$ac_default_prefix] 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1452 [PREFIX] 1453 1454By default, \`make install' will install all the files in 1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1456an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1457for instance \`--prefix=\$HOME'. 1458 1459For better control, use the options below. 1460 1461Fine tuning of the installation directories: 1462 --bindir=DIR user executables [EPREFIX/bin] 1463 --sbindir=DIR system admin executables [EPREFIX/sbin] 1464 --libexecdir=DIR program executables [EPREFIX/libexec] 1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1468 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1469 --libdir=DIR object code libraries [EPREFIX/lib] 1470 --includedir=DIR C header files [PREFIX/include] 1471 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1474 --infodir=DIR info documentation [DATAROOTDIR/info] 1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1476 --mandir=DIR man documentation [DATAROOTDIR/man] 1477 --docdir=DIR documentation root [DATAROOTDIR/doc/xtrans] 1478 --htmldir=DIR html documentation [DOCDIR] 1479 --dvidir=DIR dvi documentation [DOCDIR] 1480 --pdfdir=DIR pdf documentation [DOCDIR] 1481 --psdir=DIR ps documentation [DOCDIR] 1482_ACEOF 1483 1484 cat <<\_ACEOF 1485 1486Program names: 1487 --program-prefix=PREFIX prepend PREFIX to installed program names 1488 --program-suffix=SUFFIX append SUFFIX to installed program names 1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1490 1491System types: 1492 --build=BUILD configure for building on BUILD [guessed] 1493 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1494_ACEOF 1495fi 1496 1497if test -n "$ac_init_help"; then 1498 case $ac_init_help in 1499 short | recursive ) echo "Configuration of xtrans 1.5.0:";; 1500 esac 1501 cat <<\_ACEOF 1502 1503Optional Features: 1504 --disable-option-checking ignore unrecognized --enable/--with options 1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1507 --enable-silent-rules less verbose build output (undo: "make V=1") 1508 --disable-silent-rules verbose build output (undo: "make V=0") 1509 --enable-dependency-tracking 1510 do not reject slow dependency extractors 1511 --disable-dependency-tracking 1512 speeds up one-time build 1513 --disable-selective-werror 1514 Turn off selective compiler errors. (default: 1515 enabled) 1516 --enable-strict-compilation 1517 Enable all warnings from compiler and make them 1518 errors (default: disabled) 1519 --enable-docs Enable building the documentation (default: yes) 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-xmlto Use xmlto to regenerate documentation (default: 1525 auto) 1526 --with-fop Use fop to regenerate documentation (default: auto) 1527 --with-xsltproc Use xsltproc for the transformation of XML documents 1528 (default: auto) 1529 1530Some influential environment variables: 1531 CC C compiler command 1532 CFLAGS C compiler flags 1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1534 nonstandard directory <lib dir> 1535 LIBS libraries to pass to the linker, e.g. -l<library> 1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1537 you have headers in a nonstandard directory <include dir> 1538 PKG_CONFIG path to pkg-config utility 1539 PKG_CONFIG_PATH 1540 directories to add to pkg-config's search path 1541 PKG_CONFIG_LIBDIR 1542 path overriding pkg-config's built-in search path 1543 XMLTO Path to xmlto command 1544 FOP Path to fop command 1545 XSLTPROC Path to xsltproc command 1546 1547Use these variables to override the choices made by `configure' or to help 1548it to find libraries and programs with nonstandard names/locations. 1549 1550Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>. 1551_ACEOF 1552ac_status=$? 1553fi 1554 1555if test "$ac_init_help" = "recursive"; then 1556 # If there are subdirs, report their specific --help. 1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1558 test -d "$ac_dir" || 1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1560 continue 1561 ac_builddir=. 1562 1563case "$ac_dir" in 1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565*) 1566 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1567 # A ".." for each directory in $ac_dir_suffix. 1568 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1569 case $ac_top_builddir_sub in 1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1572 esac ;; 1573esac 1574ac_abs_top_builddir=$ac_pwd 1575ac_abs_builddir=$ac_pwd$ac_dir_suffix 1576# for backward compatibility: 1577ac_top_builddir=$ac_top_build_prefix 1578 1579case $srcdir in 1580 .) # We are building in place. 1581 ac_srcdir=. 1582 ac_top_srcdir=$ac_top_builddir_sub 1583 ac_abs_top_srcdir=$ac_pwd ;; 1584 [\\/]* | ?:[\\/]* ) # Absolute name. 1585 ac_srcdir=$srcdir$ac_dir_suffix; 1586 ac_top_srcdir=$srcdir 1587 ac_abs_top_srcdir=$srcdir ;; 1588 *) # Relative name. 1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1590 ac_top_srcdir=$ac_top_build_prefix$srcdir 1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1592esac 1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1594 1595 cd "$ac_dir" || { ac_status=$?; continue; } 1596 # Check for configure.gnu first; this name is used for a wrapper for 1597 # Metaconfig's "Configure" on case-insensitive file systems. 1598 if test -f "$ac_srcdir/configure.gnu"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1601 elif test -f "$ac_srcdir/configure"; then 1602 echo && 1603 $SHELL "$ac_srcdir/configure" --help=recursive 1604 else 1605 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1606 fi || ac_status=$? 1607 cd "$ac_pwd" || { ac_status=$?; break; } 1608 done 1609fi 1610 1611test -n "$ac_init_help" && exit $ac_status 1612if $ac_init_version; then 1613 cat <<\_ACEOF 1614xtrans configure 1.5.0 1615generated by GNU Autoconf 2.71 1616 1617Copyright (C) 2021 Free Software Foundation, Inc. 1618This configure script is free software; the Free Software Foundation 1619gives unlimited permission to copy, distribute and modify it. 1620_ACEOF 1621 exit 1622fi 1623 1624## ------------------------ ## 1625## Autoconf initialization. ## 1626## ------------------------ ## 1627 1628# ac_fn_c_try_compile LINENO 1629# -------------------------- 1630# Try to compile conftest.$ac_ext, and return whether this succeeded. 1631ac_fn_c_try_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 rm -f conftest.$ac_objext conftest.beam 1635 if { { ac_try="$ac_compile" 1636case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641printf "%s\n" "$ac_try_echo"; } >&5 1642 (eval "$ac_compile") 2>conftest.err 1643 ac_status=$? 1644 if test -s conftest.err; then 1645 grep -v '^ *+' conftest.err >conftest.er1 1646 cat conftest.er1 >&5 1647 mv -f conftest.er1 conftest.err 1648 fi 1649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1650 test $ac_status = 0; } && { 1651 test -z "$ac_c_werror_flag" || 1652 test ! -s conftest.err 1653 } && test -s conftest.$ac_objext 1654then : 1655 ac_retval=0 1656else $as_nop 1657 printf "%s\n" "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_compile 1666 1667# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1668# ------------------------------------------------------------------ 1669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1670# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1671ac_fn_check_decl () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 as_decl_name=`echo $2|sed 's/ *(.*//'` 1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1676printf %s "checking whether $as_decl_name is declared... " >&6; } 1677if eval test \${$3+y} 1678then : 1679 printf %s "(cached) " >&6 1680else $as_nop 1681 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1682 eval ac_save_FLAGS=\$$6 1683 as_fn_append $6 " $5" 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685/* end confdefs.h. */ 1686$4 1687int 1688main (void) 1689{ 1690#ifndef $as_decl_name 1691#ifdef __cplusplus 1692 (void) $as_decl_use; 1693#else 1694 (void) $as_decl_name; 1695#endif 1696#endif 1697 1698 ; 1699 return 0; 1700} 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO" 1703then : 1704 eval "$3=yes" 1705else $as_nop 1706 eval "$3=no" 1707fi 1708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1709 eval $6=\$ac_save_FLAGS 1710 1711fi 1712eval ac_res=\$$3 1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714printf "%s\n" "$ac_res" >&6; } 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 1717} # ac_fn_check_decl 1718 1719# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1720# ------------------------------------------------------- 1721# Tests whether HEADER exists and can be compiled using the include files in 1722# INCLUDES, setting the cache variable VAR accordingly. 1723ac_fn_c_check_header_compile () 1724{ 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1727printf %s "checking for $2... " >&6; } 1728if eval test \${$3+y} 1729then : 1730 printf %s "(cached) " >&6 1731else $as_nop 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO" 1738then : 1739 eval "$3=yes" 1740else $as_nop 1741 eval "$3=no" 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1744fi 1745eval ac_res=\$$3 1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1747printf "%s\n" "$ac_res" >&6; } 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 1750} # ac_fn_c_check_header_compile 1751 1752# ac_fn_c_try_link LINENO 1753# ----------------------- 1754# Try to link conftest.$ac_ext, and return whether this succeeded. 1755ac_fn_c_try_link () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1759 if { { ac_try="$ac_link" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765printf "%s\n" "$ac_try_echo"; } >&5 1766 (eval "$ac_link") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } && { 1775 test -z "$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 } && test -s conftest$ac_exeext && { 1778 test "$cross_compiling" = yes || 1779 test -x conftest$ac_exeext 1780 } 1781then : 1782 ac_retval=0 1783else $as_nop 1784 printf "%s\n" "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 1788fi 1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1791 # interfere with the next link command; also delete a directory that is 1792 # left behind by Apple's compiler. We do this before executing the actions. 1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_link 1798 1799# ac_fn_c_check_func LINENO FUNC VAR 1800# ---------------------------------- 1801# Tests whether FUNC exists, setting the cache variable VAR accordingly 1802ac_fn_c_check_func () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1806printf %s "checking for $2... " >&6; } 1807if eval test \${$3+y} 1808then : 1809 printf %s "(cached) " >&6 1810else $as_nop 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1814 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1815#define $2 innocuous_$2 1816 1817/* System header to define __stub macros and hopefully few prototypes, 1818 which can conflict with char $2 (); below. */ 1819 1820#include <limits.h> 1821#undef $2 1822 1823/* Override any GCC internal prototype to avoid an error. 1824 Use char because int might match the return type of a GCC 1825 builtin and then its argument prototype would still apply. */ 1826#ifdef __cplusplus 1827extern "C" 1828#endif 1829char $2 (); 1830/* The GNU C library defines this for functions which it implements 1831 to always fail with ENOSYS. Some functions are actually named 1832 something starting with __ and the normal name is an alias. */ 1833#if defined __stub_$2 || defined __stub___$2 1834choke me 1835#endif 1836 1837int 1838main (void) 1839{ 1840return $2 (); 1841 ; 1842 return 0; 1843} 1844_ACEOF 1845if ac_fn_c_try_link "$LINENO" 1846then : 1847 eval "$3=yes" 1848else $as_nop 1849 eval "$3=no" 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1852 conftest$ac_exeext conftest.$ac_ext 1853fi 1854eval ac_res=\$$3 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1856printf "%s\n" "$ac_res" >&6; } 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_func 1860ac_configure_args_raw= 1861for ac_arg 1862do 1863 case $ac_arg in 1864 *\'*) 1865 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1866 esac 1867 as_fn_append ac_configure_args_raw " '$ac_arg'" 1868done 1869 1870case $ac_configure_args_raw in 1871 *$as_nl*) 1872 ac_safe_unquote= ;; 1873 *) 1874 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1875 ac_unsafe_a="$ac_unsafe_z#~" 1876 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1877 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1878esac 1879 1880cat >config.log <<_ACEOF 1881This file contains any messages produced by compilers while 1882running configure, to aid debugging if configure makes a mistake. 1883 1884It was created by xtrans $as_me 1.5.0, which was 1885generated by GNU Autoconf 2.71. Invocation command line was 1886 1887 $ $0$ac_configure_args_raw 1888 1889_ACEOF 1890exec 5>>config.log 1891{ 1892cat <<_ASUNAME 1893## --------- ## 1894## Platform. ## 1895## --------- ## 1896 1897hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1898uname -m = `(uname -m) 2>/dev/null || echo unknown` 1899uname -r = `(uname -r) 2>/dev/null || echo unknown` 1900uname -s = `(uname -s) 2>/dev/null || echo unknown` 1901uname -v = `(uname -v) 2>/dev/null || echo unknown` 1902 1903/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1904/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1905 1906/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1907/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1908/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1909/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1910/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1911/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1912/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1913 1914_ASUNAME 1915 1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1917for as_dir in $PATH 1918do 1919 IFS=$as_save_IFS 1920 case $as_dir in #((( 1921 '') as_dir=./ ;; 1922 */) ;; 1923 *) as_dir=$as_dir/ ;; 1924 esac 1925 printf "%s\n" "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Sanitize IFS. 1996 IFS=" "" $as_nl" 1997 # Save into config.log some information that might help in debugging. 1998 { 1999 echo 2000 2001 printf "%s\n" "## ---------------- ## 2002## Cache variables. ## 2003## ---------------- ##" 2004 echo 2005 # The following way of writing the cache mishandles newlines in values, 2006( 2007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2008 eval ac_val=\$$ac_var 2009 case $ac_val in #( 2010 *${as_nl}*) 2011 case $ac_var in #( 2012 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2013printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2014 esac 2015 case $ac_var in #( 2016 _ | IFS | as_nl) ;; #( 2017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2018 *) { eval $ac_var=; unset $ac_var;} ;; 2019 esac ;; 2020 esac 2021 done 2022 (set) 2>&1 | 2023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2024 *${as_nl}ac_space=\ *) 2025 sed -n \ 2026 "s/'\''/'\''\\\\'\'''\''/g; 2027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2028 ;; #( 2029 *) 2030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2031 ;; 2032 esac | 2033 sort 2034) 2035 echo 2036 2037 printf "%s\n" "## ----------------- ## 2038## Output variables. ## 2039## ----------------- ##" 2040 echo 2041 for ac_var in $ac_subst_vars 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 printf "%s\n" "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 2051 if test -n "$ac_subst_files"; then 2052 printf "%s\n" "## ------------------- ## 2053## File substitutions. ## 2054## ------------------- ##" 2055 echo 2056 for ac_var in $ac_subst_files 2057 do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in 2060 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2061 esac 2062 printf "%s\n" "$ac_var='\''$ac_val'\''" 2063 done | sort 2064 echo 2065 fi 2066 2067 if test -s confdefs.h; then 2068 printf "%s\n" "## ----------- ## 2069## confdefs.h. ## 2070## ----------- ##" 2071 echo 2072 cat confdefs.h 2073 echo 2074 fi 2075 test "$ac_signal" != 0 && 2076 printf "%s\n" "$as_me: caught signal $ac_signal" 2077 printf "%s\n" "$as_me: exit $exit_status" 2078 } >&5 2079 rm -f core *.core core.conftest.* && 2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2081 exit $exit_status 2082' 0 2083for ac_signal in 1 2 13 15; do 2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2085done 2086ac_signal=0 2087 2088# confdefs.h avoids OS command line length limits that DEFS can exceed. 2089rm -f -r conftest* confdefs.h 2090 2091printf "%s\n" "/* confdefs.h */" > confdefs.h 2092 2093# Predefined preprocessor variables. 2094 2095printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2096 2097printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2098 2099printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2100 2101printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2102 2103printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2104 2105printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2106 2107 2108# Let the site file select an alternate cache file if it wants to. 2109# Prefer an explicitly selected file to automatically selected ones. 2110if test -n "$CONFIG_SITE"; then 2111 ac_site_files="$CONFIG_SITE" 2112elif test "x$prefix" != xNONE; then 2113 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2114else 2115 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2116fi 2117 2118for ac_site_file in $ac_site_files 2119do 2120 case $ac_site_file in #( 2121 */*) : 2122 ;; #( 2123 *) : 2124 ac_site_file=./$ac_site_file ;; 2125esac 2126 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2128printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2129 sed 's/^/| /' "$ac_site_file" >&5 2130 . "$ac_site_file" \ 2131 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2132printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2133as_fn_error $? "failed to load site script $ac_site_file 2134See \`config.log' for more details" "$LINENO" 5; } 2135 fi 2136done 2137 2138if test -r "$cache_file"; then 2139 # Some versions of bash will fail to source /dev/null (special files 2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2143printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2144 case $cache_file in 2145 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2146 *) . "./$cache_file";; 2147 esac 2148 fi 2149else 2150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2151printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2152 >$cache_file 2153fi 2154 2155# Test code for whether the C compiler supports C89 (global declarations) 2156ac_c_conftest_c89_globals=' 2157/* Does the compiler advertise C89 conformance? 2158 Do not test the value of __STDC__, because some compilers set it to 0 2159 while being otherwise adequately conformant. */ 2160#if !defined __STDC__ 2161# error "Compiler does not advertise C89 conformance" 2162#endif 2163 2164#include <stddef.h> 2165#include <stdarg.h> 2166struct stat; 2167/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2168struct buf { int x; }; 2169struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2170static char *e (p, i) 2171 char **p; 2172 int i; 2173{ 2174 return p[i]; 2175} 2176static char *f (char * (*g) (char **, int), char **p, ...) 2177{ 2178 char *s; 2179 va_list v; 2180 va_start (v,p); 2181 s = g (p, va_arg (v,int)); 2182 va_end (v); 2183 return s; 2184} 2185 2186/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2187 function prototypes and stuff, but not \xHH hex character constants. 2188 These do not provoke an error unfortunately, instead are silently treated 2189 as an "x". The following induces an error, until -std is added to get 2190 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2191 array size at least. It is necessary to write \x00 == 0 to get something 2192 that is true only with -std. */ 2193int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2194 2195/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2196 inside strings and character constants. */ 2197#define FOO(x) '\''x'\'' 2198int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2199 2200int test (int i, double x); 2201struct s1 {int (*f) (int a);}; 2202struct s2 {int (*f) (double a);}; 2203int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2204 int, int);' 2205 2206# Test code for whether the C compiler supports C89 (body of main). 2207ac_c_conftest_c89_main=' 2208ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2209' 2210 2211# Test code for whether the C compiler supports C99 (global declarations) 2212ac_c_conftest_c99_globals=' 2213// Does the compiler advertise C99 conformance? 2214#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2215# error "Compiler does not advertise C99 conformance" 2216#endif 2217 2218#include <stdbool.h> 2219extern int puts (const char *); 2220extern int printf (const char *, ...); 2221extern int dprintf (int, const char *, ...); 2222extern void *malloc (size_t); 2223 2224// Check varargs macros. These examples are taken from C99 6.10.3.5. 2225// dprintf is used instead of fprintf to avoid needing to declare 2226// FILE and stderr. 2227#define debug(...) dprintf (2, __VA_ARGS__) 2228#define showlist(...) puts (#__VA_ARGS__) 2229#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2230static void 2231test_varargs_macros (void) 2232{ 2233 int x = 1234; 2234 int y = 5678; 2235 debug ("Flag"); 2236 debug ("X = %d\n", x); 2237 showlist (The first, second, and third items.); 2238 report (x>y, "x is %d but y is %d", x, y); 2239} 2240 2241// Check long long types. 2242#define BIG64 18446744073709551615ull 2243#define BIG32 4294967295ul 2244#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2245#if !BIG_OK 2246 #error "your preprocessor is broken" 2247#endif 2248#if BIG_OK 2249#else 2250 #error "your preprocessor is broken" 2251#endif 2252static long long int bignum = -9223372036854775807LL; 2253static unsigned long long int ubignum = BIG64; 2254 2255struct incomplete_array 2256{ 2257 int datasize; 2258 double data[]; 2259}; 2260 2261struct named_init { 2262 int number; 2263 const wchar_t *name; 2264 double average; 2265}; 2266 2267typedef const char *ccp; 2268 2269static inline int 2270test_restrict (ccp restrict text) 2271{ 2272 // See if C++-style comments work. 2273 // Iterate through items via the restricted pointer. 2274 // Also check for declarations in for loops. 2275 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2276 continue; 2277 return 0; 2278} 2279 2280// Check varargs and va_copy. 2281static bool 2282test_varargs (const char *format, ...) 2283{ 2284 va_list args; 2285 va_start (args, format); 2286 va_list args_copy; 2287 va_copy (args_copy, args); 2288 2289 const char *str = ""; 2290 int number = 0; 2291 float fnumber = 0; 2292 2293 while (*format) 2294 { 2295 switch (*format++) 2296 { 2297 case '\''s'\'': // string 2298 str = va_arg (args_copy, const char *); 2299 break; 2300 case '\''d'\'': // int 2301 number = va_arg (args_copy, int); 2302 break; 2303 case '\''f'\'': // float 2304 fnumber = va_arg (args_copy, double); 2305 break; 2306 default: 2307 break; 2308 } 2309 } 2310 va_end (args_copy); 2311 va_end (args); 2312 2313 return *str && number && fnumber; 2314} 2315' 2316 2317# Test code for whether the C compiler supports C99 (body of main). 2318ac_c_conftest_c99_main=' 2319 // Check bool. 2320 _Bool success = false; 2321 success |= (argc != 0); 2322 2323 // Check restrict. 2324 if (test_restrict ("String literal") == 0) 2325 success = true; 2326 char *restrict newvar = "Another string"; 2327 2328 // Check varargs. 2329 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2330 test_varargs_macros (); 2331 2332 // Check flexible array members. 2333 struct incomplete_array *ia = 2334 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2335 ia->datasize = 10; 2336 for (int i = 0; i < ia->datasize; ++i) 2337 ia->data[i] = i * 1.234; 2338 2339 // Check named initializers. 2340 struct named_init ni = { 2341 .number = 34, 2342 .name = L"Test wide string", 2343 .average = 543.34343, 2344 }; 2345 2346 ni.number = 58; 2347 2348 int dynamic_array[ni.number]; 2349 dynamic_array[0] = argv[0][0]; 2350 dynamic_array[ni.number - 1] = 543; 2351 2352 // work around unused variable warnings 2353 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2354 || dynamic_array[ni.number - 1] != 543); 2355' 2356 2357# Test code for whether the C compiler supports C11 (global declarations) 2358ac_c_conftest_c11_globals=' 2359// Does the compiler advertise C11 conformance? 2360#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2361# error "Compiler does not advertise C11 conformance" 2362#endif 2363 2364// Check _Alignas. 2365char _Alignas (double) aligned_as_double; 2366char _Alignas (0) no_special_alignment; 2367extern char aligned_as_int; 2368char _Alignas (0) _Alignas (int) aligned_as_int; 2369 2370// Check _Alignof. 2371enum 2372{ 2373 int_alignment = _Alignof (int), 2374 int_array_alignment = _Alignof (int[100]), 2375 char_alignment = _Alignof (char) 2376}; 2377_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2378 2379// Check _Noreturn. 2380int _Noreturn does_not_return (void) { for (;;) continue; } 2381 2382// Check _Static_assert. 2383struct test_static_assert 2384{ 2385 int x; 2386 _Static_assert (sizeof (int) <= sizeof (long int), 2387 "_Static_assert does not work in struct"); 2388 long int y; 2389}; 2390 2391// Check UTF-8 literals. 2392#define u8 syntax error! 2393char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2394 2395// Check duplicate typedefs. 2396typedef long *long_ptr; 2397typedef long int *long_ptr; 2398typedef long_ptr long_ptr; 2399 2400// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2401struct anonymous 2402{ 2403 union { 2404 struct { int i; int j; }; 2405 struct { int k; long int l; } w; 2406 }; 2407 int m; 2408} v1; 2409' 2410 2411# Test code for whether the C compiler supports C11 (body of main). 2412ac_c_conftest_c11_main=' 2413 _Static_assert ((offsetof (struct anonymous, i) 2414 == offsetof (struct anonymous, w.k)), 2415 "Anonymous union alignment botch"); 2416 v1.i = 2; 2417 v1.w.k = 5; 2418 ok |= v1.i != 5; 2419' 2420 2421# Test code for whether the C compiler supports C11 (complete). 2422ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2423${ac_c_conftest_c99_globals} 2424${ac_c_conftest_c11_globals} 2425 2426int 2427main (int argc, char **argv) 2428{ 2429 int ok = 0; 2430 ${ac_c_conftest_c89_main} 2431 ${ac_c_conftest_c99_main} 2432 ${ac_c_conftest_c11_main} 2433 return ok; 2434} 2435" 2436 2437# Test code for whether the C compiler supports C99 (complete). 2438ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2439${ac_c_conftest_c99_globals} 2440 2441int 2442main (int argc, char **argv) 2443{ 2444 int ok = 0; 2445 ${ac_c_conftest_c89_main} 2446 ${ac_c_conftest_c99_main} 2447 return ok; 2448} 2449" 2450 2451# Test code for whether the C compiler supports C89 (complete). 2452ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2453 2454int 2455main (int argc, char **argv) 2456{ 2457 int ok = 0; 2458 ${ac_c_conftest_c89_main} 2459 return ok; 2460} 2461" 2462 2463as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2464as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2465as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2466as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2467as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2468as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2469as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2470as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2471as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2472 2473# Auxiliary files required by this configure script. 2474ac_aux_files="config.guess config.sub compile missing install-sh" 2475 2476# Locations in which to look for auxiliary files. 2477ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2478 2479# Search for a directory containing all of the required auxiliary files, 2480# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2481# If we don't find one directory that contains all the files we need, 2482# we report the set of missing files from the *first* directory in 2483# $ac_aux_dir_candidates and give up. 2484ac_missing_aux_files="" 2485ac_first_candidate=: 2486printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488as_found=false 2489for as_dir in $ac_aux_dir_candidates 2490do 2491 IFS=$as_save_IFS 2492 case $as_dir in #((( 2493 '') as_dir=./ ;; 2494 */) ;; 2495 *) as_dir=$as_dir/ ;; 2496 esac 2497 as_found=: 2498 2499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2500 ac_aux_dir_found=yes 2501 ac_install_sh= 2502 for ac_aux in $ac_aux_files 2503 do 2504 # As a special case, if "install-sh" is required, that requirement 2505 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2506 # and $ac_install_sh is set appropriately for whichever one is found. 2507 if test x"$ac_aux" = x"install-sh" 2508 then 2509 if test -f "${as_dir}install-sh"; then 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2511 ac_install_sh="${as_dir}install-sh -c" 2512 elif test -f "${as_dir}install.sh"; then 2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2514 ac_install_sh="${as_dir}install.sh -c" 2515 elif test -f "${as_dir}shtool"; then 2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2517 ac_install_sh="${as_dir}shtool install -c" 2518 else 2519 ac_aux_dir_found=no 2520 if $ac_first_candidate; then 2521 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2522 else 2523 break 2524 fi 2525 fi 2526 else 2527 if test -f "${as_dir}${ac_aux}"; then 2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2529 else 2530 ac_aux_dir_found=no 2531 if $ac_first_candidate; then 2532 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2533 else 2534 break 2535 fi 2536 fi 2537 fi 2538 done 2539 if test "$ac_aux_dir_found" = yes; then 2540 ac_aux_dir="$as_dir" 2541 break 2542 fi 2543 ac_first_candidate=false 2544 2545 as_found=false 2546done 2547IFS=$as_save_IFS 2548if $as_found 2549then : 2550 2551else $as_nop 2552 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2553fi 2554 2555 2556# These three variables are undocumented and unsupported, 2557# and are intended to be withdrawn in a future Autoconf release. 2558# They can cause serious problems if a builder's source tree is in a directory 2559# whose full name contains unusual characters. 2560if test -f "${ac_aux_dir}config.guess"; then 2561 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2562fi 2563if test -f "${ac_aux_dir}config.sub"; then 2564 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2565fi 2566if test -f "$ac_aux_dir/configure"; then 2567 ac_configure="$SHELL ${ac_aux_dir}configure" 2568fi 2569 2570# Check that the precious variables saved in the cache have kept the same 2571# value. 2572ac_cache_corrupted=false 2573for ac_var in $ac_precious_vars; do 2574 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2575 eval ac_new_set=\$ac_env_${ac_var}_set 2576 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2577 eval ac_new_val=\$ac_env_${ac_var}_value 2578 case $ac_old_set,$ac_new_set in 2579 set,) 2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2581printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2582 ac_cache_corrupted=: ;; 2583 ,set) 2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2585printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2586 ac_cache_corrupted=: ;; 2587 ,);; 2588 *) 2589 if test "x$ac_old_val" != "x$ac_new_val"; then 2590 # differences in whitespace do not lead to failure. 2591 ac_old_val_w=`echo x $ac_old_val` 2592 ac_new_val_w=`echo x $ac_new_val` 2593 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2595printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2596 ac_cache_corrupted=: 2597 else 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2599printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2600 eval $ac_var=\$ac_old_val 2601 fi 2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2603printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2605printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2606 fi;; 2607 esac 2608 # Pass precious variables to config.status. 2609 if test "$ac_new_set" = set; then 2610 case $ac_new_val in 2611 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2612 *) ac_arg=$ac_var=$ac_new_val ;; 2613 esac 2614 case " $ac_configure_args " in 2615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2616 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2617 esac 2618 fi 2619done 2620if $ac_cache_corrupted; then 2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2622printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2624printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2625 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2626 and start over" "$LINENO" 5 2627fi 2628## -------------------- ## 2629## Main body of script. ## 2630## -------------------- ## 2631 2632ac_ext=c 2633ac_cpp='$CPP $CPPFLAGS' 2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2636ac_compiler_gnu=$ac_cv_c_compiler_gnu 2637 2638 2639 2640 2641# Initialize Automake 2642am__api_version='1.16' 2643 2644 2645 2646 # Find a good install program. We prefer a C program (faster), 2647# so one script is as good as another. But avoid the broken or 2648# incompatible versions: 2649# SysV /etc/install, /usr/sbin/install 2650# SunOS /usr/etc/install 2651# IRIX /sbin/install 2652# AIX /bin/install 2653# AmigaOS /C/install, which installs bootblocks on floppy discs 2654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2655# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2657# OS/2's system install, which has a completely different semantic 2658# ./install, which can be erroneously created by make from ./install.sh. 2659# Reject install programs that cannot install multiple files. 2660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2661printf %s "checking for a BSD-compatible install... " >&6; } 2662if test -z "$INSTALL"; then 2663if test ${ac_cv_path_install+y} 2664then : 2665 printf %s "(cached) " >&6 2666else $as_nop 2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 case $as_dir in #((( 2672 '') as_dir=./ ;; 2673 */) ;; 2674 *) as_dir=$as_dir/ ;; 2675 esac 2676 # Account for fact that we put trailing slashes in our PATH walk. 2677case $as_dir in #(( 2678 ./ | /[cC]/* | \ 2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2681 /usr/ucb/* ) ;; 2682 *) 2683 # OSF1 and SCO ODT 3.0 have their own names for install. 2684 # Don't use installbsd from OSF since it installs stuff as root 2685 # by default. 2686 for ac_prog in ginstall scoinst install; do 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2689 if test $ac_prog = install && 2690 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2691 # AIX install. It has an incompatible calling convention. 2692 : 2693 elif test $ac_prog = install && 2694 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # program-specific install script used by HP pwplus--don't use. 2696 : 2697 else 2698 rm -rf conftest.one conftest.two conftest.dir 2699 echo one > conftest.one 2700 echo two > conftest.two 2701 mkdir conftest.dir 2702 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2703 test -s conftest.one && test -s conftest.two && 2704 test -s conftest.dir/conftest.one && 2705 test -s conftest.dir/conftest.two 2706 then 2707 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2708 break 3 2709 fi 2710 fi 2711 fi 2712 done 2713 done 2714 ;; 2715esac 2716 2717 done 2718IFS=$as_save_IFS 2719 2720rm -rf conftest.one conftest.two conftest.dir 2721 2722fi 2723 if test ${ac_cv_path_install+y}; then 2724 INSTALL=$ac_cv_path_install 2725 else 2726 # As a last resort, use the slow shell script. Don't cache a 2727 # value for INSTALL within a source directory, because that will 2728 # break other packages using the cache if that directory is 2729 # removed, or if the value is a relative name. 2730 INSTALL=$ac_install_sh 2731 fi 2732fi 2733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2734printf "%s\n" "$INSTALL" >&6; } 2735 2736# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2737# It thinks the first close brace ends the variable substitution. 2738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2739 2740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2741 2742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2743 2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2745printf %s "checking whether build environment is sane... " >&6; } 2746# Reject unsafe characters in $srcdir or the absolute working directory 2747# name. Accept space and tab only in the latter. 2748am_lf=' 2749' 2750case `pwd` in 2751 *[\\\"\#\$\&\'\`$am_lf]*) 2752 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2753esac 2754case $srcdir in 2755 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2756 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2757esac 2758 2759# Do 'set' in a subshell so we don't clobber the current shell's 2760# arguments. Must try -L first in case configure is actually a 2761# symlink; some systems play weird games with the mod time of symlinks 2762# (eg FreeBSD returns the mod time of the symlink's containing 2763# directory). 2764if ( 2765 am_has_slept=no 2766 for am_try in 1 2; do 2767 echo "timestamp, slept: $am_has_slept" > conftest.file 2768 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2769 if test "$*" = "X"; then 2770 # -L didn't work. 2771 set X `ls -t "$srcdir/configure" conftest.file` 2772 fi 2773 if test "$*" != "X $srcdir/configure conftest.file" \ 2774 && test "$*" != "X conftest.file $srcdir/configure"; then 2775 2776 # If neither matched, then we have a broken ls. This can happen 2777 # if, for instance, CONFIG_SHELL is bash and it inherits a 2778 # broken ls alias from the environment. This has actually 2779 # happened. Such a system could not be considered "sane". 2780 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2781 alias in your environment" "$LINENO" 5 2782 fi 2783 if test "$2" = conftest.file || test $am_try -eq 2; then 2784 break 2785 fi 2786 # Just in case. 2787 sleep 1 2788 am_has_slept=yes 2789 done 2790 test "$2" = conftest.file 2791 ) 2792then 2793 # Ok. 2794 : 2795else 2796 as_fn_error $? "newly created file is older than distributed files! 2797Check your system clock" "$LINENO" 5 2798fi 2799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2800printf "%s\n" "yes" >&6; } 2801# If we didn't sleep, we still need to ensure time stamps of config.status and 2802# generated files are strictly newer. 2803am_sleep_pid= 2804if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2805 ( sleep 1 ) & 2806 am_sleep_pid=$! 2807fi 2808 2809rm -f conftest.file 2810 2811test "$program_prefix" != NONE && 2812 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2813# Use a double $ so make ignores it. 2814test "$program_suffix" != NONE && 2815 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2816# Double any \ or $. 2817# By default was `s,x,x', remove it if useless. 2818ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2819program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2820 2821 2822# Expand $ac_aux_dir to an absolute path. 2823am_aux_dir=`cd "$ac_aux_dir" && pwd` 2824 2825 2826 if test x"${MISSING+set}" != xset; then 2827 MISSING="\${SHELL} '$am_aux_dir/missing'" 2828fi 2829# Use eval to expand $SHELL 2830if eval "$MISSING --is-lightweight"; then 2831 am_missing_run="$MISSING " 2832else 2833 am_missing_run= 2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2835printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2836fi 2837 2838if test x"${install_sh+set}" != xset; then 2839 case $am_aux_dir in 2840 *\ * | *\ *) 2841 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2842 *) 2843 install_sh="\${SHELL} $am_aux_dir/install-sh" 2844 esac 2845fi 2846 2847# Installed binaries are usually stripped using 'strip' when the user 2848# run "make install-strip". However 'strip' might not be the right 2849# tool to use in cross-compilation environments, therefore Automake 2850# will honor the 'STRIP' environment variable to overrule this program. 2851if test "$cross_compiling" != no; then 2852 if test -n "$ac_tool_prefix"; then 2853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2854set dummy ${ac_tool_prefix}strip; ac_word=$2 2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2856printf %s "checking for $ac_word... " >&6; } 2857if test ${ac_cv_prog_STRIP+y} 2858then : 2859 printf %s "(cached) " >&6 2860else $as_nop 2861 if test -n "$STRIP"; then 2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 case $as_dir in #((( 2869 '') as_dir=./ ;; 2870 */) ;; 2871 *) as_dir=$as_dir/ ;; 2872 esac 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880 done 2881IFS=$as_save_IFS 2882 2883fi 2884fi 2885STRIP=$ac_cv_prog_STRIP 2886if test -n "$STRIP"; then 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2888printf "%s\n" "$STRIP" >&6; } 2889else 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891printf "%s\n" "no" >&6; } 2892fi 2893 2894 2895fi 2896if test -z "$ac_cv_prog_STRIP"; then 2897 ac_ct_STRIP=$STRIP 2898 # Extract the first word of "strip", so it can be a program name with args. 2899set dummy strip; ac_word=$2 2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901printf %s "checking for $ac_word... " >&6; } 2902if test ${ac_cv_prog_ac_ct_STRIP+y} 2903then : 2904 printf %s "(cached) " >&6 2905else $as_nop 2906 if test -n "$ac_ct_STRIP"; then 2907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 case $as_dir in #((( 2914 '') as_dir=./ ;; 2915 */) ;; 2916 *) as_dir=$as_dir/ ;; 2917 esac 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_ac_ct_STRIP="strip" 2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2931if test -n "$ac_ct_STRIP"; then 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2933printf "%s\n" "$ac_ct_STRIP" >&6; } 2934else 2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936printf "%s\n" "no" >&6; } 2937fi 2938 2939 if test "x$ac_ct_STRIP" = x; then 2940 STRIP=":" 2941 else 2942 case $cross_compiling:$ac_tool_warned in 2943yes:) 2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2946ac_tool_warned=yes ;; 2947esac 2948 STRIP=$ac_ct_STRIP 2949 fi 2950else 2951 STRIP="$ac_cv_prog_STRIP" 2952fi 2953 2954fi 2955INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2956 2957 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2959printf %s "checking for a race-free mkdir -p... " >&6; } 2960if test -z "$MKDIR_P"; then 2961 if test ${ac_cv_path_mkdir+y} 2962then : 2963 printf %s "(cached) " >&6 2964else $as_nop 2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2967do 2968 IFS=$as_save_IFS 2969 case $as_dir in #((( 2970 '') as_dir=./ ;; 2971 */) ;; 2972 *) as_dir=$as_dir/ ;; 2973 esac 2974 for ac_prog in mkdir gmkdir; do 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2977 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2978 'mkdir ('*'coreutils) '* | \ 2979 'BusyBox '* | \ 2980 'mkdir (fileutils) '4.1*) 2981 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2982 break 3;; 2983 esac 2984 done 2985 done 2986 done 2987IFS=$as_save_IFS 2988 2989fi 2990 2991 test -d ./--version && rmdir ./--version 2992 if test ${ac_cv_path_mkdir+y}; then 2993 MKDIR_P="$ac_cv_path_mkdir -p" 2994 else 2995 # As a last resort, use the slow shell script. Don't cache a 2996 # value for MKDIR_P within a source directory, because that will 2997 # break other packages using the cache if that directory is 2998 # removed, or if the value is a relative name. 2999 MKDIR_P="$ac_install_sh -d" 3000 fi 3001fi 3002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3003printf "%s\n" "$MKDIR_P" >&6; } 3004 3005for ac_prog in gawk mawk nawk awk 3006do 3007 # Extract the first word of "$ac_prog", so it can be a program name with args. 3008set dummy $ac_prog; ac_word=$2 3009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3010printf %s "checking for $ac_word... " >&6; } 3011if test ${ac_cv_prog_AWK+y} 3012then : 3013 printf %s "(cached) " >&6 3014else $as_nop 3015 if test -n "$AWK"; then 3016 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3017else 3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019for as_dir in $PATH 3020do 3021 IFS=$as_save_IFS 3022 case $as_dir in #((( 3023 '') as_dir=./ ;; 3024 */) ;; 3025 *) as_dir=$as_dir/ ;; 3026 esac 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3029 ac_cv_prog_AWK="$ac_prog" 3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037fi 3038fi 3039AWK=$ac_cv_prog_AWK 3040if test -n "$AWK"; then 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3042printf "%s\n" "$AWK" >&6; } 3043else 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045printf "%s\n" "no" >&6; } 3046fi 3047 3048 3049 test -n "$AWK" && break 3050done 3051 3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3053printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3054set x ${MAKE-make} 3055ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3056if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3057then : 3058 printf %s "(cached) " >&6 3059else $as_nop 3060 cat >conftest.make <<\_ACEOF 3061SHELL = /bin/sh 3062all: 3063 @echo '@@@%%%=$(MAKE)=@@@%%%' 3064_ACEOF 3065# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3066case `${MAKE-make} -f conftest.make 2>/dev/null` in 3067 *@@@%%%=?*=@@@%%%*) 3068 eval ac_cv_prog_make_${ac_make}_set=yes;; 3069 *) 3070 eval ac_cv_prog_make_${ac_make}_set=no;; 3071esac 3072rm -f conftest.make 3073fi 3074if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3076printf "%s\n" "yes" >&6; } 3077 SET_MAKE= 3078else 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080printf "%s\n" "no" >&6; } 3081 SET_MAKE="MAKE=${MAKE-make}" 3082fi 3083 3084rm -rf .tst 2>/dev/null 3085mkdir .tst 2>/dev/null 3086if test -d .tst; then 3087 am__leading_dot=. 3088else 3089 am__leading_dot=_ 3090fi 3091rmdir .tst 2>/dev/null 3092 3093# Check whether --enable-silent-rules was given. 3094if test ${enable_silent_rules+y} 3095then : 3096 enableval=$enable_silent_rules; 3097fi 3098 3099case $enable_silent_rules in # ((( 3100 yes) AM_DEFAULT_VERBOSITY=0;; 3101 no) AM_DEFAULT_VERBOSITY=1;; 3102 *) AM_DEFAULT_VERBOSITY=1;; 3103esac 3104am_make=${MAKE-make} 3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3106printf %s "checking whether $am_make supports nested variables... " >&6; } 3107if test ${am_cv_make_support_nested_variables+y} 3108then : 3109 printf %s "(cached) " >&6 3110else $as_nop 3111 if printf "%s\n" 'TRUE=$(BAR$(V)) 3112BAR0=false 3113BAR1=true 3114V=1 3115am__doit: 3116 @$(TRUE) 3117.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3118 am_cv_make_support_nested_variables=yes 3119else 3120 am_cv_make_support_nested_variables=no 3121fi 3122fi 3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3124printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3125if test $am_cv_make_support_nested_variables = yes; then 3126 AM_V='$(V)' 3127 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3128else 3129 AM_V=$AM_DEFAULT_VERBOSITY 3130 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3131fi 3132AM_BACKSLASH='\' 3133 3134if test "`cd $srcdir && pwd`" != "`pwd`"; then 3135 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3136 # is not polluted with repeated "-I." 3137 am__isrc=' -I$(srcdir)' 3138 # test to see if srcdir already configured 3139 if test -f $srcdir/config.status; then 3140 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3141 fi 3142fi 3143 3144# test whether we have cygpath 3145if test -z "$CYGPATH_W"; then 3146 if (cygpath --version) >/dev/null 2>/dev/null; then 3147 CYGPATH_W='cygpath -w' 3148 else 3149 CYGPATH_W=echo 3150 fi 3151fi 3152 3153 3154# Define the identity of the package. 3155 PACKAGE='xtrans' 3156 VERSION='1.5.0' 3157 3158 3159printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3160 3161 3162printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3163 3164# Some tools Automake needs. 3165 3166ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3167 3168 3169AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3170 3171 3172AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3173 3174 3175AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3176 3177 3178MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3179 3180# For better backward compatibility. To be removed once Automake 1.9.x 3181# dies out for good. For more background, see: 3182# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3183# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3184mkdir_p='$(MKDIR_P)' 3185 3186# We need awk for the "check" target (and possibly the TAP driver). The 3187# system "awk" is bad on some platforms. 3188# Always define AMTAR for backward compatibility. Yes, it's still used 3189# in the wild :-( We should find a proper way to deprecate it ... 3190AMTAR='$${TAR-tar}' 3191 3192 3193# We'll loop over all known methods to create a tar archive until one works. 3194_am_tools='gnutar pax cpio none' 3195 3196am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3197 3198 3199 3200 3201 3202# Variables for tags utilities; see am/tags.am 3203if test -z "$CTAGS"; then 3204 CTAGS=ctags 3205fi 3206 3207if test -z "$ETAGS"; then 3208 ETAGS=etags 3209fi 3210 3211if test -z "$CSCOPE"; then 3212 CSCOPE=cscope 3213fi 3214 3215 3216 3217# POSIX will say in a future version that running "rm -f" with no argument 3218# is OK; and we want to be able to make that assumption in our Makefile 3219# recipes. So use an aggressive probe to check that the usage we want is 3220# actually supported "in the wild" to an acceptable degree. 3221# See automake bug#10828. 3222# To make any issue more visible, cause the running configure to be aborted 3223# by default if the 'rm' program in use doesn't match our expectations; the 3224# user can still override this though. 3225if rm -f && rm -fr && rm -rf; then : OK; else 3226 cat >&2 <<'END' 3227Oops! 3228 3229Your 'rm' program seems unable to run without file operands specified 3230on the command line, even when the '-f' option is present. This is contrary 3231to the behaviour of most rm programs out there, and not conforming with 3232the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3233 3234Please tell bug-automake@gnu.org about your system, including the value 3235of your $PATH and any error possibly output before this message. This 3236can help us improve future automake versions. 3237 3238END 3239 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3240 echo 'Configuration will proceed anyway, since you have set the' >&2 3241 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3242 echo >&2 3243 else 3244 cat >&2 <<'END' 3245Aborting the configuration process, to ensure you take notice of the issue. 3246 3247You can download and install GNU coreutils to get an 'rm' implementation 3248that behaves properly: <https://www.gnu.org/software/coreutils/>. 3249 3250If you want to complete the configuration process using your problematic 3251'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3252to "yes", and re-run configure. 3253 3254END 3255 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3256 fi 3257fi 3258 3259 3260# Require xorg-macros minimum of 1.12 for DocBook external references 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281DEPDIR="${am__leading_dot}deps" 3282 3283ac_config_commands="$ac_config_commands depfiles" 3284 3285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3286printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3287cat > confinc.mk << 'END' 3288am__doit: 3289 @echo this is the am__doit target >confinc.out 3290.PHONY: am__doit 3291END 3292am__include="#" 3293am__quote= 3294# BSD make does it like this. 3295echo '.include "confinc.mk" # ignored' > confmf.BSD 3296# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3297echo 'include confinc.mk # ignored' > confmf.GNU 3298_am_result=no 3299for s in GNU BSD; do 3300 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3301 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3302 ac_status=$? 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } 3305 case $?:`cat confinc.out 2>/dev/null` in #( 3306 '0:this is the am__doit target') : 3307 case $s in #( 3308 BSD) : 3309 am__include='.include' am__quote='"' ;; #( 3310 *) : 3311 am__include='include' am__quote='' ;; 3312esac ;; #( 3313 *) : 3314 ;; 3315esac 3316 if test "$am__include" != "#"; then 3317 _am_result="yes ($s style)" 3318 break 3319 fi 3320done 3321rm -f confinc.* confmf.* 3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3323printf "%s\n" "${_am_result}" >&6; } 3324 3325# Check whether --enable-dependency-tracking was given. 3326if test ${enable_dependency_tracking+y} 3327then : 3328 enableval=$enable_dependency_tracking; 3329fi 3330 3331if test "x$enable_dependency_tracking" != xno; then 3332 am_depcomp="$ac_aux_dir/depcomp" 3333 AMDEPBACKSLASH='\' 3334 am__nodep='_no' 3335fi 3336 if test "x$enable_dependency_tracking" != xno; then 3337 AMDEP_TRUE= 3338 AMDEP_FALSE='#' 3339else 3340 AMDEP_TRUE='#' 3341 AMDEP_FALSE= 3342fi 3343 3344 3345ac_ext=c 3346ac_cpp='$CPP $CPPFLAGS' 3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3349ac_compiler_gnu=$ac_cv_c_compiler_gnu 3350if test -n "$ac_tool_prefix"; then 3351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3352set dummy ${ac_tool_prefix}gcc; ac_word=$2 3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354printf %s "checking for $ac_word... " >&6; } 3355if test ${ac_cv_prog_CC+y} 3356then : 3357 printf %s "(cached) " >&6 3358else $as_nop 3359 if test -n "$CC"; then 3360 ac_cv_prog_CC="$CC" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 case $as_dir in #((( 3367 '') as_dir=./ ;; 3368 */) ;; 3369 *) as_dir=$as_dir/ ;; 3370 esac 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381fi 3382fi 3383CC=$ac_cv_prog_CC 3384if test -n "$CC"; then 3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3386printf "%s\n" "$CC" >&6; } 3387else 3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389printf "%s\n" "no" >&6; } 3390fi 3391 3392 3393fi 3394if test -z "$ac_cv_prog_CC"; then 3395 ac_ct_CC=$CC 3396 # Extract the first word of "gcc", so it can be a program name with args. 3397set dummy gcc; ac_word=$2 3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399printf %s "checking for $ac_word... " >&6; } 3400if test ${ac_cv_prog_ac_ct_CC+y} 3401then : 3402 printf %s "(cached) " >&6 3403else $as_nop 3404 if test -n "$ac_ct_CC"; then 3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3406else 3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH 3409do 3410 IFS=$as_save_IFS 3411 case $as_dir in #((( 3412 '') as_dir=./ ;; 3413 */) ;; 3414 *) as_dir=$as_dir/ ;; 3415 esac 3416 for ac_exec_ext in '' $ac_executable_extensions; do 3417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3418 ac_cv_prog_ac_ct_CC="gcc" 3419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3420 break 2 3421 fi 3422done 3423 done 3424IFS=$as_save_IFS 3425 3426fi 3427fi 3428ac_ct_CC=$ac_cv_prog_ac_ct_CC 3429if test -n "$ac_ct_CC"; then 3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3431printf "%s\n" "$ac_ct_CC" >&6; } 3432else 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434printf "%s\n" "no" >&6; } 3435fi 3436 3437 if test "x$ac_ct_CC" = x; then 3438 CC="" 3439 else 3440 case $cross_compiling:$ac_tool_warned in 3441yes:) 3442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3443printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3444ac_tool_warned=yes ;; 3445esac 3446 CC=$ac_ct_CC 3447 fi 3448else 3449 CC="$ac_cv_prog_CC" 3450fi 3451 3452if test -z "$CC"; then 3453 if test -n "$ac_tool_prefix"; then 3454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3455set dummy ${ac_tool_prefix}cc; ac_word=$2 3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457printf %s "checking for $ac_word... " >&6; } 3458if test ${ac_cv_prog_CC+y} 3459then : 3460 printf %s "(cached) " >&6 3461else $as_nop 3462 if test -n "$CC"; then 3463 ac_cv_prog_CC="$CC" # Let the user override the test. 3464else 3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH 3467do 3468 IFS=$as_save_IFS 3469 case $as_dir in #((( 3470 '') as_dir=./ ;; 3471 */) ;; 3472 *) as_dir=$as_dir/ ;; 3473 esac 3474 for ac_exec_ext in '' $ac_executable_extensions; do 3475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3476 ac_cv_prog_CC="${ac_tool_prefix}cc" 3477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3478 break 2 3479 fi 3480done 3481 done 3482IFS=$as_save_IFS 3483 3484fi 3485fi 3486CC=$ac_cv_prog_CC 3487if test -n "$CC"; then 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3489printf "%s\n" "$CC" >&6; } 3490else 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492printf "%s\n" "no" >&6; } 3493fi 3494 3495 3496 fi 3497fi 3498if test -z "$CC"; then 3499 # Extract the first word of "cc", so it can be a program name with args. 3500set dummy cc; ac_word=$2 3501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3502printf %s "checking for $ac_word... " >&6; } 3503if test ${ac_cv_prog_CC+y} 3504then : 3505 printf %s "(cached) " >&6 3506else $as_nop 3507 if test -n "$CC"; then 3508 ac_cv_prog_CC="$CC" # Let the user override the test. 3509else 3510 ac_prog_rejected=no 3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512for as_dir in $PATH 3513do 3514 IFS=$as_save_IFS 3515 case $as_dir in #((( 3516 '') as_dir=./ ;; 3517 */) ;; 3518 *) as_dir=$as_dir/ ;; 3519 esac 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3522 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3523 ac_prog_rejected=yes 3524 continue 3525 fi 3526 ac_cv_prog_CC="cc" 3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534if test $ac_prog_rejected = yes; then 3535 # We found a bogon in the path, so make sure we never use it. 3536 set dummy $ac_cv_prog_CC 3537 shift 3538 if test $# != 0; then 3539 # We chose a different compiler from the bogus one. 3540 # However, it has the same basename, so the bogon will be chosen 3541 # first if we set CC to just the basename; use the full file name. 3542 shift 3543 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3544 fi 3545fi 3546fi 3547fi 3548CC=$ac_cv_prog_CC 3549if test -n "$CC"; then 3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3551printf "%s\n" "$CC" >&6; } 3552else 3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554printf "%s\n" "no" >&6; } 3555fi 3556 3557 3558fi 3559if test -z "$CC"; then 3560 if test -n "$ac_tool_prefix"; then 3561 for ac_prog in cl.exe 3562 do 3563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3564set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3566printf %s "checking for $ac_word... " >&6; } 3567if test ${ac_cv_prog_CC+y} 3568then : 3569 printf %s "(cached) " >&6 3570else $as_nop 3571 if test -n "$CC"; then 3572 ac_cv_prog_CC="$CC" # Let the user override the test. 3573else 3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3575for as_dir in $PATH 3576do 3577 IFS=$as_save_IFS 3578 case $as_dir in #((( 3579 '') as_dir=./ ;; 3580 */) ;; 3581 *) as_dir=$as_dir/ ;; 3582 esac 3583 for ac_exec_ext in '' $ac_executable_extensions; do 3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3587 break 2 3588 fi 3589done 3590 done 3591IFS=$as_save_IFS 3592 3593fi 3594fi 3595CC=$ac_cv_prog_CC 3596if test -n "$CC"; then 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3598printf "%s\n" "$CC" >&6; } 3599else 3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3601printf "%s\n" "no" >&6; } 3602fi 3603 3604 3605 test -n "$CC" && break 3606 done 3607fi 3608if test -z "$CC"; then 3609 ac_ct_CC=$CC 3610 for ac_prog in cl.exe 3611do 3612 # Extract the first word of "$ac_prog", so it can be a program name with args. 3613set dummy $ac_prog; ac_word=$2 3614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615printf %s "checking for $ac_word... " >&6; } 3616if test ${ac_cv_prog_ac_ct_CC+y} 3617then : 3618 printf %s "(cached) " >&6 3619else $as_nop 3620 if test -n "$ac_ct_CC"; then 3621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3622else 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH 3625do 3626 IFS=$as_save_IFS 3627 case $as_dir in #((( 3628 '') as_dir=./ ;; 3629 */) ;; 3630 *) as_dir=$as_dir/ ;; 3631 esac 3632 for ac_exec_ext in '' $ac_executable_extensions; do 3633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3634 ac_cv_prog_ac_ct_CC="$ac_prog" 3635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3636 break 2 3637 fi 3638done 3639 done 3640IFS=$as_save_IFS 3641 3642fi 3643fi 3644ac_ct_CC=$ac_cv_prog_ac_ct_CC 3645if test -n "$ac_ct_CC"; then 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3647printf "%s\n" "$ac_ct_CC" >&6; } 3648else 3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3650printf "%s\n" "no" >&6; } 3651fi 3652 3653 3654 test -n "$ac_ct_CC" && break 3655done 3656 3657 if test "x$ac_ct_CC" = x; then 3658 CC="" 3659 else 3660 case $cross_compiling:$ac_tool_warned in 3661yes:) 3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3663printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3664ac_tool_warned=yes ;; 3665esac 3666 CC=$ac_ct_CC 3667 fi 3668fi 3669 3670fi 3671if test -z "$CC"; then 3672 if test -n "$ac_tool_prefix"; then 3673 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3674set dummy ${ac_tool_prefix}clang; ac_word=$2 3675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676printf %s "checking for $ac_word... " >&6; } 3677if test ${ac_cv_prog_CC+y} 3678then : 3679 printf %s "(cached) " >&6 3680else $as_nop 3681 if test -n "$CC"; then 3682 ac_cv_prog_CC="$CC" # Let the user override the test. 3683else 3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685for as_dir in $PATH 3686do 3687 IFS=$as_save_IFS 3688 case $as_dir in #((( 3689 '') as_dir=./ ;; 3690 */) ;; 3691 *) as_dir=$as_dir/ ;; 3692 esac 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3695 ac_cv_prog_CC="${ac_tool_prefix}clang" 3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700 done 3701IFS=$as_save_IFS 3702 3703fi 3704fi 3705CC=$ac_cv_prog_CC 3706if test -n "$CC"; then 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3708printf "%s\n" "$CC" >&6; } 3709else 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3711printf "%s\n" "no" >&6; } 3712fi 3713 3714 3715fi 3716if test -z "$ac_cv_prog_CC"; then 3717 ac_ct_CC=$CC 3718 # Extract the first word of "clang", so it can be a program name with args. 3719set dummy clang; ac_word=$2 3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721printf %s "checking for $ac_word... " >&6; } 3722if test ${ac_cv_prog_ac_ct_CC+y} 3723then : 3724 printf %s "(cached) " >&6 3725else $as_nop 3726 if test -n "$ac_ct_CC"; then 3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3728else 3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3730for as_dir in $PATH 3731do 3732 IFS=$as_save_IFS 3733 case $as_dir in #((( 3734 '') as_dir=./ ;; 3735 */) ;; 3736 *) as_dir=$as_dir/ ;; 3737 esac 3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3740 ac_cv_prog_ac_ct_CC="clang" 3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3742 break 2 3743 fi 3744done 3745 done 3746IFS=$as_save_IFS 3747 3748fi 3749fi 3750ac_ct_CC=$ac_cv_prog_ac_ct_CC 3751if test -n "$ac_ct_CC"; then 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3753printf "%s\n" "$ac_ct_CC" >&6; } 3754else 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3756printf "%s\n" "no" >&6; } 3757fi 3758 3759 if test "x$ac_ct_CC" = x; then 3760 CC="" 3761 else 3762 case $cross_compiling:$ac_tool_warned in 3763yes:) 3764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3765printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3766ac_tool_warned=yes ;; 3767esac 3768 CC=$ac_ct_CC 3769 fi 3770else 3771 CC="$ac_cv_prog_CC" 3772fi 3773 3774fi 3775 3776 3777test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3778printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3779as_fn_error $? "no acceptable C compiler found in \$PATH 3780See \`config.log' for more details" "$LINENO" 5; } 3781 3782# Provide some information about the compiler. 3783printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3784set X $ac_compile 3785ac_compiler=$2 3786for ac_option in --version -v -V -qversion -version; do 3787 { { ac_try="$ac_compiler $ac_option >&5" 3788case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791esac 3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3793printf "%s\n" "$ac_try_echo"; } >&5 3794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3795 ac_status=$? 3796 if test -s conftest.err; then 3797 sed '10a\ 3798... rest of stderr output deleted ... 3799 10q' conftest.err >conftest.er1 3800 cat conftest.er1 >&5 3801 fi 3802 rm -f conftest.er1 conftest.err 3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; } 3805done 3806 3807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809 3810int 3811main (void) 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818ac_clean_files_save=$ac_clean_files 3819ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3820# Try to create an executable without -o first, disregard a.out. 3821# It will help us diagnose broken compilers, and finding out an intuition 3822# of exeext. 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3824printf %s "checking whether the C compiler works... " >&6; } 3825ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3826 3827# The possible output files: 3828ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3829 3830ac_rmfiles= 3831for ac_file in $ac_files 3832do 3833 case $ac_file in 3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3835 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3836 esac 3837done 3838rm -f $ac_rmfiles 3839 3840if { { ac_try="$ac_link_default" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3846printf "%s\n" "$ac_try_echo"; } >&5 3847 (eval "$ac_link_default") 2>&5 3848 ac_status=$? 3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3850 test $ac_status = 0; } 3851then : 3852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3854# in a Makefile. We should not override ac_cv_exeext if it was cached, 3855# so that the user can short-circuit this test for compilers unknown to 3856# Autoconf. 3857for ac_file in $ac_files '' 3858do 3859 test -f "$ac_file" || continue 3860 case $ac_file in 3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3862 ;; 3863 [ab].out ) 3864 # We found the default executable, but exeext='' is most 3865 # certainly right. 3866 break;; 3867 *.* ) 3868 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3869 then :; else 3870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3871 fi 3872 # We set ac_cv_exeext here because the later test for it is not 3873 # safe: cross compilers may not add the suffix if given an `-o' 3874 # argument, so we may need to know it at that point already. 3875 # Even if this section looks crufty: it has the advantage of 3876 # actually working. 3877 break;; 3878 * ) 3879 break;; 3880 esac 3881done 3882test "$ac_cv_exeext" = no && ac_cv_exeext= 3883 3884else $as_nop 3885 ac_file='' 3886fi 3887if test -z "$ac_file" 3888then : 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890printf "%s\n" "no" >&6; } 3891printf "%s\n" "$as_me: failed program was:" >&5 3892sed 's/^/| /' conftest.$ac_ext >&5 3893 3894{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3895printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3896as_fn_error 77 "C compiler cannot create executables 3897See \`config.log' for more details" "$LINENO" 5; } 3898else $as_nop 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3900printf "%s\n" "yes" >&6; } 3901fi 3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3903printf %s "checking for C compiler default output file name... " >&6; } 3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3905printf "%s\n" "$ac_file" >&6; } 3906ac_exeext=$ac_cv_exeext 3907 3908rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3909ac_clean_files=$ac_clean_files_save 3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3911printf %s "checking for suffix of executables... " >&6; } 3912if { { ac_try="$ac_link" 3913case "(($ac_try" in 3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3915 *) ac_try_echo=$ac_try;; 3916esac 3917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3918printf "%s\n" "$ac_try_echo"; } >&5 3919 (eval "$ac_link") 2>&5 3920 ac_status=$? 3921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3922 test $ac_status = 0; } 3923then : 3924 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3926# work properly (i.e., refer to `conftest.exe'), while it won't with 3927# `rm'. 3928for ac_file in conftest.exe conftest conftest.*; do 3929 test -f "$ac_file" || continue 3930 case $ac_file in 3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3933 break;; 3934 * ) break;; 3935 esac 3936done 3937else $as_nop 3938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3939printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3940as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3941See \`config.log' for more details" "$LINENO" 5; } 3942fi 3943rm -f conftest conftest$ac_cv_exeext 3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3945printf "%s\n" "$ac_cv_exeext" >&6; } 3946 3947rm -f conftest.$ac_ext 3948EXEEXT=$ac_cv_exeext 3949ac_exeext=$EXEEXT 3950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952#include <stdio.h> 3953int 3954main (void) 3955{ 3956FILE *f = fopen ("conftest.out", "w"); 3957 return ferror (f) || fclose (f) != 0; 3958 3959 ; 3960 return 0; 3961} 3962_ACEOF 3963ac_clean_files="$ac_clean_files conftest.out" 3964# Check that the compiler produces executables we can run. If not, either 3965# the compiler is broken, or we cross compile. 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3967printf %s "checking whether we are cross compiling... " >&6; } 3968if test "$cross_compiling" != yes; then 3969 { { ac_try="$ac_link" 3970case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975printf "%s\n" "$ac_try_echo"; } >&5 3976 (eval "$ac_link") 2>&5 3977 ac_status=$? 3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; } 3980 if { ac_try='./conftest$ac_cv_exeext' 3981 { { case "(($ac_try" in 3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3983 *) ac_try_echo=$ac_try;; 3984esac 3985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3986printf "%s\n" "$ac_try_echo"; } >&5 3987 (eval "$ac_try") 2>&5 3988 ac_status=$? 3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3990 test $ac_status = 0; }; }; then 3991 cross_compiling=no 3992 else 3993 if test "$cross_compiling" = maybe; then 3994 cross_compiling=yes 3995 else 3996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3997printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3998as_fn_error 77 "cannot run C compiled programs. 3999If you meant to cross compile, use \`--host'. 4000See \`config.log' for more details" "$LINENO" 5; } 4001 fi 4002 fi 4003fi 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4005printf "%s\n" "$cross_compiling" >&6; } 4006 4007rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4008ac_clean_files=$ac_clean_files_save 4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4010printf %s "checking for suffix of object files... " >&6; } 4011if test ${ac_cv_objext+y} 4012then : 4013 printf %s "(cached) " >&6 4014else $as_nop 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017 4018int 4019main (void) 4020{ 4021 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026rm -f conftest.o conftest.obj 4027if { { ac_try="$ac_compile" 4028case "(($ac_try" in 4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4030 *) ac_try_echo=$ac_try;; 4031esac 4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4033printf "%s\n" "$ac_try_echo"; } >&5 4034 (eval "$ac_compile") 2>&5 4035 ac_status=$? 4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4037 test $ac_status = 0; } 4038then : 4039 for ac_file in conftest.o conftest.obj conftest.*; do 4040 test -f "$ac_file" || continue; 4041 case $ac_file in 4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4044 break;; 4045 esac 4046done 4047else $as_nop 4048 printf "%s\n" "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4053as_fn_error $? "cannot compute suffix of object files: cannot compile 4054See \`config.log' for more details" "$LINENO" 5; } 4055fi 4056rm -f conftest.$ac_cv_objext conftest.$ac_ext 4057fi 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4059printf "%s\n" "$ac_cv_objext" >&6; } 4060OBJEXT=$ac_cv_objext 4061ac_objext=$OBJEXT 4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4063printf %s "checking whether the compiler supports GNU C... " >&6; } 4064if test ${ac_cv_c_compiler_gnu+y} 4065then : 4066 printf %s "(cached) " >&6 4067else $as_nop 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070 4071int 4072main (void) 4073{ 4074#ifndef __GNUC__ 4075 choke me 4076#endif 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082if ac_fn_c_try_compile "$LINENO" 4083then : 4084 ac_compiler_gnu=yes 4085else $as_nop 4086 ac_compiler_gnu=no 4087fi 4088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4089ac_cv_c_compiler_gnu=$ac_compiler_gnu 4090 4091fi 4092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4093printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4094ac_compiler_gnu=$ac_cv_c_compiler_gnu 4095 4096if test $ac_compiler_gnu = yes; then 4097 GCC=yes 4098else 4099 GCC= 4100fi 4101ac_test_CFLAGS=${CFLAGS+y} 4102ac_save_CFLAGS=$CFLAGS 4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4104printf %s "checking whether $CC accepts -g... " >&6; } 4105if test ${ac_cv_prog_cc_g+y} 4106then : 4107 printf %s "(cached) " >&6 4108else $as_nop 4109 ac_save_c_werror_flag=$ac_c_werror_flag 4110 ac_c_werror_flag=yes 4111 ac_cv_prog_cc_g=no 4112 CFLAGS="-g" 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main (void) 4118{ 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124if ac_fn_c_try_compile "$LINENO" 4125then : 4126 ac_cv_prog_cc_g=yes 4127else $as_nop 4128 CFLAGS="" 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131 4132int 4133main (void) 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140if ac_fn_c_try_compile "$LINENO" 4141then : 4142 4143else $as_nop 4144 ac_c_werror_flag=$ac_save_c_werror_flag 4145 CFLAGS="-g" 4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4147/* end confdefs.h. */ 4148 4149int 4150main (void) 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO" 4158then : 4159 ac_cv_prog_cc_g=yes 4160fi 4161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4162fi 4163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4166 ac_c_werror_flag=$ac_save_c_werror_flag 4167fi 4168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4169printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4170if test $ac_test_CFLAGS; then 4171 CFLAGS=$ac_save_CFLAGS 4172elif test $ac_cv_prog_cc_g = yes; then 4173 if test "$GCC" = yes; then 4174 CFLAGS="-g -O2" 4175 else 4176 CFLAGS="-g" 4177 fi 4178else 4179 if test "$GCC" = yes; then 4180 CFLAGS="-O2" 4181 else 4182 CFLAGS= 4183 fi 4184fi 4185ac_prog_cc_stdc=no 4186if test x$ac_prog_cc_stdc = xno 4187then : 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4189printf %s "checking for $CC option to enable C11 features... " >&6; } 4190if test ${ac_cv_prog_cc_c11+y} 4191then : 4192 printf %s "(cached) " >&6 4193else $as_nop 4194 ac_cv_prog_cc_c11=no 4195ac_save_CC=$CC 4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198$ac_c_conftest_c11_program 4199_ACEOF 4200for ac_arg in '' -std=gnu11 4201do 4202 CC="$ac_save_CC $ac_arg" 4203 if ac_fn_c_try_compile "$LINENO" 4204then : 4205 ac_cv_prog_cc_c11=$ac_arg 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.beam 4208 test "x$ac_cv_prog_cc_c11" != "xno" && break 4209done 4210rm -f conftest.$ac_ext 4211CC=$ac_save_CC 4212fi 4213 4214if test "x$ac_cv_prog_cc_c11" = xno 4215then : 4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4217printf "%s\n" "unsupported" >&6; } 4218else $as_nop 4219 if test "x$ac_cv_prog_cc_c11" = x 4220then : 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4222printf "%s\n" "none needed" >&6; } 4223else $as_nop 4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4225printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4226 CC="$CC $ac_cv_prog_cc_c11" 4227fi 4228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4229 ac_prog_cc_stdc=c11 4230fi 4231fi 4232if test x$ac_prog_cc_stdc = xno 4233then : 4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4235printf %s "checking for $CC option to enable C99 features... " >&6; } 4236if test ${ac_cv_prog_cc_c99+y} 4237then : 4238 printf %s "(cached) " >&6 4239else $as_nop 4240 ac_cv_prog_cc_c99=no 4241ac_save_CC=$CC 4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244$ac_c_conftest_c99_program 4245_ACEOF 4246for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4247do 4248 CC="$ac_save_CC $ac_arg" 4249 if ac_fn_c_try_compile "$LINENO" 4250then : 4251 ac_cv_prog_cc_c99=$ac_arg 4252fi 4253rm -f core conftest.err conftest.$ac_objext conftest.beam 4254 test "x$ac_cv_prog_cc_c99" != "xno" && break 4255done 4256rm -f conftest.$ac_ext 4257CC=$ac_save_CC 4258fi 4259 4260if test "x$ac_cv_prog_cc_c99" = xno 4261then : 4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4263printf "%s\n" "unsupported" >&6; } 4264else $as_nop 4265 if test "x$ac_cv_prog_cc_c99" = x 4266then : 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4268printf "%s\n" "none needed" >&6; } 4269else $as_nop 4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4271printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4272 CC="$CC $ac_cv_prog_cc_c99" 4273fi 4274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4275 ac_prog_cc_stdc=c99 4276fi 4277fi 4278if test x$ac_prog_cc_stdc = xno 4279then : 4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4281printf %s "checking for $CC option to enable C89 features... " >&6; } 4282if test ${ac_cv_prog_cc_c89+y} 4283then : 4284 printf %s "(cached) " >&6 4285else $as_nop 4286 ac_cv_prog_cc_c89=no 4287ac_save_CC=$CC 4288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290$ac_c_conftest_c89_program 4291_ACEOF 4292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4293do 4294 CC="$ac_save_CC $ac_arg" 4295 if ac_fn_c_try_compile "$LINENO" 4296then : 4297 ac_cv_prog_cc_c89=$ac_arg 4298fi 4299rm -f core conftest.err conftest.$ac_objext conftest.beam 4300 test "x$ac_cv_prog_cc_c89" != "xno" && break 4301done 4302rm -f conftest.$ac_ext 4303CC=$ac_save_CC 4304fi 4305 4306if test "x$ac_cv_prog_cc_c89" = xno 4307then : 4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4309printf "%s\n" "unsupported" >&6; } 4310else $as_nop 4311 if test "x$ac_cv_prog_cc_c89" = x 4312then : 4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4314printf "%s\n" "none needed" >&6; } 4315else $as_nop 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4317printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4318 CC="$CC $ac_cv_prog_cc_c89" 4319fi 4320 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4321 ac_prog_cc_stdc=c89 4322fi 4323fi 4324 4325ac_ext=c 4326ac_cpp='$CPP $CPPFLAGS' 4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329ac_compiler_gnu=$ac_cv_c_compiler_gnu 4330 4331 4332 ac_ext=c 4333ac_cpp='$CPP $CPPFLAGS' 4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336ac_compiler_gnu=$ac_cv_c_compiler_gnu 4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4338printf %s "checking whether $CC understands -c and -o together... " >&6; } 4339if test ${am_cv_prog_cc_c_o+y} 4340then : 4341 printf %s "(cached) " >&6 4342else $as_nop 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345 4346int 4347main (void) 4348{ 4349 4350 ; 4351 return 0; 4352} 4353_ACEOF 4354 # Make sure it works both with $CC and with simple cc. 4355 # Following AC_PROG_CC_C_O, we do the test twice because some 4356 # compilers refuse to overwrite an existing .o file with -o, 4357 # though they will create one. 4358 am_cv_prog_cc_c_o=yes 4359 for am_i in 1 2; do 4360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4361 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4362 ac_status=$? 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); } \ 4365 && test -f conftest2.$ac_objext; then 4366 : OK 4367 else 4368 am_cv_prog_cc_c_o=no 4369 break 4370 fi 4371 done 4372 rm -f core conftest* 4373 unset am_i 4374fi 4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4376printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4377if test "$am_cv_prog_cc_c_o" != yes; then 4378 # Losing compiler, so override with the script. 4379 # FIXME: It is wrong to rewrite CC. 4380 # But if we don't then we get into trouble of one sort or another. 4381 # A longer-term fix would be to have automake use am__CC in this case, 4382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4383 CC="$am_aux_dir/compile $CC" 4384fi 4385ac_ext=c 4386ac_cpp='$CPP $CPPFLAGS' 4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392depcc="$CC" am_compiler_list= 4393 4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4395printf %s "checking dependency style of $depcc... " >&6; } 4396if test ${am_cv_CC_dependencies_compiler_type+y} 4397then : 4398 printf %s "(cached) " >&6 4399else $as_nop 4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4401 # We make a subdir and do the tests there. Otherwise we can end up 4402 # making bogus files that we don't know about and never remove. For 4403 # instance it was reported that on HP-UX the gcc test will end up 4404 # making a dummy file named 'D' -- because '-MD' means "put the output 4405 # in D". 4406 rm -rf conftest.dir 4407 mkdir conftest.dir 4408 # Copy depcomp to subdir because otherwise we won't find it if we're 4409 # using a relative directory. 4410 cp "$am_depcomp" conftest.dir 4411 cd conftest.dir 4412 # We will build objects and dependencies in a subdirectory because 4413 # it helps to detect inapplicable dependency modes. For instance 4414 # both Tru64's cc and ICC support -MD to output dependencies as a 4415 # side effect of compilation, but ICC will put the dependencies in 4416 # the current directory while Tru64 will put them in the object 4417 # directory. 4418 mkdir sub 4419 4420 am_cv_CC_dependencies_compiler_type=none 4421 if test "$am_compiler_list" = ""; then 4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4423 fi 4424 am__universal=false 4425 case " $depcc " in #( 4426 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4427 esac 4428 4429 for depmode in $am_compiler_list; do 4430 # Setup a source with many dependencies, because some compilers 4431 # like to wrap large dependency lists on column 80 (with \), and 4432 # we should not choose a depcomp mode which is confused by this. 4433 # 4434 # We need to recreate these files for each test, as the compiler may 4435 # overwrite some of them when testing with obscure command lines. 4436 # This happens at least with the AIX C compiler. 4437 : > sub/conftest.c 4438 for i in 1 2 3 4 5 6; do 4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4441 # Solaris 10 /bin/sh. 4442 echo '/* dummy */' > sub/conftst$i.h 4443 done 4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4445 4446 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4447 # mode. It turns out that the SunPro C++ compiler does not properly 4448 # handle '-M -o', and we need to detect this. Also, some Intel 4449 # versions had trouble with output in subdirs. 4450 am__obj=sub/conftest.${OBJEXT-o} 4451 am__minus_obj="-o $am__obj" 4452 case $depmode in 4453 gcc) 4454 # This depmode causes a compiler race in universal mode. 4455 test "$am__universal" = false || continue 4456 ;; 4457 nosideeffect) 4458 # After this tag, mechanisms are not by side-effect, so they'll 4459 # only be used when explicitly requested. 4460 if test "x$enable_dependency_tracking" = xyes; then 4461 continue 4462 else 4463 break 4464 fi 4465 ;; 4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4467 # This compiler won't grok '-c -o', but also, the minuso test has 4468 # not run yet. These depmodes are late enough in the game, and 4469 # so weak that their functioning should not be impacted. 4470 am__obj=conftest.${OBJEXT-o} 4471 am__minus_obj= 4472 ;; 4473 none) break ;; 4474 esac 4475 if depmode=$depmode \ 4476 source=sub/conftest.c object=$am__obj \ 4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4479 >/dev/null 2>conftest.err && 4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4484 # icc doesn't choke on unknown options, it will just issue warnings 4485 # or remarks (even with -Werror). So we grep stderr for any message 4486 # that says an option was ignored or not supported. 4487 # When given -MP, icc 7.0 and 7.1 complain thusly: 4488 # icc: Command line warning: ignoring option '-M'; no argument required 4489 # The diagnosis changed in icc 8.0: 4490 # icc: Command line remark: option '-MP' not supported 4491 if (grep 'ignoring option' conftest.err || 4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4493 am_cv_CC_dependencies_compiler_type=$depmode 4494 break 4495 fi 4496 fi 4497 done 4498 4499 cd .. 4500 rm -rf conftest.dir 4501else 4502 am_cv_CC_dependencies_compiler_type=none 4503fi 4504 4505fi 4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4507printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4508CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4509 4510 if 4511 test "x$enable_dependency_tracking" != xno \ 4512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4513 am__fastdepCC_TRUE= 4514 am__fastdepCC_FALSE='#' 4515else 4516 am__fastdepCC_TRUE='#' 4517 am__fastdepCC_FALSE= 4518fi 4519 4520 4521 4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4523printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4524if test ${ac_cv_c_undeclared_builtin_options+y} 4525then : 4526 printf %s "(cached) " >&6 4527else $as_nop 4528 ac_save_CFLAGS=$CFLAGS 4529 ac_cv_c_undeclared_builtin_options='cannot detect' 4530 for ac_arg in '' -fno-builtin; do 4531 CFLAGS="$ac_save_CFLAGS $ac_arg" 4532 # This test program should *not* compile successfully. 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535 4536int 4537main (void) 4538{ 4539(void) strchr; 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_compile "$LINENO" 4545then : 4546 4547else $as_nop 4548 # This test program should compile successfully. 4549 # No library function is consistently available on 4550 # freestanding implementations, so test against a dummy 4551 # declaration. Include always-available headers on the 4552 # off chance that they somehow elicit warnings. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#include <float.h> 4556#include <limits.h> 4557#include <stdarg.h> 4558#include <stddef.h> 4559extern void ac_decl (int, char *); 4560 4561int 4562main (void) 4563{ 4564(void) ac_decl (0, (char *) 0); 4565 (void) ac_decl; 4566 4567 ; 4568 return 0; 4569} 4570_ACEOF 4571if ac_fn_c_try_compile "$LINENO" 4572then : 4573 if test x"$ac_arg" = x 4574then : 4575 ac_cv_c_undeclared_builtin_options='none needed' 4576else $as_nop 4577 ac_cv_c_undeclared_builtin_options=$ac_arg 4578fi 4579 break 4580fi 4581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4582fi 4583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4584 done 4585 CFLAGS=$ac_save_CFLAGS 4586 4587fi 4588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4589printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4590 case $ac_cv_c_undeclared_builtin_options in #( 4591 'cannot detect') : 4592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4593printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4594as_fn_error $? "cannot make $CC report undeclared builtins 4595See \`config.log' for more details" "$LINENO" 5; } ;; #( 4596 'none needed') : 4597 ac_c_undeclared_builtin_options='' ;; #( 4598 *) : 4599 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4600esac 4601 4602ac_header= ac_cache= 4603for ac_item in $ac_header_c_list 4604do 4605 if test $ac_cache; then 4606 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4607 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4608 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4609 fi 4610 ac_header= ac_cache= 4611 elif test $ac_header; then 4612 ac_cache=$ac_item 4613 else 4614 ac_header=$ac_item 4615 fi 4616done 4617 4618 4619 4620 4621 4622 4623 4624 4625if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4626then : 4627 4628printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4629 4630fi 4631 4632 4633 4634 4635ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4636if test "x$ac_cv_have_decl___clang__" = xyes 4637then : 4638 CLANGCC="yes" 4639else $as_nop 4640 CLANGCC="no" 4641fi 4642ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4643if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4644then : 4645 INTELCC="yes" 4646else $as_nop 4647 INTELCC="no" 4648fi 4649ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4650if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4651then : 4652 SUNCC="yes" 4653else $as_nop 4654 SUNCC="no" 4655fi 4656 4657 4658 4659 4660 4661 4662 4663 4664if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4665 if test -n "$ac_tool_prefix"; then 4666 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4667set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4669printf %s "checking for $ac_word... " >&6; } 4670if test ${ac_cv_path_PKG_CONFIG+y} 4671then : 4672 printf %s "(cached) " >&6 4673else $as_nop 4674 case $PKG_CONFIG in 4675 [\\/]* | ?:[\\/]*) 4676 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4677 ;; 4678 *) 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in $PATH 4681do 4682 IFS=$as_save_IFS 4683 case $as_dir in #((( 4684 '') as_dir=./ ;; 4685 */) ;; 4686 *) as_dir=$as_dir/ ;; 4687 esac 4688 for ac_exec_ext in '' $ac_executable_extensions; do 4689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4690 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4692 break 2 4693 fi 4694done 4695 done 4696IFS=$as_save_IFS 4697 4698 ;; 4699esac 4700fi 4701PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4702if test -n "$PKG_CONFIG"; then 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4704printf "%s\n" "$PKG_CONFIG" >&6; } 4705else 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4707printf "%s\n" "no" >&6; } 4708fi 4709 4710 4711fi 4712if test -z "$ac_cv_path_PKG_CONFIG"; then 4713 ac_pt_PKG_CONFIG=$PKG_CONFIG 4714 # Extract the first word of "pkg-config", so it can be a program name with args. 4715set dummy pkg-config; ac_word=$2 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4717printf %s "checking for $ac_word... " >&6; } 4718if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 case $ac_pt_PKG_CONFIG in 4723 [\\/]* | ?:[\\/]*) 4724 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4725 ;; 4726 *) 4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4728for as_dir in $PATH 4729do 4730 IFS=$as_save_IFS 4731 case $as_dir in #((( 4732 '') as_dir=./ ;; 4733 */) ;; 4734 *) as_dir=$as_dir/ ;; 4735 esac 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4738 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742done 4743 done 4744IFS=$as_save_IFS 4745 4746 ;; 4747esac 4748fi 4749ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4750if test -n "$ac_pt_PKG_CONFIG"; then 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4752printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4753else 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755printf "%s\n" "no" >&6; } 4756fi 4757 4758 if test "x$ac_pt_PKG_CONFIG" = x; then 4759 PKG_CONFIG="" 4760 else 4761 case $cross_compiling:$ac_tool_warned in 4762yes:) 4763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4764printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4765ac_tool_warned=yes ;; 4766esac 4767 PKG_CONFIG=$ac_pt_PKG_CONFIG 4768 fi 4769else 4770 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4771fi 4772 4773fi 4774if test -n "$PKG_CONFIG"; then 4775 _pkg_min_version=0.9.0 4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4777printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4778 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4780printf "%s\n" "yes" >&6; } 4781 else 4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4783printf "%s\n" "no" >&6; } 4784 PKG_CONFIG="" 4785 fi 4786fi 4787 4788 4789 # Make sure we can run config.sub. 4790$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4791 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4792 4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4794printf %s "checking build system type... " >&6; } 4795if test ${ac_cv_build+y} 4796then : 4797 printf %s "(cached) " >&6 4798else $as_nop 4799 ac_build_alias=$build_alias 4800test "x$ac_build_alias" = x && 4801 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4802test "x$ac_build_alias" = x && 4803 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4804ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4805 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4806 4807fi 4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4809printf "%s\n" "$ac_cv_build" >&6; } 4810case $ac_cv_build in 4811*-*-*) ;; 4812*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4813esac 4814build=$ac_cv_build 4815ac_save_IFS=$IFS; IFS='-' 4816set x $ac_cv_build 4817shift 4818build_cpu=$1 4819build_vendor=$2 4820shift; shift 4821# Remember, the first character of IFS is used to create $*, 4822# except with old shells: 4823build_os=$* 4824IFS=$ac_save_IFS 4825case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4826 4827 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4829printf %s "checking host system type... " >&6; } 4830if test ${ac_cv_host+y} 4831then : 4832 printf %s "(cached) " >&6 4833else $as_nop 4834 if test "x$host_alias" = x; then 4835 ac_cv_host=$ac_cv_build 4836else 4837 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4838 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4839fi 4840 4841fi 4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4843printf "%s\n" "$ac_cv_host" >&6; } 4844case $ac_cv_host in 4845*-*-*) ;; 4846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4847esac 4848host=$ac_cv_host 4849ac_save_IFS=$IFS; IFS='-' 4850set x $ac_cv_host 4851shift 4852host_cpu=$1 4853host_vendor=$2 4854shift; shift 4855# Remember, the first character of IFS is used to create $*, 4856# except with old shells: 4857host_os=$* 4858IFS=$ac_save_IFS 4859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4860 4861 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4863printf %s "checking for a sed that does not truncate output... " >&6; } 4864if test ${ac_cv_path_SED+y} 4865then : 4866 printf %s "(cached) " >&6 4867else $as_nop 4868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4869 for ac_i in 1 2 3 4 5 6 7; do 4870 ac_script="$ac_script$as_nl$ac_script" 4871 done 4872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4873 { ac_script=; unset ac_script;} 4874 if test -z "$SED"; then 4875 ac_path_SED_found=false 4876 # Loop through the user's path and test for each of PROGNAME-LIST 4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878for as_dir in $PATH 4879do 4880 IFS=$as_save_IFS 4881 case $as_dir in #((( 4882 '') as_dir=./ ;; 4883 */) ;; 4884 *) as_dir=$as_dir/ ;; 4885 esac 4886 for ac_prog in sed gsed 4887 do 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4890 as_fn_executable_p "$ac_path_SED" || continue 4891# Check for GNU ac_path_SED and select it if it is found. 4892 # Check for GNU $ac_path_SED 4893case `"$ac_path_SED" --version 2>&1` in 4894*GNU*) 4895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4896*) 4897 ac_count=0 4898 printf %s 0123456789 >"conftest.in" 4899 while : 4900 do 4901 cat "conftest.in" "conftest.in" >"conftest.tmp" 4902 mv "conftest.tmp" "conftest.in" 4903 cp "conftest.in" "conftest.nl" 4904 printf "%s\n" '' >> "conftest.nl" 4905 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4907 as_fn_arith $ac_count + 1 && ac_count=$as_val 4908 if test $ac_count -gt ${ac_path_SED_max-0}; then 4909 # Best one so far, save it but keep looking for a better one 4910 ac_cv_path_SED="$ac_path_SED" 4911 ac_path_SED_max=$ac_count 4912 fi 4913 # 10*(2^10) chars as input seems more than enough 4914 test $ac_count -gt 10 && break 4915 done 4916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4917esac 4918 4919 $ac_path_SED_found && break 3 4920 done 4921 done 4922 done 4923IFS=$as_save_IFS 4924 if test -z "$ac_cv_path_SED"; then 4925 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4926 fi 4927else 4928 ac_cv_path_SED=$SED 4929fi 4930 4931fi 4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4933printf "%s\n" "$ac_cv_path_SED" >&6; } 4934 SED="$ac_cv_path_SED" 4935 rm -f conftest.sed 4936 4937 4938 4939 4940 4941 4942# Check whether --enable-selective-werror was given. 4943if test ${enable_selective_werror+y} 4944then : 4945 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4946else $as_nop 4947 SELECTIVE_WERROR=yes 4948fi 4949 4950 4951 4952 4953 4954# -v is too short to test reliably with XORG_TESTSET_CFLAG 4955if test "x$SUNCC" = "xyes"; then 4956 BASE_CFLAGS="-v" 4957else 4958 BASE_CFLAGS="" 4959fi 4960 4961# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975xorg_testset_save_CFLAGS="$CFLAGS" 4976 4977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4981if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4982then : 4983 printf %s "(cached) " >&6 4984else $as_nop 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987int i; 4988_ACEOF 4989if ac_fn_c_try_compile "$LINENO" 4990then : 4991 xorg_cv_cc_flag_unknown_warning_option=yes 4992else $as_nop 4993 xorg_cv_cc_flag_unknown_warning_option=no 4994fi 4995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4996fi 4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5000 CFLAGS="$xorg_testset_save_CFLAGS" 5001fi 5002 5003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5006 fi 5007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5010if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5011then : 5012 printf %s "(cached) " >&6 5013else $as_nop 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5015/* end confdefs.h. */ 5016int i; 5017_ACEOF 5018if ac_fn_c_try_compile "$LINENO" 5019then : 5020 xorg_cv_cc_flag_unused_command_line_argument=yes 5021else $as_nop 5022 xorg_cv_cc_flag_unused_command_line_argument=no 5023fi 5024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5025fi 5026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5029 CFLAGS="$xorg_testset_save_CFLAGS" 5030fi 5031 5032found="no" 5033 5034 if test $found = "no" ; then 5035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037 fi 5038 5039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5041 fi 5042 5043 CFLAGS="$CFLAGS -Wall" 5044 5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5046printf %s "checking if $CC supports -Wall... " >&6; } 5047 cacheid=xorg_cv_cc_flag__Wall 5048 if eval test \${$cacheid+y} 5049then : 5050 printf %s "(cached) " >&6 5051else $as_nop 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054int i; 5055int 5056main (void) 5057{ 5058 5059 ; 5060 return 0; 5061} 5062_ACEOF 5063if ac_fn_c_try_link "$LINENO" 5064then : 5065 eval $cacheid=yes 5066else $as_nop 5067 eval $cacheid=no 5068fi 5069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5070 conftest$ac_exeext conftest.$ac_ext 5071fi 5072 5073 5074 CFLAGS="$xorg_testset_save_CFLAGS" 5075 5076 eval supported=\$$cacheid 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5078printf "%s\n" "$supported" >&6; } 5079 if test "$supported" = "yes" ; then 5080 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5081 found="yes" 5082 fi 5083 fi 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099xorg_testset_save_CFLAGS="$CFLAGS" 5100 5101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5105if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5106then : 5107 printf %s "(cached) " >&6 5108else $as_nop 5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110/* end confdefs.h. */ 5111int i; 5112_ACEOF 5113if ac_fn_c_try_compile "$LINENO" 5114then : 5115 xorg_cv_cc_flag_unknown_warning_option=yes 5116else $as_nop 5117 xorg_cv_cc_flag_unknown_warning_option=no 5118fi 5119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5120fi 5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125fi 5126 5127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5130 fi 5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5134if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5135then : 5136 printf %s "(cached) " >&6 5137else $as_nop 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO" 5143then : 5144 xorg_cv_cc_flag_unused_command_line_argument=yes 5145else $as_nop 5146 xorg_cv_cc_flag_unused_command_line_argument=no 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5149fi 5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5153 CFLAGS="$xorg_testset_save_CFLAGS" 5154fi 5155 5156found="no" 5157 5158 if test $found = "no" ; then 5159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 fi 5162 5163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5165 fi 5166 5167 CFLAGS="$CFLAGS -Wpointer-arith" 5168 5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5170printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5171 cacheid=xorg_cv_cc_flag__Wpointer_arith 5172 if eval test \${$cacheid+y} 5173then : 5174 printf %s "(cached) " >&6 5175else $as_nop 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178int i; 5179int 5180main (void) 5181{ 5182 5183 ; 5184 return 0; 5185} 5186_ACEOF 5187if ac_fn_c_try_link "$LINENO" 5188then : 5189 eval $cacheid=yes 5190else $as_nop 5191 eval $cacheid=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5194 conftest$ac_exeext conftest.$ac_ext 5195fi 5196 5197 5198 CFLAGS="$xorg_testset_save_CFLAGS" 5199 5200 eval supported=\$$cacheid 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5202printf "%s\n" "$supported" >&6; } 5203 if test "$supported" = "yes" ; then 5204 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5205 found="yes" 5206 fi 5207 fi 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223xorg_testset_save_CFLAGS="$CFLAGS" 5224 5225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5229if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5230then : 5231 printf %s "(cached) " >&6 5232else $as_nop 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236_ACEOF 5237if ac_fn_c_try_compile "$LINENO" 5238then : 5239 xorg_cv_cc_flag_unknown_warning_option=yes 5240else $as_nop 5241 xorg_cv_cc_flag_unknown_warning_option=no 5242fi 5243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5244fi 5245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5248 CFLAGS="$xorg_testset_save_CFLAGS" 5249fi 5250 5251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254 fi 5255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5258if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5259then : 5260 printf %s "(cached) " >&6 5261else $as_nop 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263/* end confdefs.h. */ 5264int i; 5265_ACEOF 5266if ac_fn_c_try_compile "$LINENO" 5267then : 5268 xorg_cv_cc_flag_unused_command_line_argument=yes 5269else $as_nop 5270 xorg_cv_cc_flag_unused_command_line_argument=no 5271fi 5272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5273fi 5274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278fi 5279 5280found="no" 5281 5282 if test $found = "no" ; then 5283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5285 fi 5286 5287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5289 fi 5290 5291 CFLAGS="$CFLAGS -Wmissing-declarations" 5292 5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5294printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5295 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5296 if eval test \${$cacheid+y} 5297then : 5298 printf %s "(cached) " >&6 5299else $as_nop 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303int 5304main (void) 5305{ 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311if ac_fn_c_try_link "$LINENO" 5312then : 5313 eval $cacheid=yes 5314else $as_nop 5315 eval $cacheid=no 5316fi 5317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5318 conftest$ac_exeext conftest.$ac_ext 5319fi 5320 5321 5322 CFLAGS="$xorg_testset_save_CFLAGS" 5323 5324 eval supported=\$$cacheid 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5326printf "%s\n" "$supported" >&6; } 5327 if test "$supported" = "yes" ; then 5328 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5329 found="yes" 5330 fi 5331 fi 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347xorg_testset_save_CFLAGS="$CFLAGS" 5348 5349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5353if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5354then : 5355 printf %s "(cached) " >&6 5356else $as_nop 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359int i; 5360_ACEOF 5361if ac_fn_c_try_compile "$LINENO" 5362then : 5363 xorg_cv_cc_flag_unknown_warning_option=yes 5364else $as_nop 5365 xorg_cv_cc_flag_unknown_warning_option=no 5366fi 5367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5368fi 5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5370printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5372 CFLAGS="$xorg_testset_save_CFLAGS" 5373fi 5374 5375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5378 fi 5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5381printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5382if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5383then : 5384 printf %s "(cached) " >&6 5385else $as_nop 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388int i; 5389_ACEOF 5390if ac_fn_c_try_compile "$LINENO" 5391then : 5392 xorg_cv_cc_flag_unused_command_line_argument=yes 5393else $as_nop 5394 xorg_cv_cc_flag_unused_command_line_argument=no 5395fi 5396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5397fi 5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5401 CFLAGS="$xorg_testset_save_CFLAGS" 5402fi 5403 5404found="no" 5405 5406 if test $found = "no" ; then 5407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 fi 5410 5411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5413 fi 5414 5415 CFLAGS="$CFLAGS -Wformat=2" 5416 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5418printf %s "checking if $CC supports -Wformat=2... " >&6; } 5419 cacheid=xorg_cv_cc_flag__Wformat_2 5420 if eval test \${$cacheid+y} 5421then : 5422 printf %s "(cached) " >&6 5423else $as_nop 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427int 5428main (void) 5429{ 5430 5431 ; 5432 return 0; 5433} 5434_ACEOF 5435if ac_fn_c_try_link "$LINENO" 5436then : 5437 eval $cacheid=yes 5438else $as_nop 5439 eval $cacheid=no 5440fi 5441rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5442 conftest$ac_exeext conftest.$ac_ext 5443fi 5444 5445 5446 CFLAGS="$xorg_testset_save_CFLAGS" 5447 5448 eval supported=\$$cacheid 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5450printf "%s\n" "$supported" >&6; } 5451 if test "$supported" = "yes" ; then 5452 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5453 found="yes" 5454 fi 5455 fi 5456 5457 if test $found = "no" ; then 5458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460 fi 5461 5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 fi 5465 5466 CFLAGS="$CFLAGS -Wformat" 5467 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5469printf %s "checking if $CC supports -Wformat... " >&6; } 5470 cacheid=xorg_cv_cc_flag__Wformat 5471 if eval test \${$cacheid+y} 5472then : 5473 printf %s "(cached) " >&6 5474else $as_nop 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477int i; 5478int 5479main (void) 5480{ 5481 5482 ; 5483 return 0; 5484} 5485_ACEOF 5486if ac_fn_c_try_link "$LINENO" 5487then : 5488 eval $cacheid=yes 5489else $as_nop 5490 eval $cacheid=no 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5493 conftest$ac_exeext conftest.$ac_ext 5494fi 5495 5496 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498 5499 eval supported=\$$cacheid 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5501printf "%s\n" "$supported" >&6; } 5502 if test "$supported" = "yes" ; then 5503 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5504 found="yes" 5505 fi 5506 fi 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524xorg_testset_save_CFLAGS="$CFLAGS" 5525 5526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5531then : 5532 printf %s "(cached) " >&6 5533else $as_nop 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536int i; 5537_ACEOF 5538if ac_fn_c_try_compile "$LINENO" 5539then : 5540 xorg_cv_cc_flag_unknown_warning_option=yes 5541else $as_nop 5542 xorg_cv_cc_flag_unknown_warning_option=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5545fi 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550fi 5551 5552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5560then : 5561 printf %s "(cached) " >&6 5562else $as_nop 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int i; 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO" 5568then : 5569 xorg_cv_cc_flag_unused_command_line_argument=yes 5570else $as_nop 5571 xorg_cv_cc_flag_unused_command_line_argument=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5574fi 5575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5578 CFLAGS="$xorg_testset_save_CFLAGS" 5579fi 5580 5581found="no" 5582 5583 if test $found = "no" ; then 5584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5586 fi 5587 5588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5590 fi 5591 5592 CFLAGS="$CFLAGS -Wstrict-prototypes" 5593 5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5595printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5596 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5597 if eval test \${$cacheid+y} 5598then : 5599 printf %s "(cached) " >&6 5600else $as_nop 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603int i; 5604int 5605main (void) 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_link "$LINENO" 5613then : 5614 eval $cacheid=yes 5615else $as_nop 5616 eval $cacheid=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5619 conftest$ac_exeext conftest.$ac_ext 5620fi 5621 5622 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 5625 eval supported=\$$cacheid 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5627printf "%s\n" "$supported" >&6; } 5628 if test "$supported" = "yes" ; then 5629 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5630 found="yes" 5631 fi 5632 fi 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648xorg_testset_save_CFLAGS="$CFLAGS" 5649 5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5655then : 5656 printf %s "(cached) " >&6 5657else $as_nop 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660int i; 5661_ACEOF 5662if ac_fn_c_try_compile "$LINENO" 5663then : 5664 xorg_cv_cc_flag_unknown_warning_option=yes 5665else $as_nop 5666 xorg_cv_cc_flag_unknown_warning_option=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5669fi 5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674fi 5675 5676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5684then : 5685 printf %s "(cached) " >&6 5686else $as_nop 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690_ACEOF 5691if ac_fn_c_try_compile "$LINENO" 5692then : 5693 xorg_cv_cc_flag_unused_command_line_argument=yes 5694else $as_nop 5695 xorg_cv_cc_flag_unused_command_line_argument=no 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5698fi 5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5702 CFLAGS="$xorg_testset_save_CFLAGS" 5703fi 5704 5705found="no" 5706 5707 if test $found = "no" ; then 5708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 fi 5711 5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 fi 5715 5716 CFLAGS="$CFLAGS -Wmissing-prototypes" 5717 5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5719printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5720 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5721 if eval test \${$cacheid+y} 5722then : 5723 printf %s "(cached) " >&6 5724else $as_nop 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5726/* end confdefs.h. */ 5727int i; 5728int 5729main (void) 5730{ 5731 5732 ; 5733 return 0; 5734} 5735_ACEOF 5736if ac_fn_c_try_link "$LINENO" 5737then : 5738 eval $cacheid=yes 5739else $as_nop 5740 eval $cacheid=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5743 conftest$ac_exeext conftest.$ac_ext 5744fi 5745 5746 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748 5749 eval supported=\$$cacheid 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5751printf "%s\n" "$supported" >&6; } 5752 if test "$supported" = "yes" ; then 5753 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5754 found="yes" 5755 fi 5756 fi 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772xorg_testset_save_CFLAGS="$CFLAGS" 5773 5774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5779then : 5780 printf %s "(cached) " >&6 5781else $as_nop 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784int i; 5785_ACEOF 5786if ac_fn_c_try_compile "$LINENO" 5787then : 5788 xorg_cv_cc_flag_unknown_warning_option=yes 5789else $as_nop 5790 xorg_cv_cc_flag_unknown_warning_option=no 5791fi 5792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5793fi 5794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798fi 5799 5800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5803 fi 5804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5808then : 5809 printf %s "(cached) " >&6 5810else $as_nop 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813int i; 5814_ACEOF 5815if ac_fn_c_try_compile "$LINENO" 5816then : 5817 xorg_cv_cc_flag_unused_command_line_argument=yes 5818else $as_nop 5819 xorg_cv_cc_flag_unused_command_line_argument=no 5820fi 5821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5822fi 5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5826 CFLAGS="$xorg_testset_save_CFLAGS" 5827fi 5828 5829found="no" 5830 5831 if test $found = "no" ; then 5832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834 fi 5835 5836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5838 fi 5839 5840 CFLAGS="$CFLAGS -Wnested-externs" 5841 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5843printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5844 cacheid=xorg_cv_cc_flag__Wnested_externs 5845 if eval test \${$cacheid+y} 5846then : 5847 printf %s "(cached) " >&6 5848else $as_nop 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850/* end confdefs.h. */ 5851int i; 5852int 5853main (void) 5854{ 5855 5856 ; 5857 return 0; 5858} 5859_ACEOF 5860if ac_fn_c_try_link "$LINENO" 5861then : 5862 eval $cacheid=yes 5863else $as_nop 5864 eval $cacheid=no 5865fi 5866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5867 conftest$ac_exeext conftest.$ac_ext 5868fi 5869 5870 5871 CFLAGS="$xorg_testset_save_CFLAGS" 5872 5873 eval supported=\$$cacheid 5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5875printf "%s\n" "$supported" >&6; } 5876 if test "$supported" = "yes" ; then 5877 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5878 found="yes" 5879 fi 5880 fi 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896xorg_testset_save_CFLAGS="$CFLAGS" 5897 5898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5903then : 5904 printf %s "(cached) " >&6 5905else $as_nop 5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909_ACEOF 5910if ac_fn_c_try_compile "$LINENO" 5911then : 5912 xorg_cv_cc_flag_unknown_warning_option=yes 5913else $as_nop 5914 xorg_cv_cc_flag_unknown_warning_option=no 5915fi 5916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5917fi 5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5921 CFLAGS="$xorg_testset_save_CFLAGS" 5922fi 5923 5924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 fi 5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5932then : 5933 printf %s "(cached) " >&6 5934else $as_nop 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938_ACEOF 5939if ac_fn_c_try_compile "$LINENO" 5940then : 5941 xorg_cv_cc_flag_unused_command_line_argument=yes 5942else $as_nop 5943 xorg_cv_cc_flag_unused_command_line_argument=no 5944fi 5945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5946fi 5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5950 CFLAGS="$xorg_testset_save_CFLAGS" 5951fi 5952 5953found="no" 5954 5955 if test $found = "no" ; then 5956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 fi 5959 5960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5962 fi 5963 5964 CFLAGS="$CFLAGS -Wbad-function-cast" 5965 5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5967printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5968 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5969 if eval test \${$cacheid+y} 5970then : 5971 printf %s "(cached) " >&6 5972else $as_nop 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5974/* end confdefs.h. */ 5975int i; 5976int 5977main (void) 5978{ 5979 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984if ac_fn_c_try_link "$LINENO" 5985then : 5986 eval $cacheid=yes 5987else $as_nop 5988 eval $cacheid=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5991 conftest$ac_exeext conftest.$ac_ext 5992fi 5993 5994 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996 5997 eval supported=\$$cacheid 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5999printf "%s\n" "$supported" >&6; } 6000 if test "$supported" = "yes" ; then 6001 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6002 found="yes" 6003 fi 6004 fi 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020xorg_testset_save_CFLAGS="$CFLAGS" 6021 6022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6027then : 6028 printf %s "(cached) " >&6 6029else $as_nop 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033_ACEOF 6034if ac_fn_c_try_compile "$LINENO" 6035then : 6036 xorg_cv_cc_flag_unknown_warning_option=yes 6037else $as_nop 6038 xorg_cv_cc_flag_unknown_warning_option=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6041fi 6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046fi 6047 6048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 fi 6052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6056then : 6057 printf %s "(cached) " >&6 6058else $as_nop 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO" 6064then : 6065 xorg_cv_cc_flag_unused_command_line_argument=yes 6066else $as_nop 6067 xorg_cv_cc_flag_unused_command_line_argument=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6070fi 6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075fi 6076 6077found="no" 6078 6079 if test $found = "no" ; then 6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 fi 6083 6084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6086 fi 6087 6088 CFLAGS="$CFLAGS -Wold-style-definition" 6089 6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6091printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6092 cacheid=xorg_cv_cc_flag__Wold_style_definition 6093 if eval test \${$cacheid+y} 6094then : 6095 printf %s "(cached) " >&6 6096else $as_nop 6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098/* end confdefs.h. */ 6099int i; 6100int 6101main (void) 6102{ 6103 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108if ac_fn_c_try_link "$LINENO" 6109then : 6110 eval $cacheid=yes 6111else $as_nop 6112 eval $cacheid=no 6113fi 6114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6115 conftest$ac_exeext conftest.$ac_ext 6116fi 6117 6118 6119 CFLAGS="$xorg_testset_save_CFLAGS" 6120 6121 eval supported=\$$cacheid 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6123printf "%s\n" "$supported" >&6; } 6124 if test "$supported" = "yes" ; then 6125 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6126 found="yes" 6127 fi 6128 fi 6129 6130 if test $found = "no" ; then 6131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6133 fi 6134 6135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6137 fi 6138 6139 CFLAGS="$CFLAGS -fd" 6140 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6142printf %s "checking if $CC supports -fd... " >&6; } 6143 cacheid=xorg_cv_cc_flag__fd 6144 if eval test \${$cacheid+y} 6145then : 6146 printf %s "(cached) " >&6 6147else $as_nop 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151int 6152main (void) 6153{ 6154 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159if ac_fn_c_try_link "$LINENO" 6160then : 6161 eval $cacheid=yes 6162else $as_nop 6163 eval $cacheid=no 6164fi 6165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6166 conftest$ac_exeext conftest.$ac_ext 6167fi 6168 6169 6170 CFLAGS="$xorg_testset_save_CFLAGS" 6171 6172 eval supported=\$$cacheid 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6174printf "%s\n" "$supported" >&6; } 6175 if test "$supported" = "yes" ; then 6176 BASE_CFLAGS="$BASE_CFLAGS -fd" 6177 found="yes" 6178 fi 6179 fi 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195xorg_testset_save_CFLAGS="$CFLAGS" 6196 6197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6202then : 6203 printf %s "(cached) " >&6 6204else $as_nop 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO" 6210then : 6211 xorg_cv_cc_flag_unknown_warning_option=yes 6212else $as_nop 6213 xorg_cv_cc_flag_unknown_warning_option=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6216fi 6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221fi 6222 6223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6226 fi 6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6231then : 6232 printf %s "(cached) " >&6 6233else $as_nop 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237_ACEOF 6238if ac_fn_c_try_compile "$LINENO" 6239then : 6240 xorg_cv_cc_flag_unused_command_line_argument=yes 6241else $as_nop 6242 xorg_cv_cc_flag_unused_command_line_argument=no 6243fi 6244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6245fi 6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250fi 6251 6252found="no" 6253 6254 if test $found = "no" ; then 6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257 fi 6258 6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 fi 6262 6263 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6264 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6266printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6267 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6268 if eval test \${$cacheid+y} 6269then : 6270 printf %s "(cached) " >&6 6271else $as_nop 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275int 6276main (void) 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283if ac_fn_c_try_link "$LINENO" 6284then : 6285 eval $cacheid=yes 6286else $as_nop 6287 eval $cacheid=no 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6290 conftest$ac_exeext conftest.$ac_ext 6291fi 6292 6293 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295 6296 eval supported=\$$cacheid 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6298printf "%s\n" "$supported" >&6; } 6299 if test "$supported" = "yes" ; then 6300 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6301 found="yes" 6302 fi 6303 fi 6304 6305 6306 6307 6308 6309# This chunk adds additional warnings that could catch undesired effects. 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323xorg_testset_save_CFLAGS="$CFLAGS" 6324 6325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6329if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6330then : 6331 printf %s "(cached) " >&6 6332else $as_nop 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335int i; 6336_ACEOF 6337if ac_fn_c_try_compile "$LINENO" 6338then : 6339 xorg_cv_cc_flag_unknown_warning_option=yes 6340else $as_nop 6341 xorg_cv_cc_flag_unknown_warning_option=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6344fi 6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349fi 6350 6351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6354 fi 6355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6358if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6359then : 6360 printf %s "(cached) " >&6 6361else $as_nop 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365_ACEOF 6366if ac_fn_c_try_compile "$LINENO" 6367then : 6368 xorg_cv_cc_flag_unused_command_line_argument=yes 6369else $as_nop 6370 xorg_cv_cc_flag_unused_command_line_argument=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6373fi 6374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378fi 6379 6380found="no" 6381 6382 if test $found = "no" ; then 6383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6385 fi 6386 6387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6389 fi 6390 6391 CFLAGS="$CFLAGS -Wunused" 6392 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6394printf %s "checking if $CC supports -Wunused... " >&6; } 6395 cacheid=xorg_cv_cc_flag__Wunused 6396 if eval test \${$cacheid+y} 6397then : 6398 printf %s "(cached) " >&6 6399else $as_nop 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402int i; 6403int 6404main (void) 6405{ 6406 6407 ; 6408 return 0; 6409} 6410_ACEOF 6411if ac_fn_c_try_link "$LINENO" 6412then : 6413 eval $cacheid=yes 6414else $as_nop 6415 eval $cacheid=no 6416fi 6417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6418 conftest$ac_exeext conftest.$ac_ext 6419fi 6420 6421 6422 CFLAGS="$xorg_testset_save_CFLAGS" 6423 6424 eval supported=\$$cacheid 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6426printf "%s\n" "$supported" >&6; } 6427 if test "$supported" = "yes" ; then 6428 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6429 found="yes" 6430 fi 6431 fi 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447xorg_testset_save_CFLAGS="$CFLAGS" 6448 6449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6452printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6453if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6454then : 6455 printf %s "(cached) " >&6 6456else $as_nop 6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6458/* end confdefs.h. */ 6459int i; 6460_ACEOF 6461if ac_fn_c_try_compile "$LINENO" 6462then : 6463 xorg_cv_cc_flag_unknown_warning_option=yes 6464else $as_nop 6465 xorg_cv_cc_flag_unknown_warning_option=no 6466fi 6467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6468fi 6469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6470printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6472 CFLAGS="$xorg_testset_save_CFLAGS" 6473fi 6474 6475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6478 fi 6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6481printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6482if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6483then : 6484 printf %s "(cached) " >&6 6485else $as_nop 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488int i; 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO" 6491then : 6492 xorg_cv_cc_flag_unused_command_line_argument=yes 6493else $as_nop 6494 xorg_cv_cc_flag_unused_command_line_argument=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6497fi 6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502fi 6503 6504found="no" 6505 6506 if test $found = "no" ; then 6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 fi 6510 6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6513 fi 6514 6515 CFLAGS="$CFLAGS -Wuninitialized" 6516 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6518printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6519 cacheid=xorg_cv_cc_flag__Wuninitialized 6520 if eval test \${$cacheid+y} 6521then : 6522 printf %s "(cached) " >&6 6523else $as_nop 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525/* end confdefs.h. */ 6526int i; 6527int 6528main (void) 6529{ 6530 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535if ac_fn_c_try_link "$LINENO" 6536then : 6537 eval $cacheid=yes 6538else $as_nop 6539 eval $cacheid=no 6540fi 6541rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6542 conftest$ac_exeext conftest.$ac_ext 6543fi 6544 6545 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547 6548 eval supported=\$$cacheid 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6550printf "%s\n" "$supported" >&6; } 6551 if test "$supported" = "yes" ; then 6552 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6553 found="yes" 6554 fi 6555 fi 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571xorg_testset_save_CFLAGS="$CFLAGS" 6572 6573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6576printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6577if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6578then : 6579 printf %s "(cached) " >&6 6580else $as_nop 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583int i; 6584_ACEOF 6585if ac_fn_c_try_compile "$LINENO" 6586then : 6587 xorg_cv_cc_flag_unknown_warning_option=yes 6588else $as_nop 6589 xorg_cv_cc_flag_unknown_warning_option=no 6590fi 6591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6592fi 6593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6596 CFLAGS="$xorg_testset_save_CFLAGS" 6597fi 6598 6599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 fi 6603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6606if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6607then : 6608 printf %s "(cached) " >&6 6609else $as_nop 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612int i; 6613_ACEOF 6614if ac_fn_c_try_compile "$LINENO" 6615then : 6616 xorg_cv_cc_flag_unused_command_line_argument=yes 6617else $as_nop 6618 xorg_cv_cc_flag_unused_command_line_argument=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6621fi 6622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6625 CFLAGS="$xorg_testset_save_CFLAGS" 6626fi 6627 6628found="no" 6629 6630 if test $found = "no" ; then 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 6635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6637 fi 6638 6639 CFLAGS="$CFLAGS -Wshadow" 6640 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6642printf %s "checking if $CC supports -Wshadow... " >&6; } 6643 cacheid=xorg_cv_cc_flag__Wshadow 6644 if eval test \${$cacheid+y} 6645then : 6646 printf %s "(cached) " >&6 6647else $as_nop 6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6649/* end confdefs.h. */ 6650int i; 6651int 6652main (void) 6653{ 6654 6655 ; 6656 return 0; 6657} 6658_ACEOF 6659if ac_fn_c_try_link "$LINENO" 6660then : 6661 eval $cacheid=yes 6662else $as_nop 6663 eval $cacheid=no 6664fi 6665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6666 conftest$ac_exeext conftest.$ac_ext 6667fi 6668 6669 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671 6672 eval supported=\$$cacheid 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6674printf "%s\n" "$supported" >&6; } 6675 if test "$supported" = "yes" ; then 6676 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6677 found="yes" 6678 fi 6679 fi 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695xorg_testset_save_CFLAGS="$CFLAGS" 6696 6697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6702then : 6703 printf %s "(cached) " >&6 6704else $as_nop 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707int i; 6708_ACEOF 6709if ac_fn_c_try_compile "$LINENO" 6710then : 6711 xorg_cv_cc_flag_unknown_warning_option=yes 6712else $as_nop 6713 xorg_cv_cc_flag_unknown_warning_option=no 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6716fi 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721fi 6722 6723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6726 fi 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6731then : 6732 printf %s "(cached) " >&6 6733else $as_nop 6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6735/* end confdefs.h. */ 6736int i; 6737_ACEOF 6738if ac_fn_c_try_compile "$LINENO" 6739then : 6740 xorg_cv_cc_flag_unused_command_line_argument=yes 6741else $as_nop 6742 xorg_cv_cc_flag_unused_command_line_argument=no 6743fi 6744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6745fi 6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752found="no" 6753 6754 if test $found = "no" ; then 6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 fi 6758 6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 fi 6762 6763 CFLAGS="$CFLAGS -Wmissing-noreturn" 6764 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6766printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6767 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6768 if eval test \${$cacheid+y} 6769then : 6770 printf %s "(cached) " >&6 6771else $as_nop 6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774int i; 6775int 6776main (void) 6777{ 6778 6779 ; 6780 return 0; 6781} 6782_ACEOF 6783if ac_fn_c_try_link "$LINENO" 6784then : 6785 eval $cacheid=yes 6786else $as_nop 6787 eval $cacheid=no 6788fi 6789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6790 conftest$ac_exeext conftest.$ac_ext 6791fi 6792 6793 6794 CFLAGS="$xorg_testset_save_CFLAGS" 6795 6796 eval supported=\$$cacheid 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6798printf "%s\n" "$supported" >&6; } 6799 if test "$supported" = "yes" ; then 6800 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6801 found="yes" 6802 fi 6803 fi 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819xorg_testset_save_CFLAGS="$CFLAGS" 6820 6821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6826then : 6827 printf %s "(cached) " >&6 6828else $as_nop 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831int i; 6832_ACEOF 6833if ac_fn_c_try_compile "$LINENO" 6834then : 6835 xorg_cv_cc_flag_unknown_warning_option=yes 6836else $as_nop 6837 xorg_cv_cc_flag_unknown_warning_option=no 6838fi 6839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6840fi 6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6844 CFLAGS="$xorg_testset_save_CFLAGS" 6845fi 6846 6847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6850 fi 6851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6855then : 6856 printf %s "(cached) " >&6 6857else $as_nop 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860int i; 6861_ACEOF 6862if ac_fn_c_try_compile "$LINENO" 6863then : 6864 xorg_cv_cc_flag_unused_command_line_argument=yes 6865else $as_nop 6866 xorg_cv_cc_flag_unused_command_line_argument=no 6867fi 6868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6869fi 6870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6873 CFLAGS="$xorg_testset_save_CFLAGS" 6874fi 6875 6876found="no" 6877 6878 if test $found = "no" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6885 fi 6886 6887 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6888 6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6890printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6891 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6892 if eval test \${$cacheid+y} 6893then : 6894 printf %s "(cached) " >&6 6895else $as_nop 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899int 6900main (void) 6901{ 6902 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907if ac_fn_c_try_link "$LINENO" 6908then : 6909 eval $cacheid=yes 6910else $as_nop 6911 eval $cacheid=no 6912fi 6913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6914 conftest$ac_exeext conftest.$ac_ext 6915fi 6916 6917 6918 CFLAGS="$xorg_testset_save_CFLAGS" 6919 6920 eval supported=\$$cacheid 6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6922printf "%s\n" "$supported" >&6; } 6923 if test "$supported" = "yes" ; then 6924 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6925 found="yes" 6926 fi 6927 fi 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943xorg_testset_save_CFLAGS="$CFLAGS" 6944 6945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6949if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6950then : 6951 printf %s "(cached) " >&6 6952else $as_nop 6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6954/* end confdefs.h. */ 6955int i; 6956_ACEOF 6957if ac_fn_c_try_compile "$LINENO" 6958then : 6959 xorg_cv_cc_flag_unknown_warning_option=yes 6960else $as_nop 6961 xorg_cv_cc_flag_unknown_warning_option=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6964fi 6965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6968 CFLAGS="$xorg_testset_save_CFLAGS" 6969fi 6970 6971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 fi 6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6979then : 6980 printf %s "(cached) " >&6 6981else $as_nop 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984int i; 6985_ACEOF 6986if ac_fn_c_try_compile "$LINENO" 6987then : 6988 xorg_cv_cc_flag_unused_command_line_argument=yes 6989else $as_nop 6990 xorg_cv_cc_flag_unused_command_line_argument=no 6991fi 6992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6993fi 6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6997 CFLAGS="$xorg_testset_save_CFLAGS" 6998fi 6999 7000found="no" 7001 7002 if test $found = "no" ; then 7003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 fi 7006 7007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 fi 7010 7011 CFLAGS="$CFLAGS -Wredundant-decls" 7012 7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7014printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7015 cacheid=xorg_cv_cc_flag__Wredundant_decls 7016 if eval test \${$cacheid+y} 7017then : 7018 printf %s "(cached) " >&6 7019else $as_nop 7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022int i; 7023int 7024main (void) 7025{ 7026 7027 ; 7028 return 0; 7029} 7030_ACEOF 7031if ac_fn_c_try_link "$LINENO" 7032then : 7033 eval $cacheid=yes 7034else $as_nop 7035 eval $cacheid=no 7036fi 7037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7038 conftest$ac_exeext conftest.$ac_ext 7039fi 7040 7041 7042 CFLAGS="$xorg_testset_save_CFLAGS" 7043 7044 eval supported=\$$cacheid 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7046printf "%s\n" "$supported" >&6; } 7047 if test "$supported" = "yes" ; then 7048 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7049 found="yes" 7050 fi 7051 fi 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067xorg_testset_save_CFLAGS="$CFLAGS" 7068 7069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7074then : 7075 printf %s "(cached) " >&6 7076else $as_nop 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO" 7082then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084else $as_nop 7085 xorg_cv_cc_flag_unknown_warning_option=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7088fi 7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093fi 7094 7095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7103then : 7104 printf %s "(cached) " >&6 7105else $as_nop 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108int i; 7109_ACEOF 7110if ac_fn_c_try_compile "$LINENO" 7111then : 7112 xorg_cv_cc_flag_unused_command_line_argument=yes 7113else $as_nop 7114 xorg_cv_cc_flag_unused_command_line_argument=no 7115fi 7116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7117fi 7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7121 CFLAGS="$xorg_testset_save_CFLAGS" 7122fi 7123 7124found="no" 7125 7126 if test $found = "no" ; then 7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 fi 7130 7131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 fi 7134 7135 CFLAGS="$CFLAGS -Wlogical-op" 7136 7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7138printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7139 cacheid=xorg_cv_cc_flag__Wlogical_op 7140 if eval test \${$cacheid+y} 7141then : 7142 printf %s "(cached) " >&6 7143else $as_nop 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146int i; 7147int 7148main (void) 7149{ 7150 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155if ac_fn_c_try_link "$LINENO" 7156then : 7157 eval $cacheid=yes 7158else $as_nop 7159 eval $cacheid=no 7160fi 7161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7162 conftest$ac_exeext conftest.$ac_ext 7163fi 7164 7165 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167 7168 eval supported=\$$cacheid 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7170printf "%s\n" "$supported" >&6; } 7171 if test "$supported" = "yes" ; then 7172 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7173 found="yes" 7174 fi 7175 fi 7176 7177 7178 7179# These are currently disabled because they are noisy. They will be enabled 7180# in the future once the codebase is sufficiently modernized to silence 7181# them. For now, I don't want them to drown out the other warnings. 7182# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7183# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7184# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7185 7186# Turn some warnings into errors, so we don't accidentally get successful builds 7187# when there are problems that should be fixed. 7188 7189if test "x$SELECTIVE_WERROR" = "xyes" ; then 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203xorg_testset_save_CFLAGS="$CFLAGS" 7204 7205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7209if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7210then : 7211 printf %s "(cached) " >&6 7212else $as_nop 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO" 7218then : 7219 xorg_cv_cc_flag_unknown_warning_option=yes 7220else $as_nop 7221 xorg_cv_cc_flag_unknown_warning_option=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7224fi 7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229fi 7230 7231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7238if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7239then : 7240 printf %s "(cached) " >&6 7241else $as_nop 7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7243/* end confdefs.h. */ 7244int i; 7245_ACEOF 7246if ac_fn_c_try_compile "$LINENO" 7247then : 7248 xorg_cv_cc_flag_unused_command_line_argument=yes 7249else $as_nop 7250 xorg_cv_cc_flag_unused_command_line_argument=no 7251fi 7252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7253fi 7254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258fi 7259 7260found="no" 7261 7262 if test $found = "no" ; then 7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 fi 7266 7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7269 fi 7270 7271 CFLAGS="$CFLAGS -Werror=implicit" 7272 7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7274printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7275 cacheid=xorg_cv_cc_flag__Werror_implicit 7276 if eval test \${$cacheid+y} 7277then : 7278 printf %s "(cached) " >&6 7279else $as_nop 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281/* end confdefs.h. */ 7282int i; 7283int 7284main (void) 7285{ 7286 7287 ; 7288 return 0; 7289} 7290_ACEOF 7291if ac_fn_c_try_link "$LINENO" 7292then : 7293 eval $cacheid=yes 7294else $as_nop 7295 eval $cacheid=no 7296fi 7297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7298 conftest$ac_exeext conftest.$ac_ext 7299fi 7300 7301 7302 CFLAGS="$xorg_testset_save_CFLAGS" 7303 7304 eval supported=\$$cacheid 7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7306printf "%s\n" "$supported" >&6; } 7307 if test "$supported" = "yes" ; then 7308 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7309 found="yes" 7310 fi 7311 fi 7312 7313 if test $found = "no" ; then 7314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7316 fi 7317 7318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7320 fi 7321 7322 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7323 7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7325printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7326 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7327 if eval test \${$cacheid+y} 7328then : 7329 printf %s "(cached) " >&6 7330else $as_nop 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333int i; 7334int 7335main (void) 7336{ 7337 7338 ; 7339 return 0; 7340} 7341_ACEOF 7342if ac_fn_c_try_link "$LINENO" 7343then : 7344 eval $cacheid=yes 7345else $as_nop 7346 eval $cacheid=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7349 conftest$ac_exeext conftest.$ac_ext 7350fi 7351 7352 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354 7355 eval supported=\$$cacheid 7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7357printf "%s\n" "$supported" >&6; } 7358 if test "$supported" = "yes" ; then 7359 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7360 found="yes" 7361 fi 7362 fi 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378xorg_testset_save_CFLAGS="$CFLAGS" 7379 7380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7385then : 7386 printf %s "(cached) " >&6 7387else $as_nop 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390int i; 7391_ACEOF 7392if ac_fn_c_try_compile "$LINENO" 7393then : 7394 xorg_cv_cc_flag_unknown_warning_option=yes 7395else $as_nop 7396 xorg_cv_cc_flag_unknown_warning_option=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7399fi 7400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7403 CFLAGS="$xorg_testset_save_CFLAGS" 7404fi 7405 7406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7409 fi 7410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7413if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7414then : 7415 printf %s "(cached) " >&6 7416else $as_nop 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419int i; 7420_ACEOF 7421if ac_fn_c_try_compile "$LINENO" 7422then : 7423 xorg_cv_cc_flag_unused_command_line_argument=yes 7424else $as_nop 7425 xorg_cv_cc_flag_unused_command_line_argument=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7428fi 7429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7432 CFLAGS="$xorg_testset_save_CFLAGS" 7433fi 7434 7435found="no" 7436 7437 if test $found = "no" ; then 7438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 fi 7441 7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 fi 7445 7446 CFLAGS="$CFLAGS -Werror=nonnull" 7447 7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7449printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7450 cacheid=xorg_cv_cc_flag__Werror_nonnull 7451 if eval test \${$cacheid+y} 7452then : 7453 printf %s "(cached) " >&6 7454else $as_nop 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457int i; 7458int 7459main (void) 7460{ 7461 7462 ; 7463 return 0; 7464} 7465_ACEOF 7466if ac_fn_c_try_link "$LINENO" 7467then : 7468 eval $cacheid=yes 7469else $as_nop 7470 eval $cacheid=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7473 conftest$ac_exeext conftest.$ac_ext 7474fi 7475 7476 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478 7479 eval supported=\$$cacheid 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7481printf "%s\n" "$supported" >&6; } 7482 if test "$supported" = "yes" ; then 7483 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7484 found="yes" 7485 fi 7486 fi 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502xorg_testset_save_CFLAGS="$CFLAGS" 7503 7504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7507printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7508if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7509then : 7510 printf %s "(cached) " >&6 7511else $as_nop 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514int i; 7515_ACEOF 7516if ac_fn_c_try_compile "$LINENO" 7517then : 7518 xorg_cv_cc_flag_unknown_warning_option=yes 7519else $as_nop 7520 xorg_cv_cc_flag_unknown_warning_option=no 7521fi 7522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7523fi 7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7527 CFLAGS="$xorg_testset_save_CFLAGS" 7528fi 7529 7530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7533 fi 7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7537if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7538then : 7539 printf %s "(cached) " >&6 7540else $as_nop 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543int i; 7544_ACEOF 7545if ac_fn_c_try_compile "$LINENO" 7546then : 7547 xorg_cv_cc_flag_unused_command_line_argument=yes 7548else $as_nop 7549 xorg_cv_cc_flag_unused_command_line_argument=no 7550fi 7551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7552fi 7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7556 CFLAGS="$xorg_testset_save_CFLAGS" 7557fi 7558 7559found="no" 7560 7561 if test $found = "no" ; then 7562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564 fi 7565 7566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7568 fi 7569 7570 CFLAGS="$CFLAGS -Werror=init-self" 7571 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7573printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7574 cacheid=xorg_cv_cc_flag__Werror_init_self 7575 if eval test \${$cacheid+y} 7576then : 7577 printf %s "(cached) " >&6 7578else $as_nop 7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7580/* end confdefs.h. */ 7581int i; 7582int 7583main (void) 7584{ 7585 7586 ; 7587 return 0; 7588} 7589_ACEOF 7590if ac_fn_c_try_link "$LINENO" 7591then : 7592 eval $cacheid=yes 7593else $as_nop 7594 eval $cacheid=no 7595fi 7596rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7597 conftest$ac_exeext conftest.$ac_ext 7598fi 7599 7600 7601 CFLAGS="$xorg_testset_save_CFLAGS" 7602 7603 eval supported=\$$cacheid 7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7605printf "%s\n" "$supported" >&6; } 7606 if test "$supported" = "yes" ; then 7607 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7608 found="yes" 7609 fi 7610 fi 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626xorg_testset_save_CFLAGS="$CFLAGS" 7627 7628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7633then : 7634 printf %s "(cached) " >&6 7635else $as_nop 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO" 7641then : 7642 xorg_cv_cc_flag_unknown_warning_option=yes 7643else $as_nop 7644 xorg_cv_cc_flag_unknown_warning_option=no 7645fi 7646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7647fi 7648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652fi 7653 7654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7657 fi 7658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7661if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7662then : 7663 printf %s "(cached) " >&6 7664else $as_nop 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667int i; 7668_ACEOF 7669if ac_fn_c_try_compile "$LINENO" 7670then : 7671 xorg_cv_cc_flag_unused_command_line_argument=yes 7672else $as_nop 7673 xorg_cv_cc_flag_unused_command_line_argument=no 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7676fi 7677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7680 CFLAGS="$xorg_testset_save_CFLAGS" 7681fi 7682 7683found="no" 7684 7685 if test $found = "no" ; then 7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 fi 7689 7690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7692 fi 7693 7694 CFLAGS="$CFLAGS -Werror=main" 7695 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7697printf %s "checking if $CC supports -Werror=main... " >&6; } 7698 cacheid=xorg_cv_cc_flag__Werror_main 7699 if eval test \${$cacheid+y} 7700then : 7701 printf %s "(cached) " >&6 7702else $as_nop 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705int i; 7706int 7707main (void) 7708{ 7709 7710 ; 7711 return 0; 7712} 7713_ACEOF 7714if ac_fn_c_try_link "$LINENO" 7715then : 7716 eval $cacheid=yes 7717else $as_nop 7718 eval $cacheid=no 7719fi 7720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7721 conftest$ac_exeext conftest.$ac_ext 7722fi 7723 7724 7725 CFLAGS="$xorg_testset_save_CFLAGS" 7726 7727 eval supported=\$$cacheid 7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7729printf "%s\n" "$supported" >&6; } 7730 if test "$supported" = "yes" ; then 7731 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7732 found="yes" 7733 fi 7734 fi 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750xorg_testset_save_CFLAGS="$CFLAGS" 7751 7752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7756if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7757then : 7758 printf %s "(cached) " >&6 7759else $as_nop 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762int i; 7763_ACEOF 7764if ac_fn_c_try_compile "$LINENO" 7765then : 7766 xorg_cv_cc_flag_unknown_warning_option=yes 7767else $as_nop 7768 xorg_cv_cc_flag_unknown_warning_option=no 7769fi 7770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7771fi 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776fi 7777 7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 fi 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7786then : 7787 printf %s "(cached) " >&6 7788else $as_nop 7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO" 7794then : 7795 xorg_cv_cc_flag_unused_command_line_argument=yes 7796else $as_nop 7797 xorg_cv_cc_flag_unused_command_line_argument=no 7798fi 7799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7800fi 7801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7804 CFLAGS="$xorg_testset_save_CFLAGS" 7805fi 7806 7807found="no" 7808 7809 if test $found = "no" ; then 7810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 fi 7813 7814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7816 fi 7817 7818 CFLAGS="$CFLAGS -Werror=missing-braces" 7819 7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7821printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7822 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7823 if eval test \${$cacheid+y} 7824then : 7825 printf %s "(cached) " >&6 7826else $as_nop 7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7828/* end confdefs.h. */ 7829int i; 7830int 7831main (void) 7832{ 7833 7834 ; 7835 return 0; 7836} 7837_ACEOF 7838if ac_fn_c_try_link "$LINENO" 7839then : 7840 eval $cacheid=yes 7841else $as_nop 7842 eval $cacheid=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7845 conftest$ac_exeext conftest.$ac_ext 7846fi 7847 7848 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850 7851 eval supported=\$$cacheid 7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7853printf "%s\n" "$supported" >&6; } 7854 if test "$supported" = "yes" ; then 7855 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7856 found="yes" 7857 fi 7858 fi 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874xorg_testset_save_CFLAGS="$CFLAGS" 7875 7876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7881then : 7882 printf %s "(cached) " >&6 7883else $as_nop 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886int i; 7887_ACEOF 7888if ac_fn_c_try_compile "$LINENO" 7889then : 7890 xorg_cv_cc_flag_unknown_warning_option=yes 7891else $as_nop 7892 xorg_cv_cc_flag_unknown_warning_option=no 7893fi 7894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7895fi 7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7899 CFLAGS="$xorg_testset_save_CFLAGS" 7900fi 7901 7902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7905 fi 7906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7910then : 7911 printf %s "(cached) " >&6 7912else $as_nop 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914/* end confdefs.h. */ 7915int i; 7916_ACEOF 7917if ac_fn_c_try_compile "$LINENO" 7918then : 7919 xorg_cv_cc_flag_unused_command_line_argument=yes 7920else $as_nop 7921 xorg_cv_cc_flag_unused_command_line_argument=no 7922fi 7923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7924fi 7925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929fi 7930 7931found="no" 7932 7933 if test $found = "no" ; then 7934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7936 fi 7937 7938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7940 fi 7941 7942 CFLAGS="$CFLAGS -Werror=sequence-point" 7943 7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7945printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7946 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7947 if eval test \${$cacheid+y} 7948then : 7949 printf %s "(cached) " >&6 7950else $as_nop 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954int 7955main (void) 7956{ 7957 7958 ; 7959 return 0; 7960} 7961_ACEOF 7962if ac_fn_c_try_link "$LINENO" 7963then : 7964 eval $cacheid=yes 7965else $as_nop 7966 eval $cacheid=no 7967fi 7968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7969 conftest$ac_exeext conftest.$ac_ext 7970fi 7971 7972 7973 CFLAGS="$xorg_testset_save_CFLAGS" 7974 7975 eval supported=\$$cacheid 7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7977printf "%s\n" "$supported" >&6; } 7978 if test "$supported" = "yes" ; then 7979 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7980 found="yes" 7981 fi 7982 fi 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998xorg_testset_save_CFLAGS="$CFLAGS" 7999 8000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8004if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8005then : 8006 printf %s "(cached) " >&6 8007else $as_nop 8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8009/* end confdefs.h. */ 8010int i; 8011_ACEOF 8012if ac_fn_c_try_compile "$LINENO" 8013then : 8014 xorg_cv_cc_flag_unknown_warning_option=yes 8015else $as_nop 8016 xorg_cv_cc_flag_unknown_warning_option=no 8017fi 8018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8019fi 8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8023 CFLAGS="$xorg_testset_save_CFLAGS" 8024fi 8025 8026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8029 fi 8030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8034then : 8035 printf %s "(cached) " >&6 8036else $as_nop 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO" 8042then : 8043 xorg_cv_cc_flag_unused_command_line_argument=yes 8044else $as_nop 8045 xorg_cv_cc_flag_unused_command_line_argument=no 8046fi 8047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8048fi 8049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8052 CFLAGS="$xorg_testset_save_CFLAGS" 8053fi 8054 8055found="no" 8056 8057 if test $found = "no" ; then 8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 fi 8061 8062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8064 fi 8065 8066 CFLAGS="$CFLAGS -Werror=return-type" 8067 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8069printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8070 cacheid=xorg_cv_cc_flag__Werror_return_type 8071 if eval test \${$cacheid+y} 8072then : 8073 printf %s "(cached) " >&6 8074else $as_nop 8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8076/* end confdefs.h. */ 8077int i; 8078int 8079main (void) 8080{ 8081 8082 ; 8083 return 0; 8084} 8085_ACEOF 8086if ac_fn_c_try_link "$LINENO" 8087then : 8088 eval $cacheid=yes 8089else $as_nop 8090 eval $cacheid=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8093 conftest$ac_exeext conftest.$ac_ext 8094fi 8095 8096 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098 8099 eval supported=\$$cacheid 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8101printf "%s\n" "$supported" >&6; } 8102 if test "$supported" = "yes" ; then 8103 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8104 found="yes" 8105 fi 8106 fi 8107 8108 if test $found = "no" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8115 fi 8116 8117 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8118 8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8120printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8121 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8122 if eval test \${$cacheid+y} 8123then : 8124 printf %s "(cached) " >&6 8125else $as_nop 8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8127/* end confdefs.h. */ 8128int i; 8129int 8130main (void) 8131{ 8132 8133 ; 8134 return 0; 8135} 8136_ACEOF 8137if ac_fn_c_try_link "$LINENO" 8138then : 8139 eval $cacheid=yes 8140else $as_nop 8141 eval $cacheid=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8144 conftest$ac_exeext conftest.$ac_ext 8145fi 8146 8147 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149 8150 eval supported=\$$cacheid 8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8152printf "%s\n" "$supported" >&6; } 8153 if test "$supported" = "yes" ; then 8154 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8155 found="yes" 8156 fi 8157 fi 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173xorg_testset_save_CFLAGS="$CFLAGS" 8174 8175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8179if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8180then : 8181 printf %s "(cached) " >&6 8182else $as_nop 8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185int i; 8186_ACEOF 8187if ac_fn_c_try_compile "$LINENO" 8188then : 8189 xorg_cv_cc_flag_unknown_warning_option=yes 8190else $as_nop 8191 xorg_cv_cc_flag_unknown_warning_option=no 8192fi 8193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8194fi 8195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8198 CFLAGS="$xorg_testset_save_CFLAGS" 8199fi 8200 8201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 fi 8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8208if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8209then : 8210 printf %s "(cached) " >&6 8211else $as_nop 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214int i; 8215_ACEOF 8216if ac_fn_c_try_compile "$LINENO" 8217then : 8218 xorg_cv_cc_flag_unused_command_line_argument=yes 8219else $as_nop 8220 xorg_cv_cc_flag_unused_command_line_argument=no 8221fi 8222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8223fi 8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8227 CFLAGS="$xorg_testset_save_CFLAGS" 8228fi 8229 8230found="no" 8231 8232 if test $found = "no" ; then 8233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 fi 8236 8237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8239 fi 8240 8241 CFLAGS="$CFLAGS -Werror=trigraphs" 8242 8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8244printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8245 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8246 if eval test \${$cacheid+y} 8247then : 8248 printf %s "(cached) " >&6 8249else $as_nop 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252int i; 8253int 8254main (void) 8255{ 8256 8257 ; 8258 return 0; 8259} 8260_ACEOF 8261if ac_fn_c_try_link "$LINENO" 8262then : 8263 eval $cacheid=yes 8264else $as_nop 8265 eval $cacheid=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8268 conftest$ac_exeext conftest.$ac_ext 8269fi 8270 8271 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273 8274 eval supported=\$$cacheid 8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8276printf "%s\n" "$supported" >&6; } 8277 if test "$supported" = "yes" ; then 8278 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8279 found="yes" 8280 fi 8281 fi 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297xorg_testset_save_CFLAGS="$CFLAGS" 8298 8299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8303if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8304then : 8305 printf %s "(cached) " >&6 8306else $as_nop 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310_ACEOF 8311if ac_fn_c_try_compile "$LINENO" 8312then : 8313 xorg_cv_cc_flag_unknown_warning_option=yes 8314else $as_nop 8315 xorg_cv_cc_flag_unknown_warning_option=no 8316fi 8317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8318fi 8319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8322 CFLAGS="$xorg_testset_save_CFLAGS" 8323fi 8324 8325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8328 fi 8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8333then : 8334 printf %s "(cached) " >&6 8335else $as_nop 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339_ACEOF 8340if ac_fn_c_try_compile "$LINENO" 8341then : 8342 xorg_cv_cc_flag_unused_command_line_argument=yes 8343else $as_nop 8344 xorg_cv_cc_flag_unused_command_line_argument=no 8345fi 8346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8347fi 8348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8351 CFLAGS="$xorg_testset_save_CFLAGS" 8352fi 8353 8354found="no" 8355 8356 if test $found = "no" ; then 8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359 fi 8360 8361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8363 fi 8364 8365 CFLAGS="$CFLAGS -Werror=array-bounds" 8366 8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8368printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8369 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8370 if eval test \${$cacheid+y} 8371then : 8372 printf %s "(cached) " >&6 8373else $as_nop 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377int 8378main (void) 8379{ 8380 8381 ; 8382 return 0; 8383} 8384_ACEOF 8385if ac_fn_c_try_link "$LINENO" 8386then : 8387 eval $cacheid=yes 8388else $as_nop 8389 eval $cacheid=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8392 conftest$ac_exeext conftest.$ac_ext 8393fi 8394 8395 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397 8398 eval supported=\$$cacheid 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8400printf "%s\n" "$supported" >&6; } 8401 if test "$supported" = "yes" ; then 8402 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8403 found="yes" 8404 fi 8405 fi 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421xorg_testset_save_CFLAGS="$CFLAGS" 8422 8423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8428then : 8429 printf %s "(cached) " >&6 8430else $as_nop 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434_ACEOF 8435if ac_fn_c_try_compile "$LINENO" 8436then : 8437 xorg_cv_cc_flag_unknown_warning_option=yes 8438else $as_nop 8439 xorg_cv_cc_flag_unknown_warning_option=no 8440fi 8441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8442fi 8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447fi 8448 8449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 fi 8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8457then : 8458 printf %s "(cached) " >&6 8459else $as_nop 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463_ACEOF 8464if ac_fn_c_try_compile "$LINENO" 8465then : 8466 xorg_cv_cc_flag_unused_command_line_argument=yes 8467else $as_nop 8468 xorg_cv_cc_flag_unused_command_line_argument=no 8469fi 8470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8471fi 8472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8475 CFLAGS="$xorg_testset_save_CFLAGS" 8476fi 8477 8478found="no" 8479 8480 if test $found = "no" ; then 8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 fi 8484 8485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8487 fi 8488 8489 CFLAGS="$CFLAGS -Werror=write-strings" 8490 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8492printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8493 cacheid=xorg_cv_cc_flag__Werror_write_strings 8494 if eval test \${$cacheid+y} 8495then : 8496 printf %s "(cached) " >&6 8497else $as_nop 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8499/* end confdefs.h. */ 8500int i; 8501int 8502main (void) 8503{ 8504 8505 ; 8506 return 0; 8507} 8508_ACEOF 8509if ac_fn_c_try_link "$LINENO" 8510then : 8511 eval $cacheid=yes 8512else $as_nop 8513 eval $cacheid=no 8514fi 8515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8516 conftest$ac_exeext conftest.$ac_ext 8517fi 8518 8519 8520 CFLAGS="$xorg_testset_save_CFLAGS" 8521 8522 eval supported=\$$cacheid 8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8524printf "%s\n" "$supported" >&6; } 8525 if test "$supported" = "yes" ; then 8526 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8527 found="yes" 8528 fi 8529 fi 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545xorg_testset_save_CFLAGS="$CFLAGS" 8546 8547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8552then : 8553 printf %s "(cached) " >&6 8554else $as_nop 8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8556/* end confdefs.h. */ 8557int i; 8558_ACEOF 8559if ac_fn_c_try_compile "$LINENO" 8560then : 8561 xorg_cv_cc_flag_unknown_warning_option=yes 8562else $as_nop 8563 xorg_cv_cc_flag_unknown_warning_option=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8566fi 8567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571fi 8572 8573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8576 fi 8577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8580if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8581then : 8582 printf %s "(cached) " >&6 8583else $as_nop 8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585/* end confdefs.h. */ 8586int i; 8587_ACEOF 8588if ac_fn_c_try_compile "$LINENO" 8589then : 8590 xorg_cv_cc_flag_unused_command_line_argument=yes 8591else $as_nop 8592 xorg_cv_cc_flag_unused_command_line_argument=no 8593fi 8594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8595fi 8596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8599 CFLAGS="$xorg_testset_save_CFLAGS" 8600fi 8601 8602found="no" 8603 8604 if test $found = "no" ; then 8605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 fi 8608 8609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8611 fi 8612 8613 CFLAGS="$CFLAGS -Werror=address" 8614 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8616printf %s "checking if $CC supports -Werror=address... " >&6; } 8617 cacheid=xorg_cv_cc_flag__Werror_address 8618 if eval test \${$cacheid+y} 8619then : 8620 printf %s "(cached) " >&6 8621else $as_nop 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625int 8626main (void) 8627{ 8628 8629 ; 8630 return 0; 8631} 8632_ACEOF 8633if ac_fn_c_try_link "$LINENO" 8634then : 8635 eval $cacheid=yes 8636else $as_nop 8637 eval $cacheid=no 8638fi 8639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8640 conftest$ac_exeext conftest.$ac_ext 8641fi 8642 8643 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645 8646 eval supported=\$$cacheid 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8648printf "%s\n" "$supported" >&6; } 8649 if test "$supported" = "yes" ; then 8650 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8651 found="yes" 8652 fi 8653 fi 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669xorg_testset_save_CFLAGS="$CFLAGS" 8670 8671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8676then : 8677 printf %s "(cached) " >&6 8678else $as_nop 8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681int i; 8682_ACEOF 8683if ac_fn_c_try_compile "$LINENO" 8684then : 8685 xorg_cv_cc_flag_unknown_warning_option=yes 8686else $as_nop 8687 xorg_cv_cc_flag_unknown_warning_option=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8690fi 8691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695fi 8696 8697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8700 fi 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8705then : 8706 printf %s "(cached) " >&6 8707else $as_nop 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711_ACEOF 8712if ac_fn_c_try_compile "$LINENO" 8713then : 8714 xorg_cv_cc_flag_unused_command_line_argument=yes 8715else $as_nop 8716 xorg_cv_cc_flag_unused_command_line_argument=no 8717fi 8718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8719fi 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8723 CFLAGS="$xorg_testset_save_CFLAGS" 8724fi 8725 8726found="no" 8727 8728 if test $found = "no" ; then 8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 fi 8732 8733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8735 fi 8736 8737 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8738 8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8740printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8741 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8742 if eval test \${$cacheid+y} 8743then : 8744 printf %s "(cached) " >&6 8745else $as_nop 8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8747/* end confdefs.h. */ 8748int i; 8749int 8750main (void) 8751{ 8752 8753 ; 8754 return 0; 8755} 8756_ACEOF 8757if ac_fn_c_try_link "$LINENO" 8758then : 8759 eval $cacheid=yes 8760else $as_nop 8761 eval $cacheid=no 8762fi 8763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8764 conftest$ac_exeext conftest.$ac_ext 8765fi 8766 8767 8768 CFLAGS="$xorg_testset_save_CFLAGS" 8769 8770 eval supported=\$$cacheid 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8772printf "%s\n" "$supported" >&6; } 8773 if test "$supported" = "yes" ; then 8774 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8775 found="yes" 8776 fi 8777 fi 8778 8779 if test $found = "no" ; then 8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8786 fi 8787 8788 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8789 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8791printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8792 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8793 if eval test \${$cacheid+y} 8794then : 8795 printf %s "(cached) " >&6 8796else $as_nop 8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798/* end confdefs.h. */ 8799int i; 8800int 8801main (void) 8802{ 8803 8804 ; 8805 return 0; 8806} 8807_ACEOF 8808if ac_fn_c_try_link "$LINENO" 8809then : 8810 eval $cacheid=yes 8811else $as_nop 8812 eval $cacheid=no 8813fi 8814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8815 conftest$ac_exeext conftest.$ac_ext 8816fi 8817 8818 8819 CFLAGS="$xorg_testset_save_CFLAGS" 8820 8821 eval supported=\$$cacheid 8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8823printf "%s\n" "$supported" >&6; } 8824 if test "$supported" = "yes" ; then 8825 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8826 found="yes" 8827 fi 8828 fi 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844xorg_testset_save_CFLAGS="$CFLAGS" 8845 8846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8850if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8851then : 8852 printf %s "(cached) " >&6 8853else $as_nop 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO" 8859then : 8860 xorg_cv_cc_flag_unknown_warning_option=yes 8861else $as_nop 8862 xorg_cv_cc_flag_unknown_warning_option=no 8863fi 8864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8865fi 8866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8869 CFLAGS="$xorg_testset_save_CFLAGS" 8870fi 8871 8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875 fi 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8879if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886_ACEOF 8887if ac_fn_c_try_compile "$LINENO" 8888then : 8889 xorg_cv_cc_flag_unused_command_line_argument=yes 8890else $as_nop 8891 xorg_cv_cc_flag_unused_command_line_argument=no 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8894fi 8895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8898 CFLAGS="$xorg_testset_save_CFLAGS" 8899fi 8900 8901found="no" 8902 8903 if test $found = "no" ; then 8904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 fi 8907 8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8910 fi 8911 8912 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8913 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8915printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8916 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8917 if eval test \${$cacheid+y} 8918then : 8919 printf %s "(cached) " >&6 8920else $as_nop 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923int i; 8924int 8925main (void) 8926{ 8927 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932if ac_fn_c_try_link "$LINENO" 8933then : 8934 eval $cacheid=yes 8935else $as_nop 8936 eval $cacheid=no 8937fi 8938rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8939 conftest$ac_exeext conftest.$ac_ext 8940fi 8941 8942 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944 8945 eval supported=\$$cacheid 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8947printf "%s\n" "$supported" >&6; } 8948 if test "$supported" = "yes" ; then 8949 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8950 found="yes" 8951 fi 8952 fi 8953 8954 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8955else 8956{ printf "%s\n" "$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 8957printf "%s\n" "$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;} 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971xorg_testset_save_CFLAGS="$CFLAGS" 8972 8973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8977if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8978then : 8979 printf %s "(cached) " >&6 8980else $as_nop 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983int i; 8984_ACEOF 8985if ac_fn_c_try_compile "$LINENO" 8986then : 8987 xorg_cv_cc_flag_unknown_warning_option=yes 8988else $as_nop 8989 xorg_cv_cc_flag_unknown_warning_option=no 8990fi 8991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8992fi 8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8996 CFLAGS="$xorg_testset_save_CFLAGS" 8997fi 8998 8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9002 fi 9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9007then : 9008 printf %s "(cached) " >&6 9009else $as_nop 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013_ACEOF 9014if ac_fn_c_try_compile "$LINENO" 9015then : 9016 xorg_cv_cc_flag_unused_command_line_argument=yes 9017else $as_nop 9018 xorg_cv_cc_flag_unused_command_line_argument=no 9019fi 9020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9021fi 9022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9025 CFLAGS="$xorg_testset_save_CFLAGS" 9026fi 9027 9028found="no" 9029 9030 if test $found = "no" ; then 9031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 fi 9034 9035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 fi 9038 9039 CFLAGS="$CFLAGS -Wimplicit" 9040 9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9042printf %s "checking if $CC supports -Wimplicit... " >&6; } 9043 cacheid=xorg_cv_cc_flag__Wimplicit 9044 if eval test \${$cacheid+y} 9045then : 9046 printf %s "(cached) " >&6 9047else $as_nop 9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9049/* end confdefs.h. */ 9050int i; 9051int 9052main (void) 9053{ 9054 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059if ac_fn_c_try_link "$LINENO" 9060then : 9061 eval $cacheid=yes 9062else $as_nop 9063 eval $cacheid=no 9064fi 9065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9066 conftest$ac_exeext conftest.$ac_ext 9067fi 9068 9069 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071 9072 eval supported=\$$cacheid 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9074printf "%s\n" "$supported" >&6; } 9075 if test "$supported" = "yes" ; then 9076 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9077 found="yes" 9078 fi 9079 fi 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095xorg_testset_save_CFLAGS="$CFLAGS" 9096 9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9100printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9101if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9102then : 9103 printf %s "(cached) " >&6 9104else $as_nop 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108_ACEOF 9109if ac_fn_c_try_compile "$LINENO" 9110then : 9111 xorg_cv_cc_flag_unknown_warning_option=yes 9112else $as_nop 9113 xorg_cv_cc_flag_unknown_warning_option=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9116fi 9117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121fi 9122 9123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9126 fi 9127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9130if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9131then : 9132 printf %s "(cached) " >&6 9133else $as_nop 9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9135/* end confdefs.h. */ 9136int i; 9137_ACEOF 9138if ac_fn_c_try_compile "$LINENO" 9139then : 9140 xorg_cv_cc_flag_unused_command_line_argument=yes 9141else $as_nop 9142 xorg_cv_cc_flag_unused_command_line_argument=no 9143fi 9144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9145fi 9146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150fi 9151 9152found="no" 9153 9154 if test $found = "no" ; then 9155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9157 fi 9158 9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9161 fi 9162 9163 CFLAGS="$CFLAGS -Wnonnull" 9164 9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9166printf %s "checking if $CC supports -Wnonnull... " >&6; } 9167 cacheid=xorg_cv_cc_flag__Wnonnull 9168 if eval test \${$cacheid+y} 9169then : 9170 printf %s "(cached) " >&6 9171else $as_nop 9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174int i; 9175int 9176main (void) 9177{ 9178 9179 ; 9180 return 0; 9181} 9182_ACEOF 9183if ac_fn_c_try_link "$LINENO" 9184then : 9185 eval $cacheid=yes 9186else $as_nop 9187 eval $cacheid=no 9188fi 9189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9190 conftest$ac_exeext conftest.$ac_ext 9191fi 9192 9193 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195 9196 eval supported=\$$cacheid 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9198printf "%s\n" "$supported" >&6; } 9199 if test "$supported" = "yes" ; then 9200 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9201 found="yes" 9202 fi 9203 fi 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219xorg_testset_save_CFLAGS="$CFLAGS" 9220 9221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9226then : 9227 printf %s "(cached) " >&6 9228else $as_nop 9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231int i; 9232_ACEOF 9233if ac_fn_c_try_compile "$LINENO" 9234then : 9235 xorg_cv_cc_flag_unknown_warning_option=yes 9236else $as_nop 9237 xorg_cv_cc_flag_unknown_warning_option=no 9238fi 9239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9240fi 9241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9250 fi 9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9255then : 9256 printf %s "(cached) " >&6 9257else $as_nop 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260int i; 9261_ACEOF 9262if ac_fn_c_try_compile "$LINENO" 9263then : 9264 xorg_cv_cc_flag_unused_command_line_argument=yes 9265else $as_nop 9266 xorg_cv_cc_flag_unused_command_line_argument=no 9267fi 9268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9269fi 9270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9273 CFLAGS="$xorg_testset_save_CFLAGS" 9274fi 9275 9276found="no" 9277 9278 if test $found = "no" ; then 9279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9281 fi 9282 9283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9285 fi 9286 9287 CFLAGS="$CFLAGS -Winit-self" 9288 9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9290printf %s "checking if $CC supports -Winit-self... " >&6; } 9291 cacheid=xorg_cv_cc_flag__Winit_self 9292 if eval test \${$cacheid+y} 9293then : 9294 printf %s "(cached) " >&6 9295else $as_nop 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299int 9300main (void) 9301{ 9302 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307if ac_fn_c_try_link "$LINENO" 9308then : 9309 eval $cacheid=yes 9310else $as_nop 9311 eval $cacheid=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9314 conftest$ac_exeext conftest.$ac_ext 9315fi 9316 9317 9318 CFLAGS="$xorg_testset_save_CFLAGS" 9319 9320 eval supported=\$$cacheid 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9322printf "%s\n" "$supported" >&6; } 9323 if test "$supported" = "yes" ; then 9324 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9325 found="yes" 9326 fi 9327 fi 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343xorg_testset_save_CFLAGS="$CFLAGS" 9344 9345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9349if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9350then : 9351 printf %s "(cached) " >&6 9352else $as_nop 9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9354/* end confdefs.h. */ 9355int i; 9356_ACEOF 9357if ac_fn_c_try_compile "$LINENO" 9358then : 9359 xorg_cv_cc_flag_unknown_warning_option=yes 9360else $as_nop 9361 xorg_cv_cc_flag_unknown_warning_option=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9364fi 9365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9368 CFLAGS="$xorg_testset_save_CFLAGS" 9369fi 9370 9371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9374 fi 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9378if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9379then : 9380 printf %s "(cached) " >&6 9381else $as_nop 9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9383/* end confdefs.h. */ 9384int i; 9385_ACEOF 9386if ac_fn_c_try_compile "$LINENO" 9387then : 9388 xorg_cv_cc_flag_unused_command_line_argument=yes 9389else $as_nop 9390 xorg_cv_cc_flag_unused_command_line_argument=no 9391fi 9392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9393fi 9394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9397 CFLAGS="$xorg_testset_save_CFLAGS" 9398fi 9399 9400found="no" 9401 9402 if test $found = "no" ; then 9403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9405 fi 9406 9407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9409 fi 9410 9411 CFLAGS="$CFLAGS -Wmain" 9412 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9414printf %s "checking if $CC supports -Wmain... " >&6; } 9415 cacheid=xorg_cv_cc_flag__Wmain 9416 if eval test \${$cacheid+y} 9417then : 9418 printf %s "(cached) " >&6 9419else $as_nop 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422int i; 9423int 9424main (void) 9425{ 9426 9427 ; 9428 return 0; 9429} 9430_ACEOF 9431if ac_fn_c_try_link "$LINENO" 9432then : 9433 eval $cacheid=yes 9434else $as_nop 9435 eval $cacheid=no 9436fi 9437rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9438 conftest$ac_exeext conftest.$ac_ext 9439fi 9440 9441 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443 9444 eval supported=\$$cacheid 9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9446printf "%s\n" "$supported" >&6; } 9447 if test "$supported" = "yes" ; then 9448 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9449 found="yes" 9450 fi 9451 fi 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467xorg_testset_save_CFLAGS="$CFLAGS" 9468 9469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9473if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9474then : 9475 printf %s "(cached) " >&6 9476else $as_nop 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480_ACEOF 9481if ac_fn_c_try_compile "$LINENO" 9482then : 9483 xorg_cv_cc_flag_unknown_warning_option=yes 9484else $as_nop 9485 xorg_cv_cc_flag_unknown_warning_option=no 9486fi 9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9488fi 9489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493fi 9494 9495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9498 fi 9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9502if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9503then : 9504 printf %s "(cached) " >&6 9505else $as_nop 9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508int i; 9509_ACEOF 9510if ac_fn_c_try_compile "$LINENO" 9511then : 9512 xorg_cv_cc_flag_unused_command_line_argument=yes 9513else $as_nop 9514 xorg_cv_cc_flag_unused_command_line_argument=no 9515fi 9516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9517fi 9518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9521 CFLAGS="$xorg_testset_save_CFLAGS" 9522fi 9523 9524found="no" 9525 9526 if test $found = "no" ; then 9527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 fi 9530 9531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9533 fi 9534 9535 CFLAGS="$CFLAGS -Wmissing-braces" 9536 9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9538printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9539 cacheid=xorg_cv_cc_flag__Wmissing_braces 9540 if eval test \${$cacheid+y} 9541then : 9542 printf %s "(cached) " >&6 9543else $as_nop 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546int i; 9547int 9548main (void) 9549{ 9550 9551 ; 9552 return 0; 9553} 9554_ACEOF 9555if ac_fn_c_try_link "$LINENO" 9556then : 9557 eval $cacheid=yes 9558else $as_nop 9559 eval $cacheid=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9562 conftest$ac_exeext conftest.$ac_ext 9563fi 9564 9565 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567 9568 eval supported=\$$cacheid 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9570printf "%s\n" "$supported" >&6; } 9571 if test "$supported" = "yes" ; then 9572 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9596printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9597if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9598then : 9599 printf %s "(cached) " >&6 9600else $as_nop 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604_ACEOF 9605if ac_fn_c_try_compile "$LINENO" 9606then : 9607 xorg_cv_cc_flag_unknown_warning_option=yes 9608else $as_nop 9609 xorg_cv_cc_flag_unknown_warning_option=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9612fi 9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617fi 9618 9619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 fi 9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9626if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9627then : 9628 printf %s "(cached) " >&6 9629else $as_nop 9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9631/* end confdefs.h. */ 9632int i; 9633_ACEOF 9634if ac_fn_c_try_compile "$LINENO" 9635then : 9636 xorg_cv_cc_flag_unused_command_line_argument=yes 9637else $as_nop 9638 xorg_cv_cc_flag_unused_command_line_argument=no 9639fi 9640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9641fi 9642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9645 CFLAGS="$xorg_testset_save_CFLAGS" 9646fi 9647 9648found="no" 9649 9650 if test $found = "no" ; then 9651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9653 fi 9654 9655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9657 fi 9658 9659 CFLAGS="$CFLAGS -Wsequence-point" 9660 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9662printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9663 cacheid=xorg_cv_cc_flag__Wsequence_point 9664 if eval test \${$cacheid+y} 9665then : 9666 printf %s "(cached) " >&6 9667else $as_nop 9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669/* end confdefs.h. */ 9670int i; 9671int 9672main (void) 9673{ 9674 9675 ; 9676 return 0; 9677} 9678_ACEOF 9679if ac_fn_c_try_link "$LINENO" 9680then : 9681 eval $cacheid=yes 9682else $as_nop 9683 eval $cacheid=no 9684fi 9685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9686 conftest$ac_exeext conftest.$ac_ext 9687fi 9688 9689 9690 CFLAGS="$xorg_testset_save_CFLAGS" 9691 9692 eval supported=\$$cacheid 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9694printf "%s\n" "$supported" >&6; } 9695 if test "$supported" = "yes" ; then 9696 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9697 found="yes" 9698 fi 9699 fi 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715xorg_testset_save_CFLAGS="$CFLAGS" 9716 9717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9721if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9722then : 9723 printf %s "(cached) " >&6 9724else $as_nop 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727int i; 9728_ACEOF 9729if ac_fn_c_try_compile "$LINENO" 9730then : 9731 xorg_cv_cc_flag_unknown_warning_option=yes 9732else $as_nop 9733 xorg_cv_cc_flag_unknown_warning_option=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9736fi 9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741fi 9742 9743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9746 fi 9747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9750if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9751then : 9752 printf %s "(cached) " >&6 9753else $as_nop 9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756int i; 9757_ACEOF 9758if ac_fn_c_try_compile "$LINENO" 9759then : 9760 xorg_cv_cc_flag_unused_command_line_argument=yes 9761else $as_nop 9762 xorg_cv_cc_flag_unused_command_line_argument=no 9763fi 9764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9765fi 9766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9769 CFLAGS="$xorg_testset_save_CFLAGS" 9770fi 9771 9772found="no" 9773 9774 if test $found = "no" ; then 9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 fi 9778 9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9781 fi 9782 9783 CFLAGS="$CFLAGS -Wreturn-type" 9784 9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9786printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9787 cacheid=xorg_cv_cc_flag__Wreturn_type 9788 if eval test \${$cacheid+y} 9789then : 9790 printf %s "(cached) " >&6 9791else $as_nop 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795int 9796main (void) 9797{ 9798 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803if ac_fn_c_try_link "$LINENO" 9804then : 9805 eval $cacheid=yes 9806else $as_nop 9807 eval $cacheid=no 9808fi 9809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9810 conftest$ac_exeext conftest.$ac_ext 9811fi 9812 9813 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815 9816 eval supported=\$$cacheid 9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9818printf "%s\n" "$supported" >&6; } 9819 if test "$supported" = "yes" ; then 9820 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9821 found="yes" 9822 fi 9823 fi 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839xorg_testset_save_CFLAGS="$CFLAGS" 9840 9841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9845if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9846then : 9847 printf %s "(cached) " >&6 9848else $as_nop 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851int i; 9852_ACEOF 9853if ac_fn_c_try_compile "$LINENO" 9854then : 9855 xorg_cv_cc_flag_unknown_warning_option=yes 9856else $as_nop 9857 xorg_cv_cc_flag_unknown_warning_option=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9860fi 9861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865fi 9866 9867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9870 fi 9871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9874if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9875then : 9876 printf %s "(cached) " >&6 9877else $as_nop 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880int i; 9881_ACEOF 9882if ac_fn_c_try_compile "$LINENO" 9883then : 9884 xorg_cv_cc_flag_unused_command_line_argument=yes 9885else $as_nop 9886 xorg_cv_cc_flag_unused_command_line_argument=no 9887fi 9888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9889fi 9890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9893 CFLAGS="$xorg_testset_save_CFLAGS" 9894fi 9895 9896found="no" 9897 9898 if test $found = "no" ; then 9899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9901 fi 9902 9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9905 fi 9906 9907 CFLAGS="$CFLAGS -Wtrigraphs" 9908 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9910printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9911 cacheid=xorg_cv_cc_flag__Wtrigraphs 9912 if eval test \${$cacheid+y} 9913then : 9914 printf %s "(cached) " >&6 9915else $as_nop 9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918int i; 9919int 9920main (void) 9921{ 9922 9923 ; 9924 return 0; 9925} 9926_ACEOF 9927if ac_fn_c_try_link "$LINENO" 9928then : 9929 eval $cacheid=yes 9930else $as_nop 9931 eval $cacheid=no 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9934 conftest$ac_exeext conftest.$ac_ext 9935fi 9936 9937 9938 CFLAGS="$xorg_testset_save_CFLAGS" 9939 9940 eval supported=\$$cacheid 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9942printf "%s\n" "$supported" >&6; } 9943 if test "$supported" = "yes" ; then 9944 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9945 found="yes" 9946 fi 9947 fi 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963xorg_testset_save_CFLAGS="$CFLAGS" 9964 9965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9969if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9970then : 9971 printf %s "(cached) " >&6 9972else $as_nop 9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9974/* end confdefs.h. */ 9975int i; 9976_ACEOF 9977if ac_fn_c_try_compile "$LINENO" 9978then : 9979 xorg_cv_cc_flag_unknown_warning_option=yes 9980else $as_nop 9981 xorg_cv_cc_flag_unknown_warning_option=no 9982fi 9983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9984fi 9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9988 CFLAGS="$xorg_testset_save_CFLAGS" 9989fi 9990 9991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9994 fi 9995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9998if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9999then : 10000 printf %s "(cached) " >&6 10001else $as_nop 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005_ACEOF 10006if ac_fn_c_try_compile "$LINENO" 10007then : 10008 xorg_cv_cc_flag_unused_command_line_argument=yes 10009else $as_nop 10010 xorg_cv_cc_flag_unused_command_line_argument=no 10011fi 10012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10013fi 10014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10017 CFLAGS="$xorg_testset_save_CFLAGS" 10018fi 10019 10020found="no" 10021 10022 if test $found = "no" ; then 10023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10025 fi 10026 10027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10029 fi 10030 10031 CFLAGS="$CFLAGS -Warray-bounds" 10032 10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10034printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10035 cacheid=xorg_cv_cc_flag__Warray_bounds 10036 if eval test \${$cacheid+y} 10037then : 10038 printf %s "(cached) " >&6 10039else $as_nop 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041/* end confdefs.h. */ 10042int i; 10043int 10044main (void) 10045{ 10046 10047 ; 10048 return 0; 10049} 10050_ACEOF 10051if ac_fn_c_try_link "$LINENO" 10052then : 10053 eval $cacheid=yes 10054else $as_nop 10055 eval $cacheid=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10058 conftest$ac_exeext conftest.$ac_ext 10059fi 10060 10061 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063 10064 eval supported=\$$cacheid 10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10066printf "%s\n" "$supported" >&6; } 10067 if test "$supported" = "yes" ; then 10068 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10069 found="yes" 10070 fi 10071 fi 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087xorg_testset_save_CFLAGS="$CFLAGS" 10088 10089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10093if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10094then : 10095 printf %s "(cached) " >&6 10096else $as_nop 10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099int i; 10100_ACEOF 10101if ac_fn_c_try_compile "$LINENO" 10102then : 10103 xorg_cv_cc_flag_unknown_warning_option=yes 10104else $as_nop 10105 xorg_cv_cc_flag_unknown_warning_option=no 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10108fi 10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113fi 10114 10115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10118 fi 10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10123then : 10124 printf %s "(cached) " >&6 10125else $as_nop 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int i; 10129_ACEOF 10130if ac_fn_c_try_compile "$LINENO" 10131then : 10132 xorg_cv_cc_flag_unused_command_line_argument=yes 10133else $as_nop 10134 xorg_cv_cc_flag_unused_command_line_argument=no 10135fi 10136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10137fi 10138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10141 CFLAGS="$xorg_testset_save_CFLAGS" 10142fi 10143 10144found="no" 10145 10146 if test $found = "no" ; then 10147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10149 fi 10150 10151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10153 fi 10154 10155 CFLAGS="$CFLAGS -Wwrite-strings" 10156 10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10158printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10159 cacheid=xorg_cv_cc_flag__Wwrite_strings 10160 if eval test \${$cacheid+y} 10161then : 10162 printf %s "(cached) " >&6 10163else $as_nop 10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10165/* end confdefs.h. */ 10166int i; 10167int 10168main (void) 10169{ 10170 10171 ; 10172 return 0; 10173} 10174_ACEOF 10175if ac_fn_c_try_link "$LINENO" 10176then : 10177 eval $cacheid=yes 10178else $as_nop 10179 eval $cacheid=no 10180fi 10181rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10182 conftest$ac_exeext conftest.$ac_ext 10183fi 10184 10185 10186 CFLAGS="$xorg_testset_save_CFLAGS" 10187 10188 eval supported=\$$cacheid 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10190printf "%s\n" "$supported" >&6; } 10191 if test "$supported" = "yes" ; then 10192 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10193 found="yes" 10194 fi 10195 fi 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211xorg_testset_save_CFLAGS="$CFLAGS" 10212 10213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10218then : 10219 printf %s "(cached) " >&6 10220else $as_nop 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222/* end confdefs.h. */ 10223int i; 10224_ACEOF 10225if ac_fn_c_try_compile "$LINENO" 10226then : 10227 xorg_cv_cc_flag_unknown_warning_option=yes 10228else $as_nop 10229 xorg_cv_cc_flag_unknown_warning_option=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10232fi 10233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237fi 10238 10239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 fi 10243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10246if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10247then : 10248 printf %s "(cached) " >&6 10249else $as_nop 10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10251/* end confdefs.h. */ 10252int i; 10253_ACEOF 10254if ac_fn_c_try_compile "$LINENO" 10255then : 10256 xorg_cv_cc_flag_unused_command_line_argument=yes 10257else $as_nop 10258 xorg_cv_cc_flag_unused_command_line_argument=no 10259fi 10260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10261fi 10262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10265 CFLAGS="$xorg_testset_save_CFLAGS" 10266fi 10267 10268found="no" 10269 10270 if test $found = "no" ; then 10271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 fi 10274 10275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10277 fi 10278 10279 CFLAGS="$CFLAGS -Waddress" 10280 10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10282printf %s "checking if $CC supports -Waddress... " >&6; } 10283 cacheid=xorg_cv_cc_flag__Waddress 10284 if eval test \${$cacheid+y} 10285then : 10286 printf %s "(cached) " >&6 10287else $as_nop 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290int i; 10291int 10292main (void) 10293{ 10294 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_link "$LINENO" 10300then : 10301 eval $cacheid=yes 10302else $as_nop 10303 eval $cacheid=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10306 conftest$ac_exeext conftest.$ac_ext 10307fi 10308 10309 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311 10312 eval supported=\$$cacheid 10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10314printf "%s\n" "$supported" >&6; } 10315 if test "$supported" = "yes" ; then 10316 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10317 found="yes" 10318 fi 10319 fi 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335xorg_testset_save_CFLAGS="$CFLAGS" 10336 10337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10341if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10342then : 10343 printf %s "(cached) " >&6 10344else $as_nop 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346/* end confdefs.h. */ 10347int i; 10348_ACEOF 10349if ac_fn_c_try_compile "$LINENO" 10350then : 10351 xorg_cv_cc_flag_unknown_warning_option=yes 10352else $as_nop 10353 xorg_cv_cc_flag_unknown_warning_option=no 10354fi 10355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10356fi 10357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10360 CFLAGS="$xorg_testset_save_CFLAGS" 10361fi 10362 10363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10366 fi 10367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10370if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10371then : 10372 printf %s "(cached) " >&6 10373else $as_nop 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376int i; 10377_ACEOF 10378if ac_fn_c_try_compile "$LINENO" 10379then : 10380 xorg_cv_cc_flag_unused_command_line_argument=yes 10381else $as_nop 10382 xorg_cv_cc_flag_unused_command_line_argument=no 10383fi 10384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10385fi 10386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10389 CFLAGS="$xorg_testset_save_CFLAGS" 10390fi 10391 10392found="no" 10393 10394 if test $found = "no" ; then 10395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10397 fi 10398 10399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10401 fi 10402 10403 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10404 10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10406printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10407 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10408 if eval test \${$cacheid+y} 10409then : 10410 printf %s "(cached) " >&6 10411else $as_nop 10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413/* end confdefs.h. */ 10414int i; 10415int 10416main (void) 10417{ 10418 10419 ; 10420 return 0; 10421} 10422_ACEOF 10423if ac_fn_c_try_link "$LINENO" 10424then : 10425 eval $cacheid=yes 10426else $as_nop 10427 eval $cacheid=no 10428fi 10429rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10430 conftest$ac_exeext conftest.$ac_ext 10431fi 10432 10433 10434 CFLAGS="$xorg_testset_save_CFLAGS" 10435 10436 eval supported=\$$cacheid 10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10438printf "%s\n" "$supported" >&6; } 10439 if test "$supported" = "yes" ; then 10440 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10441 found="yes" 10442 fi 10443 fi 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459xorg_testset_save_CFLAGS="$CFLAGS" 10460 10461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10466then : 10467 printf %s "(cached) " >&6 10468else $as_nop 10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10470/* end confdefs.h. */ 10471int i; 10472_ACEOF 10473if ac_fn_c_try_compile "$LINENO" 10474then : 10475 xorg_cv_cc_flag_unknown_warning_option=yes 10476else $as_nop 10477 xorg_cv_cc_flag_unknown_warning_option=no 10478fi 10479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10480fi 10481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485fi 10486 10487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 fi 10491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10495then : 10496 printf %s "(cached) " >&6 10497else $as_nop 10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO" 10503then : 10504 xorg_cv_cc_flag_unused_command_line_argument=yes 10505else $as_nop 10506 xorg_cv_cc_flag_unused_command_line_argument=no 10507fi 10508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10509fi 10510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10513 CFLAGS="$xorg_testset_save_CFLAGS" 10514fi 10515 10516found="no" 10517 10518 if test $found = "no" ; then 10519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 fi 10522 10523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10525 fi 10526 10527 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10528 10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10530printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10531 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10532 if eval test \${$cacheid+y} 10533then : 10534 printf %s "(cached) " >&6 10535else $as_nop 10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10537/* end confdefs.h. */ 10538int i; 10539int 10540main (void) 10541{ 10542 10543 ; 10544 return 0; 10545} 10546_ACEOF 10547if ac_fn_c_try_link "$LINENO" 10548then : 10549 eval $cacheid=yes 10550else $as_nop 10551 eval $cacheid=no 10552fi 10553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10554 conftest$ac_exeext conftest.$ac_ext 10555fi 10556 10557 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10559 10560 eval supported=\$$cacheid 10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10562printf "%s\n" "$supported" >&6; } 10563 if test "$supported" = "yes" ; then 10564 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10565 found="yes" 10566 fi 10567 fi 10568 10569 10570fi 10571 10572 10573 10574 10575 10576 10577 10578 CWARNFLAGS="$BASE_CFLAGS" 10579 if test "x$GCC" = xyes ; then 10580 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10581 fi 10582 10583 10584 10585 10586 10587 10588 10589 10590# Check whether --enable-strict-compilation was given. 10591if test ${enable_strict_compilation+y} 10592then : 10593 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10594else $as_nop 10595 STRICT_COMPILE=no 10596fi 10597 10598 10599 10600 10601 10602 10603STRICT_CFLAGS="" 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617xorg_testset_save_CFLAGS="$CFLAGS" 10618 10619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10623if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10624then : 10625 printf %s "(cached) " >&6 10626else $as_nop 10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10628/* end confdefs.h. */ 10629int i; 10630_ACEOF 10631if ac_fn_c_try_compile "$LINENO" 10632then : 10633 xorg_cv_cc_flag_unknown_warning_option=yes 10634else $as_nop 10635 xorg_cv_cc_flag_unknown_warning_option=no 10636fi 10637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10638fi 10639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10642 CFLAGS="$xorg_testset_save_CFLAGS" 10643fi 10644 10645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10648 fi 10649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10652if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10653then : 10654 printf %s "(cached) " >&6 10655else $as_nop 10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658int i; 10659_ACEOF 10660if ac_fn_c_try_compile "$LINENO" 10661then : 10662 xorg_cv_cc_flag_unused_command_line_argument=yes 10663else $as_nop 10664 xorg_cv_cc_flag_unused_command_line_argument=no 10665fi 10666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10667fi 10668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10671 CFLAGS="$xorg_testset_save_CFLAGS" 10672fi 10673 10674found="no" 10675 10676 if test $found = "no" ; then 10677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679 fi 10680 10681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10683 fi 10684 10685 CFLAGS="$CFLAGS -pedantic" 10686 10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10688printf %s "checking if $CC supports -pedantic... " >&6; } 10689 cacheid=xorg_cv_cc_flag__pedantic 10690 if eval test \${$cacheid+y} 10691then : 10692 printf %s "(cached) " >&6 10693else $as_nop 10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10695/* end confdefs.h. */ 10696int i; 10697int 10698main (void) 10699{ 10700 10701 ; 10702 return 0; 10703} 10704_ACEOF 10705if ac_fn_c_try_link "$LINENO" 10706then : 10707 eval $cacheid=yes 10708else $as_nop 10709 eval $cacheid=no 10710fi 10711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10712 conftest$ac_exeext conftest.$ac_ext 10713fi 10714 10715 10716 CFLAGS="$xorg_testset_save_CFLAGS" 10717 10718 eval supported=\$$cacheid 10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10720printf "%s\n" "$supported" >&6; } 10721 if test "$supported" = "yes" ; then 10722 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10723 found="yes" 10724 fi 10725 fi 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741xorg_testset_save_CFLAGS="$CFLAGS" 10742 10743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10747if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10748then : 10749 printf %s "(cached) " >&6 10750else $as_nop 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753int i; 10754_ACEOF 10755if ac_fn_c_try_compile "$LINENO" 10756then : 10757 xorg_cv_cc_flag_unknown_warning_option=yes 10758else $as_nop 10759 xorg_cv_cc_flag_unknown_warning_option=no 10760fi 10761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10762fi 10763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10766 CFLAGS="$xorg_testset_save_CFLAGS" 10767fi 10768 10769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10772 fi 10773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10776if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10777then : 10778 printf %s "(cached) " >&6 10779else $as_nop 10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10781/* end confdefs.h. */ 10782int i; 10783_ACEOF 10784if ac_fn_c_try_compile "$LINENO" 10785then : 10786 xorg_cv_cc_flag_unused_command_line_argument=yes 10787else $as_nop 10788 xorg_cv_cc_flag_unused_command_line_argument=no 10789fi 10790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10791fi 10792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10795 CFLAGS="$xorg_testset_save_CFLAGS" 10796fi 10797 10798found="no" 10799 10800 if test $found = "no" ; then 10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 fi 10804 10805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10807 fi 10808 10809 CFLAGS="$CFLAGS -Werror" 10810 10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10812printf %s "checking if $CC supports -Werror... " >&6; } 10813 cacheid=xorg_cv_cc_flag__Werror 10814 if eval test \${$cacheid+y} 10815then : 10816 printf %s "(cached) " >&6 10817else $as_nop 10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10819/* end confdefs.h. */ 10820int i; 10821int 10822main (void) 10823{ 10824 10825 ; 10826 return 0; 10827} 10828_ACEOF 10829if ac_fn_c_try_link "$LINENO" 10830then : 10831 eval $cacheid=yes 10832else $as_nop 10833 eval $cacheid=no 10834fi 10835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10836 conftest$ac_exeext conftest.$ac_ext 10837fi 10838 10839 10840 CFLAGS="$xorg_testset_save_CFLAGS" 10841 10842 eval supported=\$$cacheid 10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10844printf "%s\n" "$supported" >&6; } 10845 if test "$supported" = "yes" ; then 10846 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10847 found="yes" 10848 fi 10849 fi 10850 10851 if test $found = "no" ; then 10852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10854 fi 10855 10856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10858 fi 10859 10860 CFLAGS="$CFLAGS -errwarn" 10861 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10863printf %s "checking if $CC supports -errwarn... " >&6; } 10864 cacheid=xorg_cv_cc_flag__errwarn 10865 if eval test \${$cacheid+y} 10866then : 10867 printf %s "(cached) " >&6 10868else $as_nop 10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870/* end confdefs.h. */ 10871int i; 10872int 10873main (void) 10874{ 10875 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880if ac_fn_c_try_link "$LINENO" 10881then : 10882 eval $cacheid=yes 10883else $as_nop 10884 eval $cacheid=no 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10887 conftest$ac_exeext conftest.$ac_ext 10888fi 10889 10890 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892 10893 eval supported=\$$cacheid 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10895printf "%s\n" "$supported" >&6; } 10896 if test "$supported" = "yes" ; then 10897 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10898 found="yes" 10899 fi 10900 fi 10901 10902 10903 10904# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10905# activate it with -Werror, so we add it here explicitly. 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919xorg_testset_save_CFLAGS="$CFLAGS" 10920 10921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10926then : 10927 printf %s "(cached) " >&6 10928else $as_nop 10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930/* end confdefs.h. */ 10931int i; 10932_ACEOF 10933if ac_fn_c_try_compile "$LINENO" 10934then : 10935 xorg_cv_cc_flag_unknown_warning_option=yes 10936else $as_nop 10937 xorg_cv_cc_flag_unknown_warning_option=no 10938fi 10939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10940fi 10941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10944 CFLAGS="$xorg_testset_save_CFLAGS" 10945fi 10946 10947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10950 fi 10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10955then : 10956 printf %s "(cached) " >&6 10957else $as_nop 10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10959/* end confdefs.h. */ 10960int i; 10961_ACEOF 10962if ac_fn_c_try_compile "$LINENO" 10963then : 10964 xorg_cv_cc_flag_unused_command_line_argument=yes 10965else $as_nop 10966 xorg_cv_cc_flag_unused_command_line_argument=no 10967fi 10968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10969fi 10970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10973 CFLAGS="$xorg_testset_save_CFLAGS" 10974fi 10975 10976found="no" 10977 10978 if test $found = "no" ; then 10979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10981 fi 10982 10983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10985 fi 10986 10987 CFLAGS="$CFLAGS -Werror=attributes" 10988 10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10990printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10991 cacheid=xorg_cv_cc_flag__Werror_attributes 10992 if eval test \${$cacheid+y} 10993then : 10994 printf %s "(cached) " >&6 10995else $as_nop 10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998int i; 10999int 11000main (void) 11001{ 11002 11003 ; 11004 return 0; 11005} 11006_ACEOF 11007if ac_fn_c_try_link "$LINENO" 11008then : 11009 eval $cacheid=yes 11010else $as_nop 11011 eval $cacheid=no 11012fi 11013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11014 conftest$ac_exeext conftest.$ac_ext 11015fi 11016 11017 11018 CFLAGS="$xorg_testset_save_CFLAGS" 11019 11020 eval supported=\$$cacheid 11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11022printf "%s\n" "$supported" >&6; } 11023 if test "$supported" = "yes" ; then 11024 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11025 found="yes" 11026 fi 11027 fi 11028 11029 11030 11031if test "x$STRICT_COMPILE" = "xyes"; then 11032 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11033 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11034fi 11035 11036 11037 11038 11039 11040 11041 11042 11043cat >>confdefs.h <<_ACEOF 11044#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11045_ACEOF 11046 11047 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11048 if test "x$PVM" = "x"; then 11049 PVM="0" 11050 fi 11051 11052printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11053 11054 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11055 if test "x$PVP" = "x"; then 11056 PVP="0" 11057 fi 11058 11059printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11060 11061 11062 11063CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11064mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11065|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11066touch \$(top_srcdir)/ChangeLog; \ 11067echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11068 11069 11070 11071 11072macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11073INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11074mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11075|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11076touch \$(top_srcdir)/INSTALL; \ 11077echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11078 11079 11080 11081 11082 11083 11084case $host_os in 11085 solaris*) 11086 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11087 # check for a man page file found in later versions that use 11088 # traditional section numbers instead 11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11090printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11091if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11092then : 11093 printf %s "(cached) " >&6 11094else $as_nop 11095 test "$cross_compiling" = yes && 11096 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11097if test -r "/usr/share/man/man7/attributes.7"; then 11098 ac_cv_file__usr_share_man_man7_attributes_7=yes 11099else 11100 ac_cv_file__usr_share_man_man7_attributes_7=no 11101fi 11102fi 11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11104printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11105if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11106then : 11107 SYSV_MAN_SECTIONS=false 11108else $as_nop 11109 SYSV_MAN_SECTIONS=true 11110fi 11111 11112 ;; 11113 *) SYSV_MAN_SECTIONS=false ;; 11114esac 11115 11116if test x$APP_MAN_SUFFIX = x ; then 11117 APP_MAN_SUFFIX=1 11118fi 11119if test x$APP_MAN_DIR = x ; then 11120 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11121fi 11122 11123if test x$LIB_MAN_SUFFIX = x ; then 11124 LIB_MAN_SUFFIX=3 11125fi 11126if test x$LIB_MAN_DIR = x ; then 11127 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11128fi 11129 11130if test x$FILE_MAN_SUFFIX = x ; then 11131 case $SYSV_MAN_SECTIONS in 11132 true) FILE_MAN_SUFFIX=4 ;; 11133 *) FILE_MAN_SUFFIX=5 ;; 11134 esac 11135fi 11136if test x$FILE_MAN_DIR = x ; then 11137 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11138fi 11139 11140if test x$MISC_MAN_SUFFIX = x ; then 11141 case $SYSV_MAN_SECTIONS in 11142 true) MISC_MAN_SUFFIX=5 ;; 11143 *) MISC_MAN_SUFFIX=7 ;; 11144 esac 11145fi 11146if test x$MISC_MAN_DIR = x ; then 11147 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11148fi 11149 11150if test x$DRIVER_MAN_SUFFIX = x ; then 11151 case $SYSV_MAN_SECTIONS in 11152 true) DRIVER_MAN_SUFFIX=7 ;; 11153 *) DRIVER_MAN_SUFFIX=4 ;; 11154 esac 11155fi 11156if test x$DRIVER_MAN_DIR = x ; then 11157 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11158fi 11159 11160if test x$ADMIN_MAN_SUFFIX = x ; then 11161 case $SYSV_MAN_SECTIONS in 11162 true) ADMIN_MAN_SUFFIX=1m ;; 11163 *) ADMIN_MAN_SUFFIX=8 ;; 11164 esac 11165fi 11166if test x$ADMIN_MAN_DIR = x ; then 11167 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11168fi 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184XORG_MAN_PAGE="X Version 11" 11185 11186MAN_SUBSTS="\ 11187 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11188 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11189 -e 's|__xservername__|Xorg|g' \ 11190 -e 's|__xconfigfile__|xorg.conf|g' \ 11191 -e 's|__projectroot__|\$(prefix)|g' \ 11192 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11193 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11194 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11195 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11196 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11197 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11198 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11199 11200 11201 11202# Check whether --enable-silent-rules was given. 11203if test ${enable_silent_rules+y} 11204then : 11205 enableval=$enable_silent_rules; 11206fi 11207 11208case $enable_silent_rules in # ((( 11209 yes) AM_DEFAULT_VERBOSITY=0;; 11210 no) AM_DEFAULT_VERBOSITY=1;; 11211 *) AM_DEFAULT_VERBOSITY=0;; 11212esac 11213am_make=${MAKE-make} 11214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11215printf %s "checking whether $am_make supports nested variables... " >&6; } 11216if test ${am_cv_make_support_nested_variables+y} 11217then : 11218 printf %s "(cached) " >&6 11219else $as_nop 11220 if printf "%s\n" 'TRUE=$(BAR$(V)) 11221BAR0=false 11222BAR1=true 11223V=1 11224am__doit: 11225 @$(TRUE) 11226.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11227 am_cv_make_support_nested_variables=yes 11228else 11229 am_cv_make_support_nested_variables=no 11230fi 11231fi 11232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11233printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11234if test $am_cv_make_support_nested_variables = yes; then 11235 AM_V='$(V)' 11236 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11237else 11238 AM_V=$AM_DEFAULT_VERBOSITY 11239 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11240fi 11241AM_BACKSLASH='\' 11242 11243 11244 11245 11246 11247# Check whether --enable-docs was given. 11248if test ${enable_docs+y} 11249then : 11250 enableval=$enable_docs; build_docs=$enableval 11251else $as_nop 11252 build_docs=yes 11253fi 11254 11255 11256 if test x$build_docs = xyes; then 11257 ENABLE_DOCS_TRUE= 11258 ENABLE_DOCS_FALSE='#' 11259else 11260 ENABLE_DOCS_TRUE='#' 11261 ENABLE_DOCS_FALSE= 11262fi 11263 11264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 11265printf %s "checking whether to build documentation... " >&6; } 11266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 11267printf "%s\n" "$build_docs" >&6; } 11268 11269 11270 11271 11272 11273# Check whether --with-xmlto was given. 11274if test ${with_xmlto+y} 11275then : 11276 withval=$with_xmlto; use_xmlto=$withval 11277else $as_nop 11278 use_xmlto=auto 11279fi 11280 11281 11282 11283if test "x$use_xmlto" = x"auto"; then 11284 # Extract the first word of "xmlto", so it can be a program name with args. 11285set dummy xmlto; ac_word=$2 11286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11287printf %s "checking for $ac_word... " >&6; } 11288if test ${ac_cv_path_XMLTO+y} 11289then : 11290 printf %s "(cached) " >&6 11291else $as_nop 11292 case $XMLTO in 11293 [\\/]* | ?:[\\/]*) 11294 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11295 ;; 11296 *) 11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11298for as_dir in $PATH 11299do 11300 IFS=$as_save_IFS 11301 case $as_dir in #((( 11302 '') as_dir=./ ;; 11303 */) ;; 11304 *) as_dir=$as_dir/ ;; 11305 esac 11306 for ac_exec_ext in '' $ac_executable_extensions; do 11307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11308 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11310 break 2 11311 fi 11312done 11313 done 11314IFS=$as_save_IFS 11315 11316 ;; 11317esac 11318fi 11319XMLTO=$ac_cv_path_XMLTO 11320if test -n "$XMLTO"; then 11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11322printf "%s\n" "$XMLTO" >&6; } 11323else 11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11325printf "%s\n" "no" >&6; } 11326fi 11327 11328 11329 if test "x$XMLTO" = "x"; then 11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11331printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11332 have_xmlto=no 11333 else 11334 have_xmlto=yes 11335 fi 11336elif test "x$use_xmlto" = x"yes" ; then 11337 # Extract the first word of "xmlto", so it can be a program name with args. 11338set dummy xmlto; ac_word=$2 11339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340printf %s "checking for $ac_word... " >&6; } 11341if test ${ac_cv_path_XMLTO+y} 11342then : 11343 printf %s "(cached) " >&6 11344else $as_nop 11345 case $XMLTO in 11346 [\\/]* | ?:[\\/]*) 11347 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11348 ;; 11349 *) 11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11351for as_dir in $PATH 11352do 11353 IFS=$as_save_IFS 11354 case $as_dir in #((( 11355 '') as_dir=./ ;; 11356 */) ;; 11357 *) as_dir=$as_dir/ ;; 11358 esac 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11361 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11363 break 2 11364 fi 11365done 11366 done 11367IFS=$as_save_IFS 11368 11369 ;; 11370esac 11371fi 11372XMLTO=$ac_cv_path_XMLTO 11373if test -n "$XMLTO"; then 11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11375printf "%s\n" "$XMLTO" >&6; } 11376else 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378printf "%s\n" "no" >&6; } 11379fi 11380 11381 11382 if test "x$XMLTO" = "x"; then 11383 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11384 fi 11385 have_xmlto=yes 11386elif test "x$use_xmlto" = x"no" ; then 11387 if test "x$XMLTO" != "x"; then 11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11389printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11390 fi 11391 have_xmlto=no 11392else 11393 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11394fi 11395 11396# Test for a minimum version of xmlto, if provided. 11397if test "$have_xmlto" = yes; then 11398 # scrape the xmlto version 11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11400printf %s "checking the xmlto version... " >&6; } 11401 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11403printf "%s\n" "$xmlto_version" >&6; } 11404 as_arg_v1=$xmlto_version 11405as_arg_v2=0.0.22 11406awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11407case $? in #( 11408 1) : 11409 if test "x$use_xmlto" = xauto; then 11410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 11411printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 11412 have_xmlto=no 11413 else 11414 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 11415 fi ;; #( 11416 0) : 11417 ;; #( 11418 2) : 11419 ;; #( 11420 *) : 11421 ;; 11422esac 11423fi 11424 11425# Test for the ability of xmlto to generate a text target 11426# 11427# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11428# following test for empty XML docbook files. 11429# For compatibility reasons use the following empty XML docbook file and if 11430# it fails try it again with a non-empty XML file. 11431have_xmlto_text=no 11432cat > conftest.xml << "EOF" 11433EOF 11434if test "$have_xmlto" = yes 11435then : 11436 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11437then : 11438 have_xmlto_text=yes 11439else $as_nop 11440 # Try it again with a non-empty XML file. 11441 cat > conftest.xml << "EOF" 11442<x></x> 11443EOF 11444 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11445then : 11446 have_xmlto_text=yes 11447else $as_nop 11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11449printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 11450fi 11451fi 11452fi 11453rm -f conftest.xml 11454 if test $have_xmlto_text = yes; then 11455 HAVE_XMLTO_TEXT_TRUE= 11456 HAVE_XMLTO_TEXT_FALSE='#' 11457else 11458 HAVE_XMLTO_TEXT_TRUE='#' 11459 HAVE_XMLTO_TEXT_FALSE= 11460fi 11461 11462 if test "$have_xmlto" = yes; then 11463 HAVE_XMLTO_TRUE= 11464 HAVE_XMLTO_FALSE='#' 11465else 11466 HAVE_XMLTO_TRUE='#' 11467 HAVE_XMLTO_FALSE= 11468fi 11469 11470 11471 11472 11473 11474 11475# Check whether --with-fop was given. 11476if test ${with_fop+y} 11477then : 11478 withval=$with_fop; use_fop=$withval 11479else $as_nop 11480 use_fop=auto 11481fi 11482 11483 11484 11485if test "x$use_fop" = x"auto"; then 11486 # Extract the first word of "fop", so it can be a program name with args. 11487set dummy fop; ac_word=$2 11488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11489printf %s "checking for $ac_word... " >&6; } 11490if test ${ac_cv_path_FOP+y} 11491then : 11492 printf %s "(cached) " >&6 11493else $as_nop 11494 case $FOP in 11495 [\\/]* | ?:[\\/]*) 11496 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11497 ;; 11498 *) 11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11500for as_dir in $PATH 11501do 11502 IFS=$as_save_IFS 11503 case $as_dir in #((( 11504 '') as_dir=./ ;; 11505 */) ;; 11506 *) as_dir=$as_dir/ ;; 11507 esac 11508 for ac_exec_ext in '' $ac_executable_extensions; do 11509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11510 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11512 break 2 11513 fi 11514done 11515 done 11516IFS=$as_save_IFS 11517 11518 ;; 11519esac 11520fi 11521FOP=$ac_cv_path_FOP 11522if test -n "$FOP"; then 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11524printf "%s\n" "$FOP" >&6; } 11525else 11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11527printf "%s\n" "no" >&6; } 11528fi 11529 11530 11531 if test "x$FOP" = "x"; then 11532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 11533printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 11534 have_fop=no 11535 else 11536 have_fop=yes 11537 fi 11538elif test "x$use_fop" = x"yes" ; then 11539 # Extract the first word of "fop", so it can be a program name with args. 11540set dummy fop; ac_word=$2 11541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11542printf %s "checking for $ac_word... " >&6; } 11543if test ${ac_cv_path_FOP+y} 11544then : 11545 printf %s "(cached) " >&6 11546else $as_nop 11547 case $FOP in 11548 [\\/]* | ?:[\\/]*) 11549 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11550 ;; 11551 *) 11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11553for as_dir in $PATH 11554do 11555 IFS=$as_save_IFS 11556 case $as_dir in #((( 11557 '') as_dir=./ ;; 11558 */) ;; 11559 *) as_dir=$as_dir/ ;; 11560 esac 11561 for ac_exec_ext in '' $ac_executable_extensions; do 11562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11563 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11565 break 2 11566 fi 11567done 11568 done 11569IFS=$as_save_IFS 11570 11571 ;; 11572esac 11573fi 11574FOP=$ac_cv_path_FOP 11575if test -n "$FOP"; then 11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11577printf "%s\n" "$FOP" >&6; } 11578else 11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11580printf "%s\n" "no" >&6; } 11581fi 11582 11583 11584 if test "x$FOP" = "x"; then 11585 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 11586 fi 11587 have_fop=yes 11588elif test "x$use_fop" = x"no" ; then 11589 if test "x$FOP" != "x"; then 11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 11591printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 11592 fi 11593 have_fop=no 11594else 11595 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 11596fi 11597 11598# Test for a minimum version of fop, if provided. 11599 11600 if test "$have_fop" = yes; then 11601 HAVE_FOP_TRUE= 11602 HAVE_FOP_FALSE='#' 11603else 11604 HAVE_FOP_TRUE='#' 11605 HAVE_FOP_FALSE= 11606fi 11607 11608 11609 11610 11611# Preserves the interface, should it be implemented later 11612 11613 11614 11615# Check whether --with-xsltproc was given. 11616if test ${with_xsltproc+y} 11617then : 11618 withval=$with_xsltproc; use_xsltproc=$withval 11619else $as_nop 11620 use_xsltproc=auto 11621fi 11622 11623 11624 11625if test "x$use_xsltproc" = x"auto"; then 11626 # Extract the first word of "xsltproc", so it can be a program name with args. 11627set dummy xsltproc; ac_word=$2 11628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11629printf %s "checking for $ac_word... " >&6; } 11630if test ${ac_cv_path_XSLTPROC+y} 11631then : 11632 printf %s "(cached) " >&6 11633else $as_nop 11634 case $XSLTPROC in 11635 [\\/]* | ?:[\\/]*) 11636 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11637 ;; 11638 *) 11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11640for as_dir in $PATH 11641do 11642 IFS=$as_save_IFS 11643 case $as_dir in #((( 11644 '') as_dir=./ ;; 11645 */) ;; 11646 *) as_dir=$as_dir/ ;; 11647 esac 11648 for ac_exec_ext in '' $ac_executable_extensions; do 11649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11650 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11652 break 2 11653 fi 11654done 11655 done 11656IFS=$as_save_IFS 11657 11658 ;; 11659esac 11660fi 11661XSLTPROC=$ac_cv_path_XSLTPROC 11662if test -n "$XSLTPROC"; then 11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11664printf "%s\n" "$XSLTPROC" >&6; } 11665else 11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11667printf "%s\n" "no" >&6; } 11668fi 11669 11670 11671 if test "x$XSLTPROC" = "x"; then 11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 11673printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 11674 have_xsltproc=no 11675 else 11676 have_xsltproc=yes 11677 fi 11678elif test "x$use_xsltproc" = x"yes" ; then 11679 # Extract the first word of "xsltproc", so it can be a program name with args. 11680set dummy xsltproc; ac_word=$2 11681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11682printf %s "checking for $ac_word... " >&6; } 11683if test ${ac_cv_path_XSLTPROC+y} 11684then : 11685 printf %s "(cached) " >&6 11686else $as_nop 11687 case $XSLTPROC in 11688 [\\/]* | ?:[\\/]*) 11689 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11690 ;; 11691 *) 11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11693for as_dir in $PATH 11694do 11695 IFS=$as_save_IFS 11696 case $as_dir in #((( 11697 '') as_dir=./ ;; 11698 */) ;; 11699 *) as_dir=$as_dir/ ;; 11700 esac 11701 for ac_exec_ext in '' $ac_executable_extensions; do 11702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11703 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11705 break 2 11706 fi 11707done 11708 done 11709IFS=$as_save_IFS 11710 11711 ;; 11712esac 11713fi 11714XSLTPROC=$ac_cv_path_XSLTPROC 11715if test -n "$XSLTPROC"; then 11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11717printf "%s\n" "$XSLTPROC" >&6; } 11718else 11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11720printf "%s\n" "no" >&6; } 11721fi 11722 11723 11724 if test "x$XSLTPROC" = "x"; then 11725 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 11726 fi 11727 have_xsltproc=yes 11728elif test "x$use_xsltproc" = x"no" ; then 11729 if test "x$XSLTPROC" != "x"; then 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 11731printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 11732 fi 11733 have_xsltproc=no 11734else 11735 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 11736fi 11737 11738 if test "$have_xsltproc" = yes; then 11739 HAVE_XSLTPROC_TRUE= 11740 HAVE_XSLTPROC_FALSE='#' 11741else 11742 HAVE_XSLTPROC_TRUE='#' 11743 HAVE_XSLTPROC_FALSE= 11744fi 11745 11746 11747 11748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 11749printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 11750XORG_SGML_PATH= 11751if test -n "$PKG_CONFIG" && \ 11752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 11753 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 11754 ac_status=$? 11755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11756 test $ac_status = 0; }; then 11757 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 11758else 11759 : 11760 11761fi 11762 11763# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 11764# the path and the name of the doc stylesheet 11765if test "x$XORG_SGML_PATH" != "x" ; then 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 11767printf "%s\n" "$XORG_SGML_PATH" >&6; } 11768 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 11769 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 11770else 11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11772printf "%s\n" "no" >&6; } 11773fi 11774 11775 11776 11777 11778 if test "x$XSL_STYLESHEET" != "x"; then 11779 HAVE_STYLESHEETS_TRUE= 11780 HAVE_STYLESHEETS_FALSE='#' 11781else 11782 HAVE_STYLESHEETS_TRUE='#' 11783 HAVE_STYLESHEETS_FALSE= 11784fi 11785 11786 11787 11788# Because xtrans is included into other modules rather than being linked 11789# with, these defines have to be added to the cflags line 11790 11791# fchown() 11792 11793ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 11794if test "x$ac_cv_func_fchown" = xyes 11795then : 11796 fchown_define="-DHAS_FCHOWN" 11797else $as_nop 11798 fchown_define="" 11799fi 11800 11801 11802 11803 11804# sticky bit 11805# 11806# if any system exists without sticky dir bits this 11807# needs to be redone with a real autoconf test 11808 11809sticky_bit_define="-DHAS_STICKY_DIR_BIT" 11810 11811 11812 11813ac_config_files="$ac_config_files Makefile doc/Makefile xtrans.pc" 11814 11815cat >confcache <<\_ACEOF 11816# This file is a shell script that caches the results of configure 11817# tests run on this system so they can be shared between configure 11818# scripts and configure runs, see configure's option --config-cache. 11819# It is not useful on other systems. If it contains results you don't 11820# want to keep, you may remove or edit it. 11821# 11822# config.status only pays attention to the cache file if you give it 11823# the --recheck option to rerun configure. 11824# 11825# `ac_cv_env_foo' variables (set or unset) will be overridden when 11826# loading this file, other *unset* `ac_cv_foo' will be assigned the 11827# following values. 11828 11829_ACEOF 11830 11831# The following way of writing the cache mishandles newlines in values, 11832# but we know of no workaround that is simple, portable, and efficient. 11833# So, we kill variables containing newlines. 11834# Ultrix sh set writes to stderr and can't be redirected directly, 11835# and sets the high bit in the cache file unless we assign to the vars. 11836( 11837 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11838 eval ac_val=\$$ac_var 11839 case $ac_val in #( 11840 *${as_nl}*) 11841 case $ac_var in #( 11842 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11843printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11844 esac 11845 case $ac_var in #( 11846 _ | IFS | as_nl) ;; #( 11847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11848 *) { eval $ac_var=; unset $ac_var;} ;; 11849 esac ;; 11850 esac 11851 done 11852 11853 (set) 2>&1 | 11854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11855 *${as_nl}ac_space=\ *) 11856 # `set' does not quote correctly, so add quotes: double-quote 11857 # substitution turns \\\\ into \\, and sed turns \\ into \. 11858 sed -n \ 11859 "s/'/'\\\\''/g; 11860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11861 ;; #( 11862 *) 11863 # `set' quotes correctly as required by POSIX, so do not add quotes. 11864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11865 ;; 11866 esac | 11867 sort 11868) | 11869 sed ' 11870 /^ac_cv_env_/b end 11871 t clear 11872 :clear 11873 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11874 t end 11875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11876 :end' >>confcache 11877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11878 if test -w "$cache_file"; then 11879 if test "x$cache_file" != "x/dev/null"; then 11880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11881printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11882 if test ! -f "$cache_file" || test -h "$cache_file"; then 11883 cat confcache >"$cache_file" 11884 else 11885 case $cache_file in #( 11886 */* | ?:*) 11887 mv -f confcache "$cache_file"$$ && 11888 mv -f "$cache_file"$$ "$cache_file" ;; #( 11889 *) 11890 mv -f confcache "$cache_file" ;; 11891 esac 11892 fi 11893 fi 11894 else 11895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11896printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11897 fi 11898fi 11899rm -f confcache 11900 11901test "x$prefix" = xNONE && prefix=$ac_default_prefix 11902# Let make expand exec_prefix. 11903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11904 11905# Transform confdefs.h into DEFS. 11906# Protect against shell expansion while executing Makefile rules. 11907# Protect against Makefile macro expansion. 11908# 11909# If the first sed substitution is executed (which looks for macros that 11910# take arguments), then branch to the quote section. Otherwise, 11911# look for a macro that doesn't take arguments. 11912ac_script=' 11913:mline 11914/\\$/{ 11915 N 11916 s,\\\n,, 11917 b mline 11918} 11919t clear 11920:clear 11921s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11922t quote 11923s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11924t quote 11925b any 11926:quote 11927s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11928s/\[/\\&/g 11929s/\]/\\&/g 11930s/\$/$$/g 11931H 11932:any 11933${ 11934 g 11935 s/^\n// 11936 s/\n/ /g 11937 p 11938} 11939' 11940DEFS=`sed -n "$ac_script" confdefs.h` 11941 11942 11943ac_libobjs= 11944ac_ltlibobjs= 11945U= 11946for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11947 # 1. Remove the extension, and $U if already installed. 11948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11949 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11951 # will be set to the directory where LIBOBJS objects are built. 11952 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11953 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11954done 11955LIBOBJS=$ac_libobjs 11956 11957LTLIBOBJS=$ac_ltlibobjs 11958 11959 11960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11961printf %s "checking that generated files are newer than configure... " >&6; } 11962 if test -n "$am_sleep_pid"; then 11963 # Hide warnings about reused PIDs. 11964 wait $am_sleep_pid 2>/dev/null 11965 fi 11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11967printf "%s\n" "done" >&6; } 11968 if test -n "$EXEEXT"; then 11969 am__EXEEXT_TRUE= 11970 am__EXEEXT_FALSE='#' 11971else 11972 am__EXEEXT_TRUE='#' 11973 am__EXEEXT_FALSE= 11974fi 11975 11976if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11977 as_fn_error $? "conditional \"AMDEP\" was never defined. 11978Usually this means the macro was only invoked conditionally." "$LINENO" 5 11979fi 11980if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11981 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11982Usually this means the macro was only invoked conditionally." "$LINENO" 5 11983fi 11984if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 11985 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 11986Usually this means the macro was only invoked conditionally." "$LINENO" 5 11987fi 11988if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 11989 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 11990Usually this means the macro was only invoked conditionally." "$LINENO" 5 11991fi 11992if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 11993 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 11994Usually this means the macro was only invoked conditionally." "$LINENO" 5 11995fi 11996if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 11997 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 11998Usually this means the macro was only invoked conditionally." "$LINENO" 5 11999fi 12000if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 12001 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 12002Usually this means the macro was only invoked conditionally." "$LINENO" 5 12003fi 12004if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 12005 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 12006Usually this means the macro was only invoked conditionally." "$LINENO" 5 12007fi 12008 12009: "${CONFIG_STATUS=./config.status}" 12010ac_write_fail=0 12011ac_clean_files_save=$ac_clean_files 12012ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12014printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12015as_write_fail=0 12016cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12017#! $SHELL 12018# Generated by $as_me. 12019# Run this file to recreate the current configuration. 12020# Compiler output produced by configure, useful for debugging 12021# configure, is in config.log if it exists. 12022 12023debug=false 12024ac_cs_recheck=false 12025ac_cs_silent=false 12026 12027SHELL=\${CONFIG_SHELL-$SHELL} 12028export SHELL 12029_ASEOF 12030cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12031## -------------------- ## 12032## M4sh Initialization. ## 12033## -------------------- ## 12034 12035# Be more Bourne compatible 12036DUALCASE=1; export DUALCASE # for MKS sh 12037as_nop=: 12038if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12039then : 12040 emulate sh 12041 NULLCMD=: 12042 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12043 # is contrary to our usage. Disable this feature. 12044 alias -g '${1+"$@"}'='"$@"' 12045 setopt NO_GLOB_SUBST 12046else $as_nop 12047 case `(set -o) 2>/dev/null` in #( 12048 *posix*) : 12049 set -o posix ;; #( 12050 *) : 12051 ;; 12052esac 12053fi 12054 12055 12056 12057# Reset variables that may have inherited troublesome values from 12058# the environment. 12059 12060# IFS needs to be set, to space, tab, and newline, in precisely that order. 12061# (If _AS_PATH_WALK were called with IFS unset, it would have the 12062# side effect of setting IFS to empty, thus disabling word splitting.) 12063# Quoting is to prevent editors from complaining about space-tab. 12064as_nl=' 12065' 12066export as_nl 12067IFS=" "" $as_nl" 12068 12069PS1='$ ' 12070PS2='> ' 12071PS4='+ ' 12072 12073# Ensure predictable behavior from utilities with locale-dependent output. 12074LC_ALL=C 12075export LC_ALL 12076LANGUAGE=C 12077export LANGUAGE 12078 12079# We cannot yet rely on "unset" to work, but we need these variables 12080# to be unset--not just set to an empty or harmless value--now, to 12081# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12082# also avoids known problems related to "unset" and subshell syntax 12083# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12084for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12085do eval test \${$as_var+y} \ 12086 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12087done 12088 12089# Ensure that fds 0, 1, and 2 are open. 12090if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12091if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12092if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12093 12094# The user is always right. 12095if ${PATH_SEPARATOR+false} :; then 12096 PATH_SEPARATOR=: 12097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12098 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12099 PATH_SEPARATOR=';' 12100 } 12101fi 12102 12103 12104# Find who we are. Look in the path if we contain no directory separator. 12105as_myself= 12106case $0 in #(( 12107 *[\\/]* ) as_myself=$0 ;; 12108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12109for as_dir in $PATH 12110do 12111 IFS=$as_save_IFS 12112 case $as_dir in #((( 12113 '') as_dir=./ ;; 12114 */) ;; 12115 *) as_dir=$as_dir/ ;; 12116 esac 12117 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12118 done 12119IFS=$as_save_IFS 12120 12121 ;; 12122esac 12123# We did not find ourselves, most probably we were run as `sh COMMAND' 12124# in which case we are not to be found in the path. 12125if test "x$as_myself" = x; then 12126 as_myself=$0 12127fi 12128if test ! -f "$as_myself"; then 12129 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12130 exit 1 12131fi 12132 12133 12134 12135# as_fn_error STATUS ERROR [LINENO LOG_FD] 12136# ---------------------------------------- 12137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12139# script with STATUS, using 1 if that was 0. 12140as_fn_error () 12141{ 12142 as_status=$1; test $as_status -eq 0 && as_status=1 12143 if test "$4"; then 12144 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12146 fi 12147 printf "%s\n" "$as_me: error: $2" >&2 12148 as_fn_exit $as_status 12149} # as_fn_error 12150 12151 12152 12153# as_fn_set_status STATUS 12154# ----------------------- 12155# Set $? to STATUS, without forking. 12156as_fn_set_status () 12157{ 12158 return $1 12159} # as_fn_set_status 12160 12161# as_fn_exit STATUS 12162# ----------------- 12163# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12164as_fn_exit () 12165{ 12166 set +e 12167 as_fn_set_status $1 12168 exit $1 12169} # as_fn_exit 12170 12171# as_fn_unset VAR 12172# --------------- 12173# Portably unset VAR. 12174as_fn_unset () 12175{ 12176 { eval $1=; unset $1;} 12177} 12178as_unset=as_fn_unset 12179 12180# as_fn_append VAR VALUE 12181# ---------------------- 12182# Append the text in VALUE to the end of the definition contained in VAR. Take 12183# advantage of any shell optimizations that allow amortized linear growth over 12184# repeated appends, instead of the typical quadratic growth present in naive 12185# implementations. 12186if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12187then : 12188 eval 'as_fn_append () 12189 { 12190 eval $1+=\$2 12191 }' 12192else $as_nop 12193 as_fn_append () 12194 { 12195 eval $1=\$$1\$2 12196 } 12197fi # as_fn_append 12198 12199# as_fn_arith ARG... 12200# ------------------ 12201# Perform arithmetic evaluation on the ARGs, and store the result in the 12202# global $as_val. Take advantage of shells that can avoid forks. The arguments 12203# must be portable across $(()) and expr. 12204if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12205then : 12206 eval 'as_fn_arith () 12207 { 12208 as_val=$(( $* )) 12209 }' 12210else $as_nop 12211 as_fn_arith () 12212 { 12213 as_val=`expr "$@" || test $? -eq 1` 12214 } 12215fi # as_fn_arith 12216 12217 12218if expr a : '\(a\)' >/dev/null 2>&1 && 12219 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12220 as_expr=expr 12221else 12222 as_expr=false 12223fi 12224 12225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12226 as_basename=basename 12227else 12228 as_basename=false 12229fi 12230 12231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12232 as_dirname=dirname 12233else 12234 as_dirname=false 12235fi 12236 12237as_me=`$as_basename -- "$0" || 12238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12239 X"$0" : 'X\(//\)$' \| \ 12240 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12241printf "%s\n" X/"$0" | 12242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12243 s//\1/ 12244 q 12245 } 12246 /^X\/\(\/\/\)$/{ 12247 s//\1/ 12248 q 12249 } 12250 /^X\/\(\/\).*/{ 12251 s//\1/ 12252 q 12253 } 12254 s/.*/./; q'` 12255 12256# Avoid depending upon Character Ranges. 12257as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12259as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12260as_cr_digits='0123456789' 12261as_cr_alnum=$as_cr_Letters$as_cr_digits 12262 12263 12264# Determine whether it's possible to make 'echo' print without a newline. 12265# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12266# for compatibility with existing Makefiles. 12267ECHO_C= ECHO_N= ECHO_T= 12268case `echo -n x` in #((((( 12269-n*) 12270 case `echo 'xy\c'` in 12271 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12272 xy) ECHO_C='\c';; 12273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12274 ECHO_T=' ';; 12275 esac;; 12276*) 12277 ECHO_N='-n';; 12278esac 12279 12280# For backward compatibility with old third-party macros, we provide 12281# the shell variables $as_echo and $as_echo_n. New code should use 12282# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12283as_echo='printf %s\n' 12284as_echo_n='printf %s' 12285 12286rm -f conf$$ conf$$.exe conf$$.file 12287if test -d conf$$.dir; then 12288 rm -f conf$$.dir/conf$$.file 12289else 12290 rm -f conf$$.dir 12291 mkdir conf$$.dir 2>/dev/null 12292fi 12293if (echo >conf$$.file) 2>/dev/null; then 12294 if ln -s conf$$.file conf$$ 2>/dev/null; then 12295 as_ln_s='ln -s' 12296 # ... but there are two gotchas: 12297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12299 # In both cases, we have to default to `cp -pR'. 12300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12301 as_ln_s='cp -pR' 12302 elif ln conf$$.file conf$$ 2>/dev/null; then 12303 as_ln_s=ln 12304 else 12305 as_ln_s='cp -pR' 12306 fi 12307else 12308 as_ln_s='cp -pR' 12309fi 12310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12311rmdir conf$$.dir 2>/dev/null 12312 12313 12314# as_fn_mkdir_p 12315# ------------- 12316# Create "$as_dir" as a directory, including parents if necessary. 12317as_fn_mkdir_p () 12318{ 12319 12320 case $as_dir in #( 12321 -*) as_dir=./$as_dir;; 12322 esac 12323 test -d "$as_dir" || eval $as_mkdir_p || { 12324 as_dirs= 12325 while :; do 12326 case $as_dir in #( 12327 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12328 *) as_qdir=$as_dir;; 12329 esac 12330 as_dirs="'$as_qdir' $as_dirs" 12331 as_dir=`$as_dirname -- "$as_dir" || 12332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12333 X"$as_dir" : 'X\(//\)[^/]' \| \ 12334 X"$as_dir" : 'X\(//\)$' \| \ 12335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12336printf "%s\n" X"$as_dir" | 12337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12338 s//\1/ 12339 q 12340 } 12341 /^X\(\/\/\)[^/].*/{ 12342 s//\1/ 12343 q 12344 } 12345 /^X\(\/\/\)$/{ 12346 s//\1/ 12347 q 12348 } 12349 /^X\(\/\).*/{ 12350 s//\1/ 12351 q 12352 } 12353 s/.*/./; q'` 12354 test -d "$as_dir" && break 12355 done 12356 test -z "$as_dirs" || eval "mkdir $as_dirs" 12357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12358 12359 12360} # as_fn_mkdir_p 12361if mkdir -p . 2>/dev/null; then 12362 as_mkdir_p='mkdir -p "$as_dir"' 12363else 12364 test -d ./-p && rmdir ./-p 12365 as_mkdir_p=false 12366fi 12367 12368 12369# as_fn_executable_p FILE 12370# ----------------------- 12371# Test if FILE is an executable regular file. 12372as_fn_executable_p () 12373{ 12374 test -f "$1" && test -x "$1" 12375} # as_fn_executable_p 12376as_test_x='test -x' 12377as_executable_p=as_fn_executable_p 12378 12379# Sed expression to map a string onto a valid CPP name. 12380as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12381 12382# Sed expression to map a string onto a valid variable name. 12383as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12384 12385 12386exec 6>&1 12387## ----------------------------------- ## 12388## Main body of $CONFIG_STATUS script. ## 12389## ----------------------------------- ## 12390_ASEOF 12391test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12392 12393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12394# Save the log message, to keep $0 and so on meaningful, and to 12395# report actual input values of CONFIG_FILES etc. instead of their 12396# values after options handling. 12397ac_log=" 12398This file was extended by xtrans $as_me 1.5.0, which was 12399generated by GNU Autoconf 2.71. Invocation command line was 12400 12401 CONFIG_FILES = $CONFIG_FILES 12402 CONFIG_HEADERS = $CONFIG_HEADERS 12403 CONFIG_LINKS = $CONFIG_LINKS 12404 CONFIG_COMMANDS = $CONFIG_COMMANDS 12405 $ $0 $@ 12406 12407on `(hostname || uname -n) 2>/dev/null | sed 1q` 12408" 12409 12410_ACEOF 12411 12412case $ac_config_files in *" 12413"*) set x $ac_config_files; shift; ac_config_files=$*;; 12414esac 12415 12416 12417 12418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12419# Files that config.status was made for. 12420config_files="$ac_config_files" 12421config_commands="$ac_config_commands" 12422 12423_ACEOF 12424 12425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12426ac_cs_usage="\ 12427\`$as_me' instantiates files and other configuration actions 12428from templates according to the current configuration. Unless the files 12429and actions are specified as TAGs, all are instantiated by default. 12430 12431Usage: $0 [OPTION]... [TAG]... 12432 12433 -h, --help print this help, then exit 12434 -V, --version print version number and configuration settings, then exit 12435 --config print configuration, then exit 12436 -q, --quiet, --silent 12437 do not print progress messages 12438 -d, --debug don't remove temporary files 12439 --recheck update $as_me by reconfiguring in the same conditions 12440 --file=FILE[:TEMPLATE] 12441 instantiate the configuration file FILE 12442 12443Configuration files: 12444$config_files 12445 12446Configuration commands: 12447$config_commands 12448 12449Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/issues>." 12450 12451_ACEOF 12452ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12453ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12455ac_cs_config='$ac_cs_config_escaped' 12456ac_cs_version="\\ 12457xtrans config.status 1.5.0 12458configured by $0, generated by GNU Autoconf 2.71, 12459 with options \\"\$ac_cs_config\\" 12460 12461Copyright (C) 2021 Free Software Foundation, Inc. 12462This config.status script is free software; the Free Software Foundation 12463gives unlimited permission to copy, distribute and modify it." 12464 12465ac_pwd='$ac_pwd' 12466srcdir='$srcdir' 12467INSTALL='$INSTALL' 12468MKDIR_P='$MKDIR_P' 12469AWK='$AWK' 12470test -n "\$AWK" || AWK=awk 12471_ACEOF 12472 12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12474# The default lists apply if the user does not specify any file. 12475ac_need_defaults=: 12476while test $# != 0 12477do 12478 case $1 in 12479 --*=?*) 12480 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12482 ac_shift=: 12483 ;; 12484 --*=) 12485 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12486 ac_optarg= 12487 ac_shift=: 12488 ;; 12489 *) 12490 ac_option=$1 12491 ac_optarg=$2 12492 ac_shift=shift 12493 ;; 12494 esac 12495 12496 case $ac_option in 12497 # Handling of the options. 12498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12499 ac_cs_recheck=: ;; 12500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12501 printf "%s\n" "$ac_cs_version"; exit ;; 12502 --config | --confi | --conf | --con | --co | --c ) 12503 printf "%s\n" "$ac_cs_config"; exit ;; 12504 --debug | --debu | --deb | --de | --d | -d ) 12505 debug=: ;; 12506 --file | --fil | --fi | --f ) 12507 $ac_shift 12508 case $ac_optarg in 12509 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12510 '') as_fn_error $? "missing file argument" ;; 12511 esac 12512 as_fn_append CONFIG_FILES " '$ac_optarg'" 12513 ac_need_defaults=false;; 12514 --he | --h | --help | --hel | -h ) 12515 printf "%s\n" "$ac_cs_usage"; exit ;; 12516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12517 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12518 ac_cs_silent=: ;; 12519 12520 # This is an error. 12521 -*) as_fn_error $? "unrecognized option: \`$1' 12522Try \`$0 --help' for more information." ;; 12523 12524 *) as_fn_append ac_config_targets " $1" 12525 ac_need_defaults=false ;; 12526 12527 esac 12528 shift 12529done 12530 12531ac_configure_extra_args= 12532 12533if $ac_cs_silent; then 12534 exec 6>/dev/null 12535 ac_configure_extra_args="$ac_configure_extra_args --silent" 12536fi 12537 12538_ACEOF 12539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12540if \$ac_cs_recheck; then 12541 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12542 shift 12543 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12544 CONFIG_SHELL='$SHELL' 12545 export CONFIG_SHELL 12546 exec "\$@" 12547fi 12548 12549_ACEOF 12550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12551exec 5>>config.log 12552{ 12553 echo 12554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12555## Running $as_me. ## 12556_ASBOX 12557 printf "%s\n" "$ac_log" 12558} >&5 12559 12560_ACEOF 12561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12562# 12563# INIT-COMMANDS 12564# 12565AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12566 12567_ACEOF 12568 12569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12570 12571# Handling of arguments. 12572for ac_config_target in $ac_config_targets 12573do 12574 case $ac_config_target in 12575 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12576 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12577 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12578 "xtrans.pc") CONFIG_FILES="$CONFIG_FILES xtrans.pc" ;; 12579 12580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12581 esac 12582done 12583 12584 12585# If the user did not use the arguments to specify the items to instantiate, 12586# then the envvar interface is used. Set only those that are not. 12587# We use the long form for the default assignment because of an extremely 12588# bizarre bug on SunOS 4.1.3. 12589if $ac_need_defaults; then 12590 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12591 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12592fi 12593 12594# Have a temporary directory for convenience. Make it in the build tree 12595# simply because there is no reason against having it here, and in addition, 12596# creating and moving files from /tmp can sometimes cause problems. 12597# Hook for its removal unless debugging. 12598# Note that there is a small window in which the directory will not be cleaned: 12599# after its creation but before its name has been assigned to `$tmp'. 12600$debug || 12601{ 12602 tmp= ac_tmp= 12603 trap 'exit_status=$? 12604 : "${ac_tmp:=$tmp}" 12605 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12606' 0 12607 trap 'as_fn_exit 1' 1 2 13 15 12608} 12609# Create a (secure) tmp directory for tmp files. 12610 12611{ 12612 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12613 test -d "$tmp" 12614} || 12615{ 12616 tmp=./conf$$-$RANDOM 12617 (umask 077 && mkdir "$tmp") 12618} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12619ac_tmp=$tmp 12620 12621# Set up the scripts for CONFIG_FILES section. 12622# No need to generate them if there are no CONFIG_FILES. 12623# This happens for instance with `./config.status config.h'. 12624if test -n "$CONFIG_FILES"; then 12625 12626 12627ac_cr=`echo X | tr X '\015'` 12628# On cygwin, bash can eat \r inside `` if the user requested igncr. 12629# But we know of no other shell where ac_cr would be empty at this 12630# point, so we can use a bashism as a fallback. 12631if test "x$ac_cr" = x; then 12632 eval ac_cr=\$\'\\r\' 12633fi 12634ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12635if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12636 ac_cs_awk_cr='\\r' 12637else 12638 ac_cs_awk_cr=$ac_cr 12639fi 12640 12641echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12642_ACEOF 12643 12644 12645{ 12646 echo "cat >conf$$subs.awk <<_ACEOF" && 12647 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12648 echo "_ACEOF" 12649} >conf$$subs.sh || 12650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12651ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12652ac_delim='%!_!# ' 12653for ac_last_try in false false false false false :; do 12654 . ./conf$$subs.sh || 12655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12656 12657 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12658 if test $ac_delim_n = $ac_delim_num; then 12659 break 12660 elif $ac_last_try; then 12661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12662 else 12663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12664 fi 12665done 12666rm -f conf$$subs.sh 12667 12668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12669cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12670_ACEOF 12671sed -n ' 12672h 12673s/^/S["/; s/!.*/"]=/ 12674p 12675g 12676s/^[^!]*!// 12677:repl 12678t repl 12679s/'"$ac_delim"'$// 12680t delim 12681:nl 12682h 12683s/\(.\{148\}\)..*/\1/ 12684t more1 12685s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12686p 12687n 12688b repl 12689:more1 12690s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12691p 12692g 12693s/.\{148\}// 12694t nl 12695:delim 12696h 12697s/\(.\{148\}\)..*/\1/ 12698t more2 12699s/["\\]/\\&/g; s/^/"/; s/$/"/ 12700p 12701b 12702:more2 12703s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12704p 12705g 12706s/.\{148\}// 12707t delim 12708' <conf$$subs.awk | sed ' 12709/^[^""]/{ 12710 N 12711 s/\n// 12712} 12713' >>$CONFIG_STATUS || ac_write_fail=1 12714rm -f conf$$subs.awk 12715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12716_ACAWK 12717cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12718 for (key in S) S_is_set[key] = 1 12719 FS = "" 12720 12721} 12722{ 12723 line = $ 0 12724 nfields = split(line, field, "@") 12725 substed = 0 12726 len = length(field[1]) 12727 for (i = 2; i < nfields; i++) { 12728 key = field[i] 12729 keylen = length(key) 12730 if (S_is_set[key]) { 12731 value = S[key] 12732 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12733 len += length(value) + length(field[++i]) 12734 substed = 1 12735 } else 12736 len += 1 + keylen 12737 } 12738 12739 print line 12740} 12741 12742_ACAWK 12743_ACEOF 12744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12745if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12746 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12747else 12748 cat 12749fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12750 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12751_ACEOF 12752 12753# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12754# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12755# trailing colons and then remove the whole line if VPATH becomes empty 12756# (actually we leave an empty line to preserve line numbers). 12757if test "x$srcdir" = x.; then 12758 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12759h 12760s/// 12761s/^/:/ 12762s/[ ]*$/:/ 12763s/:\$(srcdir):/:/g 12764s/:\${srcdir}:/:/g 12765s/:@srcdir@:/:/g 12766s/^:*// 12767s/:*$// 12768x 12769s/\(=[ ]*\).*/\1/ 12770G 12771s/\n// 12772s/^[^=]*=[ ]*$// 12773}' 12774fi 12775 12776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12777fi # test -n "$CONFIG_FILES" 12778 12779 12780eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12781shift 12782for ac_tag 12783do 12784 case $ac_tag in 12785 :[FHLC]) ac_mode=$ac_tag; continue;; 12786 esac 12787 case $ac_mode$ac_tag in 12788 :[FHL]*:*);; 12789 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12790 :[FH]-) ac_tag=-:-;; 12791 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12792 esac 12793 ac_save_IFS=$IFS 12794 IFS=: 12795 set x $ac_tag 12796 IFS=$ac_save_IFS 12797 shift 12798 ac_file=$1 12799 shift 12800 12801 case $ac_mode in 12802 :L) ac_source=$1;; 12803 :[FH]) 12804 ac_file_inputs= 12805 for ac_f 12806 do 12807 case $ac_f in 12808 -) ac_f="$ac_tmp/stdin";; 12809 *) # Look for the file first in the build tree, then in the source tree 12810 # (if the path is not absolute). The absolute path cannot be DOS-style, 12811 # because $ac_f cannot contain `:'. 12812 test -f "$ac_f" || 12813 case $ac_f in 12814 [\\/$]*) false;; 12815 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12816 esac || 12817 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12818 esac 12819 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12820 as_fn_append ac_file_inputs " '$ac_f'" 12821 done 12822 12823 # Let's still pretend it is `configure' which instantiates (i.e., don't 12824 # use $as_me), people would be surprised to read: 12825 # /* config.h. Generated by config.status. */ 12826 configure_input='Generated from '` 12827 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12828 `' by configure.' 12829 if test x"$ac_file" != x-; then 12830 configure_input="$ac_file. $configure_input" 12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12832printf "%s\n" "$as_me: creating $ac_file" >&6;} 12833 fi 12834 # Neutralize special characters interpreted by sed in replacement strings. 12835 case $configure_input in #( 12836 *\&* | *\|* | *\\* ) 12837 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12838 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12839 *) ac_sed_conf_input=$configure_input;; 12840 esac 12841 12842 case $ac_tag in 12843 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12845 esac 12846 ;; 12847 esac 12848 12849 ac_dir=`$as_dirname -- "$ac_file" || 12850$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12851 X"$ac_file" : 'X\(//\)[^/]' \| \ 12852 X"$ac_file" : 'X\(//\)$' \| \ 12853 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12854printf "%s\n" X"$ac_file" | 12855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12856 s//\1/ 12857 q 12858 } 12859 /^X\(\/\/\)[^/].*/{ 12860 s//\1/ 12861 q 12862 } 12863 /^X\(\/\/\)$/{ 12864 s//\1/ 12865 q 12866 } 12867 /^X\(\/\).*/{ 12868 s//\1/ 12869 q 12870 } 12871 s/.*/./; q'` 12872 as_dir="$ac_dir"; as_fn_mkdir_p 12873 ac_builddir=. 12874 12875case "$ac_dir" in 12876.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12877*) 12878 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12879 # A ".." for each directory in $ac_dir_suffix. 12880 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12881 case $ac_top_builddir_sub in 12882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12884 esac ;; 12885esac 12886ac_abs_top_builddir=$ac_pwd 12887ac_abs_builddir=$ac_pwd$ac_dir_suffix 12888# for backward compatibility: 12889ac_top_builddir=$ac_top_build_prefix 12890 12891case $srcdir in 12892 .) # We are building in place. 12893 ac_srcdir=. 12894 ac_top_srcdir=$ac_top_builddir_sub 12895 ac_abs_top_srcdir=$ac_pwd ;; 12896 [\\/]* | ?:[\\/]* ) # Absolute name. 12897 ac_srcdir=$srcdir$ac_dir_suffix; 12898 ac_top_srcdir=$srcdir 12899 ac_abs_top_srcdir=$srcdir ;; 12900 *) # Relative name. 12901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12902 ac_top_srcdir=$ac_top_build_prefix$srcdir 12903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12904esac 12905ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12906 12907 12908 case $ac_mode in 12909 :F) 12910 # 12911 # CONFIG_FILE 12912 # 12913 12914 case $INSTALL in 12915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12916 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12917 esac 12918 ac_MKDIR_P=$MKDIR_P 12919 case $MKDIR_P in 12920 [\\/$]* | ?:[\\/]* ) ;; 12921 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12922 esac 12923_ACEOF 12924 12925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12926# If the template does not know about datarootdir, expand it. 12927# FIXME: This hack should be removed a few years after 2.60. 12928ac_datarootdir_hack=; ac_datarootdir_seen= 12929ac_sed_dataroot=' 12930/datarootdir/ { 12931 p 12932 q 12933} 12934/@datadir@/p 12935/@docdir@/p 12936/@infodir@/p 12937/@localedir@/p 12938/@mandir@/p' 12939case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12940*datarootdir*) ac_datarootdir_seen=yes;; 12941*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12943printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12944_ACEOF 12945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12946 ac_datarootdir_hack=' 12947 s&@datadir@&$datadir&g 12948 s&@docdir@&$docdir&g 12949 s&@infodir@&$infodir&g 12950 s&@localedir@&$localedir&g 12951 s&@mandir@&$mandir&g 12952 s&\\\${datarootdir}&$datarootdir&g' ;; 12953esac 12954_ACEOF 12955 12956# Neutralize VPATH when `$srcdir' = `.'. 12957# Shell code in configure.ac might set extrasub. 12958# FIXME: do we really want to maintain this feature? 12959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12960ac_sed_extra="$ac_vpsub 12961$extrasub 12962_ACEOF 12963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12964:t 12965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12966s|@configure_input@|$ac_sed_conf_input|;t t 12967s&@top_builddir@&$ac_top_builddir_sub&;t t 12968s&@top_build_prefix@&$ac_top_build_prefix&;t t 12969s&@srcdir@&$ac_srcdir&;t t 12970s&@abs_srcdir@&$ac_abs_srcdir&;t t 12971s&@top_srcdir@&$ac_top_srcdir&;t t 12972s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12973s&@builddir@&$ac_builddir&;t t 12974s&@abs_builddir@&$ac_abs_builddir&;t t 12975s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12976s&@INSTALL@&$ac_INSTALL&;t t 12977s&@MKDIR_P@&$ac_MKDIR_P&;t t 12978$ac_datarootdir_hack 12979" 12980eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12981 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12982 12983test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12984 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12986 "$ac_tmp/out"`; test -z "$ac_out"; } && 12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12988which seems to be undefined. Please make sure it is defined" >&5 12989printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12990which seems to be undefined. Please make sure it is defined" >&2;} 12991 12992 rm -f "$ac_tmp/stdin" 12993 case $ac_file in 12994 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12995 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12996 esac \ 12997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12998 ;; 12999 13000 13001 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13002printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13003 ;; 13004 esac 13005 13006 13007 case $ac_file$ac_mode in 13008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13009 # Older Autoconf quotes --file arguments for eval, but not when files 13010 # are listed without --file. Let's play safe and only enable the eval 13011 # if we detect the quoting. 13012 # TODO: see whether this extra hack can be removed once we start 13013 # requiring Autoconf 2.70 or later. 13014 case $CONFIG_FILES in #( 13015 *\'*) : 13016 eval set x "$CONFIG_FILES" ;; #( 13017 *) : 13018 set x $CONFIG_FILES ;; #( 13019 *) : 13020 ;; 13021esac 13022 shift 13023 # Used to flag and report bootstrapping failures. 13024 am_rc=0 13025 for am_mf 13026 do 13027 # Strip MF so we end up with the name of the file. 13028 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13029 # Check whether this is an Automake generated Makefile which includes 13030 # dependency-tracking related rules and includes. 13031 # Grep'ing the whole file directly is not great: AIX grep has a line 13032 # limit of 2048, but all sed's we know have understand at least 4000. 13033 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13034 || continue 13035 am_dirpart=`$as_dirname -- "$am_mf" || 13036$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13037 X"$am_mf" : 'X\(//\)[^/]' \| \ 13038 X"$am_mf" : 'X\(//\)$' \| \ 13039 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13040printf "%s\n" X"$am_mf" | 13041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13042 s//\1/ 13043 q 13044 } 13045 /^X\(\/\/\)[^/].*/{ 13046 s//\1/ 13047 q 13048 } 13049 /^X\(\/\/\)$/{ 13050 s//\1/ 13051 q 13052 } 13053 /^X\(\/\).*/{ 13054 s//\1/ 13055 q 13056 } 13057 s/.*/./; q'` 13058 am_filepart=`$as_basename -- "$am_mf" || 13059$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13060 X"$am_mf" : 'X\(//\)$' \| \ 13061 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13062printf "%s\n" X/"$am_mf" | 13063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13064 s//\1/ 13065 q 13066 } 13067 /^X\/\(\/\/\)$/{ 13068 s//\1/ 13069 q 13070 } 13071 /^X\/\(\/\).*/{ 13072 s//\1/ 13073 q 13074 } 13075 s/.*/./; q'` 13076 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13077 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13078 | $MAKE -f - am--depfiles" >&5 13079 (cd "$am_dirpart" \ 13080 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13081 | $MAKE -f - am--depfiles) >&5 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); } || am_rc=$? 13085 done 13086 if test $am_rc -ne 0; then 13087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13089as_fn_error $? "Something went wrong bootstrapping makefile fragments 13090 for automatic dependency tracking. If GNU make was not used, consider 13091 re-running the configure script with MAKE=\"gmake\" (or whatever is 13092 necessary). You can also try re-running configure with the 13093 '--disable-dependency-tracking' option to at least be able to build 13094 the package (albeit without support for automatic dependency tracking). 13095See \`config.log' for more details" "$LINENO" 5; } 13096 fi 13097 { am_dirpart=; unset am_dirpart;} 13098 { am_filepart=; unset am_filepart;} 13099 { am_mf=; unset am_mf;} 13100 { am_rc=; unset am_rc;} 13101 rm -f conftest-deps.mk 13102} 13103 ;; 13104 13105 esac 13106done # for ac_tag 13107 13108 13109as_fn_exit 0 13110_ACEOF 13111ac_clean_files=$ac_clean_files_save 13112 13113test $ac_write_fail = 0 || 13114 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13115 13116 13117# configure is writing to config.log, and then calls config.status. 13118# config.status does its own redirection, appending to config.log. 13119# Unfortunately, on DOS this fails, as config.log is still kept open 13120# by configure, so config.status won't be able to write to it; its 13121# output is simply discarded. So we exec the FD to /dev/null, 13122# effectively closing config.log, so it can be properly (re)opened and 13123# appended to by config.status. When coming back to configure, we 13124# need to make the FD available again. 13125if test "$no_create" != yes; then 13126 ac_cs_success=: 13127 ac_config_status_args= 13128 test "$silent" = yes && 13129 ac_config_status_args="$ac_config_status_args --quiet" 13130 exec 5>/dev/null 13131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13132 exec 5>>config.log 13133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13134 # would make configure fail if this is the last instruction. 13135 $ac_cs_success || as_fn_exit 1 13136fi 13137if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13139printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13140fi 13141 13142 13143