1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xfs 1.2.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xfs/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584as_awk_strverscmp=' 585 # Use only awk features that work with 7th edition Unix awk (1978). 586 # My, what an old awk you have, Mr. Solaris! 587 END { 588 while (length(v1) && length(v2)) { 589 # Set d1 to be the next thing to compare from v1, and likewise for d2. 590 # Normally this is a single character, but if v1 and v2 contain digits, 591 # compare them as integers and fractions as strverscmp does. 592 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 593 # Split v1 and v2 into their leading digit string components d1 and d2, 594 # and advance v1 and v2 past the leading digit strings. 595 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 596 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 597 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 598 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 599 if (d1 ~ /^0/) { 600 if (d2 ~ /^0/) { 601 # Compare two fractions. 602 while (d1 ~ /^0/ && d2 ~ /^0/) { 603 d1 = substr(d1, 2); len1-- 604 d2 = substr(d2, 2); len2-- 605 } 606 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 607 # The two components differ in length, and the common prefix 608 # contains only leading zeros. Consider the longer to be less. 609 d1 = -len1 610 d2 = -len2 611 } else { 612 # Otherwise, compare as strings. 613 d1 = "x" d1 614 d2 = "x" d2 615 } 616 } else { 617 # A fraction is less than an integer. 618 exit 1 619 } 620 } else { 621 if (d2 ~ /^0/) { 622 # An integer is greater than a fraction. 623 exit 2 624 } else { 625 # Compare two integers. 626 d1 += 0 627 d2 += 0 628 } 629 } 630 } else { 631 # The normal case, without worrying about digits. 632 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 633 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 634 } 635 if (d1 < d2) exit 1 636 if (d1 > d2) exit 2 637 } 638 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 639 # which mishandles some comparisons of empty strings to integers. 640 if (length(v2)) exit 1 641 if (length(v1)) exit 2 642 } 643' 644 645test -n "$DJDIR" || exec 7<&0 </dev/null 646exec 6>&1 647 648# Name of the host. 649# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 650# so uname gets run too. 651ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 652 653# 654# Initializations. 655# 656ac_default_prefix=/usr/local 657ac_clean_files= 658ac_config_libobj_dir=. 659LIBOBJS= 660cross_compiling=no 661subdirs= 662MFLAGS= 663MAKEFLAGS= 664 665# Identity of this package. 666PACKAGE_NAME='xfs' 667PACKAGE_TARNAME='xfs' 668PACKAGE_VERSION='1.2.2' 669PACKAGE_STRING='xfs 1.2.2' 670PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfs/-/issues' 671PACKAGE_URL='' 672 673# Factoring default headers for most tests. 674ac_includes_default="\ 675#include <stddef.h> 676#ifdef HAVE_STDIO_H 677# include <stdio.h> 678#endif 679#ifdef HAVE_STDLIB_H 680# include <stdlib.h> 681#endif 682#ifdef HAVE_STRING_H 683# include <string.h> 684#endif 685#ifdef HAVE_INTTYPES_H 686# include <inttypes.h> 687#endif 688#ifdef HAVE_STDINT_H 689# include <stdint.h> 690#endif 691#ifdef HAVE_STRINGS_H 692# include <strings.h> 693#endif 694#ifdef HAVE_SYS_TYPES_H 695# include <sys/types.h> 696#endif 697#ifdef HAVE_SYS_STAT_H 698# include <sys/stat.h> 699#endif 700#ifdef HAVE_UNISTD_H 701# include <unistd.h> 702#endif" 703 704ac_header_c_list= 705enable_year2038=no 706ac_subst_vars='am__EXEEXT_FALSE 707am__EXEEXT_TRUE 708LTLIBOBJS 709LIBOBJS 710XFS_LIBS 711XFS_CFLAGS 712FONTPATH 713FONT100DPIDIR 714FONT75DPIDIR 715FONTTYPE1DIR 716FONTTTFDIR 717FONTOTFDIR 718FONTMISCDIR 719FONTROOTDIR 720CONFIG_FILE_PATH 721CONFIG_FILE_DESC 722DEFAULT_CONFIG_FILE 723LINT_FALSE 724LINT_TRUE 725LINT_FLAGS 726LINT 727HAVE_STYLESHEETS_FALSE 728HAVE_STYLESHEETS_TRUE 729XSL_STYLESHEET 730STYLESHEET_SRCDIR 731XORG_SGML_PATH 732HAVE_FOP_FALSE 733HAVE_FOP_TRUE 734FOP 735HAVE_XMLTO_FALSE 736HAVE_XMLTO_TRUE 737HAVE_XMLTO_TEXT_FALSE 738HAVE_XMLTO_TEXT_TRUE 739XMLTO 740ENABLE_DEVEL_DOCS_FALSE 741ENABLE_DEVEL_DOCS_TRUE 742MAN_SUBSTS 743XORG_MAN_PAGE 744ADMIN_MAN_DIR 745DRIVER_MAN_DIR 746MISC_MAN_DIR 747FILE_MAN_DIR 748LIB_MAN_DIR 749APP_MAN_DIR 750ADMIN_MAN_SUFFIX 751DRIVER_MAN_SUFFIX 752MISC_MAN_SUFFIX 753FILE_MAN_SUFFIX 754LIB_MAN_SUFFIX 755APP_MAN_SUFFIX 756SED 757host_os 758host_vendor 759host_cpu 760host 761build_os 762build_vendor 763build_cpu 764build 765INSTALL_CMD 766PKG_CONFIG_LIBDIR 767PKG_CONFIG_PATH 768PKG_CONFIG 769CHANGELOG_CMD 770STRICT_CFLAGS 771CWARNFLAGS 772BASE_CFLAGS 773am__xargs_n 774am__rm_f_notfound 775AM_BACKSLASH 776AM_DEFAULT_VERBOSITY 777AM_DEFAULT_V 778AM_V 779CSCOPE 780ETAGS 781CTAGS 782am__fastdepCC_FALSE 783am__fastdepCC_TRUE 784CCDEPMODE 785am__nodep 786AMDEPBACKSLASH 787AMDEP_FALSE 788AMDEP_TRUE 789am__include 790DEPDIR 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 814OBJEXT 815EXEEXT 816ac_ct_CC 817CPPFLAGS 818LDFLAGS 819CFLAGS 820CC 821target_alias 822host_alias 823build_alias 824LIBS 825ECHO_T 826ECHO_N 827ECHO_C 828DEFS 829mandir 830localedir 831libdir 832psdir 833pdfdir 834dvidir 835htmldir 836infodir 837docdir 838oldincludedir 839includedir 840runstatedir 841localstatedir 842sharedstatedir 843sysconfdir 844datadir 845datarootdir 846libexecdir 847sbindir 848bindir 849program_transform_name 850prefix 851exec_prefix 852PACKAGE_URL 853PACKAGE_BUGREPORT 854PACKAGE_STRING 855PACKAGE_VERSION 856PACKAGE_TARNAME 857PACKAGE_NAME 858PATH_SEPARATOR 859SHELL 860am__quote' 861ac_subst_files='' 862ac_user_opts=' 863enable_option_checking 864enable_dependency_tracking 865enable_silent_rules 866enable_selective_werror 867enable_strict_compilation 868enable_devel_docs 869with_xmlto 870with_fop 871with_lint 872enable_largefile 873with_default_config_file 874with_fontrootdir 875with_fontmiscdir 876with_fontotfdir 877with_fontttfdir 878with_fonttype1dir 879with_font75dpidir 880with_font100dpidir 881with_default_font_path 882enable_inetd 883enable_syslog 884enable_unix_transport 885enable_tcp_transport 886enable_ipv6 887enable_local_transport 888enable_year2038 889' 890 ac_precious_vars='build_alias 891host_alias 892target_alias 893CC 894CFLAGS 895LDFLAGS 896LIBS 897CPPFLAGS 898PKG_CONFIG 899PKG_CONFIG_PATH 900PKG_CONFIG_LIBDIR 901XMLTO 902FOP 903LINT 904LINT_FLAGS 905XFS_CFLAGS 906XFS_LIBS' 907 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912ac_unrecognized_opts= 913ac_unrecognized_sep= 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945runstatedir='${localstatedir}/run' 946includedir='${prefix}/include' 947oldincludedir='/usr/include' 948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 949infodir='${datarootdir}/info' 950htmldir='${docdir}' 951dvidir='${docdir}' 952pdfdir='${docdir}' 953psdir='${docdir}' 954libdir='${exec_prefix}/lib' 955localedir='${datarootdir}/locale' 956mandir='${datarootdir}/man' 957 958ac_prev= 959ac_dashdash= 960for ac_option 961do 962 # If the previous option needs an argument, assign it. 963 if test -n "$ac_prev"; then 964 eval $ac_prev=\$ac_option 965 ac_prev= 966 continue 967 fi 968 969 case $ac_option in 970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971 *=) ac_optarg= ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: '$ac_useropt'" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: '$ac_useropt'" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1197 | --runstate | --runstat | --runsta | --runst | --runs \ 1198 | --run | --ru | --r) 1199 ac_prev=runstatedir ;; 1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1202 | --run=* | --ru=* | --r=*) 1203 runstatedir=$ac_optarg ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: '$ac_useropt'" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259"with_$ac_useropt" 1260"*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=\$ac_optarg ;; 1265 1266 -without-* | --without-*) 1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1270 as_fn_error $? "invalid package name: '$ac_useropt'" 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=no ;; 1281 1282 --x) 1283 # Obsolete; use --with-x. 1284 with_x=yes ;; 1285 1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1287 | --x-incl | --x-inc | --x-in | --x-i) 1288 ac_prev=x_includes ;; 1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1291 x_includes=$ac_optarg ;; 1292 1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1295 ac_prev=x_libraries ;; 1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1298 x_libraries=$ac_optarg ;; 1299 1300 -*) as_fn_error $? "unrecognized option: '$ac_option' 1301Try '$0 --help' for more information" 1302 ;; 1303 1304 *=*) 1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1306 # Reject names that are not valid shell variable names. 1307 case $ac_envvar in #( 1308 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1309 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1310 esac 1311 eval $ac_envvar=\$ac_optarg 1312 export $ac_envvar ;; 1313 1314 *) 1315 # FIXME: should be removed in autoconf 3.0. 1316 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1318 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1320 ;; 1321 1322 esac 1323done 1324 1325if test -n "$ac_prev"; then 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1327 as_fn_error $? "missing argument to $ac_option" 1328fi 1329 1330if test -n "$ac_unrecognized_opts"; then 1331 case $enable_option_checking in 1332 no) ;; 1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1334 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1335 esac 1336fi 1337 1338# Check all directory arguments for consistency. 1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1340 datadir sysconfdir sharedstatedir localstatedir includedir \ 1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1342 libdir localedir mandir runstatedir 1343do 1344 eval ac_val=\$$ac_var 1345 # Remove trailing slashes. 1346 case $ac_val in 1347 */ ) 1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1349 eval $ac_var=\$ac_val;; 1350 esac 1351 # Be sure to have absolute directory names. 1352 case $ac_val in 1353 [\\/$]* | ?:[\\/]* ) continue;; 1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1355 esac 1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1357done 1358 1359# There might be people who depend on the old broken behavior: '$host' 1360# used to hold the argument of --host etc. 1361# FIXME: To remove some day. 1362build=$build_alias 1363host=$host_alias 1364target=$target_alias 1365 1366# FIXME: To remove some day. 1367if test "x$host_alias" != x; then 1368 if test "x$build_alias" = x; then 1369 cross_compiling=maybe 1370 elif test "x$build_alias" != "x$host_alias"; then 1371 cross_compiling=yes 1372 fi 1373fi 1374 1375ac_tool_prefix= 1376test -n "$host_alias" && ac_tool_prefix=$host_alias- 1377 1378test "$silent" = yes && exec 6>/dev/null 1379 1380 1381ac_pwd=`pwd` && test -n "$ac_pwd" && 1382ac_ls_di=`ls -di .` && 1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1384 as_fn_error $? "working directory cannot be determined" 1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1386 as_fn_error $? "pwd does not report name of working directory" 1387 1388 1389# Find the source files, if location was not specified. 1390if test -z "$srcdir"; then 1391 ac_srcdir_defaulted=yes 1392 # Try the directory containing this script, then the parent directory. 1393 ac_confdir=`$as_dirname -- "$as_myself" || 1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1395 X"$as_myself" : 'X\(//\)[^/]' \| \ 1396 X"$as_myself" : 'X\(//\)$' \| \ 1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1398printf "%s\n" X"$as_myself" | 1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1400 s//\1/ 1401 q 1402 } 1403 /^X\(\/\/\)[^/].*/{ 1404 s//\1/ 1405 q 1406 } 1407 /^X\(\/\/\)$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\).*/{ 1412 s//\1/ 1413 q 1414 } 1415 s/.*/./; q'` 1416 srcdir=$ac_confdir 1417 if test ! -r "$srcdir/$ac_unique_file"; then 1418 srcdir=.. 1419 fi 1420else 1421 ac_srcdir_defaulted=no 1422fi 1423if test ! -r "$srcdir/$ac_unique_file"; then 1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1426fi 1427ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1428ac_abs_confdir=`( 1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1430 pwd)` 1431# When building in place, set srcdir=. 1432if test "$ac_abs_confdir" = "$ac_pwd"; then 1433 srcdir=. 1434fi 1435# Remove unnecessary trailing slashes from srcdir. 1436# Double slashes in file names in object file debugging info 1437# mess up M-x gdb in Emacs. 1438case $srcdir in 1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1440esac 1441for ac_var in $ac_precious_vars; do 1442 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1443 eval ac_env_${ac_var}_value=\$${ac_var} 1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1446done 1447 1448# 1449# Report the --help message. 1450# 1451if test "$ac_init_help" = "long"; then 1452 # Omit some internal or obsolete options to make the list less imposing. 1453 # This message is too long to be a string in the A/UX 3.1 sh. 1454 cat <<_ACEOF 1455'configure' configures xfs 1.2.2 to adapt to many kinds of systems. 1456 1457Usage: $0 [OPTION]... [VAR=VALUE]... 1458 1459To assign environment variables (e.g., CC, CFLAGS...), specify them as 1460VAR=VALUE. See below for descriptions of some of the useful variables. 1461 1462Defaults for the options are specified in brackets. 1463 1464Configuration: 1465 -h, --help display this help and exit 1466 --help=short display options specific to this package 1467 --help=recursive display the short help of all the included packages 1468 -V, --version display version information and exit 1469 -q, --quiet, --silent do not print 'checking ...' messages 1470 --cache-file=FILE cache test results in FILE [disabled] 1471 -C, --config-cache alias for '--cache-file=config.cache' 1472 -n, --no-create do not create output files 1473 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1474 1475Installation directories: 1476 --prefix=PREFIX install architecture-independent files in PREFIX 1477 [$ac_default_prefix] 1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1479 [PREFIX] 1480 1481By default, 'make install' will install all the files in 1482'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1483an installation prefix other than '$ac_default_prefix' using '--prefix', 1484for instance '--prefix=\$HOME'. 1485 1486For better control, use the options below. 1487 1488Fine tuning of the installation directories: 1489 --bindir=DIR user executables [EPREFIX/bin] 1490 --sbindir=DIR system admin executables [EPREFIX/sbin] 1491 --libexecdir=DIR program executables [EPREFIX/libexec] 1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1496 --libdir=DIR object code libraries [EPREFIX/lib] 1497 --includedir=DIR C header files [PREFIX/include] 1498 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1501 --infodir=DIR info documentation [DATAROOTDIR/info] 1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1503 --mandir=DIR man documentation [DATAROOTDIR/man] 1504 --docdir=DIR documentation root [DATAROOTDIR/doc/xfs] 1505 --htmldir=DIR html documentation [DOCDIR] 1506 --dvidir=DIR dvi documentation [DOCDIR] 1507 --pdfdir=DIR pdf documentation [DOCDIR] 1508 --psdir=DIR ps documentation [DOCDIR] 1509_ACEOF 1510 1511 cat <<\_ACEOF 1512 1513Program names: 1514 --program-prefix=PREFIX prepend PREFIX to installed program names 1515 --program-suffix=SUFFIX append SUFFIX to installed program names 1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1517 1518System types: 1519 --build=BUILD configure for building on BUILD [guessed] 1520 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1521_ACEOF 1522fi 1523 1524if test -n "$ac_init_help"; then 1525 case $ac_init_help in 1526 short | recursive ) echo "Configuration of xfs 1.2.2:";; 1527 esac 1528 cat <<\_ACEOF 1529 1530Optional Features: 1531 --disable-option-checking ignore unrecognized --enable/--with options 1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1534 --enable-dependency-tracking 1535 do not reject slow dependency extractors 1536 --disable-dependency-tracking 1537 speeds up one-time build 1538 --enable-silent-rules less verbose build output (undo: "make V=1") 1539 --disable-silent-rules verbose build output (undo: "make V=0") 1540 --disable-selective-werror 1541 Turn off selective compiler errors. (default: 1542 enabled) 1543 --enable-strict-compilation 1544 Enable all warnings from compiler and make them 1545 errors (default: disabled) 1546 --enable-devel-docs Enable building the developer documentation 1547 (default: yes) 1548 --disable-largefile omit support for large files 1549 --enable-inetd Support -inetd flag for starting from inetd 1550 (default: enabled) 1551 --enable-syslog Support option for logging via syslog (default: 1552 enabled) 1553 --enable-unix-transport Enable UNIX domain socket transport 1554 --enable-tcp-transport Enable TCP socket transport 1555 --enable-ipv6 Enable IPv6 support 1556 --enable-local-transport 1557 Enable os-specific local transport 1558 --enable-year2038 support timestamps after 2038 1559 1560Optional Packages: 1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1563 --with-xmlto Use xmlto to regenerate documentation (default: 1564 auto) 1565 --with-fop Use fop to regenerate documentation (default: auto) 1566 --with-lint Use a lint-style source code checker (default: 1567 disabled) 1568 --with-default-config-file=PATH 1569 comma-separated list of paths to look for config 1570 file when not specified (default: 1571 ${sysconfdir}/X11/fs/config) 1572 --with-fontrootdir=DIR Path to root directory for font files 1573 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 1574 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 1575 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 1576 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 1577 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 1578 --with-font100dpidir=DIR 1579 Path to 100dpi files [FONTROOTDIR/100dpi] 1580 --with-default-font-path=PATH 1581 Comma separated list of font dirs 1582 1583Some influential environment variables: 1584 CC C compiler command 1585 CFLAGS C compiler flags 1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1587 nonstandard directory <lib dir> 1588 LIBS libraries to pass to the linker, e.g. -l<library> 1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1590 you have headers in a nonstandard directory <include dir> 1591 PKG_CONFIG path to pkg-config utility 1592 PKG_CONFIG_PATH 1593 directories to add to pkg-config's search path 1594 PKG_CONFIG_LIBDIR 1595 path overriding pkg-config's built-in search path 1596 XMLTO Path to xmlto command 1597 FOP Path to fop command 1598 LINT Path to a lint-style command 1599 LINT_FLAGS Flags for the lint-style command 1600 XFS_CFLAGS C compiler flags for XFS, overriding pkg-config 1601 XFS_LIBS linker flags for XFS, overriding pkg-config 1602 1603Use these variables to override the choices made by 'configure' or to help 1604it to find libraries and programs with nonstandard names/locations. 1605 1606Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/issues>. 1607_ACEOF 1608ac_status=$? 1609fi 1610 1611if test "$ac_init_help" = "recursive"; then 1612 # If there are subdirs, report their specific --help. 1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1614 test -d "$ac_dir" || 1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1616 continue 1617 ac_builddir=. 1618 1619case "$ac_dir" in 1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621*) 1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1623 # A ".." for each directory in $ac_dir_suffix. 1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1625 case $ac_top_builddir_sub in 1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1628 esac ;; 1629esac 1630ac_abs_top_builddir=$ac_pwd 1631ac_abs_builddir=$ac_pwd$ac_dir_suffix 1632# for backward compatibility: 1633ac_top_builddir=$ac_top_build_prefix 1634 1635case $srcdir in 1636 .) # We are building in place. 1637 ac_srcdir=. 1638 ac_top_srcdir=$ac_top_builddir_sub 1639 ac_abs_top_srcdir=$ac_pwd ;; 1640 [\\/]* | ?:[\\/]* ) # Absolute name. 1641 ac_srcdir=$srcdir$ac_dir_suffix; 1642 ac_top_srcdir=$srcdir 1643 ac_abs_top_srcdir=$srcdir ;; 1644 *) # Relative name. 1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1646 ac_top_srcdir=$ac_top_build_prefix$srcdir 1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1648esac 1649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1650 1651 cd "$ac_dir" || { ac_status=$?; continue; } 1652 # Check for configure.gnu first; this name is used for a wrapper for 1653 # Metaconfig's "Configure" on case-insensitive file systems. 1654 if test -f "$ac_srcdir/configure.gnu"; then 1655 echo && 1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1657 elif test -f "$ac_srcdir/configure"; then 1658 echo && 1659 $SHELL "$ac_srcdir/configure" --help=recursive 1660 else 1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1662 fi || ac_status=$? 1663 cd "$ac_pwd" || { ac_status=$?; break; } 1664 done 1665fi 1666 1667test -n "$ac_init_help" && exit $ac_status 1668if $ac_init_version; then 1669 cat <<\_ACEOF 1670xfs configure 1.2.2 1671generated by GNU Autoconf 2.72 1672 1673Copyright (C) 2023 Free Software Foundation, Inc. 1674This configure script is free software; the Free Software Foundation 1675gives unlimited permission to copy, distribute and modify it. 1676_ACEOF 1677 exit 1678fi 1679 1680## ------------------------ ## 1681## Autoconf initialization. ## 1682## ------------------------ ## 1683 1684# ac_fn_c_try_compile LINENO 1685# -------------------------- 1686# Try to compile conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_compile () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest.beam 1691 if { { ac_try="$ac_compile" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697printf "%s\n" "$ac_try_echo"; } >&5 1698 (eval "$ac_compile") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest.$ac_objext 1710then : 1711 ac_retval=0 1712else case e in #( 1713 e) printf "%s\n" "$as_me: failed program was:" >&5 1714sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 ;; 1717esac 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_compile 1723 1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1725# ------------------------------------------------------- 1726# Tests whether HEADER exists and can be compiled using the include files in 1727# INCLUDES, setting the cache variable VAR accordingly. 1728ac_fn_c_check_header_compile () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1732printf %s "checking for $2... " >&6; } 1733if eval test \${$3+y} 1734then : 1735 printf %s "(cached) " >&6 1736else case e in #( 1737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO" 1743then : 1744 eval "$3=yes" 1745else case e in #( 1746 e) eval "$3=no" ;; 1747esac 1748fi 1749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1750esac 1751fi 1752eval ac_res=\$$3 1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754printf "%s\n" "$ac_res" >&6; } 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 1757} # ac_fn_c_check_header_compile 1758 1759# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1760# ------------------------------------------------------------------ 1761# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1762# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1763ac_fn_check_decl () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 as_decl_name=`echo $2|sed 's/ *(.*//'` 1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1768printf %s "checking whether $as_decl_name is declared... " >&6; } 1769if eval test \${$3+y} 1770then : 1771 printf %s "(cached) " >&6 1772else case e in #( 1773 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1774 eval ac_save_FLAGS=\$$6 1775 as_fn_append $6 " $5" 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779int 1780main (void) 1781{ 1782#ifndef $as_decl_name 1783#ifdef __cplusplus 1784 (void) $as_decl_use; 1785#else 1786 (void) $as_decl_name; 1787#endif 1788#endif 1789 1790 ; 1791 return 0; 1792} 1793_ACEOF 1794if ac_fn_c_try_compile "$LINENO" 1795then : 1796 eval "$3=yes" 1797else case e in #( 1798 e) eval "$3=no" ;; 1799esac 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1802 eval $6=\$ac_save_FLAGS 1803 ;; 1804esac 1805fi 1806eval ac_res=\$$3 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808printf "%s\n" "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811} # ac_fn_check_decl 1812 1813# ac_fn_c_try_link LINENO 1814# ----------------------- 1815# Try to link conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_c_try_link () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1820 if { { ac_try="$ac_link" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826printf "%s\n" "$ac_try_echo"; } >&5 1827 (eval "$ac_link") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest$ac_exeext && { 1839 test "$cross_compiling" = yes || 1840 test -x conftest$ac_exeext 1841 } 1842then : 1843 ac_retval=0 1844else case e in #( 1845 e) printf "%s\n" "$as_me: failed program was:" >&5 1846sed 's/^/| /' conftest.$ac_ext >&5 1847 1848 ac_retval=1 ;; 1849esac 1850fi 1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1853 # interfere with the next link command; also delete a directory that is 1854 # left behind by Apple's compiler. We do this before executing the actions. 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_link 1860 1861# ac_fn_c_check_func LINENO FUNC VAR 1862# ---------------------------------- 1863# Tests whether FUNC exists, setting the cache variable VAR accordingly 1864ac_fn_c_check_func () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868printf %s "checking for $2... " >&6; } 1869if eval test \${$3+y} 1870then : 1871 printf %s "(cached) " >&6 1872else case e in #( 1873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (void); below. */ 1881 1882#include <limits.h> 1883#undef $2 1884 1885/* Override any GCC internal prototype to avoid an error. 1886 Use char because int might match the return type of a GCC 1887 builtin and then its argument prototype would still apply. */ 1888#ifdef __cplusplus 1889extern "C" 1890#endif 1891char $2 (void); 1892/* The GNU C library defines this for functions which it implements 1893 to always fail with ENOSYS. Some functions are actually named 1894 something starting with __ and the normal name is an alias. */ 1895#if defined __stub_$2 || defined __stub___$2 1896choke me 1897#endif 1898 1899int 1900main (void) 1901{ 1902return $2 (); 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_link "$LINENO" 1908then : 1909 eval "$3=yes" 1910else case e in #( 1911 e) eval "$3=no" ;; 1912esac 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1915 conftest$ac_exeext conftest.$ac_ext ;; 1916esac 1917fi 1918eval ac_res=\$$3 1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920printf "%s\n" "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_func 1924 1925# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1926# ---------------------------------------------------- 1927# Tries to find if the field MEMBER exists in type AGGR, after including 1928# INCLUDES, setting cache variable VAR accordingly. 1929ac_fn_c_check_member () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1933printf %s "checking for $2.$3... " >&6; } 1934if eval test \${$4+y} 1935then : 1936 printf %s "(cached) " >&6 1937else case e in #( 1938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1939/* end confdefs.h. */ 1940$5 1941int 1942main (void) 1943{ 1944static $2 ac_aggr; 1945if (ac_aggr.$3) 1946return 0; 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_compile "$LINENO" 1952then : 1953 eval "$4=yes" 1954else case e in #( 1955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$5 1958int 1959main (void) 1960{ 1961static $2 ac_aggr; 1962if (sizeof ac_aggr.$3) 1963return 0; 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO" 1969then : 1970 eval "$4=yes" 1971else case e in #( 1972 e) eval "$4=no" ;; 1973esac 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1976esac 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1979esac 1980fi 1981eval ac_res=\$$4 1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983printf "%s\n" "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_member 1987 1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1989# ------------------------------------------- 1990# Tests whether TYPE exists after having included INCLUDES, setting cache 1991# variable VAR accordingly. 1992ac_fn_c_check_type () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996printf %s "checking for $2... " >&6; } 1997if eval test \${$3+y} 1998then : 1999 printf %s "(cached) " >&6 2000else case e in #( 2001 e) eval "$3=no" 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main (void) 2007{ 2008if (sizeof ($2)) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO" 2015then : 2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main (void) 2021{ 2022if (sizeof (($2))) 2023 return 0; 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO" 2029then : 2030 2031else case e in #( 2032 e) eval "$3=yes" ;; 2033esac 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2036fi 2037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2038esac 2039fi 2040eval ac_res=\$$3 2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2042printf "%s\n" "$ac_res" >&6; } 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 2045} # ac_fn_c_check_type 2046ac_configure_args_raw= 2047for ac_arg 2048do 2049 case $ac_arg in 2050 *\'*) 2051 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2052 esac 2053 as_fn_append ac_configure_args_raw " '$ac_arg'" 2054done 2055 2056case $ac_configure_args_raw in 2057 *$as_nl*) 2058 ac_safe_unquote= ;; 2059 *) 2060 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2061 ac_unsafe_a="$ac_unsafe_z#~" 2062 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2063 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2064esac 2065 2066cat >config.log <<_ACEOF 2067This file contains any messages produced by compilers while 2068running configure, to aid debugging if configure makes a mistake. 2069 2070It was created by xfs $as_me 1.2.2, which was 2071generated by GNU Autoconf 2.72. Invocation command line was 2072 2073 $ $0$ac_configure_args_raw 2074 2075_ACEOF 2076exec 5>>config.log 2077{ 2078cat <<_ASUNAME 2079## --------- ## 2080## Platform. ## 2081## --------- ## 2082 2083hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2084uname -m = `(uname -m) 2>/dev/null || echo unknown` 2085uname -r = `(uname -r) 2>/dev/null || echo unknown` 2086uname -s = `(uname -s) 2>/dev/null || echo unknown` 2087uname -v = `(uname -v) 2>/dev/null || echo unknown` 2088 2089/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2090/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2091 2092/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2093/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2094/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2095/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2096/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2097/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2098/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2099 2100_ASUNAME 2101 2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2103for as_dir in $PATH 2104do 2105 IFS=$as_save_IFS 2106 case $as_dir in #((( 2107 '') as_dir=./ ;; 2108 */) ;; 2109 *) as_dir=$as_dir/ ;; 2110 esac 2111 printf "%s\n" "PATH: $as_dir" 2112 done 2113IFS=$as_save_IFS 2114 2115} >&5 2116 2117cat >&5 <<_ACEOF 2118 2119 2120## ----------- ## 2121## Core tests. ## 2122## ----------- ## 2123 2124_ACEOF 2125 2126 2127# Keep a trace of the command line. 2128# Strip out --no-create and --no-recursion so they do not pile up. 2129# Strip out --silent because we don't want to record it for future runs. 2130# Also quote any args containing shell meta-characters. 2131# Make two passes to allow for proper duplicate-argument suppression. 2132ac_configure_args= 2133ac_configure_args0= 2134ac_configure_args1= 2135ac_must_keep_next=false 2136for ac_pass in 1 2 2137do 2138 for ac_arg 2139 do 2140 case $ac_arg in 2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2143 | -silent | --silent | --silen | --sile | --sil) 2144 continue ;; 2145 *\'*) 2146 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2147 esac 2148 case $ac_pass in 2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2150 2) 2151 as_fn_append ac_configure_args1 " '$ac_arg'" 2152 if test $ac_must_keep_next = true; then 2153 ac_must_keep_next=false # Got value, back to normal. 2154 else 2155 case $ac_arg in 2156 *=* | --config-cache | -C | -disable-* | --disable-* \ 2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2159 | -with-* | --with-* | -without-* | --without-* | --x) 2160 case "$ac_configure_args0 " in 2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2162 esac 2163 ;; 2164 -* ) ac_must_keep_next=true ;; 2165 esac 2166 fi 2167 as_fn_append ac_configure_args " '$ac_arg'" 2168 ;; 2169 esac 2170 done 2171done 2172{ ac_configure_args0=; unset ac_configure_args0;} 2173{ ac_configure_args1=; unset ac_configure_args1;} 2174 2175# When interrupted or exit'd, cleanup temporary files, and complete 2176# config.log. We remove comments because anyway the quotes in there 2177# would cause problems or look ugly. 2178# WARNING: Use '\'' to represent an apostrophe within the trap. 2179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2180trap 'exit_status=$? 2181 # Sanitize IFS. 2182 IFS=" "" $as_nl" 2183 # Save into config.log some information that might help in debugging. 2184 { 2185 echo 2186 2187 printf "%s\n" "## ---------------- ## 2188## Cache variables. ## 2189## ---------------- ##" 2190 echo 2191 # The following way of writing the cache mishandles newlines in values, 2192( 2193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2194 eval ac_val=\$$ac_var 2195 case $ac_val in #( 2196 *${as_nl}*) 2197 case $ac_var in #( 2198 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2199printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2200 esac 2201 case $ac_var in #( 2202 _ | IFS | as_nl) ;; #( 2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2204 *) { eval $ac_var=; unset $ac_var;} ;; 2205 esac ;; 2206 esac 2207 done 2208 (set) 2>&1 | 2209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2210 *${as_nl}ac_space=\ *) 2211 sed -n \ 2212 "s/'\''/'\''\\\\'\'''\''/g; 2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2214 ;; #( 2215 *) 2216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2217 ;; 2218 esac | 2219 sort 2220) 2221 echo 2222 2223 printf "%s\n" "## ----------------- ## 2224## Output variables. ## 2225## ----------------- ##" 2226 echo 2227 for ac_var in $ac_subst_vars 2228 do 2229 eval ac_val=\$$ac_var 2230 case $ac_val in 2231 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2232 esac 2233 printf "%s\n" "$ac_var='\''$ac_val'\''" 2234 done | sort 2235 echo 2236 2237 if test -n "$ac_subst_files"; then 2238 printf "%s\n" "## ------------------- ## 2239## File substitutions. ## 2240## ------------------- ##" 2241 echo 2242 for ac_var in $ac_subst_files 2243 do 2244 eval ac_val=\$$ac_var 2245 case $ac_val in 2246 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2247 esac 2248 printf "%s\n" "$ac_var='\''$ac_val'\''" 2249 done | sort 2250 echo 2251 fi 2252 2253 if test -s confdefs.h; then 2254 printf "%s\n" "## ----------- ## 2255## confdefs.h. ## 2256## ----------- ##" 2257 echo 2258 cat confdefs.h 2259 echo 2260 fi 2261 test "$ac_signal" != 0 && 2262 printf "%s\n" "$as_me: caught signal $ac_signal" 2263 printf "%s\n" "$as_me: exit $exit_status" 2264 } >&5 2265 rm -f core *.core core.conftest.* && 2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2267 exit $exit_status 2268' 0 2269for ac_signal in 1 2 13 15; do 2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2271done 2272ac_signal=0 2273 2274# confdefs.h avoids OS command line length limits that DEFS can exceed. 2275rm -f -r conftest* confdefs.h 2276 2277printf "%s\n" "/* confdefs.h */" > confdefs.h 2278 2279# Predefined preprocessor variables. 2280 2281printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2282 2283printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2284 2285printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2286 2287printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2288 2289printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2290 2291printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2292 2293 2294# Let the site file select an alternate cache file if it wants to. 2295# Prefer an explicitly selected file to automatically selected ones. 2296if test -n "$CONFIG_SITE"; then 2297 ac_site_files="$CONFIG_SITE" 2298elif test "x$prefix" != xNONE; then 2299 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2300else 2301 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2302fi 2303 2304for ac_site_file in $ac_site_files 2305do 2306 case $ac_site_file in #( 2307 */*) : 2308 ;; #( 2309 *) : 2310 ac_site_file=./$ac_site_file ;; 2311esac 2312 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2314printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2315 sed 's/^/| /' "$ac_site_file" >&5 2316 . "$ac_site_file" \ 2317 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2318printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2319as_fn_error $? "failed to load site script $ac_site_file 2320See 'config.log' for more details" "$LINENO" 5; } 2321 fi 2322done 2323 2324if test -r "$cache_file"; then 2325 # Some versions of bash will fail to source /dev/null (special files 2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2329printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2330 case $cache_file in 2331 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2332 *) . "./$cache_file";; 2333 esac 2334 fi 2335else 2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2337printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2338 >$cache_file 2339fi 2340 2341as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2342# Test code for whether the C compiler supports C89 (global declarations) 2343ac_c_conftest_c89_globals=' 2344/* Does the compiler advertise C89 conformance? 2345 Do not test the value of __STDC__, because some compilers set it to 0 2346 while being otherwise adequately conformant. */ 2347#if !defined __STDC__ 2348# error "Compiler does not advertise C89 conformance" 2349#endif 2350 2351#include <stddef.h> 2352#include <stdarg.h> 2353struct stat; 2354/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2355struct buf { int x; }; 2356struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2357static char *e (char **p, int i) 2358{ 2359 return p[i]; 2360} 2361static char *f (char * (*g) (char **, int), char **p, ...) 2362{ 2363 char *s; 2364 va_list v; 2365 va_start (v,p); 2366 s = g (p, va_arg (v,int)); 2367 va_end (v); 2368 return s; 2369} 2370 2371/* C89 style stringification. */ 2372#define noexpand_stringify(a) #a 2373const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2374 2375/* C89 style token pasting. Exercises some of the corner cases that 2376 e.g. old MSVC gets wrong, but not very hard. */ 2377#define noexpand_concat(a,b) a##b 2378#define expand_concat(a,b) noexpand_concat(a,b) 2379extern int vA; 2380extern int vbee; 2381#define aye A 2382#define bee B 2383int *pvA = &expand_concat(v,aye); 2384int *pvbee = &noexpand_concat(v,bee); 2385 2386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2387 function prototypes and stuff, but not \xHH hex character constants. 2388 These do not provoke an error unfortunately, instead are silently treated 2389 as an "x". The following induces an error, until -std is added to get 2390 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2391 array size at least. It is necessary to write \x00 == 0 to get something 2392 that is true only with -std. */ 2393int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2394 2395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2396 inside strings and character constants. */ 2397#define FOO(x) '\''x'\'' 2398int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2399 2400int test (int i, double x); 2401struct s1 {int (*f) (int a);}; 2402struct s2 {int (*f) (double a);}; 2403int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2404 int, int);' 2405 2406# Test code for whether the C compiler supports C89 (body of main). 2407ac_c_conftest_c89_main=' 2408ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2409' 2410 2411# Test code for whether the C compiler supports C99 (global declarations) 2412ac_c_conftest_c99_globals=' 2413/* Does the compiler advertise C99 conformance? */ 2414#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2415# error "Compiler does not advertise C99 conformance" 2416#endif 2417 2418// See if C++-style comments work. 2419 2420#include <stdbool.h> 2421extern int puts (const char *); 2422extern int printf (const char *, ...); 2423extern int dprintf (int, const char *, ...); 2424extern void *malloc (size_t); 2425extern void free (void *); 2426 2427// Check varargs macros. These examples are taken from C99 6.10.3.5. 2428// dprintf is used instead of fprintf to avoid needing to declare 2429// FILE and stderr. 2430#define debug(...) dprintf (2, __VA_ARGS__) 2431#define showlist(...) puts (#__VA_ARGS__) 2432#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2433static void 2434test_varargs_macros (void) 2435{ 2436 int x = 1234; 2437 int y = 5678; 2438 debug ("Flag"); 2439 debug ("X = %d\n", x); 2440 showlist (The first, second, and third items.); 2441 report (x>y, "x is %d but y is %d", x, y); 2442} 2443 2444// Check long long types. 2445#define BIG64 18446744073709551615ull 2446#define BIG32 4294967295ul 2447#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2448#if !BIG_OK 2449 #error "your preprocessor is broken" 2450#endif 2451#if BIG_OK 2452#else 2453 #error "your preprocessor is broken" 2454#endif 2455static long long int bignum = -9223372036854775807LL; 2456static unsigned long long int ubignum = BIG64; 2457 2458struct incomplete_array 2459{ 2460 int datasize; 2461 double data[]; 2462}; 2463 2464struct named_init { 2465 int number; 2466 const wchar_t *name; 2467 double average; 2468}; 2469 2470typedef const char *ccp; 2471 2472static inline int 2473test_restrict (ccp restrict text) 2474{ 2475 // Iterate through items via the restricted pointer. 2476 // Also check for declarations in for loops. 2477 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2478 continue; 2479 return 0; 2480} 2481 2482// Check varargs and va_copy. 2483static bool 2484test_varargs (const char *format, ...) 2485{ 2486 va_list args; 2487 va_start (args, format); 2488 va_list args_copy; 2489 va_copy (args_copy, args); 2490 2491 const char *str = ""; 2492 int number = 0; 2493 float fnumber = 0; 2494 2495 while (*format) 2496 { 2497 switch (*format++) 2498 { 2499 case '\''s'\'': // string 2500 str = va_arg (args_copy, const char *); 2501 break; 2502 case '\''d'\'': // int 2503 number = va_arg (args_copy, int); 2504 break; 2505 case '\''f'\'': // float 2506 fnumber = va_arg (args_copy, double); 2507 break; 2508 default: 2509 break; 2510 } 2511 } 2512 va_end (args_copy); 2513 va_end (args); 2514 2515 return *str && number && fnumber; 2516} 2517' 2518 2519# Test code for whether the C compiler supports C99 (body of main). 2520ac_c_conftest_c99_main=' 2521 // Check bool. 2522 _Bool success = false; 2523 success |= (argc != 0); 2524 2525 // Check restrict. 2526 if (test_restrict ("String literal") == 0) 2527 success = true; 2528 char *restrict newvar = "Another string"; 2529 2530 // Check varargs. 2531 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2532 test_varargs_macros (); 2533 2534 // Check flexible array members. 2535 struct incomplete_array *ia = 2536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2537 ia->datasize = 10; 2538 for (int i = 0; i < ia->datasize; ++i) 2539 ia->data[i] = i * 1.234; 2540 // Work around memory leak warnings. 2541 free (ia); 2542 2543 // Check named initializers. 2544 struct named_init ni = { 2545 .number = 34, 2546 .name = L"Test wide string", 2547 .average = 543.34343, 2548 }; 2549 2550 ni.number = 58; 2551 2552 int dynamic_array[ni.number]; 2553 dynamic_array[0] = argv[0][0]; 2554 dynamic_array[ni.number - 1] = 543; 2555 2556 // work around unused variable warnings 2557 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2558 || dynamic_array[ni.number - 1] != 543); 2559' 2560 2561# Test code for whether the C compiler supports C11 (global declarations) 2562ac_c_conftest_c11_globals=' 2563/* Does the compiler advertise C11 conformance? */ 2564#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2565# error "Compiler does not advertise C11 conformance" 2566#endif 2567 2568// Check _Alignas. 2569char _Alignas (double) aligned_as_double; 2570char _Alignas (0) no_special_alignment; 2571extern char aligned_as_int; 2572char _Alignas (0) _Alignas (int) aligned_as_int; 2573 2574// Check _Alignof. 2575enum 2576{ 2577 int_alignment = _Alignof (int), 2578 int_array_alignment = _Alignof (int[100]), 2579 char_alignment = _Alignof (char) 2580}; 2581_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2582 2583// Check _Noreturn. 2584int _Noreturn does_not_return (void) { for (;;) continue; } 2585 2586// Check _Static_assert. 2587struct test_static_assert 2588{ 2589 int x; 2590 _Static_assert (sizeof (int) <= sizeof (long int), 2591 "_Static_assert does not work in struct"); 2592 long int y; 2593}; 2594 2595// Check UTF-8 literals. 2596#define u8 syntax error! 2597char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2598 2599// Check duplicate typedefs. 2600typedef long *long_ptr; 2601typedef long int *long_ptr; 2602typedef long_ptr long_ptr; 2603 2604// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2605struct anonymous 2606{ 2607 union { 2608 struct { int i; int j; }; 2609 struct { int k; long int l; } w; 2610 }; 2611 int m; 2612} v1; 2613' 2614 2615# Test code for whether the C compiler supports C11 (body of main). 2616ac_c_conftest_c11_main=' 2617 _Static_assert ((offsetof (struct anonymous, i) 2618 == offsetof (struct anonymous, w.k)), 2619 "Anonymous union alignment botch"); 2620 v1.i = 2; 2621 v1.w.k = 5; 2622 ok |= v1.i != 5; 2623' 2624 2625# Test code for whether the C compiler supports C11 (complete). 2626ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2627${ac_c_conftest_c99_globals} 2628${ac_c_conftest_c11_globals} 2629 2630int 2631main (int argc, char **argv) 2632{ 2633 int ok = 0; 2634 ${ac_c_conftest_c89_main} 2635 ${ac_c_conftest_c99_main} 2636 ${ac_c_conftest_c11_main} 2637 return ok; 2638} 2639" 2640 2641# Test code for whether the C compiler supports C99 (complete). 2642ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2643${ac_c_conftest_c99_globals} 2644 2645int 2646main (int argc, char **argv) 2647{ 2648 int ok = 0; 2649 ${ac_c_conftest_c89_main} 2650 ${ac_c_conftest_c99_main} 2651 return ok; 2652} 2653" 2654 2655# Test code for whether the C compiler supports C89 (complete). 2656ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2657 2658int 2659main (int argc, char **argv) 2660{ 2661 int ok = 0; 2662 ${ac_c_conftest_c89_main} 2663 return ok; 2664} 2665" 2666 2667as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2668as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2669as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2670as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2671as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2672as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2673as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2674as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2675as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2676as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2677 2678# Auxiliary files required by this configure script. 2679ac_aux_files="config.guess config.sub missing install-sh compile" 2680 2681# Locations in which to look for auxiliary files. 2682ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2683 2684# Search for a directory containing all of the required auxiliary files, 2685# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2686# If we don't find one directory that contains all the files we need, 2687# we report the set of missing files from the *first* directory in 2688# $ac_aux_dir_candidates and give up. 2689ac_missing_aux_files="" 2690ac_first_candidate=: 2691printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693as_found=false 2694for as_dir in $ac_aux_dir_candidates 2695do 2696 IFS=$as_save_IFS 2697 case $as_dir in #((( 2698 '') as_dir=./ ;; 2699 */) ;; 2700 *) as_dir=$as_dir/ ;; 2701 esac 2702 as_found=: 2703 2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2705 ac_aux_dir_found=yes 2706 ac_install_sh= 2707 for ac_aux in $ac_aux_files 2708 do 2709 # As a special case, if "install-sh" is required, that requirement 2710 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2711 # and $ac_install_sh is set appropriately for whichever one is found. 2712 if test x"$ac_aux" = x"install-sh" 2713 then 2714 if test -f "${as_dir}install-sh"; then 2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2716 ac_install_sh="${as_dir}install-sh -c" 2717 elif test -f "${as_dir}install.sh"; then 2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2719 ac_install_sh="${as_dir}install.sh -c" 2720 elif test -f "${as_dir}shtool"; then 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2722 ac_install_sh="${as_dir}shtool install -c" 2723 else 2724 ac_aux_dir_found=no 2725 if $ac_first_candidate; then 2726 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2727 else 2728 break 2729 fi 2730 fi 2731 else 2732 if test -f "${as_dir}${ac_aux}"; then 2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2734 else 2735 ac_aux_dir_found=no 2736 if $ac_first_candidate; then 2737 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2738 else 2739 break 2740 fi 2741 fi 2742 fi 2743 done 2744 if test "$ac_aux_dir_found" = yes; then 2745 ac_aux_dir="$as_dir" 2746 break 2747 fi 2748 ac_first_candidate=false 2749 2750 as_found=false 2751done 2752IFS=$as_save_IFS 2753if $as_found 2754then : 2755 2756else case e in #( 2757 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2758esac 2759fi 2760 2761 2762# These three variables are undocumented and unsupported, 2763# and are intended to be withdrawn in a future Autoconf release. 2764# They can cause serious problems if a builder's source tree is in a directory 2765# whose full name contains unusual characters. 2766if test -f "${ac_aux_dir}config.guess"; then 2767 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2768fi 2769if test -f "${ac_aux_dir}config.sub"; then 2770 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2771fi 2772if test -f "$ac_aux_dir/configure"; then 2773 ac_configure="$SHELL ${ac_aux_dir}configure" 2774fi 2775 2776# Check that the precious variables saved in the cache have kept the same 2777# value. 2778ac_cache_corrupted=false 2779for ac_var in $ac_precious_vars; do 2780 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2781 eval ac_new_set=\$ac_env_${ac_var}_set 2782 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2783 eval ac_new_val=\$ac_env_${ac_var}_value 2784 case $ac_old_set,$ac_new_set in 2785 set,) 2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2787printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2788 ac_cache_corrupted=: ;; 2789 ,set) 2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2791printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2792 ac_cache_corrupted=: ;; 2793 ,);; 2794 *) 2795 if test "x$ac_old_val" != "x$ac_new_val"; then 2796 # differences in whitespace do not lead to failure. 2797 ac_old_val_w=`echo x $ac_old_val` 2798 ac_new_val_w=`echo x $ac_new_val` 2799 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2801printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2802 ac_cache_corrupted=: 2803 else 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2805printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2806 eval $ac_var=\$ac_old_val 2807 fi 2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2809printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2811printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2812 fi;; 2813 esac 2814 # Pass precious variables to config.status. 2815 if test "$ac_new_set" = set; then 2816 case $ac_new_val in 2817 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2818 *) ac_arg=$ac_var=$ac_new_val ;; 2819 esac 2820 case " $ac_configure_args " in 2821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2822 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2823 esac 2824 fi 2825done 2826if $ac_cache_corrupted; then 2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2828printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2830printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2831 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2832 and start over" "$LINENO" 5 2833fi 2834## -------------------- ## 2835## Main body of script. ## 2836## -------------------- ## 2837 2838ac_ext=c 2839ac_cpp='$CPP $CPPFLAGS' 2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2842ac_compiler_gnu=$ac_cv_c_compiler_gnu 2843 2844 2845# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2846# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858# Expand $ac_aux_dir to an absolute path. 2859am_aux_dir=`cd "$ac_aux_dir" && pwd` 2860 2861ac_ext=c 2862ac_cpp='$CPP $CPPFLAGS' 2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2865ac_compiler_gnu=$ac_cv_c_compiler_gnu 2866if test -n "$ac_tool_prefix"; then 2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2868set dummy ${ac_tool_prefix}gcc; ac_word=$2 2869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870printf %s "checking for $ac_word... " >&6; } 2871if test ${ac_cv_prog_CC+y} 2872then : 2873 printf %s "(cached) " >&6 2874else case e in #( 2875 e) if test -n "$CC"; then 2876 ac_cv_prog_CC="$CC" # Let the user override the test. 2877else 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 case $as_dir in #((( 2883 '') as_dir=./ ;; 2884 */) ;; 2885 *) as_dir=$as_dir/ ;; 2886 esac 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2889 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2891 break 2 2892 fi 2893done 2894 done 2895IFS=$as_save_IFS 2896 2897fi ;; 2898esac 2899fi 2900CC=$ac_cv_prog_CC 2901if test -n "$CC"; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2903printf "%s\n" "$CC" >&6; } 2904else 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906printf "%s\n" "no" >&6; } 2907fi 2908 2909 2910fi 2911if test -z "$ac_cv_prog_CC"; then 2912 ac_ct_CC=$CC 2913 # Extract the first word of "gcc", so it can be a program name with args. 2914set dummy gcc; ac_word=$2 2915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916printf %s "checking for $ac_word... " >&6; } 2917if test ${ac_cv_prog_ac_ct_CC+y} 2918then : 2919 printf %s "(cached) " >&6 2920else case e in #( 2921 e) if test -n "$ac_ct_CC"; then 2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 case $as_dir in #((( 2929 '') as_dir=./ ;; 2930 */) ;; 2931 *) as_dir=$as_dir/ ;; 2932 esac 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2935 ac_cv_prog_ac_ct_CC="gcc" 2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2937 break 2 2938 fi 2939done 2940 done 2941IFS=$as_save_IFS 2942 2943fi ;; 2944esac 2945fi 2946ac_ct_CC=$ac_cv_prog_ac_ct_CC 2947if test -n "$ac_ct_CC"; then 2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2949printf "%s\n" "$ac_ct_CC" >&6; } 2950else 2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952printf "%s\n" "no" >&6; } 2953fi 2954 2955 if test "x$ac_ct_CC" = x; then 2956 CC="" 2957 else 2958 case $cross_compiling:$ac_tool_warned in 2959yes:) 2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2962ac_tool_warned=yes ;; 2963esac 2964 CC=$ac_ct_CC 2965 fi 2966else 2967 CC="$ac_cv_prog_CC" 2968fi 2969 2970if test -z "$CC"; then 2971 if test -n "$ac_tool_prefix"; then 2972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2973set dummy ${ac_tool_prefix}cc; ac_word=$2 2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2975printf %s "checking for $ac_word... " >&6; } 2976if test ${ac_cv_prog_CC+y} 2977then : 2978 printf %s "(cached) " >&6 2979else case e in #( 2980 e) if test -n "$CC"; then 2981 ac_cv_prog_CC="$CC" # Let the user override the test. 2982else 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2984for as_dir in $PATH 2985do 2986 IFS=$as_save_IFS 2987 case $as_dir in #((( 2988 '') as_dir=./ ;; 2989 */) ;; 2990 *) as_dir=$as_dir/ ;; 2991 esac 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2994 ac_cv_prog_CC="${ac_tool_prefix}cc" 2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999 done 3000IFS=$as_save_IFS 3001 3002fi ;; 3003esac 3004fi 3005CC=$ac_cv_prog_CC 3006if test -n "$CC"; then 3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3008printf "%s\n" "$CC" >&6; } 3009else 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011printf "%s\n" "no" >&6; } 3012fi 3013 3014 3015 fi 3016fi 3017if test -z "$CC"; then 3018 # Extract the first word of "cc", so it can be a program name with args. 3019set dummy cc; ac_word=$2 3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021printf %s "checking for $ac_word... " >&6; } 3022if test ${ac_cv_prog_CC+y} 3023then : 3024 printf %s "(cached) " >&6 3025else case e in #( 3026 e) if test -n "$CC"; then 3027 ac_cv_prog_CC="$CC" # Let the user override the test. 3028else 3029 ac_prog_rejected=no 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 case $as_dir in #((( 3035 '') as_dir=./ ;; 3036 */) ;; 3037 *) as_dir=$as_dir/ ;; 3038 esac 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3041 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3042 ac_prog_rejected=yes 3043 continue 3044 fi 3045 ac_cv_prog_CC="cc" 3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053if test $ac_prog_rejected = yes; then 3054 # We found a bogon in the path, so make sure we never use it. 3055 set dummy $ac_cv_prog_CC 3056 shift 3057 if test $# != 0; then 3058 # We chose a different compiler from the bogus one. 3059 # However, it has the same basename, so the bogon will be chosen 3060 # first if we set CC to just the basename; use the full file name. 3061 shift 3062 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3063 fi 3064fi 3065fi ;; 3066esac 3067fi 3068CC=$ac_cv_prog_CC 3069if test -n "$CC"; then 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3071printf "%s\n" "$CC" >&6; } 3072else 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074printf "%s\n" "no" >&6; } 3075fi 3076 3077 3078fi 3079if test -z "$CC"; then 3080 if test -n "$ac_tool_prefix"; then 3081 for ac_prog in cl.exe 3082 do 3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3086printf %s "checking for $ac_word... " >&6; } 3087if test ${ac_cv_prog_CC+y} 3088then : 3089 printf %s "(cached) " >&6 3090else case e in #( 3091 e) if test -n "$CC"; then 3092 ac_cv_prog_CC="$CC" # Let the user override the test. 3093else 3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095for as_dir in $PATH 3096do 3097 IFS=$as_save_IFS 3098 case $as_dir in #((( 3099 '') as_dir=./ ;; 3100 */) ;; 3101 *) as_dir=$as_dir/ ;; 3102 esac 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi ;; 3114esac 3115fi 3116CC=$ac_cv_prog_CC 3117if test -n "$CC"; then 3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3119printf "%s\n" "$CC" >&6; } 3120else 3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122printf "%s\n" "no" >&6; } 3123fi 3124 3125 3126 test -n "$CC" && break 3127 done 3128fi 3129if test -z "$CC"; then 3130 ac_ct_CC=$CC 3131 for ac_prog in cl.exe 3132do 3133 # Extract the first word of "$ac_prog", so it can be a program name with args. 3134set dummy $ac_prog; ac_word=$2 3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136printf %s "checking for $ac_word... " >&6; } 3137if test ${ac_cv_prog_ac_ct_CC+y} 3138then : 3139 printf %s "(cached) " >&6 3140else case e in #( 3141 e) if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 case $as_dir in #((( 3149 '') as_dir=./ ;; 3150 */) ;; 3151 *) as_dir=$as_dir/ ;; 3152 esac 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_ac_ct_CC="$ac_prog" 3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi ;; 3164esac 3165fi 3166ac_ct_CC=$ac_cv_prog_ac_ct_CC 3167if test -n "$ac_ct_CC"; then 3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3169printf "%s\n" "$ac_ct_CC" >&6; } 3170else 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172printf "%s\n" "no" >&6; } 3173fi 3174 3175 3176 test -n "$ac_ct_CC" && break 3177done 3178 3179 if test "x$ac_ct_CC" = x; then 3180 CC="" 3181 else 3182 case $cross_compiling:$ac_tool_warned in 3183yes:) 3184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3185printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3186ac_tool_warned=yes ;; 3187esac 3188 CC=$ac_ct_CC 3189 fi 3190fi 3191 3192fi 3193if test -z "$CC"; then 3194 if test -n "$ac_tool_prefix"; then 3195 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3196set dummy ${ac_tool_prefix}clang; ac_word=$2 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198printf %s "checking for $ac_word... " >&6; } 3199if test ${ac_cv_prog_CC+y} 3200then : 3201 printf %s "(cached) " >&6 3202else case e in #( 3203 e) if test -n "$CC"; then 3204 ac_cv_prog_CC="$CC" # Let the user override the test. 3205else 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 case $as_dir in #((( 3211 '') as_dir=./ ;; 3212 */) ;; 3213 *) as_dir=$as_dir/ ;; 3214 esac 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3217 ac_cv_prog_CC="${ac_tool_prefix}clang" 3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi ;; 3226esac 3227fi 3228CC=$ac_cv_prog_CC 3229if test -n "$CC"; then 3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3231printf "%s\n" "$CC" >&6; } 3232else 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234printf "%s\n" "no" >&6; } 3235fi 3236 3237 3238fi 3239if test -z "$ac_cv_prog_CC"; then 3240 ac_ct_CC=$CC 3241 # Extract the first word of "clang", so it can be a program name with args. 3242set dummy clang; ac_word=$2 3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244printf %s "checking for $ac_word... " >&6; } 3245if test ${ac_cv_prog_ac_ct_CC+y} 3246then : 3247 printf %s "(cached) " >&6 3248else case e in #( 3249 e) if test -n "$ac_ct_CC"; then 3250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3251else 3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253for as_dir in $PATH 3254do 3255 IFS=$as_save_IFS 3256 case $as_dir in #((( 3257 '') as_dir=./ ;; 3258 */) ;; 3259 *) as_dir=$as_dir/ ;; 3260 esac 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_ac_ct_CC="clang" 3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi ;; 3272esac 3273fi 3274ac_ct_CC=$ac_cv_prog_ac_ct_CC 3275if test -n "$ac_ct_CC"; then 3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3277printf "%s\n" "$ac_ct_CC" >&6; } 3278else 3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280printf "%s\n" "no" >&6; } 3281fi 3282 3283 if test "x$ac_ct_CC" = x; then 3284 CC="" 3285 else 3286 case $cross_compiling:$ac_tool_warned in 3287yes:) 3288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3289printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3290ac_tool_warned=yes ;; 3291esac 3292 CC=$ac_ct_CC 3293 fi 3294else 3295 CC="$ac_cv_prog_CC" 3296fi 3297 3298fi 3299 3300 3301test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3302printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3303as_fn_error $? "no acceptable C compiler found in \$PATH 3304See 'config.log' for more details" "$LINENO" 5; } 3305 3306# Provide some information about the compiler. 3307printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3308set X $ac_compile 3309ac_compiler=$2 3310for ac_option in --version -v -V -qversion -version; do 3311 { { ac_try="$ac_compiler $ac_option >&5" 3312case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315esac 3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317printf "%s\n" "$ac_try_echo"; } >&5 3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3319 ac_status=$? 3320 if test -s conftest.err; then 3321 sed '10a\ 3322... rest of stderr output deleted ... 3323 10q' conftest.err >conftest.er1 3324 cat conftest.er1 >&5 3325 fi 3326 rm -f conftest.er1 conftest.err 3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3328 test $ac_status = 0; } 3329done 3330 3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main (void) 3336{ 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342ac_clean_files_save=$ac_clean_files 3343ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3344# Try to create an executable without -o first, disregard a.out. 3345# It will help us diagnose broken compilers, and finding out an intuition 3346# of exeext. 3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3348printf %s "checking whether the C compiler works... " >&6; } 3349ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3350 3351# The possible output files: 3352ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3353 3354ac_rmfiles= 3355for ac_file in $ac_files 3356do 3357 case $ac_file in 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3360 esac 3361done 3362rm -f $ac_rmfiles 3363 3364if { { ac_try="$ac_link_default" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370printf "%s\n" "$ac_try_echo"; } >&5 3371 (eval "$ac_link_default") 2>&5 3372 ac_status=$? 3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3374 test $ac_status = 0; } 3375then : 3376 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3377# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3378# in a Makefile. We should not override ac_cv_exeext if it was cached, 3379# so that the user can short-circuit this test for compilers unknown to 3380# Autoconf. 3381for ac_file in $ac_files '' 3382do 3383 test -f "$ac_file" || continue 3384 case $ac_file in 3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3386 ;; 3387 [ab].out ) 3388 # We found the default executable, but exeext='' is most 3389 # certainly right. 3390 break;; 3391 *.* ) 3392 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3393 then :; else 3394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3395 fi 3396 # We set ac_cv_exeext here because the later test for it is not 3397 # safe: cross compilers may not add the suffix if given an '-o' 3398 # argument, so we may need to know it at that point already. 3399 # Even if this section looks crufty: it has the advantage of 3400 # actually working. 3401 break;; 3402 * ) 3403 break;; 3404 esac 3405done 3406test "$ac_cv_exeext" = no && ac_cv_exeext= 3407 3408else case e in #( 3409 e) ac_file='' ;; 3410esac 3411fi 3412if test -z "$ac_file" 3413then : 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415printf "%s\n" "no" >&6; } 3416printf "%s\n" "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3420printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3421as_fn_error 77 "C compiler cannot create executables 3422See 'config.log' for more details" "$LINENO" 5; } 3423else case e in #( 3424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3425printf "%s\n" "yes" >&6; } ;; 3426esac 3427fi 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3429printf %s "checking for C compiler default output file name... " >&6; } 3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3431printf "%s\n" "$ac_file" >&6; } 3432ac_exeext=$ac_cv_exeext 3433 3434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3435ac_clean_files=$ac_clean_files_save 3436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3437printf %s "checking for suffix of executables... " >&6; } 3438if { { ac_try="$ac_link" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3444printf "%s\n" "$ac_try_echo"; } >&5 3445 (eval "$ac_link") 2>&5 3446 ac_status=$? 3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3448 test $ac_status = 0; } 3449then : 3450 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3451# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3452# work properly (i.e., refer to 'conftest.exe'), while it won't with 3453# 'rm'. 3454for ac_file in conftest.exe conftest conftest.*; do 3455 test -f "$ac_file" || continue 3456 case $ac_file in 3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3459 break;; 3460 * ) break;; 3461 esac 3462done 3463else case e in #( 3464 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3465printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3466as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3467See 'config.log' for more details" "$LINENO" 5; } ;; 3468esac 3469fi 3470rm -f conftest conftest$ac_cv_exeext 3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3472printf "%s\n" "$ac_cv_exeext" >&6; } 3473 3474rm -f conftest.$ac_ext 3475EXEEXT=$ac_cv_exeext 3476ac_exeext=$EXEEXT 3477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479#include <stdio.h> 3480int 3481main (void) 3482{ 3483FILE *f = fopen ("conftest.out", "w"); 3484 if (!f) 3485 return 1; 3486 return ferror (f) || fclose (f) != 0; 3487 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492ac_clean_files="$ac_clean_files conftest.out" 3493# Check that the compiler produces executables we can run. If not, either 3494# the compiler is broken, or we cross compile. 3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3496printf %s "checking whether we are cross compiling... " >&6; } 3497if test "$cross_compiling" != yes; then 3498 { { ac_try="$ac_link" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3504printf "%s\n" "$ac_try_echo"; } >&5 3505 (eval "$ac_link") 2>&5 3506 ac_status=$? 3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3508 test $ac_status = 0; } 3509 if { ac_try='./conftest$ac_cv_exeext' 3510 { { case "(($ac_try" in 3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3512 *) ac_try_echo=$ac_try;; 3513esac 3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3515printf "%s\n" "$ac_try_echo"; } >&5 3516 (eval "$ac_try") 2>&5 3517 ac_status=$? 3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3519 test $ac_status = 0; }; }; then 3520 cross_compiling=no 3521 else 3522 if test "$cross_compiling" = maybe; then 3523 cross_compiling=yes 3524 else 3525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3526printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3527as_fn_error 77 "cannot run C compiled programs. 3528If you meant to cross compile, use '--host'. 3529See 'config.log' for more details" "$LINENO" 5; } 3530 fi 3531 fi 3532fi 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3534printf "%s\n" "$cross_compiling" >&6; } 3535 3536rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3537 conftest.o conftest.obj conftest.out 3538ac_clean_files=$ac_clean_files_save 3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3540printf %s "checking for suffix of object files... " >&6; } 3541if test ${ac_cv_objext+y} 3542then : 3543 printf %s "(cached) " >&6 3544else case e in #( 3545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main (void) 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556rm -f conftest.o conftest.obj 3557if { { ac_try="$ac_compile" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563printf "%s\n" "$ac_try_echo"; } >&5 3564 (eval "$ac_compile") 2>&5 3565 ac_status=$? 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3567 test $ac_status = 0; } 3568then : 3569 for ac_file in conftest.o conftest.obj conftest.*; do 3570 test -f "$ac_file" || continue; 3571 case $ac_file in 3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3574 break;; 3575 esac 3576done 3577else case e in #( 3578 e) printf "%s\n" "$as_me: failed program was:" >&5 3579sed 's/^/| /' conftest.$ac_ext >&5 3580 3581{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3582printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3583as_fn_error $? "cannot compute suffix of object files: cannot compile 3584See 'config.log' for more details" "$LINENO" 5; } ;; 3585esac 3586fi 3587rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3588esac 3589fi 3590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3591printf "%s\n" "$ac_cv_objext" >&6; } 3592OBJEXT=$ac_cv_objext 3593ac_objext=$OBJEXT 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3595printf %s "checking whether the compiler supports GNU C... " >&6; } 3596if test ${ac_cv_c_compiler_gnu+y} 3597then : 3598 printf %s "(cached) " >&6 3599else case e in #( 3600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602 3603int 3604main (void) 3605{ 3606#ifndef __GNUC__ 3607 choke me 3608#endif 3609 3610 ; 3611 return 0; 3612} 3613_ACEOF 3614if ac_fn_c_try_compile "$LINENO" 3615then : 3616 ac_compiler_gnu=yes 3617else case e in #( 3618 e) ac_compiler_gnu=no ;; 3619esac 3620fi 3621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3622ac_cv_c_compiler_gnu=$ac_compiler_gnu 3623 ;; 3624esac 3625fi 3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3627printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3628ac_compiler_gnu=$ac_cv_c_compiler_gnu 3629 3630if test $ac_compiler_gnu = yes; then 3631 GCC=yes 3632else 3633 GCC= 3634fi 3635ac_test_CFLAGS=${CFLAGS+y} 3636ac_save_CFLAGS=$CFLAGS 3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3638printf %s "checking whether $CC accepts -g... " >&6; } 3639if test ${ac_cv_prog_cc_g+y} 3640then : 3641 printf %s "(cached) " >&6 3642else case e in #( 3643 e) ac_save_c_werror_flag=$ac_c_werror_flag 3644 ac_c_werror_flag=yes 3645 ac_cv_prog_cc_g=no 3646 CFLAGS="-g" 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main (void) 3652{ 3653 3654 ; 3655 return 0; 3656} 3657_ACEOF 3658if ac_fn_c_try_compile "$LINENO" 3659then : 3660 ac_cv_prog_cc_g=yes 3661else case e in #( 3662 e) CFLAGS="" 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666int 3667main (void) 3668{ 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674if ac_fn_c_try_compile "$LINENO" 3675then : 3676 3677else case e in #( 3678 e) ac_c_werror_flag=$ac_save_c_werror_flag 3679 CFLAGS="-g" 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682 3683int 3684main (void) 3685{ 3686 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691if ac_fn_c_try_compile "$LINENO" 3692then : 3693 ac_cv_prog_cc_g=yes 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3696esac 3697fi 3698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3699esac 3700fi 3701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3702 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3703esac 3704fi 3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3706printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3707if test $ac_test_CFLAGS; then 3708 CFLAGS=$ac_save_CFLAGS 3709elif test $ac_cv_prog_cc_g = yes; then 3710 if test "$GCC" = yes; then 3711 CFLAGS="-g -O2" 3712 else 3713 CFLAGS="-g" 3714 fi 3715else 3716 if test "$GCC" = yes; then 3717 CFLAGS="-O2" 3718 else 3719 CFLAGS= 3720 fi 3721fi 3722ac_prog_cc_stdc=no 3723if test x$ac_prog_cc_stdc = xno 3724then : 3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3726printf %s "checking for $CC option to enable C11 features... " >&6; } 3727if test ${ac_cv_prog_cc_c11+y} 3728then : 3729 printf %s "(cached) " >&6 3730else case e in #( 3731 e) ac_cv_prog_cc_c11=no 3732ac_save_CC=$CC 3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735$ac_c_conftest_c11_program 3736_ACEOF 3737for ac_arg in '' -std=gnu11 3738do 3739 CC="$ac_save_CC $ac_arg" 3740 if ac_fn_c_try_compile "$LINENO" 3741then : 3742 ac_cv_prog_cc_c11=$ac_arg 3743fi 3744rm -f core conftest.err conftest.$ac_objext conftest.beam 3745 test "x$ac_cv_prog_cc_c11" != "xno" && break 3746done 3747rm -f conftest.$ac_ext 3748CC=$ac_save_CC ;; 3749esac 3750fi 3751 3752if test "x$ac_cv_prog_cc_c11" = xno 3753then : 3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3755printf "%s\n" "unsupported" >&6; } 3756else case e in #( 3757 e) if test "x$ac_cv_prog_cc_c11" = x 3758then : 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3760printf "%s\n" "none needed" >&6; } 3761else case e in #( 3762 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3763printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3764 CC="$CC $ac_cv_prog_cc_c11" ;; 3765esac 3766fi 3767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3768 ac_prog_cc_stdc=c11 ;; 3769esac 3770fi 3771fi 3772if test x$ac_prog_cc_stdc = xno 3773then : 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3775printf %s "checking for $CC option to enable C99 features... " >&6; } 3776if test ${ac_cv_prog_cc_c99+y} 3777then : 3778 printf %s "(cached) " >&6 3779else case e in #( 3780 e) ac_cv_prog_cc_c99=no 3781ac_save_CC=$CC 3782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784$ac_c_conftest_c99_program 3785_ACEOF 3786for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3787do 3788 CC="$ac_save_CC $ac_arg" 3789 if ac_fn_c_try_compile "$LINENO" 3790then : 3791 ac_cv_prog_cc_c99=$ac_arg 3792fi 3793rm -f core conftest.err conftest.$ac_objext conftest.beam 3794 test "x$ac_cv_prog_cc_c99" != "xno" && break 3795done 3796rm -f conftest.$ac_ext 3797CC=$ac_save_CC ;; 3798esac 3799fi 3800 3801if test "x$ac_cv_prog_cc_c99" = xno 3802then : 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3804printf "%s\n" "unsupported" >&6; } 3805else case e in #( 3806 e) if test "x$ac_cv_prog_cc_c99" = x 3807then : 3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3809printf "%s\n" "none needed" >&6; } 3810else case e in #( 3811 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3812printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3813 CC="$CC $ac_cv_prog_cc_c99" ;; 3814esac 3815fi 3816 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3817 ac_prog_cc_stdc=c99 ;; 3818esac 3819fi 3820fi 3821if test x$ac_prog_cc_stdc = xno 3822then : 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3824printf %s "checking for $CC option to enable C89 features... " >&6; } 3825if test ${ac_cv_prog_cc_c89+y} 3826then : 3827 printf %s "(cached) " >&6 3828else case e in #( 3829 e) ac_cv_prog_cc_c89=no 3830ac_save_CC=$CC 3831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833$ac_c_conftest_c89_program 3834_ACEOF 3835for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3836do 3837 CC="$ac_save_CC $ac_arg" 3838 if ac_fn_c_try_compile "$LINENO" 3839then : 3840 ac_cv_prog_cc_c89=$ac_arg 3841fi 3842rm -f core conftest.err conftest.$ac_objext conftest.beam 3843 test "x$ac_cv_prog_cc_c89" != "xno" && break 3844done 3845rm -f conftest.$ac_ext 3846CC=$ac_save_CC ;; 3847esac 3848fi 3849 3850if test "x$ac_cv_prog_cc_c89" = xno 3851then : 3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3853printf "%s\n" "unsupported" >&6; } 3854else case e in #( 3855 e) if test "x$ac_cv_prog_cc_c89" = x 3856then : 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3858printf "%s\n" "none needed" >&6; } 3859else case e in #( 3860 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3861printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3862 CC="$CC $ac_cv_prog_cc_c89" ;; 3863esac 3864fi 3865 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3866 ac_prog_cc_stdc=c89 ;; 3867esac 3868fi 3869fi 3870 3871ac_ext=c 3872ac_cpp='$CPP $CPPFLAGS' 3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3875ac_compiler_gnu=$ac_cv_c_compiler_gnu 3876 3877 3878 ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3884printf %s "checking whether $CC understands -c and -o together... " >&6; } 3885if test ${am_cv_prog_cc_c_o+y} 3886then : 3887 printf %s "(cached) " >&6 3888else case e in #( 3889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3890/* end confdefs.h. */ 3891 3892int 3893main (void) 3894{ 3895 3896 ; 3897 return 0; 3898} 3899_ACEOF 3900 # Make sure it works both with $CC and with simple cc. 3901 # Following AC_PROG_CC_C_O, we do the test twice because some 3902 # compilers refuse to overwrite an existing .o file with -o, 3903 # though they will create one. 3904 am_cv_prog_cc_c_o=yes 3905 for am_i in 1 2; do 3906 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3907 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3908 ac_status=$? 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); } \ 3911 && test -f conftest2.$ac_objext; then 3912 : OK 3913 else 3914 am_cv_prog_cc_c_o=no 3915 break 3916 fi 3917 done 3918 rm -f core conftest* 3919 unset am_i ;; 3920esac 3921fi 3922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3923printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3924if test "$am_cv_prog_cc_c_o" != yes; then 3925 # Losing compiler, so override with the script. 3926 # FIXME: It is wrong to rewrite CC. 3927 # But if we don't then we get into trouble of one sort or another. 3928 # A longer-term fix would be to have automake use am__CC in this case, 3929 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3930 CC="$am_aux_dir/compile $CC" 3931fi 3932ac_ext=c 3933ac_cpp='$CPP $CPPFLAGS' 3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3936ac_compiler_gnu=$ac_cv_c_compiler_gnu 3937 3938 3939 3940ac_header= ac_cache= 3941for ac_item in $ac_header_c_list 3942do 3943 if test $ac_cache; then 3944 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3945 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3946 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3947 fi 3948 ac_header= ac_cache= 3949 elif test $ac_header; then 3950 ac_cache=$ac_item 3951 else 3952 ac_header=$ac_item 3953 fi 3954done 3955 3956 3957 3958 3959 3960 3961 3962 3963if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3964then : 3965 3966printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3967 3968fi 3969 3970 3971 3972 3973 3974 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3976printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3977if test ${ac_cv_safe_to_define___extensions__+y} 3978then : 3979 printf %s "(cached) " >&6 3980else case e in #( 3981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984# define __EXTENSIONS__ 1 3985 $ac_includes_default 3986int 3987main (void) 3988{ 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994if ac_fn_c_try_compile "$LINENO" 3995then : 3996 ac_cv_safe_to_define___extensions__=yes 3997else case e in #( 3998 e) ac_cv_safe_to_define___extensions__=no ;; 3999esac 4000fi 4001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4002esac 4003fi 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4005printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4006 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4008printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4009if test ${ac_cv_should_define__xopen_source+y} 4010then : 4011 printf %s "(cached) " >&6 4012else case e in #( 4013 e) ac_cv_should_define__xopen_source=no 4014 if test $ac_cv_header_wchar_h = yes 4015then : 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019 #include <wchar.h> 4020 mbstate_t x; 4021int 4022main (void) 4023{ 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_compile "$LINENO" 4030then : 4031 4032else case e in #( 4033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036 #define _XOPEN_SOURCE 500 4037 #include <wchar.h> 4038 mbstate_t x; 4039int 4040main (void) 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047if ac_fn_c_try_compile "$LINENO" 4048then : 4049 ac_cv_should_define__xopen_source=yes 4050fi 4051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4052esac 4053fi 4054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4055fi ;; 4056esac 4057fi 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4059printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4060 4061 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4062 4063 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4064 4065 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4066 4067 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4068 4069 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4070 4071 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4072 4073 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4074 4075 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4076 4077 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4078 4079 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4080 4081 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4082 4083 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4084 4085 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4086 4087 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4088 4089 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4090 4091 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4092 4093 if test $ac_cv_header_minix_config_h = yes 4094then : 4095 MINIX=yes 4096 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4097 4098 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4099 4100 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4101 4102else case e in #( 4103 e) MINIX= ;; 4104esac 4105fi 4106 if test $ac_cv_safe_to_define___extensions__ = yes 4107then : 4108 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4109 4110fi 4111 if test $ac_cv_should_define__xopen_source = yes 4112then : 4113 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4114 4115fi 4116 4117ac_config_headers="$ac_config_headers config.h" 4118 4119 4120 4121# Initialize Automake 4122am__api_version='1.17' 4123 4124 4125 # Find a good install program. We prefer a C program (faster), 4126# so one script is as good as another. But avoid the broken or 4127# incompatible versions: 4128# SysV /etc/install, /usr/sbin/install 4129# SunOS /usr/etc/install 4130# IRIX /sbin/install 4131# AIX /bin/install 4132# AmigaOS /C/install, which installs bootblocks on floppy discs 4133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4134# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4136# OS/2's system install, which has a completely different semantic 4137# ./install, which can be erroneously created by make from ./install.sh. 4138# Reject install programs that cannot install multiple files. 4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4140printf %s "checking for a BSD-compatible install... " >&6; } 4141if test -z "$INSTALL"; then 4142if test ${ac_cv_path_install+y} 4143then : 4144 printf %s "(cached) " >&6 4145else case e in #( 4146 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH 4148do 4149 IFS=$as_save_IFS 4150 case $as_dir in #((( 4151 '') as_dir=./ ;; 4152 */) ;; 4153 *) as_dir=$as_dir/ ;; 4154 esac 4155 # Account for fact that we put trailing slashes in our PATH walk. 4156case $as_dir in #(( 4157 ./ | /[cC]/* | \ 4158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4160 /usr/ucb/* ) ;; 4161 *) 4162 # OSF1 and SCO ODT 3.0 have their own names for install. 4163 # Don't use installbsd from OSF since it installs stuff as root 4164 # by default. 4165 for ac_prog in ginstall scoinst install; do 4166 for ac_exec_ext in '' $ac_executable_extensions; do 4167 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4168 if test $ac_prog = install && 4169 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4170 # AIX install. It has an incompatible calling convention. 4171 : 4172 elif test $ac_prog = install && 4173 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4174 # program-specific install script used by HP pwplus--don't use. 4175 : 4176 else 4177 rm -rf conftest.one conftest.two conftest.dir 4178 echo one > conftest.one 4179 echo two > conftest.two 4180 mkdir conftest.dir 4181 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4182 test -s conftest.one && test -s conftest.two && 4183 test -s conftest.dir/conftest.one && 4184 test -s conftest.dir/conftest.two 4185 then 4186 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4187 break 3 4188 fi 4189 fi 4190 fi 4191 done 4192 done 4193 ;; 4194esac 4195 4196 done 4197IFS=$as_save_IFS 4198 4199rm -rf conftest.one conftest.two conftest.dir 4200 ;; 4201esac 4202fi 4203 if test ${ac_cv_path_install+y}; then 4204 INSTALL=$ac_cv_path_install 4205 else 4206 # As a last resort, use the slow shell script. Don't cache a 4207 # value for INSTALL within a source directory, because that will 4208 # break other packages using the cache if that directory is 4209 # removed, or if the value is a relative name. 4210 INSTALL=$ac_install_sh 4211 fi 4212fi 4213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4214printf "%s\n" "$INSTALL" >&6; } 4215 4216# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4217# It thinks the first close brace ends the variable substitution. 4218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4219 4220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4221 4222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4223 4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4225printf %s "checking whether sleep supports fractional seconds... " >&6; } 4226if test ${am_cv_sleep_fractional_seconds+y} 4227then : 4228 printf %s "(cached) " >&6 4229else case e in #( 4230 e) if sleep 0.001 2>/dev/null 4231then : 4232 am_cv_sleep_fractional_seconds=yes 4233else case e in #( 4234 e) am_cv_sleep_fractional_seconds=no ;; 4235esac 4236fi 4237 ;; 4238esac 4239fi 4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4241printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4242 4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4244printf %s "checking filesystem timestamp resolution... " >&6; } 4245if test ${am_cv_filesystem_timestamp_resolution+y} 4246then : 4247 printf %s "(cached) " >&6 4248else case e in #( 4249 e) # Default to the worst case. 4250am_cv_filesystem_timestamp_resolution=2 4251 4252# Only try to go finer than 1 sec if sleep can do it. 4253# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4254# - 1 sec is not much of a win compared to 2 sec, and 4255# - it takes 2 seconds to perform the test whether 1 sec works. 4256# 4257# Instead, just use the default 2s on platforms that have 1s resolution, 4258# accept the extra 1s delay when using $sleep in the Automake tests, in 4259# exchange for not incurring the 2s delay for running the test for all 4260# packages. 4261# 4262am_try_resolutions= 4263if test "$am_cv_sleep_fractional_seconds" = yes; then 4264 # Even a millisecond often causes a bunch of false positives, 4265 # so just try a hundredth of a second. The time saved between .001 and 4266 # .01 is not terribly consequential. 4267 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4268fi 4269 4270# In order to catch current-generation FAT out, we must *modify* files 4271# that already exist; the *creation* timestamp is finer. Use names 4272# that make ls -t sort them differently when they have equal 4273# timestamps than when they have distinct timestamps, keeping 4274# in mind that ls -t prints the *newest* file first. 4275rm -f conftest.ts? 4276: > conftest.ts1 4277: > conftest.ts2 4278: > conftest.ts3 4279 4280# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4281# clobber the current shell's arguments. (Outer-level square brackets 4282# are removed by m4; they're present so that m4 does not expand 4283# <dollar><star>; be careful, easy to get confused.) 4284if ( 4285 set X `ls -t conftest.ts[12]` && 4286 { 4287 test "$*" != "X conftest.ts1 conftest.ts2" || 4288 test "$*" != "X conftest.ts2 conftest.ts1"; 4289 } 4290); then :; else 4291 # If neither matched, then we have a broken ls. This can happen 4292 # if, for instance, CONFIG_SHELL is bash and it inherits a 4293 # broken ls alias from the environment. This has actually 4294 # happened. Such a system could not be considered "sane". 4295 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4297printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4298as_fn_error $? "ls -t produces unexpected output. 4299Make sure there is not a broken ls alias in your environment. 4300See 'config.log' for more details" "$LINENO" 5; } 4301fi 4302 4303for am_try_res in $am_try_resolutions; do 4304 # Any one fine-grained sleep might happen to cross the boundary 4305 # between two values of a coarser actual resolution, but if we do 4306 # two fine-grained sleeps in a row, at least one of them will fall 4307 # entirely within a coarse interval. 4308 echo alpha > conftest.ts1 4309 sleep $am_try_res 4310 echo beta > conftest.ts2 4311 sleep $am_try_res 4312 echo gamma > conftest.ts3 4313 4314 # We assume that 'ls -t' will make use of high-resolution 4315 # timestamps if the operating system supports them at all. 4316 if (set X `ls -t conftest.ts?` && 4317 test "$2" = conftest.ts3 && 4318 test "$3" = conftest.ts2 && 4319 test "$4" = conftest.ts1); then 4320 # 4321 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4322 # because we don't need to test make. 4323 make_ok=true 4324 if test $am_try_res != 1; then 4325 # But if we've succeeded so far with a subsecond resolution, we 4326 # have one more thing to check: make. It can happen that 4327 # everything else supports the subsecond mtimes, but make doesn't; 4328 # notably on macOS, which ships make 3.81 from 2006 (the last one 4329 # released under GPLv2). https://bugs.gnu.org/68808 4330 # 4331 # We test $MAKE if it is defined in the environment, else "make". 4332 # It might get overridden later, but our hope is that in practice 4333 # it does not matter: it is the system "make" which is (by far) 4334 # the most likely to be broken, whereas if the user overrides it, 4335 # probably they did so with a better, or at least not worse, make. 4336 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4337 # 4338 # Create a Makefile (real tab character here): 4339 rm -f conftest.mk 4340 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4341 echo ' touch conftest.ts2' >>conftest.mk 4342 # 4343 # Now, running 4344 # touch conftest.ts1; touch conftest.ts2; make 4345 # should touch ts1 because ts2 is newer. This could happen by luck, 4346 # but most often, it will fail if make's support is insufficient. So 4347 # test for several consecutive successes. 4348 # 4349 # (We reuse conftest.ts[12] because we still want to modify existing 4350 # files, not create new ones, per above.) 4351 n=0 4352 make=${MAKE-make} 4353 until test $n -eq 3; do 4354 echo one > conftest.ts1 4355 sleep $am_try_res 4356 echo two > conftest.ts2 # ts2 should now be newer than ts1 4357 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4358 make_ok=false 4359 break # out of $n loop 4360 fi 4361 n=`expr $n + 1` 4362 done 4363 fi 4364 # 4365 if $make_ok; then 4366 # Everything we know to check worked out, so call this resolution good. 4367 am_cv_filesystem_timestamp_resolution=$am_try_res 4368 break # out of $am_try_res loop 4369 fi 4370 # Otherwise, we'll go on to check the next resolution. 4371 fi 4372done 4373rm -f conftest.ts? 4374# (end _am_filesystem_timestamp_resolution) 4375 ;; 4376esac 4377fi 4378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4379printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4380 4381# This check should not be cached, as it may vary across builds of 4382# different projects. 4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4384printf %s "checking whether build environment is sane... " >&6; } 4385# Reject unsafe characters in $srcdir or the absolute working directory 4386# name. Accept space and tab only in the latter. 4387am_lf=' 4388' 4389case `pwd` in 4390 *[\\\"\#\$\&\'\`$am_lf]*) 4391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4392esac 4393case $srcdir in 4394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4395 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4396esac 4397 4398# Do 'set' in a subshell so we don't clobber the current shell's 4399# arguments. Must try -L first in case configure is actually a 4400# symlink; some systems play weird games with the mod time of symlinks 4401# (eg FreeBSD returns the mod time of the symlink's containing 4402# directory). 4403am_build_env_is_sane=no 4404am_has_slept=no 4405rm -f conftest.file 4406for am_try in 1 2; do 4407 echo "timestamp, slept: $am_has_slept" > conftest.file 4408 if ( 4409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4410 if test "$*" = "X"; then 4411 # -L didn't work. 4412 set X `ls -t "$srcdir/configure" conftest.file` 4413 fi 4414 test "$2" = conftest.file 4415 ); then 4416 am_build_env_is_sane=yes 4417 break 4418 fi 4419 # Just in case. 4420 sleep "$am_cv_filesystem_timestamp_resolution" 4421 am_has_slept=yes 4422done 4423 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4425printf "%s\n" "$am_build_env_is_sane" >&6; } 4426if test "$am_build_env_is_sane" = no; then 4427 as_fn_error $? "newly created file is older than distributed files! 4428Check your system clock" "$LINENO" 5 4429fi 4430 4431# If we didn't sleep, we still need to ensure time stamps of config.status and 4432# generated files are strictly newer. 4433am_sleep_pid= 4434if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4435then : 4436 4437else case e in #( 4438 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4439 am_sleep_pid=$! 4440 ;; 4441esac 4442fi 4443 4444rm -f conftest.file 4445 4446test "$program_prefix" != NONE && 4447 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4448# Use a double $ so make ignores it. 4449test "$program_suffix" != NONE && 4450 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4451# Double any \ or $. 4452# By default was 's,x,x', remove it if useless. 4453ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4454program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4455 4456 4457 if test x"${MISSING+set}" != xset; then 4458 MISSING="\${SHELL} '$am_aux_dir/missing'" 4459fi 4460# Use eval to expand $SHELL 4461if eval "$MISSING --is-lightweight"; then 4462 am_missing_run="$MISSING " 4463else 4464 am_missing_run= 4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4466printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4467fi 4468 4469if test x"${install_sh+set}" != xset; then 4470 case $am_aux_dir in 4471 *\ * | *\ *) 4472 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4473 *) 4474 install_sh="\${SHELL} $am_aux_dir/install-sh" 4475 esac 4476fi 4477 4478# Installed binaries are usually stripped using 'strip' when the user 4479# run "make install-strip". However 'strip' might not be the right 4480# tool to use in cross-compilation environments, therefore Automake 4481# will honor the 'STRIP' environment variable to overrule this program. 4482if test "$cross_compiling" != no; then 4483 if test -n "$ac_tool_prefix"; then 4484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4485set dummy ${ac_tool_prefix}strip; ac_word=$2 4486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4487printf %s "checking for $ac_word... " >&6; } 4488if test ${ac_cv_prog_STRIP+y} 4489then : 4490 printf %s "(cached) " >&6 4491else case e in #( 4492 e) if test -n "$STRIP"; then 4493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4494else 4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH 4497do 4498 IFS=$as_save_IFS 4499 case $as_dir in #((( 4500 '') as_dir=./ ;; 4501 */) ;; 4502 *) as_dir=$as_dir/ ;; 4503 esac 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4506 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510done 4511 done 4512IFS=$as_save_IFS 4513 4514fi ;; 4515esac 4516fi 4517STRIP=$ac_cv_prog_STRIP 4518if test -n "$STRIP"; then 4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4520printf "%s\n" "$STRIP" >&6; } 4521else 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523printf "%s\n" "no" >&6; } 4524fi 4525 4526 4527fi 4528if test -z "$ac_cv_prog_STRIP"; then 4529 ac_ct_STRIP=$STRIP 4530 # Extract the first word of "strip", so it can be a program name with args. 4531set dummy strip; ac_word=$2 4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533printf %s "checking for $ac_word... " >&6; } 4534if test ${ac_cv_prog_ac_ct_STRIP+y} 4535then : 4536 printf %s "(cached) " >&6 4537else case e in #( 4538 e) if test -n "$ac_ct_STRIP"; then 4539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4540else 4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4542for as_dir in $PATH 4543do 4544 IFS=$as_save_IFS 4545 case $as_dir in #((( 4546 '') as_dir=./ ;; 4547 */) ;; 4548 *) as_dir=$as_dir/ ;; 4549 esac 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4552 ac_cv_prog_ac_ct_STRIP="strip" 4553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557 done 4558IFS=$as_save_IFS 4559 4560fi ;; 4561esac 4562fi 4563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4564if test -n "$ac_ct_STRIP"; then 4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4566printf "%s\n" "$ac_ct_STRIP" >&6; } 4567else 4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4569printf "%s\n" "no" >&6; } 4570fi 4571 4572 if test "x$ac_ct_STRIP" = x; then 4573 STRIP=":" 4574 else 4575 case $cross_compiling:$ac_tool_warned in 4576yes:) 4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4578printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4579ac_tool_warned=yes ;; 4580esac 4581 STRIP=$ac_ct_STRIP 4582 fi 4583else 4584 STRIP="$ac_cv_prog_STRIP" 4585fi 4586 4587fi 4588INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4589 4590 4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4592printf %s "checking for a race-free mkdir -p... " >&6; } 4593if test -z "$MKDIR_P"; then 4594 if test ${ac_cv_path_mkdir+y} 4595then : 4596 printf %s "(cached) " >&6 4597else case e in #( 4598 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4600do 4601 IFS=$as_save_IFS 4602 case $as_dir in #((( 4603 '') as_dir=./ ;; 4604 */) ;; 4605 *) as_dir=$as_dir/ ;; 4606 esac 4607 for ac_prog in mkdir gmkdir; do 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4610 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4611 'mkdir ('*'coreutils) '* | \ 4612 *'BusyBox '* | \ 4613 'mkdir (fileutils) '4.1*) 4614 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4615 break 3;; 4616 esac 4617 done 4618 done 4619 done 4620IFS=$as_save_IFS 4621 ;; 4622esac 4623fi 4624 4625 test -d ./--version && rmdir ./--version 4626 if test ${ac_cv_path_mkdir+y}; then 4627 MKDIR_P="$ac_cv_path_mkdir -p" 4628 else 4629 # As a last resort, use plain mkdir -p, 4630 # in the hope it doesn't have the bugs of ancient mkdir. 4631 MKDIR_P='mkdir -p' 4632 fi 4633fi 4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4635printf "%s\n" "$MKDIR_P" >&6; } 4636 4637for ac_prog in gawk mawk nawk awk 4638do 4639 # Extract the first word of "$ac_prog", so it can be a program name with args. 4640set dummy $ac_prog; ac_word=$2 4641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642printf %s "checking for $ac_word... " >&6; } 4643if test ${ac_cv_prog_AWK+y} 4644then : 4645 printf %s "(cached) " >&6 4646else case e in #( 4647 e) if test -n "$AWK"; then 4648 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4649else 4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4651for as_dir in $PATH 4652do 4653 IFS=$as_save_IFS 4654 case $as_dir in #((( 4655 '') as_dir=./ ;; 4656 */) ;; 4657 *) as_dir=$as_dir/ ;; 4658 esac 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4661 ac_cv_prog_AWK="$ac_prog" 4662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4663 break 2 4664 fi 4665done 4666 done 4667IFS=$as_save_IFS 4668 4669fi ;; 4670esac 4671fi 4672AWK=$ac_cv_prog_AWK 4673if test -n "$AWK"; then 4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4675printf "%s\n" "$AWK" >&6; } 4676else 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4678printf "%s\n" "no" >&6; } 4679fi 4680 4681 4682 test -n "$AWK" && break 4683done 4684 4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4686printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4687set x ${MAKE-make} 4688ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4689if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4690then : 4691 printf %s "(cached) " >&6 4692else case e in #( 4693 e) cat >conftest.make <<\_ACEOF 4694SHELL = /bin/sh 4695all: 4696 @echo '@@@%%%=$(MAKE)=@@@%%%' 4697_ACEOF 4698# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4699case `${MAKE-make} -f conftest.make 2>/dev/null` in 4700 *@@@%%%=?*=@@@%%%*) 4701 eval ac_cv_prog_make_${ac_make}_set=yes;; 4702 *) 4703 eval ac_cv_prog_make_${ac_make}_set=no;; 4704esac 4705rm -f conftest.make ;; 4706esac 4707fi 4708if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4710printf "%s\n" "yes" >&6; } 4711 SET_MAKE= 4712else 4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714printf "%s\n" "no" >&6; } 4715 SET_MAKE="MAKE=${MAKE-make}" 4716fi 4717 4718rm -rf .tst 2>/dev/null 4719mkdir .tst 2>/dev/null 4720if test -d .tst; then 4721 am__leading_dot=. 4722else 4723 am__leading_dot=_ 4724fi 4725rmdir .tst 2>/dev/null 4726 4727DEPDIR="${am__leading_dot}deps" 4728 4729ac_config_commands="$ac_config_commands depfiles" 4730 4731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4732printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4733cat > confinc.mk << 'END' 4734am__doit: 4735 @echo this is the am__doit target >confinc.out 4736.PHONY: am__doit 4737END 4738am__include="#" 4739am__quote= 4740# BSD make does it like this. 4741echo '.include "confinc.mk" # ignored' > confmf.BSD 4742# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4743echo 'include confinc.mk # ignored' > confmf.GNU 4744_am_result=no 4745for s in GNU BSD; do 4746 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4747 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4748 ac_status=$? 4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4750 (exit $ac_status); } 4751 case $?:`cat confinc.out 2>/dev/null` in #( 4752 '0:this is the am__doit target') : 4753 case $s in #( 4754 BSD) : 4755 am__include='.include' am__quote='"' ;; #( 4756 *) : 4757 am__include='include' am__quote='' ;; 4758esac ;; #( 4759 *) : 4760 ;; 4761esac 4762 if test "$am__include" != "#"; then 4763 _am_result="yes ($s style)" 4764 break 4765 fi 4766done 4767rm -f confinc.* confmf.* 4768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4769printf "%s\n" "${_am_result}" >&6; } 4770 4771# Check whether --enable-dependency-tracking was given. 4772if test ${enable_dependency_tracking+y} 4773then : 4774 enableval=$enable_dependency_tracking; 4775fi 4776 4777if test "x$enable_dependency_tracking" != xno; then 4778 am_depcomp="$ac_aux_dir/depcomp" 4779 AMDEPBACKSLASH='\' 4780 am__nodep='_no' 4781fi 4782 if test "x$enable_dependency_tracking" != xno; then 4783 AMDEP_TRUE= 4784 AMDEP_FALSE='#' 4785else 4786 AMDEP_TRUE='#' 4787 AMDEP_FALSE= 4788fi 4789 4790 4791AM_DEFAULT_VERBOSITY=1 4792# Check whether --enable-silent-rules was given. 4793if test ${enable_silent_rules+y} 4794then : 4795 enableval=$enable_silent_rules; 4796fi 4797 4798am_make=${MAKE-make} 4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4800printf %s "checking whether $am_make supports nested variables... " >&6; } 4801if test ${am_cv_make_support_nested_variables+y} 4802then : 4803 printf %s "(cached) " >&6 4804else case e in #( 4805 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4806BAR0=false 4807BAR1=true 4808V=1 4809am__doit: 4810 @$(TRUE) 4811.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4812 am_cv_make_support_nested_variables=yes 4813else 4814 am_cv_make_support_nested_variables=no 4815fi ;; 4816esac 4817fi 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4819printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4820AM_BACKSLASH='\' 4821 4822am__rm_f_notfound= 4823if (rm -f && rm -fr && rm -rf) 2>/dev/null 4824then : 4825 4826else case e in #( 4827 e) am__rm_f_notfound='""' ;; 4828esac 4829fi 4830 4831 4832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4833printf %s "checking xargs -n works... " >&6; } 4834if test ${am_cv_xargs_n_works+y} 4835then : 4836 printf %s "(cached) " >&6 4837else case e in #( 4838 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 48393" 4840then : 4841 am_cv_xargs_n_works=yes 4842else case e in #( 4843 e) am_cv_xargs_n_works=no ;; 4844esac 4845fi ;; 4846esac 4847fi 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4849printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4850if test "$am_cv_xargs_n_works" = yes 4851then : 4852 am__xargs_n='xargs -n' 4853else case e in #( 4854 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4855 ;; 4856esac 4857fi 4858 4859if test "`cd $srcdir && pwd`" != "`pwd`"; then 4860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4861 # is not polluted with repeated "-I." 4862 am__isrc=' -I$(srcdir)' 4863 # test to see if srcdir already configured 4864 if test -f $srcdir/config.status; then 4865 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4866 fi 4867fi 4868 4869# test whether we have cygpath 4870if test -z "$CYGPATH_W"; then 4871 if (cygpath --version) >/dev/null 2>/dev/null; then 4872 CYGPATH_W='cygpath -w' 4873 else 4874 CYGPATH_W=echo 4875 fi 4876fi 4877 4878 4879# Define the identity of the package. 4880 PACKAGE='xfs' 4881 VERSION='1.2.2' 4882 4883 4884printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4885 4886 4887printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4888 4889# Some tools Automake needs. 4890 4891ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4892 4893 4894AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4895 4896 4897AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4898 4899 4900AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4901 4902 4903MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4904 4905# For better backward compatibility. To be removed once Automake 1.9.x 4906# dies out for good. For more background, see: 4907# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4908# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4909mkdir_p='$(MKDIR_P)' 4910 4911# We need awk for the "check" target (and possibly the TAP driver). The 4912# system "awk" is bad on some platforms. 4913# Always define AMTAR for backward compatibility. Yes, it's still used 4914# in the wild :-( We should find a proper way to deprecate it ... 4915AMTAR='$${TAR-tar}' 4916 4917 4918# We'll loop over all known methods to create a tar archive until one works. 4919_am_tools='gnutar pax cpio none' 4920 4921am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4922 4923 4924 4925 4926 4927depcc="$CC" am_compiler_list= 4928 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4930printf %s "checking dependency style of $depcc... " >&6; } 4931if test ${am_cv_CC_dependencies_compiler_type+y} 4932then : 4933 printf %s "(cached) " >&6 4934else case e in #( 4935 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4936 # We make a subdir and do the tests there. Otherwise we can end up 4937 # making bogus files that we don't know about and never remove. For 4938 # instance it was reported that on HP-UX the gcc test will end up 4939 # making a dummy file named 'D' -- because '-MD' means "put the output 4940 # in D". 4941 rm -rf conftest.dir 4942 mkdir conftest.dir 4943 # Copy depcomp to subdir because otherwise we won't find it if we're 4944 # using a relative directory. 4945 cp "$am_depcomp" conftest.dir 4946 cd conftest.dir 4947 # We will build objects and dependencies in a subdirectory because 4948 # it helps to detect inapplicable dependency modes. For instance 4949 # both Tru64's cc and ICC support -MD to output dependencies as a 4950 # side effect of compilation, but ICC will put the dependencies in 4951 # the current directory while Tru64 will put them in the object 4952 # directory. 4953 mkdir sub 4954 4955 am_cv_CC_dependencies_compiler_type=none 4956 if test "$am_compiler_list" = ""; then 4957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4958 fi 4959 am__universal=false 4960 case " $depcc " in #( 4961 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4962 esac 4963 4964 for depmode in $am_compiler_list; do 4965 # Setup a source with many dependencies, because some compilers 4966 # like to wrap large dependency lists on column 80 (with \), and 4967 # we should not choose a depcomp mode which is confused by this. 4968 # 4969 # We need to recreate these files for each test, as the compiler may 4970 # overwrite some of them when testing with obscure command lines. 4971 # This happens at least with the AIX C compiler. 4972 : > sub/conftest.c 4973 for i in 1 2 3 4 5 6; do 4974 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4976 # Solaris 10 /bin/sh. 4977 echo '/* dummy */' > sub/conftst$i.h 4978 done 4979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4980 4981 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4982 # mode. It turns out that the SunPro C++ compiler does not properly 4983 # handle '-M -o', and we need to detect this. Also, some Intel 4984 # versions had trouble with output in subdirs. 4985 am__obj=sub/conftest.${OBJEXT-o} 4986 am__minus_obj="-o $am__obj" 4987 case $depmode in 4988 gcc) 4989 # This depmode causes a compiler race in universal mode. 4990 test "$am__universal" = false || continue 4991 ;; 4992 nosideeffect) 4993 # After this tag, mechanisms are not by side-effect, so they'll 4994 # only be used when explicitly requested. 4995 if test "x$enable_dependency_tracking" = xyes; then 4996 continue 4997 else 4998 break 4999 fi 5000 ;; 5001 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5002 # This compiler won't grok '-c -o', but also, the minuso test has 5003 # not run yet. These depmodes are late enough in the game, and 5004 # so weak that their functioning should not be impacted. 5005 am__obj=conftest.${OBJEXT-o} 5006 am__minus_obj= 5007 ;; 5008 none) break ;; 5009 esac 5010 if depmode=$depmode \ 5011 source=sub/conftest.c object=$am__obj \ 5012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5014 >/dev/null 2>conftest.err && 5015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5019 # icc doesn't choke on unknown options, it will just issue warnings 5020 # or remarks (even with -Werror). So we grep stderr for any message 5021 # that says an option was ignored or not supported. 5022 # When given -MP, icc 7.0 and 7.1 complain thus: 5023 # icc: Command line warning: ignoring option '-M'; no argument required 5024 # The diagnosis changed in icc 8.0: 5025 # icc: Command line remark: option '-MP' not supported 5026 if (grep 'ignoring option' conftest.err || 5027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5028 am_cv_CC_dependencies_compiler_type=$depmode 5029 break 5030 fi 5031 fi 5032 done 5033 5034 cd .. 5035 rm -rf conftest.dir 5036else 5037 am_cv_CC_dependencies_compiler_type=none 5038fi 5039 ;; 5040esac 5041fi 5042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5043printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5044CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5045 5046 if 5047 test "x$enable_dependency_tracking" != xno \ 5048 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5049 am__fastdepCC_TRUE= 5050 am__fastdepCC_FALSE='#' 5051else 5052 am__fastdepCC_TRUE='#' 5053 am__fastdepCC_FALSE= 5054fi 5055 5056 5057# Variables for tags utilities; see am/tags.am 5058if test -z "$CTAGS"; then 5059 CTAGS=ctags 5060fi 5061 5062if test -z "$ETAGS"; then 5063 ETAGS=etags 5064fi 5065 5066if test -z "$CSCOPE"; then 5067 CSCOPE=cscope 5068fi 5069 5070 5071 5072 5073 5074 5075 5076 5077# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 5090printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 5091if test ${ac_cv_c_undeclared_builtin_options+y} 5092then : 5093 printf %s "(cached) " >&6 5094else case e in #( 5095 e) ac_save_CFLAGS=$CFLAGS 5096 ac_cv_c_undeclared_builtin_options='cannot detect' 5097 for ac_arg in '' -fno-builtin; do 5098 CFLAGS="$ac_save_CFLAGS $ac_arg" 5099 # This test program should *not* compile successfully. 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102 5103int 5104main (void) 5105{ 5106(void) strchr; 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_compile "$LINENO" 5112then : 5113 5114else case e in #( 5115 e) # This test program should compile successfully. 5116 # No library function is consistently available on 5117 # freestanding implementations, so test against a dummy 5118 # declaration. Include always-available headers on the 5119 # off chance that they somehow elicit warnings. 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121/* end confdefs.h. */ 5122#include <float.h> 5123#include <limits.h> 5124#include <stdarg.h> 5125#include <stddef.h> 5126extern void ac_decl (int, char *); 5127 5128int 5129main (void) 5130{ 5131(void) ac_decl (0, (char *) 0); 5132 (void) ac_decl; 5133 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO" 5139then : 5140 if test x"$ac_arg" = x 5141then : 5142 ac_cv_c_undeclared_builtin_options='none needed' 5143else case e in #( 5144 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5145esac 5146fi 5147 break 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5150esac 5151fi 5152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5153 done 5154 CFLAGS=$ac_save_CFLAGS 5155 ;; 5156esac 5157fi 5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5159printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 5160 case $ac_cv_c_undeclared_builtin_options in #( 5161 'cannot detect') : 5162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5163printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5164as_fn_error $? "cannot make $CC report undeclared builtins 5165See 'config.log' for more details" "$LINENO" 5; } ;; #( 5166 'none needed') : 5167 ac_c_undeclared_builtin_options='' ;; #( 5168 *) : 5169 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5170esac 5171 5172 5173 5174 5175 5176ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5177if test "x$ac_cv_have_decl___clang__" = xyes 5178then : 5179 CLANGCC="yes" 5180else case e in #( 5181 e) CLANGCC="no" ;; 5182esac 5183fi 5184ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5185if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5186then : 5187 INTELCC="yes" 5188else case e in #( 5189 e) INTELCC="no" ;; 5190esac 5191fi 5192ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5193if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5194then : 5195 SUNCC="yes" 5196else case e in #( 5197 e) SUNCC="no" ;; 5198esac 5199fi 5200 5201 5202 5203 5204 5205 5206 5207 5208if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5209 if test -n "$ac_tool_prefix"; then 5210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5211set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5213printf %s "checking for $ac_word... " >&6; } 5214if test ${ac_cv_path_PKG_CONFIG+y} 5215then : 5216 printf %s "(cached) " >&6 5217else case e in #( 5218 e) case $PKG_CONFIG in 5219 [\\/]* | ?:[\\/]*) 5220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5221 ;; 5222 *) 5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5224for as_dir in $PATH 5225do 5226 IFS=$as_save_IFS 5227 case $as_dir in #((( 5228 '') as_dir=./ ;; 5229 */) ;; 5230 *) as_dir=$as_dir/ ;; 5231 esac 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5234 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5236 break 2 5237 fi 5238done 5239 done 5240IFS=$as_save_IFS 5241 5242 ;; 5243esac ;; 5244esac 5245fi 5246PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5247if test -n "$PKG_CONFIG"; then 5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5249printf "%s\n" "$PKG_CONFIG" >&6; } 5250else 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5252printf "%s\n" "no" >&6; } 5253fi 5254 5255 5256fi 5257if test -z "$ac_cv_path_PKG_CONFIG"; then 5258 ac_pt_PKG_CONFIG=$PKG_CONFIG 5259 # Extract the first word of "pkg-config", so it can be a program name with args. 5260set dummy pkg-config; ac_word=$2 5261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5262printf %s "checking for $ac_word... " >&6; } 5263if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5264then : 5265 printf %s "(cached) " >&6 5266else case e in #( 5267 e) case $ac_pt_PKG_CONFIG in 5268 [\\/]* | ?:[\\/]*) 5269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5270 ;; 5271 *) 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 case $as_dir in #((( 5277 '') as_dir=./ ;; 5278 */) ;; 5279 *) as_dir=$as_dir/ ;; 5280 esac 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5283 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288 done 5289IFS=$as_save_IFS 5290 5291 ;; 5292esac ;; 5293esac 5294fi 5295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5296if test -n "$ac_pt_PKG_CONFIG"; then 5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5298printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5299else 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5301printf "%s\n" "no" >&6; } 5302fi 5303 5304 if test "x$ac_pt_PKG_CONFIG" = x; then 5305 PKG_CONFIG="" 5306 else 5307 case $cross_compiling:$ac_tool_warned in 5308yes:) 5309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5310printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5311ac_tool_warned=yes ;; 5312esac 5313 PKG_CONFIG=$ac_pt_PKG_CONFIG 5314 fi 5315else 5316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5317fi 5318 5319fi 5320if test -n "$PKG_CONFIG"; then 5321 _pkg_min_version=0.9.0 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5323printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5326printf "%s\n" "yes" >&6; } 5327 else 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329printf "%s\n" "no" >&6; } 5330 PKG_CONFIG="" 5331 fi 5332fi 5333 5334 5335 # Make sure we can run config.sub. 5336$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5337 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5338 5339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5340printf %s "checking build system type... " >&6; } 5341if test ${ac_cv_build+y} 5342then : 5343 printf %s "(cached) " >&6 5344else case e in #( 5345 e) ac_build_alias=$build_alias 5346test "x$ac_build_alias" = x && 5347 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5348test "x$ac_build_alias" = x && 5349 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5350ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5351 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5352 ;; 5353esac 5354fi 5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5356printf "%s\n" "$ac_cv_build" >&6; } 5357case $ac_cv_build in 5358*-*-*) ;; 5359*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5360esac 5361build=$ac_cv_build 5362ac_save_IFS=$IFS; IFS='-' 5363set x $ac_cv_build 5364shift 5365build_cpu=$1 5366build_vendor=$2 5367shift; shift 5368# Remember, the first character of IFS is used to create $*, 5369# except with old shells: 5370build_os=$* 5371IFS=$ac_save_IFS 5372case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5373 5374 5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5376printf %s "checking host system type... " >&6; } 5377if test ${ac_cv_host+y} 5378then : 5379 printf %s "(cached) " >&6 5380else case e in #( 5381 e) if test "x$host_alias" = x; then 5382 ac_cv_host=$ac_cv_build 5383else 5384 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5385 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5386fi 5387 ;; 5388esac 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5391printf "%s\n" "$ac_cv_host" >&6; } 5392case $ac_cv_host in 5393*-*-*) ;; 5394*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5395esac 5396host=$ac_cv_host 5397ac_save_IFS=$IFS; IFS='-' 5398set x $ac_cv_host 5399shift 5400host_cpu=$1 5401host_vendor=$2 5402shift; shift 5403# Remember, the first character of IFS is used to create $*, 5404# except with old shells: 5405host_os=$* 5406IFS=$ac_save_IFS 5407case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5408 5409 5410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5411printf %s "checking for a sed that does not truncate output... " >&6; } 5412if test ${ac_cv_path_SED+y} 5413then : 5414 printf %s "(cached) " >&6 5415else case e in #( 5416 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5417 for ac_i in 1 2 3 4 5 6 7; do 5418 ac_script="$ac_script$as_nl$ac_script" 5419 done 5420 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5421 { ac_script=; unset ac_script;} 5422 if test -z "$SED"; then 5423 ac_path_SED_found=false 5424 # Loop through the user's path and test for each of PROGNAME-LIST 5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 case $as_dir in #((( 5430 '') as_dir=./ ;; 5431 */) ;; 5432 *) as_dir=$as_dir/ ;; 5433 esac 5434 for ac_prog in sed gsed 5435 do 5436 for ac_exec_ext in '' $ac_executable_extensions; do 5437 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5438 as_fn_executable_p "$ac_path_SED" || continue 5439# Check for GNU ac_path_SED and select it if it is found. 5440 # Check for GNU $ac_path_SED 5441case `"$ac_path_SED" --version 2>&1` in #( 5442*GNU*) 5443 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5444#( 5445*) 5446 ac_count=0 5447 printf %s 0123456789 >"conftest.in" 5448 while : 5449 do 5450 cat "conftest.in" "conftest.in" >"conftest.tmp" 5451 mv "conftest.tmp" "conftest.in" 5452 cp "conftest.in" "conftest.nl" 5453 printf "%s\n" '' >> "conftest.nl" 5454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5456 as_fn_arith $ac_count + 1 && ac_count=$as_val 5457 if test $ac_count -gt ${ac_path_SED_max-0}; then 5458 # Best one so far, save it but keep looking for a better one 5459 ac_cv_path_SED="$ac_path_SED" 5460 ac_path_SED_max=$ac_count 5461 fi 5462 # 10*(2^10) chars as input seems more than enough 5463 test $ac_count -gt 10 && break 5464 done 5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5466esac 5467 5468 $ac_path_SED_found && break 3 5469 done 5470 done 5471 done 5472IFS=$as_save_IFS 5473 if test -z "$ac_cv_path_SED"; then 5474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5475 fi 5476else 5477 ac_cv_path_SED=$SED 5478fi 5479 ;; 5480esac 5481fi 5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5483printf "%s\n" "$ac_cv_path_SED" >&6; } 5484 SED="$ac_cv_path_SED" 5485 rm -f conftest.sed 5486 5487 5488 5489 5490 5491 5492# Check whether --enable-selective-werror was given. 5493if test ${enable_selective_werror+y} 5494then : 5495 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5496else case e in #( 5497 e) SELECTIVE_WERROR=yes ;; 5498esac 5499fi 5500 5501 5502 5503 5504 5505# -v is too short to test reliably with XORG_TESTSET_CFLAG 5506if test "x$SUNCC" = "xyes"; then 5507 BASE_CFLAGS="-v" 5508else 5509 BASE_CFLAGS="" 5510fi 5511 5512# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526xorg_testset_save_CFLAGS="$CFLAGS" 5527 5528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5532if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5533then : 5534 printf %s "(cached) " >&6 5535else case e in #( 5536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO" 5541then : 5542 xorg_cv_cc_flag_unknown_warning_option=yes 5543else case e in #( 5544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5545esac 5546fi 5547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5548esac 5549fi 5550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5563if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5564then : 5565 printf %s "(cached) " >&6 5566else case e in #( 5567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569int i; 5570_ACEOF 5571if ac_fn_c_try_compile "$LINENO" 5572then : 5573 xorg_cv_cc_flag_unused_command_line_argument=yes 5574else case e in #( 5575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5576esac 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5579esac 5580fi 5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5584 CFLAGS="$xorg_testset_save_CFLAGS" 5585fi 5586 5587found="no" 5588 5589 if test $found = "no" ; then 5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 fi 5597 5598 CFLAGS="$CFLAGS -Wall" 5599 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5601printf %s "checking if $CC supports -Wall... " >&6; } 5602 cacheid=xorg_cv_cc_flag__Wall 5603 if eval test \${$cacheid+y} 5604then : 5605 printf %s "(cached) " >&6 5606else case e in #( 5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608/* end confdefs.h. */ 5609int i; 5610int 5611main (void) 5612{ 5613 5614 ; 5615 return 0; 5616} 5617_ACEOF 5618if ac_fn_c_try_link "$LINENO" 5619then : 5620 eval $cacheid=yes 5621else case e in #( 5622 e) eval $cacheid=no ;; 5623esac 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5626 conftest$ac_exeext conftest.$ac_ext ;; 5627esac 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635printf "%s\n" "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656xorg_testset_save_CFLAGS="$CFLAGS" 5657 5658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5663then : 5664 printf %s "(cached) " >&6 5665else case e in #( 5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668int i; 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO" 5671then : 5672 xorg_cv_cc_flag_unknown_warning_option=yes 5673else case e in #( 5674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5675esac 5676fi 5677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5678esac 5679fi 5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5683 CFLAGS="$xorg_testset_save_CFLAGS" 5684fi 5685 5686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5689 fi 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5693if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5694then : 5695 printf %s "(cached) " >&6 5696else case e in #( 5697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5698/* end confdefs.h. */ 5699int i; 5700_ACEOF 5701if ac_fn_c_try_compile "$LINENO" 5702then : 5703 xorg_cv_cc_flag_unused_command_line_argument=yes 5704else case e in #( 5705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5706esac 5707fi 5708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5709esac 5710fi 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715fi 5716 5717found="no" 5718 5719 if test $found = "no" ; then 5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 fi 5723 5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 fi 5727 5728 CFLAGS="$CFLAGS -Wpointer-arith" 5729 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5731printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5732 cacheid=xorg_cv_cc_flag__Wpointer_arith 5733 if eval test \${$cacheid+y} 5734then : 5735 printf %s "(cached) " >&6 5736else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740int 5741main (void) 5742{ 5743 5744 ; 5745 return 0; 5746} 5747_ACEOF 5748if ac_fn_c_try_link "$LINENO" 5749then : 5750 eval $cacheid=yes 5751else case e in #( 5752 e) eval $cacheid=no ;; 5753esac 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5756 conftest$ac_exeext conftest.$ac_ext ;; 5757esac 5758fi 5759 5760 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762 5763 eval supported=\$$cacheid 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5765printf "%s\n" "$supported" >&6; } 5766 if test "$supported" = "yes" ; then 5767 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5768 found="yes" 5769 fi 5770 fi 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786xorg_testset_save_CFLAGS="$CFLAGS" 5787 5788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5793then : 5794 printf %s "(cached) " >&6 5795else case e in #( 5796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799_ACEOF 5800if ac_fn_c_try_compile "$LINENO" 5801then : 5802 xorg_cv_cc_flag_unknown_warning_option=yes 5803else case e in #( 5804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5805esac 5806fi 5807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5808esac 5809fi 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814fi 5815 5816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5819 fi 5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5824then : 5825 printf %s "(cached) " >&6 5826else case e in #( 5827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829int i; 5830_ACEOF 5831if ac_fn_c_try_compile "$LINENO" 5832then : 5833 xorg_cv_cc_flag_unused_command_line_argument=yes 5834else case e in #( 5835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5836esac 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5839esac 5840fi 5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5844 CFLAGS="$xorg_testset_save_CFLAGS" 5845fi 5846 5847found="no" 5848 5849 if test $found = "no" ; then 5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 fi 5857 5858 CFLAGS="$CFLAGS -Wmissing-declarations" 5859 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5861printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5862 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5863 if eval test \${$cacheid+y} 5864then : 5865 printf %s "(cached) " >&6 5866else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870int 5871main (void) 5872{ 5873 5874 ; 5875 return 0; 5876} 5877_ACEOF 5878if ac_fn_c_try_link "$LINENO" 5879then : 5880 eval $cacheid=yes 5881else case e in #( 5882 e) eval $cacheid=no ;; 5883esac 5884fi 5885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5886 conftest$ac_exeext conftest.$ac_ext ;; 5887esac 5888fi 5889 5890 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892 5893 eval supported=\$$cacheid 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5895printf "%s\n" "$supported" >&6; } 5896 if test "$supported" = "yes" ; then 5897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5898 found="yes" 5899 fi 5900 fi 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916xorg_testset_save_CFLAGS="$CFLAGS" 5917 5918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5923then : 5924 printf %s "(cached) " >&6 5925else case e in #( 5926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927/* end confdefs.h. */ 5928int i; 5929_ACEOF 5930if ac_fn_c_try_compile "$LINENO" 5931then : 5932 xorg_cv_cc_flag_unknown_warning_option=yes 5933else case e in #( 5934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5935esac 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5938esac 5939fi 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944fi 5945 5946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5954then : 5955 printf %s "(cached) " >&6 5956else case e in #( 5957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5958/* end confdefs.h. */ 5959int i; 5960_ACEOF 5961if ac_fn_c_try_compile "$LINENO" 5962then : 5963 xorg_cv_cc_flag_unused_command_line_argument=yes 5964else case e in #( 5965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5966esac 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5969esac 5970fi 5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5974 CFLAGS="$xorg_testset_save_CFLAGS" 5975fi 5976 5977found="no" 5978 5979 if test $found = "no" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 fi 5987 5988 CFLAGS="$CFLAGS -Wformat=2" 5989 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5991printf %s "checking if $CC supports -Wformat=2... " >&6; } 5992 cacheid=xorg_cv_cc_flag__Wformat_2 5993 if eval test \${$cacheid+y} 5994then : 5995 printf %s "(cached) " >&6 5996else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000int 6001main (void) 6002{ 6003 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008if ac_fn_c_try_link "$LINENO" 6009then : 6010 eval $cacheid=yes 6011else case e in #( 6012 e) eval $cacheid=no ;; 6013esac 6014fi 6015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6016 conftest$ac_exeext conftest.$ac_ext ;; 6017esac 6018fi 6019 6020 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022 6023 eval supported=\$$cacheid 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6025printf "%s\n" "$supported" >&6; } 6026 if test "$supported" = "yes" ; then 6027 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6028 found="yes" 6029 fi 6030 fi 6031 6032 if test $found = "no" ; then 6033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6035 fi 6036 6037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6039 fi 6040 6041 CFLAGS="$CFLAGS -Wformat" 6042 6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6044printf %s "checking if $CC supports -Wformat... " >&6; } 6045 cacheid=xorg_cv_cc_flag__Wformat 6046 if eval test \${$cacheid+y} 6047then : 6048 printf %s "(cached) " >&6 6049else case e in #( 6050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051/* end confdefs.h. */ 6052int i; 6053int 6054main (void) 6055{ 6056 6057 ; 6058 return 0; 6059} 6060_ACEOF 6061if ac_fn_c_try_link "$LINENO" 6062then : 6063 eval $cacheid=yes 6064else case e in #( 6065 e) eval $cacheid=no ;; 6066esac 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6069 conftest$ac_exeext conftest.$ac_ext ;; 6070esac 6071fi 6072 6073 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075 6076 eval supported=\$$cacheid 6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6078printf "%s\n" "$supported" >&6; } 6079 if test "$supported" = "yes" ; then 6080 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6081 found="yes" 6082 fi 6083 fi 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101xorg_testset_save_CFLAGS="$CFLAGS" 6102 6103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6108then : 6109 printf %s "(cached) " >&6 6110else case e in #( 6111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112/* end confdefs.h. */ 6113int i; 6114_ACEOF 6115if ac_fn_c_try_compile "$LINENO" 6116then : 6117 xorg_cv_cc_flag_unknown_warning_option=yes 6118else case e in #( 6119 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6120esac 6121fi 6122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6123esac 6124fi 6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6128 CFLAGS="$xorg_testset_save_CFLAGS" 6129fi 6130 6131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 fi 6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6138if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6139then : 6140 printf %s "(cached) " >&6 6141else case e in #( 6142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143/* end confdefs.h. */ 6144int i; 6145_ACEOF 6146if ac_fn_c_try_compile "$LINENO" 6147then : 6148 xorg_cv_cc_flag_unused_command_line_argument=yes 6149else case e in #( 6150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6151esac 6152fi 6153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6154esac 6155fi 6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6159 CFLAGS="$xorg_testset_save_CFLAGS" 6160fi 6161 6162found="no" 6163 6164 if test $found = "no" ; then 6165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167 fi 6168 6169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6171 fi 6172 6173 CFLAGS="$CFLAGS -Wstrict-prototypes" 6174 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6176printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6177 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6178 if eval test \${$cacheid+y} 6179then : 6180 printf %s "(cached) " >&6 6181else case e in #( 6182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int i; 6185int 6186main (void) 6187{ 6188 6189 ; 6190 return 0; 6191} 6192_ACEOF 6193if ac_fn_c_try_link "$LINENO" 6194then : 6195 eval $cacheid=yes 6196else case e in #( 6197 e) eval $cacheid=no ;; 6198esac 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6201 conftest$ac_exeext conftest.$ac_ext ;; 6202esac 6203fi 6204 6205 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207 6208 eval supported=\$$cacheid 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6210printf "%s\n" "$supported" >&6; } 6211 if test "$supported" = "yes" ; then 6212 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6213 found="yes" 6214 fi 6215 fi 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231xorg_testset_save_CFLAGS="$CFLAGS" 6232 6233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6238then : 6239 printf %s "(cached) " >&6 6240else case e in #( 6241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243int i; 6244_ACEOF 6245if ac_fn_c_try_compile "$LINENO" 6246then : 6247 xorg_cv_cc_flag_unknown_warning_option=yes 6248else case e in #( 6249 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6250esac 6251fi 6252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6253esac 6254fi 6255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6258 CFLAGS="$xorg_testset_save_CFLAGS" 6259fi 6260 6261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 fi 6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6269then : 6270 printf %s "(cached) " >&6 6271else case e in #( 6272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275_ACEOF 6276if ac_fn_c_try_compile "$LINENO" 6277then : 6278 xorg_cv_cc_flag_unused_command_line_argument=yes 6279else case e in #( 6280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6281esac 6282fi 6283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6284esac 6285fi 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6289 CFLAGS="$xorg_testset_save_CFLAGS" 6290fi 6291 6292found="no" 6293 6294 if test $found = "no" ; then 6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 fi 6298 6299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6301 fi 6302 6303 CFLAGS="$CFLAGS -Wmissing-prototypes" 6304 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6306printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6307 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6308 if eval test \${$cacheid+y} 6309then : 6310 printf %s "(cached) " >&6 6311else case e in #( 6312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314int i; 6315int 6316main (void) 6317{ 6318 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323if ac_fn_c_try_link "$LINENO" 6324then : 6325 eval $cacheid=yes 6326else case e in #( 6327 e) eval $cacheid=no ;; 6328esac 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6331 conftest$ac_exeext conftest.$ac_ext ;; 6332esac 6333fi 6334 6335 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337 6338 eval supported=\$$cacheid 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6340printf "%s\n" "$supported" >&6; } 6341 if test "$supported" = "yes" ; then 6342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6343 found="yes" 6344 fi 6345 fi 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361xorg_testset_save_CFLAGS="$CFLAGS" 6362 6363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6367if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6368then : 6369 printf %s "(cached) " >&6 6370else case e in #( 6371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373int i; 6374_ACEOF 6375if ac_fn_c_try_compile "$LINENO" 6376then : 6377 xorg_cv_cc_flag_unknown_warning_option=yes 6378else case e in #( 6379 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6380esac 6381fi 6382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6383esac 6384fi 6385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6388 CFLAGS="$xorg_testset_save_CFLAGS" 6389fi 6390 6391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6394 fi 6395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6398if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6399then : 6400 printf %s "(cached) " >&6 6401else case e in #( 6402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404int i; 6405_ACEOF 6406if ac_fn_c_try_compile "$LINENO" 6407then : 6408 xorg_cv_cc_flag_unused_command_line_argument=yes 6409else case e in #( 6410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6411esac 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6414esac 6415fi 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420fi 6421 6422found="no" 6423 6424 if test $found = "no" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6431 fi 6432 6433 CFLAGS="$CFLAGS -Wnested-externs" 6434 6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6436printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6437 cacheid=xorg_cv_cc_flag__Wnested_externs 6438 if eval test \${$cacheid+y} 6439then : 6440 printf %s "(cached) " >&6 6441else case e in #( 6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445int 6446main (void) 6447{ 6448 6449 ; 6450 return 0; 6451} 6452_ACEOF 6453if ac_fn_c_try_link "$LINENO" 6454then : 6455 eval $cacheid=yes 6456else case e in #( 6457 e) eval $cacheid=no ;; 6458esac 6459fi 6460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6461 conftest$ac_exeext conftest.$ac_ext ;; 6462esac 6463fi 6464 6465 6466 CFLAGS="$xorg_testset_save_CFLAGS" 6467 6468 eval supported=\$$cacheid 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6470printf "%s\n" "$supported" >&6; } 6471 if test "$supported" = "yes" ; then 6472 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6473 found="yes" 6474 fi 6475 fi 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491xorg_testset_save_CFLAGS="$CFLAGS" 6492 6493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6497if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6498then : 6499 printf %s "(cached) " >&6 6500else case e in #( 6501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504_ACEOF 6505if ac_fn_c_try_compile "$LINENO" 6506then : 6507 xorg_cv_cc_flag_unknown_warning_option=yes 6508else case e in #( 6509 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6510esac 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6513esac 6514fi 6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6518 CFLAGS="$xorg_testset_save_CFLAGS" 6519fi 6520 6521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 fi 6525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6529then : 6530 printf %s "(cached) " >&6 6531else case e in #( 6532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534int i; 6535_ACEOF 6536if ac_fn_c_try_compile "$LINENO" 6537then : 6538 xorg_cv_cc_flag_unused_command_line_argument=yes 6539else case e in #( 6540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6541esac 6542fi 6543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6544esac 6545fi 6546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6547printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550fi 6551 6552found="no" 6553 6554 if test $found = "no" ; then 6555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6557 fi 6558 6559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6561 fi 6562 6563 CFLAGS="$CFLAGS -Wbad-function-cast" 6564 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6566printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6567 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6568 if eval test \${$cacheid+y} 6569then : 6570 printf %s "(cached) " >&6 6571else case e in #( 6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575int 6576main (void) 6577{ 6578 6579 ; 6580 return 0; 6581} 6582_ACEOF 6583if ac_fn_c_try_link "$LINENO" 6584then : 6585 eval $cacheid=yes 6586else case e in #( 6587 e) eval $cacheid=no ;; 6588esac 6589fi 6590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6591 conftest$ac_exeext conftest.$ac_ext ;; 6592esac 6593fi 6594 6595 6596 CFLAGS="$xorg_testset_save_CFLAGS" 6597 6598 eval supported=\$$cacheid 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6600printf "%s\n" "$supported" >&6; } 6601 if test "$supported" = "yes" ; then 6602 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6603 found="yes" 6604 fi 6605 fi 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621xorg_testset_save_CFLAGS="$CFLAGS" 6622 6623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6628then : 6629 printf %s "(cached) " >&6 6630else case e in #( 6631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633int i; 6634_ACEOF 6635if ac_fn_c_try_compile "$LINENO" 6636then : 6637 xorg_cv_cc_flag_unknown_warning_option=yes 6638else case e in #( 6639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6640esac 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6643esac 6644fi 6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649fi 6650 6651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6659then : 6660 printf %s "(cached) " >&6 6661else case e in #( 6662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663/* end confdefs.h. */ 6664int i; 6665_ACEOF 6666if ac_fn_c_try_compile "$LINENO" 6667then : 6668 xorg_cv_cc_flag_unused_command_line_argument=yes 6669else case e in #( 6670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6671esac 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6674esac 6675fi 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680fi 6681 6682found="no" 6683 6684 if test $found = "no" ; then 6685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6687 fi 6688 6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6691 fi 6692 6693 CFLAGS="$CFLAGS -Wold-style-definition" 6694 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6696printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6697 cacheid=xorg_cv_cc_flag__Wold_style_definition 6698 if eval test \${$cacheid+y} 6699then : 6700 printf %s "(cached) " >&6 6701else case e in #( 6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705int 6706main (void) 6707{ 6708 6709 ; 6710 return 0; 6711} 6712_ACEOF 6713if ac_fn_c_try_link "$LINENO" 6714then : 6715 eval $cacheid=yes 6716else case e in #( 6717 e) eval $cacheid=no ;; 6718esac 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6721 conftest$ac_exeext conftest.$ac_ext ;; 6722esac 6723fi 6724 6725 6726 CFLAGS="$xorg_testset_save_CFLAGS" 6727 6728 eval supported=\$$cacheid 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6730printf "%s\n" "$supported" >&6; } 6731 if test "$supported" = "yes" ; then 6732 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6733 found="yes" 6734 fi 6735 fi 6736 6737 if test $found = "no" ; then 6738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6740 fi 6741 6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6744 fi 6745 6746 CFLAGS="$CFLAGS -fd" 6747 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6749printf %s "checking if $CC supports -fd... " >&6; } 6750 cacheid=xorg_cv_cc_flag__fd 6751 if eval test \${$cacheid+y} 6752then : 6753 printf %s "(cached) " >&6 6754else case e in #( 6755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757int i; 6758int 6759main (void) 6760{ 6761 6762 ; 6763 return 0; 6764} 6765_ACEOF 6766if ac_fn_c_try_link "$LINENO" 6767then : 6768 eval $cacheid=yes 6769else case e in #( 6770 e) eval $cacheid=no ;; 6771esac 6772fi 6773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6774 conftest$ac_exeext conftest.$ac_ext ;; 6775esac 6776fi 6777 6778 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780 6781 eval supported=\$$cacheid 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6783printf "%s\n" "$supported" >&6; } 6784 if test "$supported" = "yes" ; then 6785 BASE_CFLAGS="$BASE_CFLAGS -fd" 6786 found="yes" 6787 fi 6788 fi 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804xorg_testset_save_CFLAGS="$CFLAGS" 6805 6806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6811then : 6812 printf %s "(cached) " >&6 6813else case e in #( 6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO" 6819then : 6820 xorg_cv_cc_flag_unknown_warning_option=yes 6821else case e in #( 6822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6823esac 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6826esac 6827fi 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6831 CFLAGS="$xorg_testset_save_CFLAGS" 6832fi 6833 6834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6837 fi 6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6842then : 6843 printf %s "(cached) " >&6 6844else case e in #( 6845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847int i; 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO" 6850then : 6851 xorg_cv_cc_flag_unused_command_line_argument=yes 6852else case e in #( 6853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6854esac 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6857esac 6858fi 6859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6862 CFLAGS="$xorg_testset_save_CFLAGS" 6863fi 6864 6865found="no" 6866 6867 if test $found = "no" ; then 6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 fi 6871 6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6874 fi 6875 6876 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6877 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6879printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6880 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6881 if eval test \${$cacheid+y} 6882then : 6883 printf %s "(cached) " >&6 6884else case e in #( 6885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886/* end confdefs.h. */ 6887int i; 6888int 6889main (void) 6890{ 6891 6892 ; 6893 return 0; 6894} 6895_ACEOF 6896if ac_fn_c_try_link "$LINENO" 6897then : 6898 eval $cacheid=yes 6899else case e in #( 6900 e) eval $cacheid=no ;; 6901esac 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6904 conftest$ac_exeext conftest.$ac_ext ;; 6905esac 6906fi 6907 6908 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910 6911 eval supported=\$$cacheid 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6913printf "%s\n" "$supported" >&6; } 6914 if test "$supported" = "yes" ; then 6915 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6916 found="yes" 6917 fi 6918 fi 6919 6920 6921 6922 6923 6924# This chunk adds additional warnings that could catch undesired effects. 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938xorg_testset_save_CFLAGS="$CFLAGS" 6939 6940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6945then : 6946 printf %s "(cached) " >&6 6947else case e in #( 6948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6949/* end confdefs.h. */ 6950int i; 6951_ACEOF 6952if ac_fn_c_try_compile "$LINENO" 6953then : 6954 xorg_cv_cc_flag_unknown_warning_option=yes 6955else case e in #( 6956 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6957esac 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6960esac 6961fi 6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6965 CFLAGS="$xorg_testset_save_CFLAGS" 6966fi 6967 6968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6971 fi 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6976then : 6977 printf %s "(cached) " >&6 6978else case e in #( 6979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6980/* end confdefs.h. */ 6981int i; 6982_ACEOF 6983if ac_fn_c_try_compile "$LINENO" 6984then : 6985 xorg_cv_cc_flag_unused_command_line_argument=yes 6986else case e in #( 6987 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6988esac 6989fi 6990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6991esac 6992fi 6993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6996 CFLAGS="$xorg_testset_save_CFLAGS" 6997fi 6998 6999found="no" 7000 7001 if test $found = "no" ; then 7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 fi 7005 7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7008 fi 7009 7010 CFLAGS="$CFLAGS -Wunused" 7011 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7013printf %s "checking if $CC supports -Wunused... " >&6; } 7014 cacheid=xorg_cv_cc_flag__Wunused 7015 if eval test \${$cacheid+y} 7016then : 7017 printf %s "(cached) " >&6 7018else case e in #( 7019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022int 7023main (void) 7024{ 7025 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030if ac_fn_c_try_link "$LINENO" 7031then : 7032 eval $cacheid=yes 7033else case e in #( 7034 e) eval $cacheid=no ;; 7035esac 7036fi 7037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7038 conftest$ac_exeext conftest.$ac_ext ;; 7039esac 7040fi 7041 7042 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044 7045 eval supported=\$$cacheid 7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7047printf "%s\n" "$supported" >&6; } 7048 if test "$supported" = "yes" ; then 7049 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7050 found="yes" 7051 fi 7052 fi 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068xorg_testset_save_CFLAGS="$CFLAGS" 7069 7070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7075then : 7076 printf %s "(cached) " >&6 7077else case e in #( 7078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080int i; 7081_ACEOF 7082if ac_fn_c_try_compile "$LINENO" 7083then : 7084 xorg_cv_cc_flag_unknown_warning_option=yes 7085else case e in #( 7086 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7087esac 7088fi 7089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7090esac 7091fi 7092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7095 CFLAGS="$xorg_testset_save_CFLAGS" 7096fi 7097 7098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7101 fi 7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7105if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7106then : 7107 printf %s "(cached) " >&6 7108else case e in #( 7109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110/* end confdefs.h. */ 7111int i; 7112_ACEOF 7113if ac_fn_c_try_compile "$LINENO" 7114then : 7115 xorg_cv_cc_flag_unused_command_line_argument=yes 7116else case e in #( 7117 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7118esac 7119fi 7120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7121esac 7122fi 7123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7126 CFLAGS="$xorg_testset_save_CFLAGS" 7127fi 7128 7129found="no" 7130 7131 if test $found = "no" ; then 7132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7134 fi 7135 7136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7138 fi 7139 7140 CFLAGS="$CFLAGS -Wuninitialized" 7141 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7143printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7144 cacheid=xorg_cv_cc_flag__Wuninitialized 7145 if eval test \${$cacheid+y} 7146then : 7147 printf %s "(cached) " >&6 7148else case e in #( 7149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151int i; 7152int 7153main (void) 7154{ 7155 7156 ; 7157 return 0; 7158} 7159_ACEOF 7160if ac_fn_c_try_link "$LINENO" 7161then : 7162 eval $cacheid=yes 7163else case e in #( 7164 e) eval $cacheid=no ;; 7165esac 7166fi 7167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7168 conftest$ac_exeext conftest.$ac_ext ;; 7169esac 7170fi 7171 7172 7173 CFLAGS="$xorg_testset_save_CFLAGS" 7174 7175 eval supported=\$$cacheid 7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7177printf "%s\n" "$supported" >&6; } 7178 if test "$supported" = "yes" ; then 7179 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7180 found="yes" 7181 fi 7182 fi 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198xorg_testset_save_CFLAGS="$CFLAGS" 7199 7200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7204if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7205then : 7206 printf %s "(cached) " >&6 7207else case e in #( 7208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210int i; 7211_ACEOF 7212if ac_fn_c_try_compile "$LINENO" 7213then : 7214 xorg_cv_cc_flag_unknown_warning_option=yes 7215else case e in #( 7216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7217esac 7218fi 7219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7220esac 7221fi 7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226fi 7227 7228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7231 fi 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7235if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7236then : 7237 printf %s "(cached) " >&6 7238else case e in #( 7239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240/* end confdefs.h. */ 7241int i; 7242_ACEOF 7243if ac_fn_c_try_compile "$LINENO" 7244then : 7245 xorg_cv_cc_flag_unused_command_line_argument=yes 7246else case e in #( 7247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7248esac 7249fi 7250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7251esac 7252fi 7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7256 CFLAGS="$xorg_testset_save_CFLAGS" 7257fi 7258 7259found="no" 7260 7261 if test $found = "no" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 7266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 fi 7269 7270 CFLAGS="$CFLAGS -Wshadow" 7271 7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7273printf %s "checking if $CC supports -Wshadow... " >&6; } 7274 cacheid=xorg_cv_cc_flag__Wshadow 7275 if eval test \${$cacheid+y} 7276then : 7277 printf %s "(cached) " >&6 7278else case e in #( 7279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281int i; 7282int 7283main (void) 7284{ 7285 7286 ; 7287 return 0; 7288} 7289_ACEOF 7290if ac_fn_c_try_link "$LINENO" 7291then : 7292 eval $cacheid=yes 7293else case e in #( 7294 e) eval $cacheid=no ;; 7295esac 7296fi 7297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7298 conftest$ac_exeext conftest.$ac_ext ;; 7299esac 7300fi 7301 7302 7303 CFLAGS="$xorg_testset_save_CFLAGS" 7304 7305 eval supported=\$$cacheid 7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7307printf "%s\n" "$supported" >&6; } 7308 if test "$supported" = "yes" ; then 7309 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7310 found="yes" 7311 fi 7312 fi 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328xorg_testset_save_CFLAGS="$CFLAGS" 7329 7330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7334if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7335then : 7336 printf %s "(cached) " >&6 7337else case e in #( 7338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340int i; 7341_ACEOF 7342if ac_fn_c_try_compile "$LINENO" 7343then : 7344 xorg_cv_cc_flag_unknown_warning_option=yes 7345else case e in #( 7346 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7347esac 7348fi 7349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7350esac 7351fi 7352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356fi 7357 7358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7365if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7366then : 7367 printf %s "(cached) " >&6 7368else case e in #( 7369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370/* end confdefs.h. */ 7371int i; 7372_ACEOF 7373if ac_fn_c_try_compile "$LINENO" 7374then : 7375 xorg_cv_cc_flag_unused_command_line_argument=yes 7376else case e in #( 7377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7378esac 7379fi 7380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7381esac 7382fi 7383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7386 CFLAGS="$xorg_testset_save_CFLAGS" 7387fi 7388 7389found="no" 7390 7391 if test $found = "no" ; then 7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7394 fi 7395 7396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7398 fi 7399 7400 CFLAGS="$CFLAGS -Wmissing-noreturn" 7401 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7403printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7404 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7405 if eval test \${$cacheid+y} 7406then : 7407 printf %s "(cached) " >&6 7408else case e in #( 7409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412int 7413main (void) 7414{ 7415 7416 ; 7417 return 0; 7418} 7419_ACEOF 7420if ac_fn_c_try_link "$LINENO" 7421then : 7422 eval $cacheid=yes 7423else case e in #( 7424 e) eval $cacheid=no ;; 7425esac 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7428 conftest$ac_exeext conftest.$ac_ext ;; 7429esac 7430fi 7431 7432 7433 CFLAGS="$xorg_testset_save_CFLAGS" 7434 7435 eval supported=\$$cacheid 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7437printf "%s\n" "$supported" >&6; } 7438 if test "$supported" = "yes" ; then 7439 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7440 found="yes" 7441 fi 7442 fi 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458xorg_testset_save_CFLAGS="$CFLAGS" 7459 7460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7464if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7465then : 7466 printf %s "(cached) " >&6 7467else case e in #( 7468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470int i; 7471_ACEOF 7472if ac_fn_c_try_compile "$LINENO" 7473then : 7474 xorg_cv_cc_flag_unknown_warning_option=yes 7475else case e in #( 7476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7477esac 7478fi 7479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7480esac 7481fi 7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486fi 7487 7488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7491 fi 7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7495if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7496then : 7497 printf %s "(cached) " >&6 7498else case e in #( 7499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7500/* end confdefs.h. */ 7501int i; 7502_ACEOF 7503if ac_fn_c_try_compile "$LINENO" 7504then : 7505 xorg_cv_cc_flag_unused_command_line_argument=yes 7506else case e in #( 7507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7508esac 7509fi 7510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7511esac 7512fi 7513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7517fi 7518 7519found="no" 7520 7521 if test $found = "no" ; then 7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 fi 7525 7526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 fi 7529 7530 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7531 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7533printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7534 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7535 if eval test \${$cacheid+y} 7536then : 7537 printf %s "(cached) " >&6 7538else case e in #( 7539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541int i; 7542int 7543main (void) 7544{ 7545 7546 ; 7547 return 0; 7548} 7549_ACEOF 7550if ac_fn_c_try_link "$LINENO" 7551then : 7552 eval $cacheid=yes 7553else case e in #( 7554 e) eval $cacheid=no ;; 7555esac 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7558 conftest$ac_exeext conftest.$ac_ext ;; 7559esac 7560fi 7561 7562 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564 7565 eval supported=\$$cacheid 7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7567printf "%s\n" "$supported" >&6; } 7568 if test "$supported" = "yes" ; then 7569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7570 found="yes" 7571 fi 7572 fi 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588xorg_testset_save_CFLAGS="$CFLAGS" 7589 7590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7595then : 7596 printf %s "(cached) " >&6 7597else case e in #( 7598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO" 7603then : 7604 xorg_cv_cc_flag_unknown_warning_option=yes 7605else case e in #( 7606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7607esac 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7610esac 7611fi 7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616fi 7617 7618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 fi 7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7626then : 7627 printf %s "(cached) " >&6 7628else case e in #( 7629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631int i; 7632_ACEOF 7633if ac_fn_c_try_compile "$LINENO" 7634then : 7635 xorg_cv_cc_flag_unused_command_line_argument=yes 7636else case e in #( 7637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7638esac 7639fi 7640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7641esac 7642fi 7643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647fi 7648 7649found="no" 7650 7651 if test $found = "no" ; then 7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 fi 7655 7656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 fi 7659 7660 CFLAGS="$CFLAGS -Wredundant-decls" 7661 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7663printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7664 cacheid=xorg_cv_cc_flag__Wredundant_decls 7665 if eval test \${$cacheid+y} 7666then : 7667 printf %s "(cached) " >&6 7668else case e in #( 7669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671int i; 7672int 7673main (void) 7674{ 7675 7676 ; 7677 return 0; 7678} 7679_ACEOF 7680if ac_fn_c_try_link "$LINENO" 7681then : 7682 eval $cacheid=yes 7683else case e in #( 7684 e) eval $cacheid=no ;; 7685esac 7686fi 7687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7688 conftest$ac_exeext conftest.$ac_ext ;; 7689esac 7690fi 7691 7692 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694 7695 eval supported=\$$cacheid 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7697printf "%s\n" "$supported" >&6; } 7698 if test "$supported" = "yes" ; then 7699 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7700 found="yes" 7701 fi 7702 fi 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718xorg_testset_save_CFLAGS="$CFLAGS" 7719 7720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7725then : 7726 printf %s "(cached) " >&6 7727else case e in #( 7728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730int i; 7731_ACEOF 7732if ac_fn_c_try_compile "$LINENO" 7733then : 7734 xorg_cv_cc_flag_unknown_warning_option=yes 7735else case e in #( 7736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7737esac 7738fi 7739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7740esac 7741fi 7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746fi 7747 7748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7751 fi 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7755if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7756then : 7757 printf %s "(cached) " >&6 7758else case e in #( 7759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761int i; 7762_ACEOF 7763if ac_fn_c_try_compile "$LINENO" 7764then : 7765 xorg_cv_cc_flag_unused_command_line_argument=yes 7766else case e in #( 7767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7768esac 7769fi 7770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7771esac 7772fi 7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777fi 7778 7779found="no" 7780 7781 if test $found = "no" ; then 7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 fi 7789 7790 CFLAGS="$CFLAGS -Wlogical-op" 7791 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7793printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7794 cacheid=xorg_cv_cc_flag__Wlogical_op 7795 if eval test \${$cacheid+y} 7796then : 7797 printf %s "(cached) " >&6 7798else case e in #( 7799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801int i; 7802int 7803main (void) 7804{ 7805 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810if ac_fn_c_try_link "$LINENO" 7811then : 7812 eval $cacheid=yes 7813else case e in #( 7814 e) eval $cacheid=no ;; 7815esac 7816fi 7817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7818 conftest$ac_exeext conftest.$ac_ext ;; 7819esac 7820fi 7821 7822 7823 CFLAGS="$xorg_testset_save_CFLAGS" 7824 7825 eval supported=\$$cacheid 7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7827printf "%s\n" "$supported" >&6; } 7828 if test "$supported" = "yes" ; then 7829 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7830 found="yes" 7831 fi 7832 fi 7833 7834 7835 7836# These are currently disabled because they are noisy. They will be enabled 7837# in the future once the codebase is sufficiently modernized to silence 7838# them. For now, I don't want them to drown out the other warnings. 7839# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7840# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7841# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7842 7843# Turn some warnings into errors, so we don't accidentally get successful builds 7844# when there are problems that should be fixed. 7845 7846if test "x$SELECTIVE_WERROR" = "xyes" ; then 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860xorg_testset_save_CFLAGS="$CFLAGS" 7861 7862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7867then : 7868 printf %s "(cached) " >&6 7869else case e in #( 7870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7871/* end confdefs.h. */ 7872int i; 7873_ACEOF 7874if ac_fn_c_try_compile "$LINENO" 7875then : 7876 xorg_cv_cc_flag_unknown_warning_option=yes 7877else case e in #( 7878 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7879esac 7880fi 7881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7882esac 7883fi 7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888fi 7889 7890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7898then : 7899 printf %s "(cached) " >&6 7900else case e in #( 7901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903int i; 7904_ACEOF 7905if ac_fn_c_try_compile "$LINENO" 7906then : 7907 xorg_cv_cc_flag_unused_command_line_argument=yes 7908else case e in #( 7909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7910esac 7911fi 7912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7913esac 7914fi 7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919fi 7920 7921found="no" 7922 7923 if test $found = "no" ; then 7924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7926 fi 7927 7928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7930 fi 7931 7932 CFLAGS="$CFLAGS -Werror=implicit" 7933 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7935printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7936 cacheid=xorg_cv_cc_flag__Werror_implicit 7937 if eval test \${$cacheid+y} 7938then : 7939 printf %s "(cached) " >&6 7940else case e in #( 7941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943int i; 7944int 7945main (void) 7946{ 7947 7948 ; 7949 return 0; 7950} 7951_ACEOF 7952if ac_fn_c_try_link "$LINENO" 7953then : 7954 eval $cacheid=yes 7955else case e in #( 7956 e) eval $cacheid=no ;; 7957esac 7958fi 7959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7960 conftest$ac_exeext conftest.$ac_ext ;; 7961esac 7962fi 7963 7964 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966 7967 eval supported=\$$cacheid 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7969printf "%s\n" "$supported" >&6; } 7970 if test "$supported" = "yes" ; then 7971 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7972 found="yes" 7973 fi 7974 fi 7975 7976 if test $found = "no" ; then 7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7979 fi 7980 7981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7983 fi 7984 7985 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7986 7987 { 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 7988printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7989 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7990 if eval test \${$cacheid+y} 7991then : 7992 printf %s "(cached) " >&6 7993else case e in #( 7994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996int i; 7997int 7998main (void) 7999{ 8000 8001 ; 8002 return 0; 8003} 8004_ACEOF 8005if ac_fn_c_try_link "$LINENO" 8006then : 8007 eval $cacheid=yes 8008else case e in #( 8009 e) eval $cacheid=no ;; 8010esac 8011fi 8012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8013 conftest$ac_exeext conftest.$ac_ext ;; 8014esac 8015fi 8016 8017 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019 8020 eval supported=\$$cacheid 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8022printf "%s\n" "$supported" >&6; } 8023 if test "$supported" = "yes" ; then 8024 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8025 found="yes" 8026 fi 8027 fi 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043xorg_testset_save_CFLAGS="$CFLAGS" 8044 8045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8050then : 8051 printf %s "(cached) " >&6 8052else case e in #( 8053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055int i; 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO" 8058then : 8059 xorg_cv_cc_flag_unknown_warning_option=yes 8060else case e in #( 8061 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8062esac 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8065esac 8066fi 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071fi 8072 8073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8076 fi 8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8081then : 8082 printf %s "(cached) " >&6 8083else case e in #( 8084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086int i; 8087_ACEOF 8088if ac_fn_c_try_compile "$LINENO" 8089then : 8090 xorg_cv_cc_flag_unused_command_line_argument=yes 8091else case e in #( 8092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8093esac 8094fi 8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8096esac 8097fi 8098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8101 CFLAGS="$xorg_testset_save_CFLAGS" 8102fi 8103 8104found="no" 8105 8106 if test $found = "no" ; then 8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8109 fi 8110 8111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8113 fi 8114 8115 CFLAGS="$CFLAGS -Werror=nonnull" 8116 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8118printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8119 cacheid=xorg_cv_cc_flag__Werror_nonnull 8120 if eval test \${$cacheid+y} 8121then : 8122 printf %s "(cached) " >&6 8123else case e in #( 8124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127int 8128main (void) 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO" 8136then : 8137 eval $cacheid=yes 8138else case e in #( 8139 e) eval $cacheid=no ;; 8140esac 8141fi 8142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8143 conftest$ac_exeext conftest.$ac_ext ;; 8144esac 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 -Werror=nonnull" 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 case e in #( 8183 e) 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 case e in #( 8191 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8192esac 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8195esac 8196fi 8197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8200 CFLAGS="$xorg_testset_save_CFLAGS" 8201fi 8202 8203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8206 fi 8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8210if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8211then : 8212 printf %s "(cached) " >&6 8213else case e in #( 8214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216int i; 8217_ACEOF 8218if ac_fn_c_try_compile "$LINENO" 8219then : 8220 xorg_cv_cc_flag_unused_command_line_argument=yes 8221else case e in #( 8222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8223esac 8224fi 8225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8226esac 8227fi 8228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8231 CFLAGS="$xorg_testset_save_CFLAGS" 8232fi 8233 8234found="no" 8235 8236 if test $found = "no" ; then 8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8239 fi 8240 8241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8243 fi 8244 8245 CFLAGS="$CFLAGS -Werror=init-self" 8246 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8248printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8249 cacheid=xorg_cv_cc_flag__Werror_init_self 8250 if eval test \${$cacheid+y} 8251then : 8252 printf %s "(cached) " >&6 8253else case e in #( 8254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257int 8258main (void) 8259{ 8260 8261 ; 8262 return 0; 8263} 8264_ACEOF 8265if ac_fn_c_try_link "$LINENO" 8266then : 8267 eval $cacheid=yes 8268else case e in #( 8269 e) eval $cacheid=no ;; 8270esac 8271fi 8272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8273 conftest$ac_exeext conftest.$ac_ext ;; 8274esac 8275fi 8276 8277 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279 8280 eval supported=\$$cacheid 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8282printf "%s\n" "$supported" >&6; } 8283 if test "$supported" = "yes" ; then 8284 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8285 found="yes" 8286 fi 8287 fi 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303xorg_testset_save_CFLAGS="$CFLAGS" 8304 8305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8309if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8310then : 8311 printf %s "(cached) " >&6 8312else case e in #( 8313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316_ACEOF 8317if ac_fn_c_try_compile "$LINENO" 8318then : 8319 xorg_cv_cc_flag_unknown_warning_option=yes 8320else case e in #( 8321 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8322esac 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8325esac 8326fi 8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331fi 8332 8333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8340if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8341then : 8342 printf %s "(cached) " >&6 8343else case e in #( 8344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346int i; 8347_ACEOF 8348if ac_fn_c_try_compile "$LINENO" 8349then : 8350 xorg_cv_cc_flag_unused_command_line_argument=yes 8351else case e in #( 8352 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8353esac 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8356esac 8357fi 8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362fi 8363 8364found="no" 8365 8366 if test $found = "no" ; then 8367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 fi 8370 8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8373 fi 8374 8375 CFLAGS="$CFLAGS -Werror=main" 8376 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8378printf %s "checking if $CC supports -Werror=main... " >&6; } 8379 cacheid=xorg_cv_cc_flag__Werror_main 8380 if eval test \${$cacheid+y} 8381then : 8382 printf %s "(cached) " >&6 8383else case e in #( 8384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387int 8388main (void) 8389{ 8390 8391 ; 8392 return 0; 8393} 8394_ACEOF 8395if ac_fn_c_try_link "$LINENO" 8396then : 8397 eval $cacheid=yes 8398else case e in #( 8399 e) eval $cacheid=no ;; 8400esac 8401fi 8402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8403 conftest$ac_exeext conftest.$ac_ext ;; 8404esac 8405fi 8406 8407 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409 8410 eval supported=\$$cacheid 8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8412printf "%s\n" "$supported" >&6; } 8413 if test "$supported" = "yes" ; then 8414 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8415 found="yes" 8416 fi 8417 fi 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433xorg_testset_save_CFLAGS="$CFLAGS" 8434 8435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8438printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8439if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8440then : 8441 printf %s "(cached) " >&6 8442else case e in #( 8443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444/* end confdefs.h. */ 8445int i; 8446_ACEOF 8447if ac_fn_c_try_compile "$LINENO" 8448then : 8449 xorg_cv_cc_flag_unknown_warning_option=yes 8450else case e in #( 8451 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8452esac 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8455esac 8456fi 8457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461fi 8462 8463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 fi 8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8470if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8471then : 8472 printf %s "(cached) " >&6 8473else case e in #( 8474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8475/* end confdefs.h. */ 8476int i; 8477_ACEOF 8478if ac_fn_c_try_compile "$LINENO" 8479then : 8480 xorg_cv_cc_flag_unused_command_line_argument=yes 8481else case e in #( 8482 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8483esac 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8486esac 8487fi 8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8491 CFLAGS="$xorg_testset_save_CFLAGS" 8492fi 8493 8494found="no" 8495 8496 if test $found = "no" ; then 8497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8499 fi 8500 8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8503 fi 8504 8505 CFLAGS="$CFLAGS -Werror=missing-braces" 8506 8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8508printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8509 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8510 if eval test \${$cacheid+y} 8511then : 8512 printf %s "(cached) " >&6 8513else case e in #( 8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517int 8518main (void) 8519{ 8520 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525if ac_fn_c_try_link "$LINENO" 8526then : 8527 eval $cacheid=yes 8528else case e in #( 8529 e) eval $cacheid=no ;; 8530esac 8531fi 8532rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8533 conftest$ac_exeext conftest.$ac_ext ;; 8534esac 8535fi 8536 8537 8538 CFLAGS="$xorg_testset_save_CFLAGS" 8539 8540 eval supported=\$$cacheid 8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8542printf "%s\n" "$supported" >&6; } 8543 if test "$supported" = "yes" ; then 8544 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8545 found="yes" 8546 fi 8547 fi 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563xorg_testset_save_CFLAGS="$CFLAGS" 8564 8565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8569if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8570then : 8571 printf %s "(cached) " >&6 8572else case e in #( 8573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8574/* end confdefs.h. */ 8575int i; 8576_ACEOF 8577if ac_fn_c_try_compile "$LINENO" 8578then : 8579 xorg_cv_cc_flag_unknown_warning_option=yes 8580else case e in #( 8581 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8582esac 8583fi 8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8585esac 8586fi 8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8600if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8601then : 8602 printf %s "(cached) " >&6 8603else case e in #( 8604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO" 8609then : 8610 xorg_cv_cc_flag_unused_command_line_argument=yes 8611else case e in #( 8612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8613esac 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8616esac 8617fi 8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624found="no" 8625 8626 if test $found = "no" ; then 8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8629 fi 8630 8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8633 fi 8634 8635 CFLAGS="$CFLAGS -Werror=sequence-point" 8636 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8638printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8639 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8640 if eval test \${$cacheid+y} 8641then : 8642 printf %s "(cached) " >&6 8643else case e in #( 8644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646int i; 8647int 8648main (void) 8649{ 8650 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655if ac_fn_c_try_link "$LINENO" 8656then : 8657 eval $cacheid=yes 8658else case e in #( 8659 e) eval $cacheid=no ;; 8660esac 8661fi 8662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8663 conftest$ac_exeext conftest.$ac_ext ;; 8664esac 8665fi 8666 8667 8668 CFLAGS="$xorg_testset_save_CFLAGS" 8669 8670 eval supported=\$$cacheid 8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8672printf "%s\n" "$supported" >&6; } 8673 if test "$supported" = "yes" ; then 8674 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8675 found="yes" 8676 fi 8677 fi 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693xorg_testset_save_CFLAGS="$CFLAGS" 8694 8695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8700then : 8701 printf %s "(cached) " >&6 8702else case e in #( 8703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705int i; 8706_ACEOF 8707if ac_fn_c_try_compile "$LINENO" 8708then : 8709 xorg_cv_cc_flag_unknown_warning_option=yes 8710else case e in #( 8711 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8712esac 8713fi 8714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8715esac 8716fi 8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721fi 8722 8723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8731then : 8732 printf %s "(cached) " >&6 8733else case e in #( 8734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736int i; 8737_ACEOF 8738if ac_fn_c_try_compile "$LINENO" 8739then : 8740 xorg_cv_cc_flag_unused_command_line_argument=yes 8741else case e in #( 8742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8743esac 8744fi 8745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8746esac 8747fi 8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752fi 8753 8754found="no" 8755 8756 if test $found = "no" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763 fi 8764 8765 CFLAGS="$CFLAGS -Werror=return-type" 8766 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8768printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8769 cacheid=xorg_cv_cc_flag__Werror_return_type 8770 if eval test \${$cacheid+y} 8771then : 8772 printf %s "(cached) " >&6 8773else case e in #( 8774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main (void) 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO" 8786then : 8787 eval $cacheid=yes 8788else case e in #( 8789 e) eval $cacheid=no ;; 8790esac 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8793 conftest$ac_exeext conftest.$ac_ext ;; 8794esac 8795fi 8796 8797 8798 CFLAGS="$xorg_testset_save_CFLAGS" 8799 8800 eval supported=\$$cacheid 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8802printf "%s\n" "$supported" >&6; } 8803 if test "$supported" = "yes" ; then 8804 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8805 found="yes" 8806 fi 8807 fi 8808 8809 if test $found = "no" ; then 8810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8812 fi 8813 8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8816 fi 8817 8818 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8819 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8821printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8822 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8823 if eval test \${$cacheid+y} 8824then : 8825 printf %s "(cached) " >&6 8826else case e in #( 8827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829int i; 8830int 8831main (void) 8832{ 8833 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838if ac_fn_c_try_link "$LINENO" 8839then : 8840 eval $cacheid=yes 8841else case e in #( 8842 e) eval $cacheid=no ;; 8843esac 8844fi 8845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8846 conftest$ac_exeext conftest.$ac_ext ;; 8847esac 8848fi 8849 8850 8851 CFLAGS="$xorg_testset_save_CFLAGS" 8852 8853 eval supported=\$$cacheid 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8855printf "%s\n" "$supported" >&6; } 8856 if test "$supported" = "yes" ; then 8857 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8858 found="yes" 8859 fi 8860 fi 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876xorg_testset_save_CFLAGS="$CFLAGS" 8877 8878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8883then : 8884 printf %s "(cached) " >&6 8885else case e in #( 8886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8887/* end confdefs.h. */ 8888int i; 8889_ACEOF 8890if ac_fn_c_try_compile "$LINENO" 8891then : 8892 xorg_cv_cc_flag_unknown_warning_option=yes 8893else case e in #( 8894 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8895esac 8896fi 8897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8898esac 8899fi 8900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8903 CFLAGS="$xorg_testset_save_CFLAGS" 8904fi 8905 8906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 fi 8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8913if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8914then : 8915 printf %s "(cached) " >&6 8916else case e in #( 8917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8918/* end confdefs.h. */ 8919int i; 8920_ACEOF 8921if ac_fn_c_try_compile "$LINENO" 8922then : 8923 xorg_cv_cc_flag_unused_command_line_argument=yes 8924else case e in #( 8925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8926esac 8927fi 8928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8929esac 8930fi 8931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935fi 8936 8937found="no" 8938 8939 if test $found = "no" ; then 8940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 fi 8943 8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 fi 8947 8948 CFLAGS="$CFLAGS -Werror=trigraphs" 8949 8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8951printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8952 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8953 if eval test \${$cacheid+y} 8954then : 8955 printf %s "(cached) " >&6 8956else case e in #( 8957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959int i; 8960int 8961main (void) 8962{ 8963 8964 ; 8965 return 0; 8966} 8967_ACEOF 8968if ac_fn_c_try_link "$LINENO" 8969then : 8970 eval $cacheid=yes 8971else case e in #( 8972 e) eval $cacheid=no ;; 8973esac 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8976 conftest$ac_exeext conftest.$ac_ext ;; 8977esac 8978fi 8979 8980 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982 8983 eval supported=\$$cacheid 8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8985printf "%s\n" "$supported" >&6; } 8986 if test "$supported" = "yes" ; then 8987 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8988 found="yes" 8989 fi 8990 fi 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006xorg_testset_save_CFLAGS="$CFLAGS" 9007 9008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9013then : 9014 printf %s "(cached) " >&6 9015else case e in #( 9016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017/* end confdefs.h. */ 9018int i; 9019_ACEOF 9020if ac_fn_c_try_compile "$LINENO" 9021then : 9022 xorg_cv_cc_flag_unknown_warning_option=yes 9023else case e in #( 9024 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9025esac 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9028esac 9029fi 9030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9033 CFLAGS="$xorg_testset_save_CFLAGS" 9034fi 9035 9036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9039 fi 9040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9043if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9044then : 9045 printf %s "(cached) " >&6 9046else case e in #( 9047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int i; 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO" 9052then : 9053 xorg_cv_cc_flag_unused_command_line_argument=yes 9054else case e in #( 9055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9056esac 9057fi 9058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9059esac 9060fi 9061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9064 CFLAGS="$xorg_testset_save_CFLAGS" 9065fi 9066 9067found="no" 9068 9069 if test $found = "no" ; then 9070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072 fi 9073 9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9076 fi 9077 9078 CFLAGS="$CFLAGS -Werror=array-bounds" 9079 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9081printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 9082 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9083 if eval test \${$cacheid+y} 9084then : 9085 printf %s "(cached) " >&6 9086else case e in #( 9087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090int 9091main (void) 9092{ 9093 9094 ; 9095 return 0; 9096} 9097_ACEOF 9098if ac_fn_c_try_link "$LINENO" 9099then : 9100 eval $cacheid=yes 9101else case e in #( 9102 e) eval $cacheid=no ;; 9103esac 9104fi 9105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9106 conftest$ac_exeext conftest.$ac_ext ;; 9107esac 9108fi 9109 9110 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112 9113 eval supported=\$$cacheid 9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9115printf "%s\n" "$supported" >&6; } 9116 if test "$supported" = "yes" ; then 9117 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9118 found="yes" 9119 fi 9120 fi 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136xorg_testset_save_CFLAGS="$CFLAGS" 9137 9138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9142if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9143then : 9144 printf %s "(cached) " >&6 9145else case e in #( 9146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147/* end confdefs.h. */ 9148int i; 9149_ACEOF 9150if ac_fn_c_try_compile "$LINENO" 9151then : 9152 xorg_cv_cc_flag_unknown_warning_option=yes 9153else case e in #( 9154 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9155esac 9156fi 9157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9158esac 9159fi 9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164fi 9165 9166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9169 fi 9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9173if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9174then : 9175 printf %s "(cached) " >&6 9176else case e in #( 9177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178/* end confdefs.h. */ 9179int i; 9180_ACEOF 9181if ac_fn_c_try_compile "$LINENO" 9182then : 9183 xorg_cv_cc_flag_unused_command_line_argument=yes 9184else case e in #( 9185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9186esac 9187fi 9188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9189esac 9190fi 9191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195fi 9196 9197found="no" 9198 9199 if test $found = "no" ; then 9200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9202 fi 9203 9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9206 fi 9207 9208 CFLAGS="$CFLAGS -Werror=write-strings" 9209 9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9211printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9212 cacheid=xorg_cv_cc_flag__Werror_write_strings 9213 if eval test \${$cacheid+y} 9214then : 9215 printf %s "(cached) " >&6 9216else case e in #( 9217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220int 9221main (void) 9222{ 9223 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228if ac_fn_c_try_link "$LINENO" 9229then : 9230 eval $cacheid=yes 9231else case e in #( 9232 e) eval $cacheid=no ;; 9233esac 9234fi 9235rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9236 conftest$ac_exeext conftest.$ac_ext ;; 9237esac 9238fi 9239 9240 9241 CFLAGS="$xorg_testset_save_CFLAGS" 9242 9243 eval supported=\$$cacheid 9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9245printf "%s\n" "$supported" >&6; } 9246 if test "$supported" = "yes" ; then 9247 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9248 found="yes" 9249 fi 9250 fi 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266xorg_testset_save_CFLAGS="$CFLAGS" 9267 9268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9272if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9273then : 9274 printf %s "(cached) " >&6 9275else case e in #( 9276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9277/* end confdefs.h. */ 9278int i; 9279_ACEOF 9280if ac_fn_c_try_compile "$LINENO" 9281then : 9282 xorg_cv_cc_flag_unknown_warning_option=yes 9283else case e in #( 9284 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9285esac 9286fi 9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9288esac 9289fi 9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294fi 9295 9296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9299 fi 9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9303if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9304then : 9305 printf %s "(cached) " >&6 9306else case e in #( 9307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309int i; 9310_ACEOF 9311if ac_fn_c_try_compile "$LINENO" 9312then : 9313 xorg_cv_cc_flag_unused_command_line_argument=yes 9314else case e in #( 9315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9316esac 9317fi 9318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9319esac 9320fi 9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9324 CFLAGS="$xorg_testset_save_CFLAGS" 9325fi 9326 9327found="no" 9328 9329 if test $found = "no" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9336 fi 9337 9338 CFLAGS="$CFLAGS -Werror=address" 9339 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9341printf %s "checking if $CC supports -Werror=address... " >&6; } 9342 cacheid=xorg_cv_cc_flag__Werror_address 9343 if eval test \${$cacheid+y} 9344then : 9345 printf %s "(cached) " >&6 9346else case e in #( 9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350int 9351main (void) 9352{ 9353 9354 ; 9355 return 0; 9356} 9357_ACEOF 9358if ac_fn_c_try_link "$LINENO" 9359then : 9360 eval $cacheid=yes 9361else case e in #( 9362 e) eval $cacheid=no ;; 9363esac 9364fi 9365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9366 conftest$ac_exeext conftest.$ac_ext ;; 9367esac 9368fi 9369 9370 9371 CFLAGS="$xorg_testset_save_CFLAGS" 9372 9373 eval supported=\$$cacheid 9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9375printf "%s\n" "$supported" >&6; } 9376 if test "$supported" = "yes" ; then 9377 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9378 found="yes" 9379 fi 9380 fi 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396xorg_testset_save_CFLAGS="$CFLAGS" 9397 9398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9402if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9403then : 9404 printf %s "(cached) " >&6 9405else case e in #( 9406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407/* end confdefs.h. */ 9408int i; 9409_ACEOF 9410if ac_fn_c_try_compile "$LINENO" 9411then : 9412 xorg_cv_cc_flag_unknown_warning_option=yes 9413else case e in #( 9414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9415esac 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9418esac 9419fi 9420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424fi 9425 9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 fi 9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9434then : 9435 printf %s "(cached) " >&6 9436else case e in #( 9437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439int i; 9440_ACEOF 9441if ac_fn_c_try_compile "$LINENO" 9442then : 9443 xorg_cv_cc_flag_unused_command_line_argument=yes 9444else case e in #( 9445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9446esac 9447fi 9448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9449esac 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9454 CFLAGS="$xorg_testset_save_CFLAGS" 9455fi 9456 9457found="no" 9458 9459 if test $found = "no" ; then 9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 fi 9463 9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9466 fi 9467 9468 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9469 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9471printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9472 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9473 if eval test \${$cacheid+y} 9474then : 9475 printf %s "(cached) " >&6 9476else case e in #( 9477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480int 9481main (void) 9482{ 9483 9484 ; 9485 return 0; 9486} 9487_ACEOF 9488if ac_fn_c_try_link "$LINENO" 9489then : 9490 eval $cacheid=yes 9491else case e in #( 9492 e) eval $cacheid=no ;; 9493esac 9494fi 9495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9496 conftest$ac_exeext conftest.$ac_ext ;; 9497esac 9498fi 9499 9500 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502 9503 eval supported=\$$cacheid 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9505printf "%s\n" "$supported" >&6; } 9506 if test "$supported" = "yes" ; then 9507 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9508 found="yes" 9509 fi 9510 fi 9511 9512 if test $found = "no" ; then 9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 fi 9516 9517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519 fi 9520 9521 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9522 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9524printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9525 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9526 if eval test \${$cacheid+y} 9527then : 9528 printf %s "(cached) " >&6 9529else case e in #( 9530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9531/* end confdefs.h. */ 9532int i; 9533int 9534main (void) 9535{ 9536 9537 ; 9538 return 0; 9539} 9540_ACEOF 9541if ac_fn_c_try_link "$LINENO" 9542then : 9543 eval $cacheid=yes 9544else case e in #( 9545 e) eval $cacheid=no ;; 9546esac 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9549 conftest$ac_exeext conftest.$ac_ext ;; 9550esac 9551fi 9552 9553 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 9556 eval supported=\$$cacheid 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558printf "%s\n" "$supported" >&6; } 9559 if test "$supported" = "yes" ; then 9560 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9561 found="yes" 9562 fi 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579xorg_testset_save_CFLAGS="$CFLAGS" 9580 9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9586then : 9587 printf %s "(cached) " >&6 9588else case e in #( 9589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592_ACEOF 9593if ac_fn_c_try_compile "$LINENO" 9594then : 9595 xorg_cv_cc_flag_unknown_warning_option=yes 9596else case e in #( 9597 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9598esac 9599fi 9600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9601esac 9602fi 9603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9606 CFLAGS="$xorg_testset_save_CFLAGS" 9607fi 9608 9609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9612 fi 9613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9617then : 9618 printf %s "(cached) " >&6 9619else case e in #( 9620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622int i; 9623_ACEOF 9624if ac_fn_c_try_compile "$LINENO" 9625then : 9626 xorg_cv_cc_flag_unused_command_line_argument=yes 9627else case e in #( 9628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9629esac 9630fi 9631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9632esac 9633fi 9634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9637 CFLAGS="$xorg_testset_save_CFLAGS" 9638fi 9639 9640found="no" 9641 9642 if test $found = "no" ; then 9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 fi 9646 9647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9649 fi 9650 9651 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9652 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9654printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9655 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9656 if eval test \${$cacheid+y} 9657then : 9658 printf %s "(cached) " >&6 9659else case e in #( 9660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663int 9664main (void) 9665{ 9666 9667 ; 9668 return 0; 9669} 9670_ACEOF 9671if ac_fn_c_try_link "$LINENO" 9672then : 9673 eval $cacheid=yes 9674else case e in #( 9675 e) eval $cacheid=no ;; 9676esac 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9679 conftest$ac_exeext conftest.$ac_ext ;; 9680esac 9681fi 9682 9683 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685 9686 eval supported=\$$cacheid 9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9688printf "%s\n" "$supported" >&6; } 9689 if test "$supported" = "yes" ; then 9690 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9691 found="yes" 9692 fi 9693 fi 9694 9695 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9696else 9697{ 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 9698printf "%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;} 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712xorg_testset_save_CFLAGS="$CFLAGS" 9713 9714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9719then : 9720 printf %s "(cached) " >&6 9721else case e in #( 9722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725_ACEOF 9726if ac_fn_c_try_compile "$LINENO" 9727then : 9728 xorg_cv_cc_flag_unknown_warning_option=yes 9729else case e in #( 9730 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9731esac 9732fi 9733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9734esac 9735fi 9736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740fi 9741 9742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9745 fi 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9749if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9750then : 9751 printf %s "(cached) " >&6 9752else case e in #( 9753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755int i; 9756_ACEOF 9757if ac_fn_c_try_compile "$LINENO" 9758then : 9759 xorg_cv_cc_flag_unused_command_line_argument=yes 9760else case e in #( 9761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9762esac 9763fi 9764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9765esac 9766fi 9767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9770 CFLAGS="$xorg_testset_save_CFLAGS" 9771fi 9772 9773found="no" 9774 9775 if test $found = "no" ; then 9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9778 fi 9779 9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9782 fi 9783 9784 CFLAGS="$CFLAGS -Wimplicit" 9785 9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9787printf %s "checking if $CC supports -Wimplicit... " >&6; } 9788 cacheid=xorg_cv_cc_flag__Wimplicit 9789 if eval test \${$cacheid+y} 9790then : 9791 printf %s "(cached) " >&6 9792else case e in #( 9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796int 9797main (void) 9798{ 9799 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804if ac_fn_c_try_link "$LINENO" 9805then : 9806 eval $cacheid=yes 9807else case e in #( 9808 e) eval $cacheid=no ;; 9809esac 9810fi 9811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9812 conftest$ac_exeext conftest.$ac_ext ;; 9813esac 9814fi 9815 9816 9817 CFLAGS="$xorg_testset_save_CFLAGS" 9818 9819 eval supported=\$$cacheid 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9821printf "%s\n" "$supported" >&6; } 9822 if test "$supported" = "yes" ; then 9823 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9824 found="yes" 9825 fi 9826 fi 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842xorg_testset_save_CFLAGS="$CFLAGS" 9843 9844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9849then : 9850 printf %s "(cached) " >&6 9851else case e in #( 9852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853/* end confdefs.h. */ 9854int i; 9855_ACEOF 9856if ac_fn_c_try_compile "$LINENO" 9857then : 9858 xorg_cv_cc_flag_unknown_warning_option=yes 9859else case e in #( 9860 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9861esac 9862fi 9863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9864esac 9865fi 9866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9869 CFLAGS="$xorg_testset_save_CFLAGS" 9870fi 9871 9872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9875 fi 9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9879if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9880then : 9881 printf %s "(cached) " >&6 9882else case e in #( 9883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884/* end confdefs.h. */ 9885int i; 9886_ACEOF 9887if ac_fn_c_try_compile "$LINENO" 9888then : 9889 xorg_cv_cc_flag_unused_command_line_argument=yes 9890else case e in #( 9891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9892esac 9893fi 9894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9895esac 9896fi 9897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901fi 9902 9903found="no" 9904 9905 if test $found = "no" ; then 9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9908 fi 9909 9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9912 fi 9913 9914 CFLAGS="$CFLAGS -Wnonnull" 9915 9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9917printf %s "checking if $CC supports -Wnonnull... " >&6; } 9918 cacheid=xorg_cv_cc_flag__Wnonnull 9919 if eval test \${$cacheid+y} 9920then : 9921 printf %s "(cached) " >&6 9922else case e in #( 9923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9924/* end confdefs.h. */ 9925int i; 9926int 9927main (void) 9928{ 9929 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_link "$LINENO" 9935then : 9936 eval $cacheid=yes 9937else case e in #( 9938 e) eval $cacheid=no ;; 9939esac 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9942 conftest$ac_exeext conftest.$ac_ext ;; 9943esac 9944fi 9945 9946 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948 9949 eval supported=\$$cacheid 9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9951printf "%s\n" "$supported" >&6; } 9952 if test "$supported" = "yes" ; then 9953 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9954 found="yes" 9955 fi 9956 fi 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972xorg_testset_save_CFLAGS="$CFLAGS" 9973 9974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9979then : 9980 printf %s "(cached) " >&6 9981else case e in #( 9982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984int i; 9985_ACEOF 9986if ac_fn_c_try_compile "$LINENO" 9987then : 9988 xorg_cv_cc_flag_unknown_warning_option=yes 9989else case e in #( 9990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9991esac 9992fi 9993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9994esac 9995fi 9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9999 CFLAGS="$xorg_testset_save_CFLAGS" 10000fi 10001 10002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 fi 10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10010then : 10011 printf %s "(cached) " >&6 10012else case e in #( 10013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014/* end confdefs.h. */ 10015int i; 10016_ACEOF 10017if ac_fn_c_try_compile "$LINENO" 10018then : 10019 xorg_cv_cc_flag_unused_command_line_argument=yes 10020else case e in #( 10021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10022esac 10023fi 10024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10025esac 10026fi 10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033found="no" 10034 10035 if test $found = "no" ; then 10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10038 fi 10039 10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10042 fi 10043 10044 CFLAGS="$CFLAGS -Winit-self" 10045 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10047printf %s "checking if $CC supports -Winit-self... " >&6; } 10048 cacheid=xorg_cv_cc_flag__Winit_self 10049 if eval test \${$cacheid+y} 10050then : 10051 printf %s "(cached) " >&6 10052else case e in #( 10053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054/* end confdefs.h. */ 10055int i; 10056int 10057main (void) 10058{ 10059 10060 ; 10061 return 0; 10062} 10063_ACEOF 10064if ac_fn_c_try_link "$LINENO" 10065then : 10066 eval $cacheid=yes 10067else case e in #( 10068 e) eval $cacheid=no ;; 10069esac 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10072 conftest$ac_exeext conftest.$ac_ext ;; 10073esac 10074fi 10075 10076 10077 CFLAGS="$xorg_testset_save_CFLAGS" 10078 10079 eval supported=\$$cacheid 10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10081printf "%s\n" "$supported" >&6; } 10082 if test "$supported" = "yes" ; then 10083 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10084 found="yes" 10085 fi 10086 fi 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102xorg_testset_save_CFLAGS="$CFLAGS" 10103 10104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10109then : 10110 printf %s "(cached) " >&6 10111else case e in #( 10112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113/* end confdefs.h. */ 10114int i; 10115_ACEOF 10116if ac_fn_c_try_compile "$LINENO" 10117then : 10118 xorg_cv_cc_flag_unknown_warning_option=yes 10119else case e in #( 10120 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10121esac 10122fi 10123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10124esac 10125fi 10126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130fi 10131 10132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10135 fi 10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10139if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10140then : 10141 printf %s "(cached) " >&6 10142else case e in #( 10143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10144/* end confdefs.h. */ 10145int i; 10146_ACEOF 10147if ac_fn_c_try_compile "$LINENO" 10148then : 10149 xorg_cv_cc_flag_unused_command_line_argument=yes 10150else case e in #( 10151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10152esac 10153fi 10154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10155esac 10156fi 10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10160 CFLAGS="$xorg_testset_save_CFLAGS" 10161fi 10162 10163found="no" 10164 10165 if test $found = "no" ; then 10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10168 fi 10169 10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10172 fi 10173 10174 CFLAGS="$CFLAGS -Wmain" 10175 10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10177printf %s "checking if $CC supports -Wmain... " >&6; } 10178 cacheid=xorg_cv_cc_flag__Wmain 10179 if eval test \${$cacheid+y} 10180then : 10181 printf %s "(cached) " >&6 10182else case e in #( 10183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186int 10187main (void) 10188{ 10189 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194if ac_fn_c_try_link "$LINENO" 10195then : 10196 eval $cacheid=yes 10197else case e in #( 10198 e) eval $cacheid=no ;; 10199esac 10200fi 10201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10202 conftest$ac_exeext conftest.$ac_ext ;; 10203esac 10204fi 10205 10206 10207 CFLAGS="$xorg_testset_save_CFLAGS" 10208 10209 eval supported=\$$cacheid 10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10211printf "%s\n" "$supported" >&6; } 10212 if test "$supported" = "yes" ; then 10213 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10214 found="yes" 10215 fi 10216 fi 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232xorg_testset_save_CFLAGS="$CFLAGS" 10233 10234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10239then : 10240 printf %s "(cached) " >&6 10241else case e in #( 10242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int i; 10245_ACEOF 10246if ac_fn_c_try_compile "$LINENO" 10247then : 10248 xorg_cv_cc_flag_unknown_warning_option=yes 10249else case e in #( 10250 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10251esac 10252fi 10253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10254esac 10255fi 10256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10259 CFLAGS="$xorg_testset_save_CFLAGS" 10260fi 10261 10262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10265 fi 10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10270then : 10271 printf %s "(cached) " >&6 10272else case e in #( 10273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276_ACEOF 10277if ac_fn_c_try_compile "$LINENO" 10278then : 10279 xorg_cv_cc_flag_unused_command_line_argument=yes 10280else case e in #( 10281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10282esac 10283fi 10284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10285esac 10286fi 10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10290 CFLAGS="$xorg_testset_save_CFLAGS" 10291fi 10292 10293found="no" 10294 10295 if test $found = "no" ; then 10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10298 fi 10299 10300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 fi 10303 10304 CFLAGS="$CFLAGS -Wmissing-braces" 10305 10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10307printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10308 cacheid=xorg_cv_cc_flag__Wmissing_braces 10309 if eval test \${$cacheid+y} 10310then : 10311 printf %s "(cached) " >&6 10312else case e in #( 10313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315int i; 10316int 10317main (void) 10318{ 10319 10320 ; 10321 return 0; 10322} 10323_ACEOF 10324if ac_fn_c_try_link "$LINENO" 10325then : 10326 eval $cacheid=yes 10327else case e in #( 10328 e) eval $cacheid=no ;; 10329esac 10330fi 10331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10332 conftest$ac_exeext conftest.$ac_ext ;; 10333esac 10334fi 10335 10336 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338 10339 eval supported=\$$cacheid 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10341printf "%s\n" "$supported" >&6; } 10342 if test "$supported" = "yes" ; then 10343 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10344 found="yes" 10345 fi 10346 fi 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362xorg_testset_save_CFLAGS="$CFLAGS" 10363 10364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10368if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10369then : 10370 printf %s "(cached) " >&6 10371else case e in #( 10372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10373/* end confdefs.h. */ 10374int i; 10375_ACEOF 10376if ac_fn_c_try_compile "$LINENO" 10377then : 10378 xorg_cv_cc_flag_unknown_warning_option=yes 10379else case e in #( 10380 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10381esac 10382fi 10383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10384esac 10385fi 10386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10387printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10389 CFLAGS="$xorg_testset_save_CFLAGS" 10390fi 10391 10392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10395 fi 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10398printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10399if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10400then : 10401 printf %s "(cached) " >&6 10402else case e in #( 10403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405int i; 10406_ACEOF 10407if ac_fn_c_try_compile "$LINENO" 10408then : 10409 xorg_cv_cc_flag_unused_command_line_argument=yes 10410else case e in #( 10411 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10412esac 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10415esac 10416fi 10417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10420 CFLAGS="$xorg_testset_save_CFLAGS" 10421fi 10422 10423found="no" 10424 10425 if test $found = "no" ; then 10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10428 fi 10429 10430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10432 fi 10433 10434 CFLAGS="$CFLAGS -Wsequence-point" 10435 10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10437printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10438 cacheid=xorg_cv_cc_flag__Wsequence_point 10439 if eval test \${$cacheid+y} 10440then : 10441 printf %s "(cached) " >&6 10442else case e in #( 10443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444/* end confdefs.h. */ 10445int i; 10446int 10447main (void) 10448{ 10449 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454if ac_fn_c_try_link "$LINENO" 10455then : 10456 eval $cacheid=yes 10457else case e in #( 10458 e) eval $cacheid=no ;; 10459esac 10460fi 10461rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10462 conftest$ac_exeext conftest.$ac_ext ;; 10463esac 10464fi 10465 10466 10467 CFLAGS="$xorg_testset_save_CFLAGS" 10468 10469 eval supported=\$$cacheid 10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10471printf "%s\n" "$supported" >&6; } 10472 if test "$supported" = "yes" ; then 10473 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10474 found="yes" 10475 fi 10476 fi 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492xorg_testset_save_CFLAGS="$CFLAGS" 10493 10494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10498if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10499then : 10500 printf %s "(cached) " >&6 10501else case e in #( 10502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10503/* end confdefs.h. */ 10504int i; 10505_ACEOF 10506if ac_fn_c_try_compile "$LINENO" 10507then : 10508 xorg_cv_cc_flag_unknown_warning_option=yes 10509else case e in #( 10510 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10511esac 10512fi 10513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10514esac 10515fi 10516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10519 CFLAGS="$xorg_testset_save_CFLAGS" 10520fi 10521 10522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10525 fi 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10530then : 10531 printf %s "(cached) " >&6 10532else case e in #( 10533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535int i; 10536_ACEOF 10537if ac_fn_c_try_compile "$LINENO" 10538then : 10539 xorg_cv_cc_flag_unused_command_line_argument=yes 10540else case e in #( 10541 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10542esac 10543fi 10544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10545esac 10546fi 10547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10550 CFLAGS="$xorg_testset_save_CFLAGS" 10551fi 10552 10553found="no" 10554 10555 if test $found = "no" ; then 10556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10558 fi 10559 10560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10562 fi 10563 10564 CFLAGS="$CFLAGS -Wreturn-type" 10565 10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10567printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10568 cacheid=xorg_cv_cc_flag__Wreturn_type 10569 if eval test \${$cacheid+y} 10570then : 10571 printf %s "(cached) " >&6 10572else case e in #( 10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575int i; 10576int 10577main (void) 10578{ 10579 10580 ; 10581 return 0; 10582} 10583_ACEOF 10584if ac_fn_c_try_link "$LINENO" 10585then : 10586 eval $cacheid=yes 10587else case e in #( 10588 e) eval $cacheid=no ;; 10589esac 10590fi 10591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10592 conftest$ac_exeext conftest.$ac_ext ;; 10593esac 10594fi 10595 10596 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598 10599 eval supported=\$$cacheid 10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10601printf "%s\n" "$supported" >&6; } 10602 if test "$supported" = "yes" ; then 10603 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10604 found="yes" 10605 fi 10606 fi 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622xorg_testset_save_CFLAGS="$CFLAGS" 10623 10624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10628if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10629then : 10630 printf %s "(cached) " >&6 10631else case e in #( 10632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10633/* end confdefs.h. */ 10634int i; 10635_ACEOF 10636if ac_fn_c_try_compile "$LINENO" 10637then : 10638 xorg_cv_cc_flag_unknown_warning_option=yes 10639else case e in #( 10640 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10641esac 10642fi 10643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10644esac 10645fi 10646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10649 CFLAGS="$xorg_testset_save_CFLAGS" 10650fi 10651 10652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10655 fi 10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10659if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10660then : 10661 printf %s "(cached) " >&6 10662else case e in #( 10663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10664/* end confdefs.h. */ 10665int i; 10666_ACEOF 10667if ac_fn_c_try_compile "$LINENO" 10668then : 10669 xorg_cv_cc_flag_unused_command_line_argument=yes 10670else case e in #( 10671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10672esac 10673fi 10674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10675esac 10676fi 10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10680 CFLAGS="$xorg_testset_save_CFLAGS" 10681fi 10682 10683found="no" 10684 10685 if test $found = "no" ; then 10686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10688 fi 10689 10690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10692 fi 10693 10694 CFLAGS="$CFLAGS -Wtrigraphs" 10695 10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10697printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10698 cacheid=xorg_cv_cc_flag__Wtrigraphs 10699 if eval test \${$cacheid+y} 10700then : 10701 printf %s "(cached) " >&6 10702else case e in #( 10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704/* end confdefs.h. */ 10705int i; 10706int 10707main (void) 10708{ 10709 10710 ; 10711 return 0; 10712} 10713_ACEOF 10714if ac_fn_c_try_link "$LINENO" 10715then : 10716 eval $cacheid=yes 10717else case e in #( 10718 e) eval $cacheid=no ;; 10719esac 10720fi 10721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10722 conftest$ac_exeext conftest.$ac_ext ;; 10723esac 10724fi 10725 10726 10727 CFLAGS="$xorg_testset_save_CFLAGS" 10728 10729 eval supported=\$$cacheid 10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10731printf "%s\n" "$supported" >&6; } 10732 if test "$supported" = "yes" ; then 10733 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10734 found="yes" 10735 fi 10736 fi 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752xorg_testset_save_CFLAGS="$CFLAGS" 10753 10754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10758if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10759then : 10760 printf %s "(cached) " >&6 10761else case e in #( 10762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10763/* end confdefs.h. */ 10764int i; 10765_ACEOF 10766if ac_fn_c_try_compile "$LINENO" 10767then : 10768 xorg_cv_cc_flag_unknown_warning_option=yes 10769else case e in #( 10770 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10771esac 10772fi 10773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10774esac 10775fi 10776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10779 CFLAGS="$xorg_testset_save_CFLAGS" 10780fi 10781 10782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10785 fi 10786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10789if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10790then : 10791 printf %s "(cached) " >&6 10792else case e in #( 10793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794/* end confdefs.h. */ 10795int i; 10796_ACEOF 10797if ac_fn_c_try_compile "$LINENO" 10798then : 10799 xorg_cv_cc_flag_unused_command_line_argument=yes 10800else case e in #( 10801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10802esac 10803fi 10804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10805esac 10806fi 10807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10810 CFLAGS="$xorg_testset_save_CFLAGS" 10811fi 10812 10813found="no" 10814 10815 if test $found = "no" ; then 10816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10818 fi 10819 10820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10822 fi 10823 10824 CFLAGS="$CFLAGS -Warray-bounds" 10825 10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10827printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10828 cacheid=xorg_cv_cc_flag__Warray_bounds 10829 if eval test \${$cacheid+y} 10830then : 10831 printf %s "(cached) " >&6 10832else case e in #( 10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835int i; 10836int 10837main (void) 10838{ 10839 10840 ; 10841 return 0; 10842} 10843_ACEOF 10844if ac_fn_c_try_link "$LINENO" 10845then : 10846 eval $cacheid=yes 10847else case e in #( 10848 e) eval $cacheid=no ;; 10849esac 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10852 conftest$ac_exeext conftest.$ac_ext ;; 10853esac 10854fi 10855 10856 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858 10859 eval supported=\$$cacheid 10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10861printf "%s\n" "$supported" >&6; } 10862 if test "$supported" = "yes" ; then 10863 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10864 found="yes" 10865 fi 10866 fi 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882xorg_testset_save_CFLAGS="$CFLAGS" 10883 10884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10889then : 10890 printf %s "(cached) " >&6 10891else case e in #( 10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10893/* end confdefs.h. */ 10894int i; 10895_ACEOF 10896if ac_fn_c_try_compile "$LINENO" 10897then : 10898 xorg_cv_cc_flag_unknown_warning_option=yes 10899else case e in #( 10900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10901esac 10902fi 10903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10904esac 10905fi 10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10909 CFLAGS="$xorg_testset_save_CFLAGS" 10910fi 10911 10912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10915 fi 10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10920then : 10921 printf %s "(cached) " >&6 10922else case e in #( 10923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925int i; 10926_ACEOF 10927if ac_fn_c_try_compile "$LINENO" 10928then : 10929 xorg_cv_cc_flag_unused_command_line_argument=yes 10930else case e in #( 10931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10932esac 10933fi 10934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10935esac 10936fi 10937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10940 CFLAGS="$xorg_testset_save_CFLAGS" 10941fi 10942 10943found="no" 10944 10945 if test $found = "no" ; then 10946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10948 fi 10949 10950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10952 fi 10953 10954 CFLAGS="$CFLAGS -Wwrite-strings" 10955 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10957printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10958 cacheid=xorg_cv_cc_flag__Wwrite_strings 10959 if eval test \${$cacheid+y} 10960then : 10961 printf %s "(cached) " >&6 10962else case e in #( 10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964/* end confdefs.h. */ 10965int i; 10966int 10967main (void) 10968{ 10969 10970 ; 10971 return 0; 10972} 10973_ACEOF 10974if ac_fn_c_try_link "$LINENO" 10975then : 10976 eval $cacheid=yes 10977else case e in #( 10978 e) eval $cacheid=no ;; 10979esac 10980fi 10981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10982 conftest$ac_exeext conftest.$ac_ext ;; 10983esac 10984fi 10985 10986 10987 CFLAGS="$xorg_testset_save_CFLAGS" 10988 10989 eval supported=\$$cacheid 10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10991printf "%s\n" "$supported" >&6; } 10992 if test "$supported" = "yes" ; then 10993 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10994 found="yes" 10995 fi 10996 fi 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012xorg_testset_save_CFLAGS="$CFLAGS" 11013 11014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11019then : 11020 printf %s "(cached) " >&6 11021else case e in #( 11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024int i; 11025_ACEOF 11026if ac_fn_c_try_compile "$LINENO" 11027then : 11028 xorg_cv_cc_flag_unknown_warning_option=yes 11029else case e in #( 11030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11031esac 11032fi 11033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11034esac 11035fi 11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040fi 11041 11042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11045 fi 11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11049if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11050then : 11051 printf %s "(cached) " >&6 11052else case e in #( 11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055int i; 11056_ACEOF 11057if ac_fn_c_try_compile "$LINENO" 11058then : 11059 xorg_cv_cc_flag_unused_command_line_argument=yes 11060else case e in #( 11061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11062esac 11063fi 11064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11065esac 11066fi 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11070 CFLAGS="$xorg_testset_save_CFLAGS" 11071fi 11072 11073found="no" 11074 11075 if test $found = "no" ; then 11076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11078 fi 11079 11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11082 fi 11083 11084 CFLAGS="$CFLAGS -Waddress" 11085 11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11087printf %s "checking if $CC supports -Waddress... " >&6; } 11088 cacheid=xorg_cv_cc_flag__Waddress 11089 if eval test \${$cacheid+y} 11090then : 11091 printf %s "(cached) " >&6 11092else case e in #( 11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094/* end confdefs.h. */ 11095int i; 11096int 11097main (void) 11098{ 11099 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if ac_fn_c_try_link "$LINENO" 11105then : 11106 eval $cacheid=yes 11107else case e in #( 11108 e) eval $cacheid=no ;; 11109esac 11110fi 11111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11112 conftest$ac_exeext conftest.$ac_ext ;; 11113esac 11114fi 11115 11116 11117 CFLAGS="$xorg_testset_save_CFLAGS" 11118 11119 eval supported=\$$cacheid 11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11121printf "%s\n" "$supported" >&6; } 11122 if test "$supported" = "yes" ; then 11123 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11124 found="yes" 11125 fi 11126 fi 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142xorg_testset_save_CFLAGS="$CFLAGS" 11143 11144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11149then : 11150 printf %s "(cached) " >&6 11151else case e in #( 11152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154int i; 11155_ACEOF 11156if ac_fn_c_try_compile "$LINENO" 11157then : 11158 xorg_cv_cc_flag_unknown_warning_option=yes 11159else case e in #( 11160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11161esac 11162fi 11163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11164esac 11165fi 11166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11169 CFLAGS="$xorg_testset_save_CFLAGS" 11170fi 11171 11172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11175 fi 11176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11180then : 11181 printf %s "(cached) " >&6 11182else case e in #( 11183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11184/* end confdefs.h. */ 11185int i; 11186_ACEOF 11187if ac_fn_c_try_compile "$LINENO" 11188then : 11189 xorg_cv_cc_flag_unused_command_line_argument=yes 11190else case e in #( 11191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11192esac 11193fi 11194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11195esac 11196fi 11197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11200 CFLAGS="$xorg_testset_save_CFLAGS" 11201fi 11202 11203found="no" 11204 11205 if test $found = "no" ; then 11206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11208 fi 11209 11210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11212 fi 11213 11214 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11215 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11217printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11218 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11219 if eval test \${$cacheid+y} 11220then : 11221 printf %s "(cached) " >&6 11222else case e in #( 11223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225int i; 11226int 11227main (void) 11228{ 11229 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234if ac_fn_c_try_link "$LINENO" 11235then : 11236 eval $cacheid=yes 11237else case e in #( 11238 e) eval $cacheid=no ;; 11239esac 11240fi 11241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11242 conftest$ac_exeext conftest.$ac_ext ;; 11243esac 11244fi 11245 11246 11247 CFLAGS="$xorg_testset_save_CFLAGS" 11248 11249 eval supported=\$$cacheid 11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11251printf "%s\n" "$supported" >&6; } 11252 if test "$supported" = "yes" ; then 11253 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11254 found="yes" 11255 fi 11256 fi 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272xorg_testset_save_CFLAGS="$CFLAGS" 11273 11274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11278if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11279then : 11280 printf %s "(cached) " >&6 11281else case e in #( 11282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11283/* end confdefs.h. */ 11284int i; 11285_ACEOF 11286if ac_fn_c_try_compile "$LINENO" 11287then : 11288 xorg_cv_cc_flag_unknown_warning_option=yes 11289else case e in #( 11290 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11291esac 11292fi 11293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11294esac 11295fi 11296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11299 CFLAGS="$xorg_testset_save_CFLAGS" 11300fi 11301 11302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11305 fi 11306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11310then : 11311 printf %s "(cached) " >&6 11312else case e in #( 11313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11314/* end confdefs.h. */ 11315int i; 11316_ACEOF 11317if ac_fn_c_try_compile "$LINENO" 11318then : 11319 xorg_cv_cc_flag_unused_command_line_argument=yes 11320else case e in #( 11321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11322esac 11323fi 11324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11325esac 11326fi 11327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11330 CFLAGS="$xorg_testset_save_CFLAGS" 11331fi 11332 11333found="no" 11334 11335 if test $found = "no" ; then 11336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11338 fi 11339 11340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11342 fi 11343 11344 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11345 11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11347printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11348 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11349 if eval test \${$cacheid+y} 11350then : 11351 printf %s "(cached) " >&6 11352else case e in #( 11353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355int i; 11356int 11357main (void) 11358{ 11359 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364if ac_fn_c_try_link "$LINENO" 11365then : 11366 eval $cacheid=yes 11367else case e in #( 11368 e) eval $cacheid=no ;; 11369esac 11370fi 11371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11372 conftest$ac_exeext conftest.$ac_ext ;; 11373esac 11374fi 11375 11376 11377 CFLAGS="$xorg_testset_save_CFLAGS" 11378 11379 eval supported=\$$cacheid 11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11381printf "%s\n" "$supported" >&6; } 11382 if test "$supported" = "yes" ; then 11383 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11384 found="yes" 11385 fi 11386 fi 11387 11388 11389fi 11390 11391 11392 11393 11394 11395 11396 11397 CWARNFLAGS="$BASE_CFLAGS" 11398 if test "x$GCC" = xyes ; then 11399 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11400 fi 11401 11402 11403 11404 11405 11406 11407 11408 11409# Check whether --enable-strict-compilation was given. 11410if test ${enable_strict_compilation+y} 11411then : 11412 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11413else case e in #( 11414 e) STRICT_COMPILE=no ;; 11415esac 11416fi 11417 11418 11419 11420 11421 11422 11423STRICT_CFLAGS="" 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437xorg_testset_save_CFLAGS="$CFLAGS" 11438 11439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11444then : 11445 printf %s "(cached) " >&6 11446else case e in #( 11447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448/* end confdefs.h. */ 11449int i; 11450_ACEOF 11451if ac_fn_c_try_compile "$LINENO" 11452then : 11453 xorg_cv_cc_flag_unknown_warning_option=yes 11454else case e in #( 11455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11456esac 11457fi 11458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11459esac 11460fi 11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11464 CFLAGS="$xorg_testset_save_CFLAGS" 11465fi 11466 11467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11470 fi 11471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11475then : 11476 printf %s "(cached) " >&6 11477else case e in #( 11478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11479/* end confdefs.h. */ 11480int i; 11481_ACEOF 11482if ac_fn_c_try_compile "$LINENO" 11483then : 11484 xorg_cv_cc_flag_unused_command_line_argument=yes 11485else case e in #( 11486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11487esac 11488fi 11489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11490esac 11491fi 11492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11495 CFLAGS="$xorg_testset_save_CFLAGS" 11496fi 11497 11498found="no" 11499 11500 if test $found = "no" ; then 11501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11503 fi 11504 11505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11507 fi 11508 11509 CFLAGS="$CFLAGS -pedantic" 11510 11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11512printf %s "checking if $CC supports -pedantic... " >&6; } 11513 cacheid=xorg_cv_cc_flag__pedantic 11514 if eval test \${$cacheid+y} 11515then : 11516 printf %s "(cached) " >&6 11517else case e in #( 11518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11519/* end confdefs.h. */ 11520int i; 11521int 11522main (void) 11523{ 11524 11525 ; 11526 return 0; 11527} 11528_ACEOF 11529if ac_fn_c_try_link "$LINENO" 11530then : 11531 eval $cacheid=yes 11532else case e in #( 11533 e) eval $cacheid=no ;; 11534esac 11535fi 11536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11537 conftest$ac_exeext conftest.$ac_ext ;; 11538esac 11539fi 11540 11541 11542 CFLAGS="$xorg_testset_save_CFLAGS" 11543 11544 eval supported=\$$cacheid 11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11546printf "%s\n" "$supported" >&6; } 11547 if test "$supported" = "yes" ; then 11548 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11549 found="yes" 11550 fi 11551 fi 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567xorg_testset_save_CFLAGS="$CFLAGS" 11568 11569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11574then : 11575 printf %s "(cached) " >&6 11576else case e in #( 11577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11578/* end confdefs.h. */ 11579int i; 11580_ACEOF 11581if ac_fn_c_try_compile "$LINENO" 11582then : 11583 xorg_cv_cc_flag_unknown_warning_option=yes 11584else case e in #( 11585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11586esac 11587fi 11588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11589esac 11590fi 11591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11594 CFLAGS="$xorg_testset_save_CFLAGS" 11595fi 11596 11597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11600 fi 11601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11605then : 11606 printf %s "(cached) " >&6 11607else case e in #( 11608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11609/* end confdefs.h. */ 11610int i; 11611_ACEOF 11612if ac_fn_c_try_compile "$LINENO" 11613then : 11614 xorg_cv_cc_flag_unused_command_line_argument=yes 11615else case e in #( 11616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11617esac 11618fi 11619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11620esac 11621fi 11622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11625 CFLAGS="$xorg_testset_save_CFLAGS" 11626fi 11627 11628found="no" 11629 11630 if test $found = "no" ; then 11631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11633 fi 11634 11635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11637 fi 11638 11639 CFLAGS="$CFLAGS -Werror" 11640 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11642printf %s "checking if $CC supports -Werror... " >&6; } 11643 cacheid=xorg_cv_cc_flag__Werror 11644 if eval test \${$cacheid+y} 11645then : 11646 printf %s "(cached) " >&6 11647else case e in #( 11648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11649/* end confdefs.h. */ 11650int i; 11651int 11652main (void) 11653{ 11654 11655 ; 11656 return 0; 11657} 11658_ACEOF 11659if ac_fn_c_try_link "$LINENO" 11660then : 11661 eval $cacheid=yes 11662else case e in #( 11663 e) eval $cacheid=no ;; 11664esac 11665fi 11666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11667 conftest$ac_exeext conftest.$ac_ext ;; 11668esac 11669fi 11670 11671 11672 CFLAGS="$xorg_testset_save_CFLAGS" 11673 11674 eval supported=\$$cacheid 11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11676printf "%s\n" "$supported" >&6; } 11677 if test "$supported" = "yes" ; then 11678 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11679 found="yes" 11680 fi 11681 fi 11682 11683 if test $found = "no" ; then 11684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11686 fi 11687 11688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11690 fi 11691 11692 CFLAGS="$CFLAGS -errwarn" 11693 11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11695printf %s "checking if $CC supports -errwarn... " >&6; } 11696 cacheid=xorg_cv_cc_flag__errwarn 11697 if eval test \${$cacheid+y} 11698then : 11699 printf %s "(cached) " >&6 11700else case e in #( 11701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703int i; 11704int 11705main (void) 11706{ 11707 11708 ; 11709 return 0; 11710} 11711_ACEOF 11712if ac_fn_c_try_link "$LINENO" 11713then : 11714 eval $cacheid=yes 11715else case e in #( 11716 e) eval $cacheid=no ;; 11717esac 11718fi 11719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11720 conftest$ac_exeext conftest.$ac_ext ;; 11721esac 11722fi 11723 11724 11725 CFLAGS="$xorg_testset_save_CFLAGS" 11726 11727 eval supported=\$$cacheid 11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11729printf "%s\n" "$supported" >&6; } 11730 if test "$supported" = "yes" ; then 11731 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11732 found="yes" 11733 fi 11734 fi 11735 11736 11737 11738# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11739# activate it with -Werror, so we add it here explicitly. 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753xorg_testset_save_CFLAGS="$CFLAGS" 11754 11755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11760then : 11761 printf %s "(cached) " >&6 11762else case e in #( 11763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11764/* end confdefs.h. */ 11765int i; 11766_ACEOF 11767if ac_fn_c_try_compile "$LINENO" 11768then : 11769 xorg_cv_cc_flag_unknown_warning_option=yes 11770else case e in #( 11771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11772esac 11773fi 11774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11775esac 11776fi 11777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11780 CFLAGS="$xorg_testset_save_CFLAGS" 11781fi 11782 11783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11786 fi 11787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11791then : 11792 printf %s "(cached) " >&6 11793else case e in #( 11794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11795/* end confdefs.h. */ 11796int i; 11797_ACEOF 11798if ac_fn_c_try_compile "$LINENO" 11799then : 11800 xorg_cv_cc_flag_unused_command_line_argument=yes 11801else case e in #( 11802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11803esac 11804fi 11805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11806esac 11807fi 11808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11811 CFLAGS="$xorg_testset_save_CFLAGS" 11812fi 11813 11814found="no" 11815 11816 if test $found = "no" ; then 11817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11819 fi 11820 11821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11823 fi 11824 11825 CFLAGS="$CFLAGS -Werror=attributes" 11826 11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11828printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11829 cacheid=xorg_cv_cc_flag__Werror_attributes 11830 if eval test \${$cacheid+y} 11831then : 11832 printf %s "(cached) " >&6 11833else case e in #( 11834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11835/* end confdefs.h. */ 11836int i; 11837int 11838main (void) 11839{ 11840 11841 ; 11842 return 0; 11843} 11844_ACEOF 11845if ac_fn_c_try_link "$LINENO" 11846then : 11847 eval $cacheid=yes 11848else case e in #( 11849 e) eval $cacheid=no ;; 11850esac 11851fi 11852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11853 conftest$ac_exeext conftest.$ac_ext ;; 11854esac 11855fi 11856 11857 11858 CFLAGS="$xorg_testset_save_CFLAGS" 11859 11860 eval supported=\$$cacheid 11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11862printf "%s\n" "$supported" >&6; } 11863 if test "$supported" = "yes" ; then 11864 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11865 found="yes" 11866 fi 11867 fi 11868 11869 11870 11871if test "x$STRICT_COMPILE" = "xyes"; then 11872 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11873 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11874fi 11875 11876 11877 11878 11879 11880 11881 11882 11883cat >>confdefs.h <<_ACEOF 11884#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11885_ACEOF 11886 11887 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11888 if test "x$PVM" = "x"; then 11889 PVM="0" 11890 fi 11891 11892printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11893 11894 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11895 if test "x$PVP" = "x"; then 11896 PVP="0" 11897 fi 11898 11899printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11900 11901 11902 11903CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11904mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11905|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11906touch \$(top_srcdir)/ChangeLog; \ 11907echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11908 11909 11910 11911 11912macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11913INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11914mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11915|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11916touch \$(top_srcdir)/INSTALL; \ 11917echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11918 11919 11920 11921 11922 11923 11924case $host_os in 11925 solaris*) 11926 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11927 # check for a man page file found in later versions that use 11928 # traditional section numbers instead 11929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11930printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11931if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11932then : 11933 printf %s "(cached) " >&6 11934else case e in #( 11935 e) test "$cross_compiling" = yes && 11936 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11937if test -r "/usr/share/man/man7/attributes.7"; then 11938 ac_cv_file__usr_share_man_man7_attributes_7=yes 11939else 11940 ac_cv_file__usr_share_man_man7_attributes_7=no 11941fi ;; 11942esac 11943fi 11944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11945printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11946if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11947then : 11948 SYSV_MAN_SECTIONS=false 11949else case e in #( 11950 e) SYSV_MAN_SECTIONS=true ;; 11951esac 11952fi 11953 11954 ;; 11955 *) SYSV_MAN_SECTIONS=false ;; 11956esac 11957 11958if test x$APP_MAN_SUFFIX = x ; then 11959 APP_MAN_SUFFIX=1 11960fi 11961if test x$APP_MAN_DIR = x ; then 11962 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11963fi 11964 11965if test x$LIB_MAN_SUFFIX = x ; then 11966 LIB_MAN_SUFFIX=3 11967fi 11968if test x$LIB_MAN_DIR = x ; then 11969 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11970fi 11971 11972if test x$FILE_MAN_SUFFIX = x ; then 11973 case $SYSV_MAN_SECTIONS in 11974 true) FILE_MAN_SUFFIX=4 ;; 11975 *) FILE_MAN_SUFFIX=5 ;; 11976 esac 11977fi 11978if test x$FILE_MAN_DIR = x ; then 11979 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11980fi 11981 11982if test x$MISC_MAN_SUFFIX = x ; then 11983 case $SYSV_MAN_SECTIONS in 11984 true) MISC_MAN_SUFFIX=5 ;; 11985 *) MISC_MAN_SUFFIX=7 ;; 11986 esac 11987fi 11988if test x$MISC_MAN_DIR = x ; then 11989 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11990fi 11991 11992if test x$DRIVER_MAN_SUFFIX = x ; then 11993 case $SYSV_MAN_SECTIONS in 11994 true) DRIVER_MAN_SUFFIX=7 ;; 11995 *) DRIVER_MAN_SUFFIX=4 ;; 11996 esac 11997fi 11998if test x$DRIVER_MAN_DIR = x ; then 11999 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12000fi 12001 12002if test x$ADMIN_MAN_SUFFIX = x ; then 12003 case $SYSV_MAN_SECTIONS in 12004 true) ADMIN_MAN_SUFFIX=1m ;; 12005 *) ADMIN_MAN_SUFFIX=8 ;; 12006 esac 12007fi 12008if test x$ADMIN_MAN_DIR = x ; then 12009 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12010fi 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026XORG_MAN_PAGE="X Version 11" 12027 12028MAN_SUBSTS="\ 12029 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12030 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12031 -e 's|__xservername__|Xorg|g' \ 12032 -e 's|__xconfigfile__|xorg.conf|g' \ 12033 -e 's|__projectroot__|\$(prefix)|g' \ 12034 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12035 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12036 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12037 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12038 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12039 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12040 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12041 12042 12043 12044 12045AM_DEFAULT_VERBOSITY=0 12046 12047 12048 12049 12050# Check whether --enable-devel-docs was given. 12051if test ${enable_devel_docs+y} 12052then : 12053 enableval=$enable_devel_docs; build_devel_docs=$enableval 12054else case e in #( 12055 e) build_devel_docs=yes ;; 12056esac 12057fi 12058 12059 12060 if test x$build_devel_docs = xyes; then 12061 ENABLE_DEVEL_DOCS_TRUE= 12062 ENABLE_DEVEL_DOCS_FALSE='#' 12063else 12064 ENABLE_DEVEL_DOCS_TRUE='#' 12065 ENABLE_DEVEL_DOCS_FALSE= 12066fi 12067 12068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12069printf %s "checking whether to build developer documentation... " >&6; } 12070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12071printf "%s\n" "$build_devel_docs" >&6; } 12072 12073 12074 12075 12076 12077# Check whether --with-xmlto was given. 12078if test ${with_xmlto+y} 12079then : 12080 withval=$with_xmlto; use_xmlto=$withval 12081else case e in #( 12082 e) use_xmlto=auto ;; 12083esac 12084fi 12085 12086 12087 12088if test "x$use_xmlto" = x"auto"; then 12089 # Extract the first word of "xmlto", so it can be a program name with args. 12090set dummy xmlto; ac_word=$2 12091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12092printf %s "checking for $ac_word... " >&6; } 12093if test ${ac_cv_path_XMLTO+y} 12094then : 12095 printf %s "(cached) " >&6 12096else case e in #( 12097 e) case $XMLTO in 12098 [\\/]* | ?:[\\/]*) 12099 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12100 ;; 12101 *) 12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12103for as_dir in $PATH 12104do 12105 IFS=$as_save_IFS 12106 case $as_dir in #((( 12107 '') as_dir=./ ;; 12108 */) ;; 12109 *) as_dir=$as_dir/ ;; 12110 esac 12111 for ac_exec_ext in '' $ac_executable_extensions; do 12112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12113 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 12114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12115 break 2 12116 fi 12117done 12118 done 12119IFS=$as_save_IFS 12120 12121 ;; 12122esac ;; 12123esac 12124fi 12125XMLTO=$ac_cv_path_XMLTO 12126if test -n "$XMLTO"; then 12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12128printf "%s\n" "$XMLTO" >&6; } 12129else 12130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12131printf "%s\n" "no" >&6; } 12132fi 12133 12134 12135 if test "x$XMLTO" = "x"; then 12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 12137printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 12138 have_xmlto=no 12139 else 12140 have_xmlto=yes 12141 fi 12142elif test "x$use_xmlto" = x"yes" ; then 12143 # Extract the first word of "xmlto", so it can be a program name with args. 12144set dummy xmlto; ac_word=$2 12145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12146printf %s "checking for $ac_word... " >&6; } 12147if test ${ac_cv_path_XMLTO+y} 12148then : 12149 printf %s "(cached) " >&6 12150else case e in #( 12151 e) case $XMLTO in 12152 [\\/]* | ?:[\\/]*) 12153 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12154 ;; 12155 *) 12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12157for as_dir in $PATH 12158do 12159 IFS=$as_save_IFS 12160 case $as_dir in #((( 12161 '') as_dir=./ ;; 12162 */) ;; 12163 *) as_dir=$as_dir/ ;; 12164 esac 12165 for ac_exec_ext in '' $ac_executable_extensions; do 12166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12167 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 12168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12169 break 2 12170 fi 12171done 12172 done 12173IFS=$as_save_IFS 12174 12175 ;; 12176esac ;; 12177esac 12178fi 12179XMLTO=$ac_cv_path_XMLTO 12180if test -n "$XMLTO"; then 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12182printf "%s\n" "$XMLTO" >&6; } 12183else 12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12185printf "%s\n" "no" >&6; } 12186fi 12187 12188 12189 if test "x$XMLTO" = "x"; then 12190 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 12191 fi 12192 have_xmlto=yes 12193elif test "x$use_xmlto" = x"no" ; then 12194 if test "x$XMLTO" != "x"; then 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 12196printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 12197 fi 12198 have_xmlto=no 12199else 12200 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 12201fi 12202 12203# Test for a minimum version of xmlto, if provided. 12204if test "$have_xmlto" = yes; then 12205 # scrape the xmlto version 12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 12207printf %s "checking the xmlto version... " >&6; } 12208 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 12210printf "%s\n" "$xmlto_version" >&6; } 12211 as_arg_v1=$xmlto_version 12212as_arg_v2=0.0.20 12213awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12214case $? in #( 12215 1) : 12216 if test "x$use_xmlto" = xauto; then 12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12218printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12219 have_xmlto=no 12220 else 12221 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12222 fi ;; #( 12223 0) : 12224 ;; #( 12225 2) : 12226 ;; #( 12227 *) : 12228 ;; 12229esac 12230fi 12231 12232# Test for the ability of xmlto to generate a text target 12233# 12234# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 12235# following test for empty XML docbook files. 12236# For compatibility reasons use the following empty XML docbook file and if 12237# it fails try it again with a non-empty XML file. 12238have_xmlto_text=no 12239cat > conftest.xml << "EOF" 12240EOF 12241if test "$have_xmlto" = yes 12242then : 12243 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 12244then : 12245 have_xmlto_text=yes 12246else case e in #( 12247 e) # Try it again with a non-empty XML file. 12248 cat > conftest.xml << "EOF" 12249<x></x> 12250EOF 12251 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 12252then : 12253 have_xmlto_text=yes 12254else case e in #( 12255 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12256printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 12257esac 12258fi ;; 12259esac 12260fi 12261fi 12262rm -f conftest.xml 12263 if test $have_xmlto_text = yes; then 12264 HAVE_XMLTO_TEXT_TRUE= 12265 HAVE_XMLTO_TEXT_FALSE='#' 12266else 12267 HAVE_XMLTO_TEXT_TRUE='#' 12268 HAVE_XMLTO_TEXT_FALSE= 12269fi 12270 12271 if test "$have_xmlto" = yes; then 12272 HAVE_XMLTO_TRUE= 12273 HAVE_XMLTO_FALSE='#' 12274else 12275 HAVE_XMLTO_TRUE='#' 12276 HAVE_XMLTO_FALSE= 12277fi 12278 12279 12280 12281 12282 12283 12284# Check whether --with-fop was given. 12285if test ${with_fop+y} 12286then : 12287 withval=$with_fop; use_fop=$withval 12288else case e in #( 12289 e) use_fop=auto ;; 12290esac 12291fi 12292 12293 12294 12295if test "x$use_fop" = x"auto"; then 12296 # Extract the first word of "fop", so it can be a program name with args. 12297set dummy fop; ac_word=$2 12298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12299printf %s "checking for $ac_word... " >&6; } 12300if test ${ac_cv_path_FOP+y} 12301then : 12302 printf %s "(cached) " >&6 12303else case e in #( 12304 e) case $FOP in 12305 [\\/]* | ?:[\\/]*) 12306 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12307 ;; 12308 *) 12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12310for as_dir in $PATH 12311do 12312 IFS=$as_save_IFS 12313 case $as_dir in #((( 12314 '') as_dir=./ ;; 12315 */) ;; 12316 *) as_dir=$as_dir/ ;; 12317 esac 12318 for ac_exec_ext in '' $ac_executable_extensions; do 12319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12320 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 12321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12322 break 2 12323 fi 12324done 12325 done 12326IFS=$as_save_IFS 12327 12328 ;; 12329esac ;; 12330esac 12331fi 12332FOP=$ac_cv_path_FOP 12333if test -n "$FOP"; then 12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12335printf "%s\n" "$FOP" >&6; } 12336else 12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12338printf "%s\n" "no" >&6; } 12339fi 12340 12341 12342 if test "x$FOP" = "x"; then 12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12344printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12345 have_fop=no 12346 else 12347 have_fop=yes 12348 fi 12349elif test "x$use_fop" = x"yes" ; then 12350 # Extract the first word of "fop", so it can be a program name with args. 12351set dummy fop; ac_word=$2 12352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12353printf %s "checking for $ac_word... " >&6; } 12354if test ${ac_cv_path_FOP+y} 12355then : 12356 printf %s "(cached) " >&6 12357else case e in #( 12358 e) case $FOP in 12359 [\\/]* | ?:[\\/]*) 12360 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12361 ;; 12362 *) 12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12364for as_dir in $PATH 12365do 12366 IFS=$as_save_IFS 12367 case $as_dir in #((( 12368 '') as_dir=./ ;; 12369 */) ;; 12370 *) as_dir=$as_dir/ ;; 12371 esac 12372 for ac_exec_ext in '' $ac_executable_extensions; do 12373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12374 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 12375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12376 break 2 12377 fi 12378done 12379 done 12380IFS=$as_save_IFS 12381 12382 ;; 12383esac ;; 12384esac 12385fi 12386FOP=$ac_cv_path_FOP 12387if test -n "$FOP"; then 12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12389printf "%s\n" "$FOP" >&6; } 12390else 12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12392printf "%s\n" "no" >&6; } 12393fi 12394 12395 12396 if test "x$FOP" = "x"; then 12397 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12398 fi 12399 have_fop=yes 12400elif test "x$use_fop" = x"no" ; then 12401 if test "x$FOP" != "x"; then 12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12403printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12404 fi 12405 have_fop=no 12406else 12407 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12408fi 12409 12410# Test for a minimum version of fop, if provided. 12411 12412 if test "$have_fop" = yes; then 12413 HAVE_FOP_TRUE= 12414 HAVE_FOP_FALSE='#' 12415else 12416 HAVE_FOP_TRUE='#' 12417 HAVE_FOP_FALSE= 12418fi 12419 12420 12421 12422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 12423printf %s "checking for X.Org SGML entities >= 1.5... " >&6; } 12424XORG_SGML_PATH= 12425if test -n "$PKG_CONFIG" && \ 12426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 12427 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 12428 ac_status=$? 12429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12430 test $ac_status = 0; }; then 12431 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12432else 12433 : 12434 12435fi 12436 12437# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12438# the path and the name of the doc stylesheet 12439if test "x$XORG_SGML_PATH" != "x" ; then 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12441printf "%s\n" "$XORG_SGML_PATH" >&6; } 12442 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12443 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12444else 12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12446printf "%s\n" "no" >&6; } 12447fi 12448 12449 12450 12451 12452 if test "x$XSL_STYLESHEET" != "x"; then 12453 HAVE_STYLESHEETS_TRUE= 12454 HAVE_STYLESHEETS_FALSE='#' 12455else 12456 HAVE_STYLESHEETS_TRUE='#' 12457 HAVE_STYLESHEETS_FALSE= 12458fi 12459 12460 12461 12462 12463 12464 12465 12466# Check whether --with-lint was given. 12467if test ${with_lint+y} 12468then : 12469 withval=$with_lint; use_lint=$withval 12470else case e in #( 12471 e) use_lint=no ;; 12472esac 12473fi 12474 12475 12476# Obtain platform specific info like program name and options 12477# The lint program on FreeBSD and NetBSD is different from the one on Solaris 12478case $host_os in 12479 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12480 lint_name=splint 12481 lint_options="-badflag" 12482 ;; 12483 *freebsd* | *netbsd*) 12484 lint_name=lint 12485 lint_options="-u -b" 12486 ;; 12487 *solaris*) 12488 lint_name=lint 12489 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12490 ;; 12491esac 12492 12493# Test for the presence of the program (either guessed by the code or spelled out by the user) 12494if test "x$use_lint" = x"yes" ; then 12495 # Extract the first word of "$lint_name", so it can be a program name with args. 12496set dummy $lint_name; ac_word=$2 12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12498printf %s "checking for $ac_word... " >&6; } 12499if test ${ac_cv_path_LINT+y} 12500then : 12501 printf %s "(cached) " >&6 12502else case e in #( 12503 e) case $LINT in 12504 [\\/]* | ?:[\\/]*) 12505 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12506 ;; 12507 *) 12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12509for as_dir in $PATH 12510do 12511 IFS=$as_save_IFS 12512 case $as_dir in #((( 12513 '') as_dir=./ ;; 12514 */) ;; 12515 *) as_dir=$as_dir/ ;; 12516 esac 12517 for ac_exec_ext in '' $ac_executable_extensions; do 12518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12519 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12521 break 2 12522 fi 12523done 12524 done 12525IFS=$as_save_IFS 12526 12527 ;; 12528esac ;; 12529esac 12530fi 12531LINT=$ac_cv_path_LINT 12532if test -n "$LINT"; then 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12534printf "%s\n" "$LINT" >&6; } 12535else 12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12537printf "%s\n" "no" >&6; } 12538fi 12539 12540 12541 if test "x$LINT" = "x"; then 12542 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12543 fi 12544elif test "x$use_lint" = x"no" ; then 12545 if test "x$LINT" != "x"; then 12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12547printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12548 fi 12549else 12550 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12551fi 12552 12553# User supplied flags override default flags 12554if test "x$LINT_FLAGS" != "x"; then 12555 lint_options=$LINT_FLAGS 12556fi 12557 12558LINT_FLAGS=$lint_options 12559 12560 if test "x$LINT" != x; then 12561 LINT_TRUE= 12562 LINT_FALSE='#' 12563else 12564 LINT_TRUE='#' 12565 LINT_FALSE= 12566fi 12567 12568 12569 12570 12571# Checks for typedefs, structures, and compiler characteristics. 12572# Check whether --enable-largefile was given. 12573if test ${enable_largefile+y} 12574then : 12575 enableval=$enable_largefile; 12576fi 12577if test "$enable_largefile,$enable_year2038" != no,no 12578then : 12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 12580printf %s "checking for $CC option to enable large file support... " >&6; } 12581if test ${ac_cv_sys_largefile_opts+y} 12582then : 12583 printf %s "(cached) " >&6 12584else case e in #( 12585 e) ac_save_CC="$CC" 12586 ac_opt_found=no 12587 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 12588 if test x"$ac_opt" != x"none needed" 12589then : 12590 CC="$ac_save_CC $ac_opt" 12591fi 12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594#include <sys/types.h> 12595#ifndef FTYPE 12596# define FTYPE off_t 12597#endif 12598 /* Check that FTYPE can represent 2**63 - 1 correctly. 12599 We can't simply define LARGE_FTYPE to be 9223372036854775807, 12600 since some C++ compilers masquerading as C compilers 12601 incorrectly reject 9223372036854775807. */ 12602#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 12603 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 12604 && LARGE_FTYPE % 2147483647 == 1) 12605 ? 1 : -1]; 12606int 12607main (void) 12608{ 12609 12610 ; 12611 return 0; 12612} 12613_ACEOF 12614if ac_fn_c_try_compile "$LINENO" 12615then : 12616 if test x"$ac_opt" = x"none needed" 12617then : 12618 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 12619 CC="$CC -DFTYPE=ino_t" 12620 if ac_fn_c_try_compile "$LINENO" 12621then : 12622 12623else case e in #( 12624 e) CC="$CC -D_FILE_OFFSET_BITS=64" 12625 if ac_fn_c_try_compile "$LINENO" 12626then : 12627 ac_opt='-D_FILE_OFFSET_BITS=64' 12628fi 12629rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 12630esac 12631fi 12632rm -f core conftest.err conftest.$ac_objext conftest.beam 12633fi 12634 ac_cv_sys_largefile_opts=$ac_opt 12635 ac_opt_found=yes 12636fi 12637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12638 test $ac_opt_found = no || break 12639 done 12640 CC="$ac_save_CC" 12641 12642 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 12643esac 12644fi 12645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 12646printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 12647 12648ac_have_largefile=yes 12649case $ac_cv_sys_largefile_opts in #( 12650 "none needed") : 12651 ;; #( 12652 "supported through gnulib") : 12653 ;; #( 12654 "support not detected") : 12655 ac_have_largefile=no ;; #( 12656 "-D_FILE_OFFSET_BITS=64") : 12657 12658printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12659 ;; #( 12660 "-D_LARGE_FILES=1") : 12661 12662printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 12663 ;; #( 12664 "-n32") : 12665 CC="$CC -n32" ;; #( 12666 *) : 12667 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 12668esac 12669 12670if test "$enable_year2038" != no 12671then : 12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 12673printf %s "checking for $CC option for timestamps after 2038... " >&6; } 12674if test ${ac_cv_sys_year2038_opts+y} 12675then : 12676 printf %s "(cached) " >&6 12677else case e in #( 12678 e) ac_save_CPPFLAGS="$CPPFLAGS" 12679 ac_opt_found=no 12680 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 12681 if test x"$ac_opt" != x"none needed" 12682then : 12683 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 12684fi 12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687 12688 #include <time.h> 12689 /* Check that time_t can represent 2**32 - 1 correctly. */ 12690 #define LARGE_TIME_T \\ 12691 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 12692 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 12693 && LARGE_TIME_T % 65537 == 0) 12694 ? 1 : -1]; 12695 12696int 12697main (void) 12698{ 12699 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704if ac_fn_c_try_compile "$LINENO" 12705then : 12706 ac_cv_sys_year2038_opts="$ac_opt" 12707 ac_opt_found=yes 12708fi 12709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12710 test $ac_opt_found = no || break 12711 done 12712 CPPFLAGS="$ac_save_CPPFLAGS" 12713 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 12714esac 12715fi 12716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 12717printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 12718 12719ac_have_year2038=yes 12720case $ac_cv_sys_year2038_opts in #( 12721 "none needed") : 12722 ;; #( 12723 "support not detected") : 12724 ac_have_year2038=no ;; #( 12725 "-D_TIME_BITS=64") : 12726 12727printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 12728 ;; #( 12729 "-D__MINGW_USE_VC2005_COMPAT") : 12730 12731printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 12732 ;; #( 12733 "-U_USE_32_BIT_TIME_T"*) : 12734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12735printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12736as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 12737will stop working after mid-January 2038. Remove 12738_USE_32BIT_TIME_T from the compiler flags. 12739See 'config.log' for more details" "$LINENO" 5; } ;; #( 12740 *) : 12741 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 12742esac 12743 12744fi 12745 12746fi 12747 12748ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12749if test "x$ac_cv_header_stdint_h" = xyes 12750then : 12751 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 12752 12753fi 12754 12755 12756 12757# Check whether --with-default-config-file was given. 12758if test ${with_default_config_file+y} 12759then : 12760 withval=$with_default_config_file; CONFIG_FILE="$withval" 12761else case e in #( 12762 e) CONFIG_FILE="${sysconfdir}/X11/fs/config" ;; 12763esac 12764fi 12765 12766 12767DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g` 12768 12769 prefix_NONE= 12770 exec_prefix_NONE= 12771 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 12772 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 12773 eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\"" 12774 eval ax_define_dir="\"$ax_define_dir\"" 12775 DEFAULT_CONFIG_FILE="$ax_define_dir" 12776 12777 12778printf "%s\n" "#define DEFAULT_CONFIG_FILE \"$ax_define_dir\"" >>confdefs.h 12779 12780 test "$prefix_NONE" && prefix=NONE 12781 test "$exec_prefix_NONE" && exec_prefix=NONE 12782 12783 12784# generate text for the man page 12785case $CONFIG_FILE in 12786 *,*) 12787 CONFIG_FILE_DESC="the first file found from the list:" 12788 CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'` 12789 ;; 12790 *) 12791 CONFIG_FILE_DESC="the default file," 12792 CONFIG_FILE_PATH="${CONFIG_FILE}" 12793 ;; 12794esac 12795 12796 12797 12798# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 12815printf %s "checking for root directory for font files... " >&6; } 12816 12817# Check whether --with-fontrootdir was given. 12818if test ${with_fontrootdir+y} 12819then : 12820 withval=$with_fontrootdir; FONTROOTDIR="$withval" 12821fi 12822 12823 # if --with-fontrootdir not specified... 12824 if test "x${FONTROOTDIR}" = "x"; then 12825 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 12826 fi 12827 # ...and if pkg-config didn't find fontdir in fontutil.pc... 12828 if test "x${FONTROOTDIR}" = "x"; then 12829 FONTROOTDIR="${datadir}/fonts/X11" 12830 fi 12831 12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 12833printf "%s\n" "${FONTROOTDIR}" >&6; } 12834 12835 12836 12837 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 12839printf %s "checking for directory for misc files... " >&6; } 12840 12841# Check whether --with-fontmiscdir was given. 12842if test ${with_fontmiscdir+y} 12843then : 12844 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 12845else case e in #( 12846 e) FONTMISCDIR='${FONTROOTDIR}/misc' ;; 12847esac 12848fi 12849 12850 12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 12852printf "%s\n" "${FONTMISCDIR}" >&6; } 12853 12854 12855 12856 12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 12858printf %s "checking for directory for OTF files... " >&6; } 12859 12860# Check whether --with-fontotfdir was given. 12861if test ${with_fontotfdir+y} 12862then : 12863 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 12864else case e in #( 12865 e) FONTOTFDIR='${FONTROOTDIR}/OTF' ;; 12866esac 12867fi 12868 12869 12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 12871printf "%s\n" "${FONTOTFDIR}" >&6; } 12872 12873 12874 12875 12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 12877printf %s "checking for directory for TTF files... " >&6; } 12878 12879# Check whether --with-fontttfdir was given. 12880if test ${with_fontttfdir+y} 12881then : 12882 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 12883else case e in #( 12884 e) FONTTTFDIR='${FONTROOTDIR}/TTF' ;; 12885esac 12886fi 12887 12888 12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 12890printf "%s\n" "${FONTTTFDIR}" >&6; } 12891 12892 12893 12894 12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 12896printf %s "checking for directory for Type1 files... " >&6; } 12897 12898# Check whether --with-fonttype1dir was given. 12899if test ${with_fonttype1dir+y} 12900then : 12901 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 12902else case e in #( 12903 e) FONTTYPE1DIR='${FONTROOTDIR}/Type1' ;; 12904esac 12905fi 12906 12907 12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 12909printf "%s\n" "${FONTTYPE1DIR}" >&6; } 12910 12911 12912 12913 12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 12915printf %s "checking for directory for 75dpi files... " >&6; } 12916 12917# Check whether --with-font75dpidir was given. 12918if test ${with_font75dpidir+y} 12919then : 12920 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 12921else case e in #( 12922 e) FONT75DPIDIR='${FONTROOTDIR}/75dpi' ;; 12923esac 12924fi 12925 12926 12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 12928printf "%s\n" "${FONT75DPIDIR}" >&6; } 12929 12930 12931 12932 12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 12934printf %s "checking for directory for 100dpi files... " >&6; } 12935 12936# Check whether --with-font100dpidir was given. 12937if test ${with_font100dpidir+y} 12938then : 12939 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 12940else case e in #( 12941 e) FONT100DPIDIR='${FONTROOTDIR}/100dpi' ;; 12942esac 12943fi 12944 12945 12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 12947printf "%s\n" "${FONT100DPIDIR}" >&6; } 12948 12949 12950# Determine font path to put in config file 12951# Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d, 12952# otherwise uses standard subdirectories of FONTROOTDIR. When cross 12953# compiling, assume default font path uses standard FONTROOTDIR directories. 12954DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 12955if test "$cross_compiling" != yes; then 12956 as_ac_File=`printf "%s\n" "ac_cv_file_${sysconfdir}/X11/fontpath.d" | sed "$as_sed_sh"` 12957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5 12958printf %s "checking for ${sysconfdir}/X11/fontpath.d... " >&6; } 12959if eval test \${$as_ac_File+y} 12960then : 12961 printf %s "(cached) " >&6 12962else case e in #( 12963 e) test "$cross_compiling" = yes && 12964 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12965if test -r "${sysconfdir}/X11/fontpath.d"; then 12966 eval "$as_ac_File=yes" 12967else 12968 eval "$as_ac_File=no" 12969fi ;; 12970esac 12971fi 12972eval ac_res=\$$as_ac_File 12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12974printf "%s\n" "$ac_res" >&6; } 12975if eval test \"x\$"$as_ac_File"\" = x"yes" 12976then : 12977 DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d' 12978else case e in #( 12979 e) case $host_os in 12980 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 12981 esac ;; 12982esac 12983fi 12984 12985fi 12986 12987# Check whether --with-default-font-path was given. 12988if test ${with_default_font_path+y} 12989then : 12990 withval=$with_default_font_path; FONTPATH="$withval" 12991else case e in #( 12992 e) FONTPATH="${DEFAULT_FONT_PATH}" ;; 12993esac 12994fi 12995 12996 12997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 12998printf %s "checking for default font path... " >&6; } 12999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 13000printf "%s\n" "$FONTPATH" >&6; } 13001 13002 13003 13004# Option to enable support for starting from inetd 13005# Check whether --enable-inetd was given. 13006if test ${enable_inetd+y} 13007then : 13008 enableval=$enable_inetd; INETD=$enableval 13009else case e in #( 13010 e) INETD=yes ;; 13011esac 13012fi 13013 13014if test "x$INETD" = xyes; then 13015 13016printf "%s\n" "#define XFS_INETD 1" >>confdefs.h 13017 13018fi 13019 13020# Option to enable support for logging to syslog 13021# Check whether --enable-syslog was given. 13022if test ${enable_syslog+y} 13023then : 13024 enableval=$enable_syslog; SYSLOG=$enableval 13025else case e in #( 13026 e) SYSLOG=yes ;; 13027esac 13028fi 13029 13030if test "x$SYSLOG" = xyes; then 13031 13032printf "%s\n" "#define USE_SYSLOG 1" >>confdefs.h 13033 13034fi 13035 13036 13037# Checks for system functions / libraries 13038ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 13039if test "x$ac_cv_func_daemon" = xyes 13040then : 13041 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 13042 13043fi 13044 13045 13046# Checks for pkg-config packages 13047# - xproto >= 7.0.25 required for _X_COLD in <X11/Xfuncproto.h> 13048# - xfont >= 2.0.1 for new server API 13049 13050pkg_failed=no 13051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5 13052printf %s "checking for XFS... " >&6; } 13053 13054if test -n "$XFS_CFLAGS"; then 13055 pkg_cv_XFS_CFLAGS="$XFS_CFLAGS" 13056 elif test -n "$PKG_CONFIG"; then 13057 if test -n "$PKG_CONFIG" && \ 13058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans\""; } >&5 13059 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans") 2>&5 13060 ac_status=$? 13061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13062 test $ac_status = 0; }; then 13063 pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>/dev/null` 13064 test "x$?" != "x0" && pkg_failed=yes 13065else 13066 pkg_failed=yes 13067fi 13068 else 13069 pkg_failed=untried 13070fi 13071if test -n "$XFS_LIBS"; then 13072 pkg_cv_XFS_LIBS="$XFS_LIBS" 13073 elif test -n "$PKG_CONFIG"; then 13074 if test -n "$PKG_CONFIG" && \ 13075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans\""; } >&5 13076 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans") 2>&5 13077 ac_status=$? 13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13079 test $ac_status = 0; }; then 13080 pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>/dev/null` 13081 test "x$?" != "x0" && pkg_failed=yes 13082else 13083 pkg_failed=yes 13084fi 13085 else 13086 pkg_failed=untried 13087fi 13088 13089 13090 13091if test $pkg_failed = yes; then 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13093printf "%s\n" "no" >&6; } 13094 13095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13096 _pkg_short_errors_supported=yes 13097else 13098 _pkg_short_errors_supported=no 13099fi 13100 if test $_pkg_short_errors_supported = yes; then 13101 XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>&1` 13102 else 13103 XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>&1` 13104 fi 13105 # Put the nasty error message in config.log where it belongs 13106 echo "$XFS_PKG_ERRORS" >&5 13107 13108 as_fn_error $? "Package requirements (xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans) were not met: 13109 13110$XFS_PKG_ERRORS 13111 13112Consider adjusting the PKG_CONFIG_PATH environment variable if you 13113installed software in a non-standard prefix. 13114 13115Alternatively, you may set the environment variables XFS_CFLAGS 13116and XFS_LIBS to avoid the need to call pkg-config. 13117See the pkg-config man page for more details." "$LINENO" 5 13118elif test $pkg_failed = untried; then 13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13120printf "%s\n" "no" >&6; } 13121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13122printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13123as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13124is in your PATH or set the PKG_CONFIG environment variable to the full 13125path to pkg-config. 13126 13127Alternatively, you may set the environment variables XFS_CFLAGS 13128and XFS_LIBS to avoid the need to call pkg-config. 13129See the pkg-config man page for more details. 13130 13131To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13132See 'config.log' for more details" "$LINENO" 5; } 13133else 13134 XFS_CFLAGS=$pkg_cv_XFS_CFLAGS 13135 XFS_LIBS=$pkg_cv_XFS_LIBS 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13137printf "%s\n" "yes" >&6; } 13138 13139fi 13140 13141case "$host_os" in 13142 cygwin*|mingw*) 13143 CFLAGS="$CFLAGS -DFD_SETSIZE=256" 13144 LDFLAGS="$LDFLAGS -Wl,--export-all" ;; 13145esac 13146 13147# Transport selection macro from xtrans.m4 13148 13149 13150 case $host_os in 13151 mingw*) unixdef="no" ;; 13152 *) unixdef="yes" ;; 13153 esac 13154 # Check whether --enable-unix-transport was given. 13155if test ${enable_unix_transport+y} 13156then : 13157 enableval=$enable_unix_transport; UNIXCONN=$enableval 13158else case e in #( 13159 e) UNIXCONN=$unixdef ;; 13160esac 13161fi 13162 13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 13164printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 13165 if test "$UNIXCONN" = "yes"; then 13166 13167printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 13168 13169 fi 13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 13171printf "%s\n" "$UNIXCONN" >&6; } 13172 # Check whether --enable-tcp-transport was given. 13173if test ${enable_tcp_transport+y} 13174then : 13175 enableval=$enable_tcp_transport; TCPCONN=$enableval 13176else case e in #( 13177 e) TCPCONN=yes ;; 13178esac 13179fi 13180 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 13182printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 13184printf "%s\n" "$TCPCONN" >&6; } 13185 if test "$TCPCONN" = "yes"; then 13186 13187printf "%s\n" "#define TCPCONN 1" >>confdefs.h 13188 13189 13190 # SVR4 hides these in libraries other than libc 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13192printf %s "checking for library containing socket... " >&6; } 13193if test ${ac_cv_search_socket+y} 13194then : 13195 printf %s "(cached) " >&6 13196else case e in #( 13197 e) ac_func_search_save_LIBS=$LIBS 13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13199/* end confdefs.h. */ 13200 13201/* Override any GCC internal prototype to avoid an error. 13202 Use char because int might match the return type of a GCC 13203 builtin and then its argument prototype would still apply. 13204 The 'extern "C"' is for builds by C++ compilers; 13205 although this is not generally supported in C code supporting it here 13206 has little cost and some practical benefit (sr 110532). */ 13207#ifdef __cplusplus 13208extern "C" 13209#endif 13210char socket (void); 13211int 13212main (void) 13213{ 13214return socket (); 13215 ; 13216 return 0; 13217} 13218_ACEOF 13219for ac_lib in '' socket 13220do 13221 if test -z "$ac_lib"; then 13222 ac_res="none required" 13223 else 13224 ac_res=-l$ac_lib 13225 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13226 fi 13227 if ac_fn_c_try_link "$LINENO" 13228then : 13229 ac_cv_search_socket=$ac_res 13230fi 13231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13232 conftest$ac_exeext 13233 if test ${ac_cv_search_socket+y} 13234then : 13235 break 13236fi 13237done 13238if test ${ac_cv_search_socket+y} 13239then : 13240 13241else case e in #( 13242 e) ac_cv_search_socket=no ;; 13243esac 13244fi 13245rm conftest.$ac_ext 13246LIBS=$ac_func_search_save_LIBS ;; 13247esac 13248fi 13249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13250printf "%s\n" "$ac_cv_search_socket" >&6; } 13251ac_res=$ac_cv_search_socket 13252if test "$ac_res" != no 13253then : 13254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13255 13256fi 13257 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13259printf %s "checking for library containing gethostbyname... " >&6; } 13260if test ${ac_cv_search_gethostbyname+y} 13261then : 13262 printf %s "(cached) " >&6 13263else case e in #( 13264 e) ac_func_search_save_LIBS=$LIBS 13265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267 13268/* Override any GCC internal prototype to avoid an error. 13269 Use char because int might match the return type of a GCC 13270 builtin and then its argument prototype would still apply. 13271 The 'extern "C"' is for builds by C++ compilers; 13272 although this is not generally supported in C code supporting it here 13273 has little cost and some practical benefit (sr 110532). */ 13274#ifdef __cplusplus 13275extern "C" 13276#endif 13277char gethostbyname (void); 13278int 13279main (void) 13280{ 13281return gethostbyname (); 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286for ac_lib in '' nsl 13287do 13288 if test -z "$ac_lib"; then 13289 ac_res="none required" 13290 else 13291 ac_res=-l$ac_lib 13292 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13293 fi 13294 if ac_fn_c_try_link "$LINENO" 13295then : 13296 ac_cv_search_gethostbyname=$ac_res 13297fi 13298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13299 conftest$ac_exeext 13300 if test ${ac_cv_search_gethostbyname+y} 13301then : 13302 break 13303fi 13304done 13305if test ${ac_cv_search_gethostbyname+y} 13306then : 13307 13308else case e in #( 13309 e) ac_cv_search_gethostbyname=no ;; 13310esac 13311fi 13312rm conftest.$ac_ext 13313LIBS=$ac_func_search_save_LIBS ;; 13314esac 13315fi 13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 13317printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 13318ac_res=$ac_cv_search_gethostbyname 13319if test "$ac_res" != no 13320then : 13321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13322 13323fi 13324 13325 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 13327printf %s "checking for main in -lws2_32... " >&6; } 13328if test ${ac_cv_lib_ws2_32_main+y} 13329then : 13330 printf %s "(cached) " >&6 13331else case e in #( 13332 e) ac_check_lib_save_LIBS=$LIBS 13333LIBS="-lws2_32 $LIBS" 13334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336 13337 13338int 13339main (void) 13340{ 13341return main (); 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346if ac_fn_c_try_link "$LINENO" 13347then : 13348 ac_cv_lib_ws2_32_main=yes 13349else case e in #( 13350 e) ac_cv_lib_ws2_32_main=no ;; 13351esac 13352fi 13353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13354 conftest$ac_exeext conftest.$ac_ext 13355LIBS=$ac_check_lib_save_LIBS ;; 13356esac 13357fi 13358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 13359printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 13360if test "x$ac_cv_lib_ws2_32_main" = xyes 13361then : 13362 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 13363 13364 LIBS="-lws2_32 $LIBS" 13365 13366fi 13367 13368 fi 13369 13370 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 13371 # Check whether --enable-ipv6 was given. 13372if test ${enable_ipv6+y} 13373then : 13374 enableval=$enable_ipv6; IPV6CONN=$enableval 13375else case e in #( 13376 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 13377if test "x$ac_cv_func_getaddrinfo" = xyes 13378then : 13379 IPV6CONN=yes 13380else case e in #( 13381 e) IPV6CONN=no ;; 13382esac 13383fi 13384 ;; 13385esac 13386fi 13387 13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 13389printf %s "checking if IPv6 support should be built... " >&6; } 13390 if test "$IPV6CONN" = "yes"; then 13391 13392printf "%s\n" "#define IPv6 1" >>confdefs.h 13393 13394 fi 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 13396printf "%s\n" "$IPV6CONN" >&6; } 13397 13398 # 4.3BSD-Reno added a new member to struct sockaddr_in 13399 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 13400#include <sys/types.h> 13401#include <sys/socket.h> 13402#include <netinet/in.h> 13403 13404" 13405if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 13406then : 13407 13408printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 13409 13410fi 13411 13412 13413 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 13414 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13415$ac_includes_default 13416#include <sys/socket.h> 13417" 13418if test "x$ac_cv_type_socklen_t" = xyes 13419then : 13420 13421printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 13422 13423 13424fi 13425 13426 13427 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 13428 # _XOPEN_SOURCE to get it (such as on Solaris) 13429 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 13430$ac_includes_default 13431#include <sys/socket.h> 13432 13433" 13434if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 13435then : 13436 13437fi 13438 13439 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 13440 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 13441 unset ac_cv_member_struct_msghdr_msg_control 13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 13443printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 13444 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 13445#define _XOPEN_SOURCE 600 13446$ac_includes_default 13447#include <sys/socket.h> 13448 13449" 13450if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 13451then : 13452 13453printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 13454 13455 13456fi 13457 13458 fi 13459 # If that didn't work, fall back to XPG5/UNIX98 with C89 13460 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 13461 unset ac_cv_member_struct_msghdr_msg_control 13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 13463printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 13464 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 13465#define _XOPEN_SOURCE 500 13466$ac_includes_default 13467#include <sys/socket.h> 13468 13469" 13470if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 13471then : 13472 13473printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 13474 13475 13476fi 13477 13478 fi 13479 13480 13481 13482 fi 13483 case $host_os in 13484 solaris*) localdef="yes" ;; 13485 *) localdef="no" ;; 13486 esac 13487 # Check whether --enable-local-transport was given. 13488if test ${enable_local_transport+y} 13489then : 13490 enableval=$enable_local_transport; LOCALCONN=$enableval 13491else case e in #( 13492 e) LOCALCONN=$localdef ;; 13493esac 13494fi 13495 13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 13497printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 13499printf "%s\n" "$LOCALCONN" >&6; } 13500 if test "$LOCALCONN" = "yes"; then 13501 13502printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 13503 13504 fi 13505 13506 # Other functions Xtrans may need 13507 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 13508if test "x$ac_cv_func_strcasecmp" = xyes 13509then : 13510 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 13511 13512fi 13513ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 13514if test "x$ac_cv_func_strlcpy" = xyes 13515then : 13516 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 13517 13518fi 13519 13520 13521 13522 13523ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile" 13524 13525cat >confcache <<\_ACEOF 13526# This file is a shell script that caches the results of configure 13527# tests run on this system so they can be shared between configure 13528# scripts and configure runs, see configure's option --config-cache. 13529# It is not useful on other systems. If it contains results you don't 13530# want to keep, you may remove or edit it. 13531# 13532# config.status only pays attention to the cache file if you give it 13533# the --recheck option to rerun configure. 13534# 13535# 'ac_cv_env_foo' variables (set or unset) will be overridden when 13536# loading this file, other *unset* 'ac_cv_foo' will be assigned the 13537# following values. 13538 13539_ACEOF 13540 13541# The following way of writing the cache mishandles newlines in values, 13542# but we know of no workaround that is simple, portable, and efficient. 13543# So, we kill variables containing newlines. 13544# Ultrix sh set writes to stderr and can't be redirected directly, 13545# and sets the high bit in the cache file unless we assign to the vars. 13546( 13547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13548 eval ac_val=\$$ac_var 13549 case $ac_val in #( 13550 *${as_nl}*) 13551 case $ac_var in #( 13552 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13553printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13554 esac 13555 case $ac_var in #( 13556 _ | IFS | as_nl) ;; #( 13557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13558 *) { eval $ac_var=; unset $ac_var;} ;; 13559 esac ;; 13560 esac 13561 done 13562 13563 (set) 2>&1 | 13564 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13565 *${as_nl}ac_space=\ *) 13566 # 'set' does not quote correctly, so add quotes: double-quote 13567 # substitution turns \\\\ into \\, and sed turns \\ into \. 13568 sed -n \ 13569 "s/'/'\\\\''/g; 13570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13571 ;; #( 13572 *) 13573 # 'set' quotes correctly as required by POSIX, so do not add quotes. 13574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13575 ;; 13576 esac | 13577 sort 13578) | 13579 sed ' 13580 /^ac_cv_env_/b end 13581 t clear 13582 :clear 13583 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13584 t end 13585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13586 :end' >>confcache 13587if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13588 if test -w "$cache_file"; then 13589 if test "x$cache_file" != "x/dev/null"; then 13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13591printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13592 if test ! -f "$cache_file" || test -h "$cache_file"; then 13593 cat confcache >"$cache_file" 13594 else 13595 case $cache_file in #( 13596 */* | ?:*) 13597 mv -f confcache "$cache_file"$$ && 13598 mv -f "$cache_file"$$ "$cache_file" ;; #( 13599 *) 13600 mv -f confcache "$cache_file" ;; 13601 esac 13602 fi 13603 fi 13604 else 13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13606printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13607 fi 13608fi 13609rm -f confcache 13610 13611test "x$prefix" = xNONE && prefix=$ac_default_prefix 13612# Let make expand exec_prefix. 13613test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13614 13615DEFS=-DHAVE_CONFIG_H 13616 13617ac_libobjs= 13618ac_ltlibobjs= 13619U= 13620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13621 # 1. Remove the extension, and $U if already installed. 13622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13623 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 13624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13625 # will be set to the directory where LIBOBJS objects are built. 13626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13628done 13629LIBOBJS=$ac_libobjs 13630 13631LTLIBOBJS=$ac_ltlibobjs 13632 13633 13634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13635printf %s "checking that generated files are newer than configure... " >&6; } 13636 if test -n "$am_sleep_pid"; then 13637 # Hide warnings about reused PIDs. 13638 wait $am_sleep_pid 2>/dev/null 13639 fi 13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 13641printf "%s\n" "done" >&6; } 13642if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13643 as_fn_error $? "conditional \"AMDEP\" was never defined. 13644Usually this means the macro was only invoked conditionally." "$LINENO" 5 13645fi 13646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13647 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13648Usually this means the macro was only invoked conditionally." "$LINENO" 5 13649fi 13650case $enable_silent_rules in # ((( 13651 yes) AM_DEFAULT_VERBOSITY=0;; 13652 no) AM_DEFAULT_VERBOSITY=1;; 13653esac 13654if test $am_cv_make_support_nested_variables = yes; then 13655 AM_V='$(V)' 13656 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 13657else 13658 AM_V=$AM_DEFAULT_VERBOSITY 13659 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 13660fi 13661 13662 if test -n "$EXEEXT"; then 13663 am__EXEEXT_TRUE= 13664 am__EXEEXT_FALSE='#' 13665else 13666 am__EXEEXT_TRUE='#' 13667 am__EXEEXT_FALSE= 13668fi 13669 13670if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 13671 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 13672Usually this means the macro was only invoked conditionally." "$LINENO" 5 13673fi 13674if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 13675 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 13676Usually this means the macro was only invoked conditionally." "$LINENO" 5 13677fi 13678if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 13679 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 13680Usually this means the macro was only invoked conditionally." "$LINENO" 5 13681fi 13682if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 13683 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 13684Usually this means the macro was only invoked conditionally." "$LINENO" 5 13685fi 13686if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 13687 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 13688Usually this means the macro was only invoked conditionally." "$LINENO" 5 13689fi 13690if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 13691 as_fn_error $? "conditional \"LINT\" was never defined. 13692Usually this means the macro was only invoked conditionally." "$LINENO" 5 13693fi 13694# Check whether --enable-year2038 was given. 13695if test ${enable_year2038+y} 13696then : 13697 enableval=$enable_year2038; 13698fi 13699 13700 13701: "${CONFIG_STATUS=./config.status}" 13702ac_write_fail=0 13703ac_clean_files_save=$ac_clean_files 13704ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13706printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 13707as_write_fail=0 13708cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13709#! $SHELL 13710# Generated by $as_me. 13711# Run this file to recreate the current configuration. 13712# Compiler output produced by configure, useful for debugging 13713# configure, is in config.log if it exists. 13714 13715debug=false 13716ac_cs_recheck=false 13717ac_cs_silent=false 13718 13719SHELL=\${CONFIG_SHELL-$SHELL} 13720export SHELL 13721_ASEOF 13722cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13723## -------------------- ## 13724## M4sh Initialization. ## 13725## -------------------- ## 13726 13727# Be more Bourne compatible 13728DUALCASE=1; export DUALCASE # for MKS sh 13729if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 13730then : 13731 emulate sh 13732 NULLCMD=: 13733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13734 # is contrary to our usage. Disable this feature. 13735 alias -g '${1+"$@"}'='"$@"' 13736 setopt NO_GLOB_SUBST 13737else case e in #( 13738 e) case `(set -o) 2>/dev/null` in #( 13739 *posix*) : 13740 set -o posix ;; #( 13741 *) : 13742 ;; 13743esac ;; 13744esac 13745fi 13746 13747 13748 13749# Reset variables that may have inherited troublesome values from 13750# the environment. 13751 13752# IFS needs to be set, to space, tab, and newline, in precisely that order. 13753# (If _AS_PATH_WALK were called with IFS unset, it would have the 13754# side effect of setting IFS to empty, thus disabling word splitting.) 13755# Quoting is to prevent editors from complaining about space-tab. 13756as_nl=' 13757' 13758export as_nl 13759IFS=" "" $as_nl" 13760 13761PS1='$ ' 13762PS2='> ' 13763PS4='+ ' 13764 13765# Ensure predictable behavior from utilities with locale-dependent output. 13766LC_ALL=C 13767export LC_ALL 13768LANGUAGE=C 13769export LANGUAGE 13770 13771# We cannot yet rely on "unset" to work, but we need these variables 13772# to be unset--not just set to an empty or harmless value--now, to 13773# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 13774# also avoids known problems related to "unset" and subshell syntax 13775# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 13776for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 13777do eval test \${$as_var+y} \ 13778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13779done 13780 13781# Ensure that fds 0, 1, and 2 are open. 13782if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 13783if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 13784if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 13785 13786# The user is always right. 13787if ${PATH_SEPARATOR+false} :; then 13788 PATH_SEPARATOR=: 13789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13791 PATH_SEPARATOR=';' 13792 } 13793fi 13794 13795 13796# Find who we are. Look in the path if we contain no directory separator. 13797as_myself= 13798case $0 in #(( 13799 *[\\/]* ) as_myself=$0 ;; 13800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13801for as_dir in $PATH 13802do 13803 IFS=$as_save_IFS 13804 case $as_dir in #((( 13805 '') as_dir=./ ;; 13806 */) ;; 13807 *) as_dir=$as_dir/ ;; 13808 esac 13809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 13810 done 13811IFS=$as_save_IFS 13812 13813 ;; 13814esac 13815# We did not find ourselves, most probably we were run as 'sh COMMAND' 13816# in which case we are not to be found in the path. 13817if test "x$as_myself" = x; then 13818 as_myself=$0 13819fi 13820if test ! -f "$as_myself"; then 13821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13822 exit 1 13823fi 13824 13825 13826 13827# as_fn_error STATUS ERROR [LINENO LOG_FD] 13828# ---------------------------------------- 13829# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13830# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13831# script with STATUS, using 1 if that was 0. 13832as_fn_error () 13833{ 13834 as_status=$1; test $as_status -eq 0 && as_status=1 13835 if test "$4"; then 13836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13838 fi 13839 printf "%s\n" "$as_me: error: $2" >&2 13840 as_fn_exit $as_status 13841} # as_fn_error 13842 13843 13844# as_fn_set_status STATUS 13845# ----------------------- 13846# Set $? to STATUS, without forking. 13847as_fn_set_status () 13848{ 13849 return $1 13850} # as_fn_set_status 13851 13852# as_fn_exit STATUS 13853# ----------------- 13854# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13855as_fn_exit () 13856{ 13857 set +e 13858 as_fn_set_status $1 13859 exit $1 13860} # as_fn_exit 13861 13862# as_fn_unset VAR 13863# --------------- 13864# Portably unset VAR. 13865as_fn_unset () 13866{ 13867 { eval $1=; unset $1;} 13868} 13869as_unset=as_fn_unset 13870 13871# as_fn_append VAR VALUE 13872# ---------------------- 13873# Append the text in VALUE to the end of the definition contained in VAR. Take 13874# advantage of any shell optimizations that allow amortized linear growth over 13875# repeated appends, instead of the typical quadratic growth present in naive 13876# implementations. 13877if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 13878then : 13879 eval 'as_fn_append () 13880 { 13881 eval $1+=\$2 13882 }' 13883else case e in #( 13884 e) as_fn_append () 13885 { 13886 eval $1=\$$1\$2 13887 } ;; 13888esac 13889fi # as_fn_append 13890 13891# as_fn_arith ARG... 13892# ------------------ 13893# Perform arithmetic evaluation on the ARGs, and store the result in the 13894# global $as_val. Take advantage of shells that can avoid forks. The arguments 13895# must be portable across $(()) and expr. 13896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 13897then : 13898 eval 'as_fn_arith () 13899 { 13900 as_val=$(( $* )) 13901 }' 13902else case e in #( 13903 e) as_fn_arith () 13904 { 13905 as_val=`expr "$@" || test $? -eq 1` 13906 } ;; 13907esac 13908fi # as_fn_arith 13909 13910 13911if expr a : '\(a\)' >/dev/null 2>&1 && 13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13913 as_expr=expr 13914else 13915 as_expr=false 13916fi 13917 13918if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13919 as_basename=basename 13920else 13921 as_basename=false 13922fi 13923 13924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13925 as_dirname=dirname 13926else 13927 as_dirname=false 13928fi 13929 13930as_me=`$as_basename -- "$0" || 13931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13932 X"$0" : 'X\(//\)$' \| \ 13933 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13934printf "%s\n" X/"$0" | 13935 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13936 s//\1/ 13937 q 13938 } 13939 /^X\/\(\/\/\)$/{ 13940 s//\1/ 13941 q 13942 } 13943 /^X\/\(\/\).*/{ 13944 s//\1/ 13945 q 13946 } 13947 s/.*/./; q'` 13948 13949# Avoid depending upon Character Ranges. 13950as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13951as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13952as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13953as_cr_digits='0123456789' 13954as_cr_alnum=$as_cr_Letters$as_cr_digits 13955 13956 13957# Determine whether it's possible to make 'echo' print without a newline. 13958# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13959# for compatibility with existing Makefiles. 13960ECHO_C= ECHO_N= ECHO_T= 13961case `echo -n x` in #((((( 13962-n*) 13963 case `echo 'xy\c'` in 13964 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13965 xy) ECHO_C='\c';; 13966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13967 ECHO_T=' ';; 13968 esac;; 13969*) 13970 ECHO_N='-n';; 13971esac 13972 13973# For backward compatibility with old third-party macros, we provide 13974# the shell variables $as_echo and $as_echo_n. New code should use 13975# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13976as_echo='printf %s\n' 13977as_echo_n='printf %s' 13978 13979rm -f conf$$ conf$$.exe conf$$.file 13980if test -d conf$$.dir; then 13981 rm -f conf$$.dir/conf$$.file 13982else 13983 rm -f conf$$.dir 13984 mkdir conf$$.dir 2>/dev/null 13985fi 13986if (echo >conf$$.file) 2>/dev/null; then 13987 if ln -s conf$$.file conf$$ 2>/dev/null; then 13988 as_ln_s='ln -s' 13989 # ... but there are two gotchas: 13990 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 13991 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 13992 # In both cases, we have to default to 'cp -pR'. 13993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13994 as_ln_s='cp -pR' 13995 elif ln conf$$.file conf$$ 2>/dev/null; then 13996 as_ln_s=ln 13997 else 13998 as_ln_s='cp -pR' 13999 fi 14000else 14001 as_ln_s='cp -pR' 14002fi 14003rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14004rmdir conf$$.dir 2>/dev/null 14005 14006 14007# as_fn_mkdir_p 14008# ------------- 14009# Create "$as_dir" as a directory, including parents if necessary. 14010as_fn_mkdir_p () 14011{ 14012 14013 case $as_dir in #( 14014 -*) as_dir=./$as_dir;; 14015 esac 14016 test -d "$as_dir" || eval $as_mkdir_p || { 14017 as_dirs= 14018 while :; do 14019 case $as_dir in #( 14020 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14021 *) as_qdir=$as_dir;; 14022 esac 14023 as_dirs="'$as_qdir' $as_dirs" 14024 as_dir=`$as_dirname -- "$as_dir" || 14025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14026 X"$as_dir" : 'X\(//\)[^/]' \| \ 14027 X"$as_dir" : 'X\(//\)$' \| \ 14028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14029printf "%s\n" X"$as_dir" | 14030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14031 s//\1/ 14032 q 14033 } 14034 /^X\(\/\/\)[^/].*/{ 14035 s//\1/ 14036 q 14037 } 14038 /^X\(\/\/\)$/{ 14039 s//\1/ 14040 q 14041 } 14042 /^X\(\/\).*/{ 14043 s//\1/ 14044 q 14045 } 14046 s/.*/./; q'` 14047 test -d "$as_dir" && break 14048 done 14049 test -z "$as_dirs" || eval "mkdir $as_dirs" 14050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14051 14052 14053} # as_fn_mkdir_p 14054if mkdir -p . 2>/dev/null; then 14055 as_mkdir_p='mkdir -p "$as_dir"' 14056else 14057 test -d ./-p && rmdir ./-p 14058 as_mkdir_p=false 14059fi 14060 14061 14062# as_fn_executable_p FILE 14063# ----------------------- 14064# Test if FILE is an executable regular file. 14065as_fn_executable_p () 14066{ 14067 test -f "$1" && test -x "$1" 14068} # as_fn_executable_p 14069as_test_x='test -x' 14070as_executable_p=as_fn_executable_p 14071 14072# Sed expression to map a string onto a valid CPP name. 14073as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 14074as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 14075 14076# Sed expression to map a string onto a valid variable name. 14077as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 14078as_tr_sh="eval sed '$as_sed_sh'" # deprecated 14079 14080 14081exec 6>&1 14082## ----------------------------------- ## 14083## Main body of $CONFIG_STATUS script. ## 14084## ----------------------------------- ## 14085_ASEOF 14086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14087 14088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14089# Save the log message, to keep $0 and so on meaningful, and to 14090# report actual input values of CONFIG_FILES etc. instead of their 14091# values after options handling. 14092ac_log=" 14093This file was extended by xfs $as_me 1.2.2, which was 14094generated by GNU Autoconf 2.72. Invocation command line was 14095 14096 CONFIG_FILES = $CONFIG_FILES 14097 CONFIG_HEADERS = $CONFIG_HEADERS 14098 CONFIG_LINKS = $CONFIG_LINKS 14099 CONFIG_COMMANDS = $CONFIG_COMMANDS 14100 $ $0 $@ 14101 14102on `(hostname || uname -n) 2>/dev/null | sed 1q` 14103" 14104 14105_ACEOF 14106 14107case $ac_config_files in *" 14108"*) set x $ac_config_files; shift; ac_config_files=$*;; 14109esac 14110 14111case $ac_config_headers in *" 14112"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14113esac 14114 14115 14116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14117# Files that config.status was made for. 14118config_files="$ac_config_files" 14119config_headers="$ac_config_headers" 14120config_commands="$ac_config_commands" 14121 14122_ACEOF 14123 14124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14125ac_cs_usage="\ 14126'$as_me' instantiates files and other configuration actions 14127from templates according to the current configuration. Unless the files 14128and actions are specified as TAGs, all are instantiated by default. 14129 14130Usage: $0 [OPTION]... [TAG]... 14131 14132 -h, --help print this help, then exit 14133 -V, --version print version number and configuration settings, then exit 14134 --config print configuration, then exit 14135 -q, --quiet, --silent 14136 do not print progress messages 14137 -d, --debug don't remove temporary files 14138 --recheck update $as_me by reconfiguring in the same conditions 14139 --file=FILE[:TEMPLATE] 14140 instantiate the configuration file FILE 14141 --header=FILE[:TEMPLATE] 14142 instantiate the configuration header FILE 14143 14144Configuration files: 14145$config_files 14146 14147Configuration headers: 14148$config_headers 14149 14150Configuration commands: 14151$config_commands 14152 14153Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/issues>." 14154 14155_ACEOF 14156ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 14157ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14159ac_cs_config='$ac_cs_config_escaped' 14160ac_cs_version="\\ 14161xfs config.status 1.2.2 14162configured by $0, generated by GNU Autoconf 2.72, 14163 with options \\"\$ac_cs_config\\" 14164 14165Copyright (C) 2023 Free Software Foundation, Inc. 14166This config.status script is free software; the Free Software Foundation 14167gives unlimited permission to copy, distribute and modify it." 14168 14169ac_pwd='$ac_pwd' 14170srcdir='$srcdir' 14171INSTALL='$INSTALL' 14172MKDIR_P='$MKDIR_P' 14173AWK='$AWK' 14174test -n "\$AWK" || AWK=awk 14175_ACEOF 14176 14177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14178# The default lists apply if the user does not specify any file. 14179ac_need_defaults=: 14180while test $# != 0 14181do 14182 case $1 in 14183 --*=?*) 14184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14186 ac_shift=: 14187 ;; 14188 --*=) 14189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14190 ac_optarg= 14191 ac_shift=: 14192 ;; 14193 *) 14194 ac_option=$1 14195 ac_optarg=$2 14196 ac_shift=shift 14197 ;; 14198 esac 14199 14200 case $ac_option in 14201 # Handling of the options. 14202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14203 ac_cs_recheck=: ;; 14204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14205 printf "%s\n" "$ac_cs_version"; exit ;; 14206 --config | --confi | --conf | --con | --co | --c ) 14207 printf "%s\n" "$ac_cs_config"; exit ;; 14208 --debug | --debu | --deb | --de | --d | -d ) 14209 debug=: ;; 14210 --file | --fil | --fi | --f ) 14211 $ac_shift 14212 case $ac_optarg in 14213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14214 '') as_fn_error $? "missing file argument" ;; 14215 esac 14216 as_fn_append CONFIG_FILES " '$ac_optarg'" 14217 ac_need_defaults=false;; 14218 --header | --heade | --head | --hea ) 14219 $ac_shift 14220 case $ac_optarg in 14221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14222 esac 14223 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14224 ac_need_defaults=false;; 14225 --he | --h) 14226 # Conflict between --help and --header 14227 as_fn_error $? "ambiguous option: '$1' 14228Try '$0 --help' for more information.";; 14229 --help | --hel | -h ) 14230 printf "%s\n" "$ac_cs_usage"; exit ;; 14231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14232 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14233 ac_cs_silent=: ;; 14234 14235 # This is an error. 14236 -*) as_fn_error $? "unrecognized option: '$1' 14237Try '$0 --help' for more information." ;; 14238 14239 *) as_fn_append ac_config_targets " $1" 14240 ac_need_defaults=false ;; 14241 14242 esac 14243 shift 14244done 14245 14246ac_configure_extra_args= 14247 14248if $ac_cs_silent; then 14249 exec 6>/dev/null 14250 ac_configure_extra_args="$ac_configure_extra_args --silent" 14251fi 14252 14253_ACEOF 14254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14255if \$ac_cs_recheck; then 14256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14257 shift 14258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14259 CONFIG_SHELL='$SHELL' 14260 export CONFIG_SHELL 14261 exec "\$@" 14262fi 14263 14264_ACEOF 14265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14266exec 5>>config.log 14267{ 14268 echo 14269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14270## Running $as_me. ## 14271_ASBOX 14272 printf "%s\n" "$ac_log" 14273} >&5 14274 14275_ACEOF 14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14277# 14278# INIT-COMMANDS 14279# 14280AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14281 14282_ACEOF 14283 14284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14285 14286# Handling of arguments. 14287for ac_config_target in $ac_config_targets 14288do 14289 case $ac_config_target in 14290 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14291 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14292 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14293 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 14294 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14295 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14296 14297 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 14298 esac 14299done 14300 14301 14302# If the user did not use the arguments to specify the items to instantiate, 14303# then the envvar interface is used. Set only those that are not. 14304# We use the long form for the default assignment because of an extremely 14305# bizarre bug on SunOS 4.1.3. 14306if $ac_need_defaults; then 14307 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 14308 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 14309 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 14310fi 14311 14312# Have a temporary directory for convenience. Make it in the build tree 14313# simply because there is no reason against having it here, and in addition, 14314# creating and moving files from /tmp can sometimes cause problems. 14315# Hook for its removal unless debugging. 14316# Note that there is a small window in which the directory will not be cleaned: 14317# after its creation but before its name has been assigned to '$tmp'. 14318$debug || 14319{ 14320 tmp= ac_tmp= 14321 trap 'exit_status=$? 14322 : "${ac_tmp:=$tmp}" 14323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14324' 0 14325 trap 'as_fn_exit 1' 1 2 13 15 14326} 14327# Create a (secure) tmp directory for tmp files. 14328 14329{ 14330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14331 test -d "$tmp" 14332} || 14333{ 14334 tmp=./conf$$-$RANDOM 14335 (umask 077 && mkdir "$tmp") 14336} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14337ac_tmp=$tmp 14338 14339# Set up the scripts for CONFIG_FILES section. 14340# No need to generate them if there are no CONFIG_FILES. 14341# This happens for instance with './config.status config.h'. 14342if test -n "$CONFIG_FILES"; then 14343 14344 14345ac_cr=`echo X | tr X '\015'` 14346# On cygwin, bash can eat \r inside `` if the user requested igncr. 14347# But we know of no other shell where ac_cr would be empty at this 14348# point, so we can use a bashism as a fallback. 14349if test "x$ac_cr" = x; then 14350 eval ac_cr=\$\'\\r\' 14351fi 14352ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14353if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14354 ac_cs_awk_cr='\\r' 14355else 14356 ac_cs_awk_cr=$ac_cr 14357fi 14358 14359echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14360_ACEOF 14361 14362 14363{ 14364 echo "cat >conf$$subs.awk <<_ACEOF" && 14365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14366 echo "_ACEOF" 14367} >conf$$subs.sh || 14368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14369ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14370ac_delim='%!_!# ' 14371for ac_last_try in false false false false false :; do 14372 . ./conf$$subs.sh || 14373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14374 14375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14376 if test $ac_delim_n = $ac_delim_num; then 14377 break 14378 elif $ac_last_try; then 14379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14380 else 14381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14382 fi 14383done 14384rm -f conf$$subs.sh 14385 14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14387cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14388_ACEOF 14389sed -n ' 14390h 14391s/^/S["/; s/!.*/"]=/ 14392p 14393g 14394s/^[^!]*!// 14395:repl 14396t repl 14397s/'"$ac_delim"'$// 14398t delim 14399:nl 14400h 14401s/\(.\{148\}\)..*/\1/ 14402t more1 14403s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14404p 14405n 14406b repl 14407:more1 14408s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14409p 14410g 14411s/.\{148\}// 14412t nl 14413:delim 14414h 14415s/\(.\{148\}\)..*/\1/ 14416t more2 14417s/["\\]/\\&/g; s/^/"/; s/$/"/ 14418p 14419b 14420:more2 14421s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14422p 14423g 14424s/.\{148\}// 14425t delim 14426' <conf$$subs.awk | sed ' 14427/^[^""]/{ 14428 N 14429 s/\n// 14430} 14431' >>$CONFIG_STATUS || ac_write_fail=1 14432rm -f conf$$subs.awk 14433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14434_ACAWK 14435cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14436 for (key in S) S_is_set[key] = 1 14437 FS = "" 14438 14439} 14440{ 14441 line = $ 0 14442 nfields = split(line, field, "@") 14443 substed = 0 14444 len = length(field[1]) 14445 for (i = 2; i < nfields; i++) { 14446 key = field[i] 14447 keylen = length(key) 14448 if (S_is_set[key]) { 14449 value = S[key] 14450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14451 len += length(value) + length(field[++i]) 14452 substed = 1 14453 } else 14454 len += 1 + keylen 14455 } 14456 14457 print line 14458} 14459 14460_ACAWK 14461_ACEOF 14462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14463if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14465else 14466 cat 14467fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14469_ACEOF 14470 14471# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14472# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14473# trailing colons and then remove the whole line if VPATH becomes empty 14474# (actually we leave an empty line to preserve line numbers). 14475if test "x$srcdir" = x.; then 14476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14477h 14478s/// 14479s/^/:/ 14480s/[ ]*$/:/ 14481s/:\$(srcdir):/:/g 14482s/:\${srcdir}:/:/g 14483s/:@srcdir@:/:/g 14484s/^:*// 14485s/:*$// 14486x 14487s/\(=[ ]*\).*/\1/ 14488G 14489s/\n// 14490s/^[^=]*=[ ]*$// 14491}' 14492fi 14493 14494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14495fi # test -n "$CONFIG_FILES" 14496 14497# Set up the scripts for CONFIG_HEADERS section. 14498# No need to generate them if there are no CONFIG_HEADERS. 14499# This happens for instance with './config.status Makefile'. 14500if test -n "$CONFIG_HEADERS"; then 14501cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14502BEGIN { 14503_ACEOF 14504 14505# Transform confdefs.h into an awk script 'defines.awk', embedded as 14506# here-document in config.status, that substitutes the proper values into 14507# config.h.in to produce config.h. 14508 14509# Create a delimiter string that does not exist in confdefs.h, to ease 14510# handling of long lines. 14511ac_delim='%!_!# ' 14512for ac_last_try in false false :; do 14513 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14514 if test -z "$ac_tt"; then 14515 break 14516 elif $ac_last_try; then 14517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14518 else 14519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14520 fi 14521done 14522 14523# For the awk script, D is an array of macro values keyed by name, 14524# likewise P contains macro parameters if any. Preserve backslash 14525# newline sequences. 14526 14527ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14528sed -n ' 14529s/.\{148\}/&'"$ac_delim"'/g 14530t rset 14531:rset 14532s/^[ ]*#[ ]*define[ ][ ]*/ / 14533t def 14534d 14535:def 14536s/\\$// 14537t bsnl 14538s/["\\]/\\&/g 14539s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14540D["\1"]=" \3"/p 14541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14542d 14543:bsnl 14544s/["\\]/\\&/g 14545s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14546D["\1"]=" \3\\\\\\n"\\/p 14547t cont 14548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14549t cont 14550d 14551:cont 14552n 14553s/.\{148\}/&'"$ac_delim"'/g 14554t clear 14555:clear 14556s/\\$// 14557t bsnlc 14558s/["\\]/\\&/g; s/^/"/; s/$/"/p 14559d 14560:bsnlc 14561s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14562b cont 14563' <confdefs.h | sed ' 14564s/'"$ac_delim"'/"\\\ 14565"/g' >>$CONFIG_STATUS || ac_write_fail=1 14566 14567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14568 for (key in D) D_is_set[key] = 1 14569 FS = "" 14570} 14571/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14572 line = \$ 0 14573 split(line, arg, " ") 14574 if (arg[1] == "#") { 14575 defundef = arg[2] 14576 mac1 = arg[3] 14577 } else { 14578 defundef = substr(arg[1], 2) 14579 mac1 = arg[2] 14580 } 14581 split(mac1, mac2, "(") #) 14582 macro = mac2[1] 14583 prefix = substr(line, 1, index(line, defundef) - 1) 14584 if (D_is_set[macro]) { 14585 # Preserve the white space surrounding the "#". 14586 print prefix "define", macro P[macro] D[macro] 14587 next 14588 } else { 14589 # Replace #undef with comments. This is necessary, for example, 14590 # in the case of _POSIX_SOURCE, which is predefined and required 14591 # on some systems where configure will not decide to define it. 14592 if (defundef == "undef") { 14593 print "/*", prefix defundef, macro, "*/" 14594 next 14595 } 14596 } 14597} 14598{ print } 14599_ACAWK 14600_ACEOF 14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14603fi # test -n "$CONFIG_HEADERS" 14604 14605 14606eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14607shift 14608for ac_tag 14609do 14610 case $ac_tag in 14611 :[FHLC]) ac_mode=$ac_tag; continue;; 14612 esac 14613 case $ac_mode$ac_tag in 14614 :[FHL]*:*);; 14615 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 14616 :[FH]-) ac_tag=-:-;; 14617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14618 esac 14619 ac_save_IFS=$IFS 14620 IFS=: 14621 set x $ac_tag 14622 IFS=$ac_save_IFS 14623 shift 14624 ac_file=$1 14625 shift 14626 14627 case $ac_mode in 14628 :L) ac_source=$1;; 14629 :[FH]) 14630 ac_file_inputs= 14631 for ac_f 14632 do 14633 case $ac_f in 14634 -) ac_f="$ac_tmp/stdin";; 14635 *) # Look for the file first in the build tree, then in the source tree 14636 # (if the path is not absolute). The absolute path cannot be DOS-style, 14637 # because $ac_f cannot contain ':'. 14638 test -f "$ac_f" || 14639 case $ac_f in 14640 [\\/$]*) false;; 14641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14642 esac || 14643 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 14644 esac 14645 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14646 as_fn_append ac_file_inputs " '$ac_f'" 14647 done 14648 14649 # Let's still pretend it is 'configure' which instantiates (i.e., don't 14650 # use $as_me), people would be surprised to read: 14651 # /* config.h. Generated by config.status. */ 14652 configure_input='Generated from '` 14653 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14654 `' by configure.' 14655 if test x"$ac_file" != x-; then 14656 configure_input="$ac_file. $configure_input" 14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14658printf "%s\n" "$as_me: creating $ac_file" >&6;} 14659 fi 14660 # Neutralize special characters interpreted by sed in replacement strings. 14661 case $configure_input in #( 14662 *\&* | *\|* | *\\* ) 14663 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 14664 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14665 *) ac_sed_conf_input=$configure_input;; 14666 esac 14667 14668 case $ac_tag in 14669 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14671 esac 14672 ;; 14673 esac 14674 14675 ac_dir=`$as_dirname -- "$ac_file" || 14676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14677 X"$ac_file" : 'X\(//\)[^/]' \| \ 14678 X"$ac_file" : 'X\(//\)$' \| \ 14679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14680printf "%s\n" X"$ac_file" | 14681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14682 s//\1/ 14683 q 14684 } 14685 /^X\(\/\/\)[^/].*/{ 14686 s//\1/ 14687 q 14688 } 14689 /^X\(\/\/\)$/{ 14690 s//\1/ 14691 q 14692 } 14693 /^X\(\/\).*/{ 14694 s//\1/ 14695 q 14696 } 14697 s/.*/./; q'` 14698 as_dir="$ac_dir"; as_fn_mkdir_p 14699 ac_builddir=. 14700 14701case "$ac_dir" in 14702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14703*) 14704 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 14705 # A ".." for each directory in $ac_dir_suffix. 14706 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14707 case $ac_top_builddir_sub in 14708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14710 esac ;; 14711esac 14712ac_abs_top_builddir=$ac_pwd 14713ac_abs_builddir=$ac_pwd$ac_dir_suffix 14714# for backward compatibility: 14715ac_top_builddir=$ac_top_build_prefix 14716 14717case $srcdir in 14718 .) # We are building in place. 14719 ac_srcdir=. 14720 ac_top_srcdir=$ac_top_builddir_sub 14721 ac_abs_top_srcdir=$ac_pwd ;; 14722 [\\/]* | ?:[\\/]* ) # Absolute name. 14723 ac_srcdir=$srcdir$ac_dir_suffix; 14724 ac_top_srcdir=$srcdir 14725 ac_abs_top_srcdir=$srcdir ;; 14726 *) # Relative name. 14727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14728 ac_top_srcdir=$ac_top_build_prefix$srcdir 14729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14730esac 14731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14732 14733 14734 case $ac_mode in 14735 :F) 14736 # 14737 # CONFIG_FILE 14738 # 14739 14740 case $INSTALL in 14741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14743 esac 14744 ac_MKDIR_P=$MKDIR_P 14745 case $MKDIR_P in 14746 [\\/$]* | ?:[\\/]* ) ;; 14747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14748 esac 14749_ACEOF 14750 14751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14752# If the template does not know about datarootdir, expand it. 14753# FIXME: This hack should be removed a few years after 2.60. 14754ac_datarootdir_hack=; ac_datarootdir_seen= 14755ac_sed_dataroot=' 14756/datarootdir/ { 14757 p 14758 q 14759} 14760/@datadir@/p 14761/@docdir@/p 14762/@infodir@/p 14763/@localedir@/p 14764/@mandir@/p' 14765case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14766*datarootdir*) ac_datarootdir_seen=yes;; 14767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14769printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14770_ACEOF 14771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14772 ac_datarootdir_hack=' 14773 s&@datadir@&$datadir&g 14774 s&@docdir@&$docdir&g 14775 s&@infodir@&$infodir&g 14776 s&@localedir@&$localedir&g 14777 s&@mandir@&$mandir&g 14778 s&\\\${datarootdir}&$datarootdir&g' ;; 14779esac 14780_ACEOF 14781 14782# Neutralize VPATH when '$srcdir' = '.'. 14783# Shell code in configure.ac might set extrasub. 14784# FIXME: do we really want to maintain this feature? 14785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14786ac_sed_extra="$ac_vpsub 14787$extrasub 14788_ACEOF 14789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14790:t 14791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14792s|@configure_input@|$ac_sed_conf_input|;t t 14793s&@top_builddir@&$ac_top_builddir_sub&;t t 14794s&@top_build_prefix@&$ac_top_build_prefix&;t t 14795s&@srcdir@&$ac_srcdir&;t t 14796s&@abs_srcdir@&$ac_abs_srcdir&;t t 14797s&@top_srcdir@&$ac_top_srcdir&;t t 14798s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14799s&@builddir@&$ac_builddir&;t t 14800s&@abs_builddir@&$ac_abs_builddir&;t t 14801s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14802s&@INSTALL@&$ac_INSTALL&;t t 14803s&@MKDIR_P@&$ac_MKDIR_P&;t t 14804$ac_datarootdir_hack 14805" 14806eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14808 14809test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14812 "$ac_tmp/out"`; test -z "$ac_out"; } && 14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14814which seems to be undefined. Please make sure it is defined" >&5 14815printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14816which seems to be undefined. Please make sure it is defined" >&2;} 14817 14818 rm -f "$ac_tmp/stdin" 14819 case $ac_file in 14820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14822 esac \ 14823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14824 ;; 14825 :H) 14826 # 14827 # CONFIG_HEADER 14828 # 14829 if test x"$ac_file" != x-; then 14830 { 14831 printf "%s\n" "/* $configure_input */" >&1 \ 14832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14833 } >"$ac_tmp/config.h" \ 14834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14837printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 14838 else 14839 rm -f "$ac_file" 14840 mv "$ac_tmp/config.h" "$ac_file" \ 14841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14842 fi 14843 else 14844 printf "%s\n" "/* $configure_input */" >&1 \ 14845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14846 || as_fn_error $? "could not create -" "$LINENO" 5 14847 fi 14848# Compute "$ac_file"'s index in $config_headers. 14849_am_arg="$ac_file" 14850_am_stamp_count=1 14851for _am_header in $config_headers :; do 14852 case $_am_header in 14853 $_am_arg | $_am_arg:* ) 14854 break ;; 14855 * ) 14856 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14857 esac 14858done 14859echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14860$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14861 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14862 X"$_am_arg" : 'X\(//\)$' \| \ 14863 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14864printf "%s\n" X"$_am_arg" | 14865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14866 s//\1/ 14867 q 14868 } 14869 /^X\(\/\/\)[^/].*/{ 14870 s//\1/ 14871 q 14872 } 14873 /^X\(\/\/\)$/{ 14874 s//\1/ 14875 q 14876 } 14877 /^X\(\/\).*/{ 14878 s//\1/ 14879 q 14880 } 14881 s/.*/./; q'`/stamp-h$_am_stamp_count 14882 ;; 14883 14884 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14885printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 14886 ;; 14887 esac 14888 14889 14890 case $ac_file$ac_mode in 14891 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14892 # Older Autoconf quotes --file arguments for eval, but not when files 14893 # are listed without --file. Let's play safe and only enable the eval 14894 # if we detect the quoting. 14895 # TODO: see whether this extra hack can be removed once we start 14896 # requiring Autoconf 2.70 or later. 14897 case $CONFIG_FILES in #( 14898 *\'*) : 14899 eval set x "$CONFIG_FILES" ;; #( 14900 *) : 14901 set x $CONFIG_FILES ;; #( 14902 *) : 14903 ;; 14904esac 14905 shift 14906 # Used to flag and report bootstrapping failures. 14907 am_rc=0 14908 for am_mf 14909 do 14910 # Strip MF so we end up with the name of the file. 14911 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 14912 # Check whether this is an Automake generated Makefile which includes 14913 # dependency-tracking related rules and includes. 14914 # Grep'ing the whole file directly is not great: AIX grep has a line 14915 # limit of 2048, but all sed's we know have understand at least 4000. 14916 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14917 || continue 14918 am_dirpart=`$as_dirname -- "$am_mf" || 14919$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14920 X"$am_mf" : 'X\(//\)[^/]' \| \ 14921 X"$am_mf" : 'X\(//\)$' \| \ 14922 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14923printf "%s\n" X"$am_mf" | 14924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14925 s//\1/ 14926 q 14927 } 14928 /^X\(\/\/\)[^/].*/{ 14929 s//\1/ 14930 q 14931 } 14932 /^X\(\/\/\)$/{ 14933 s//\1/ 14934 q 14935 } 14936 /^X\(\/\).*/{ 14937 s//\1/ 14938 q 14939 } 14940 s/.*/./; q'` 14941 am_filepart=`$as_basename -- "$am_mf" || 14942$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14943 X"$am_mf" : 'X\(//\)$' \| \ 14944 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14945printf "%s\n" X/"$am_mf" | 14946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14947 s//\1/ 14948 q 14949 } 14950 /^X\/\(\/\/\)$/{ 14951 s//\1/ 14952 q 14953 } 14954 /^X\/\(\/\).*/{ 14955 s//\1/ 14956 q 14957 } 14958 s/.*/./; q'` 14959 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14960 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14961 | $MAKE -f - am--depfiles" >&5 14962 (cd "$am_dirpart" \ 14963 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14964 | $MAKE -f - am--depfiles) >&5 2>&5 14965 ac_status=$? 14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14967 (exit $ac_status); } || am_rc=$? 14968 done 14969 if test $am_rc -ne 0; then 14970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14971printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14972as_fn_error $? "Something went wrong bootstrapping makefile fragments 14973 for automatic dependency tracking. If GNU make was not used, consider 14974 re-running the configure script with MAKE=\"gmake\" (or whatever is 14975 necessary). You can also try re-running configure with the 14976 '--disable-dependency-tracking' option to at least be able to build 14977 the package (albeit without support for automatic dependency tracking). 14978See 'config.log' for more details" "$LINENO" 5; } 14979 fi 14980 { am_dirpart=; unset am_dirpart;} 14981 { am_filepart=; unset am_filepart;} 14982 { am_mf=; unset am_mf;} 14983 { am_rc=; unset am_rc;} 14984 rm -f conftest-deps.mk 14985} 14986 ;; 14987 14988 esac 14989done # for ac_tag 14990 14991 14992as_fn_exit 0 14993_ACEOF 14994ac_clean_files=$ac_clean_files_save 14995 14996test $ac_write_fail = 0 || 14997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14998 14999 15000# configure is writing to config.log, and then calls config.status. 15001# config.status does its own redirection, appending to config.log. 15002# Unfortunately, on DOS this fails, as config.log is still kept open 15003# by configure, so config.status won't be able to write to it; its 15004# output is simply discarded. So we exec the FD to /dev/null, 15005# effectively closing config.log, so it can be properly (re)opened and 15006# appended to by config.status. When coming back to configure, we 15007# need to make the FD available again. 15008if test "$no_create" != yes; then 15009 ac_cs_success=: 15010 ac_config_status_args= 15011 test "$silent" = yes && 15012 ac_config_status_args="$ac_config_status_args --quiet" 15013 exec 5>/dev/null 15014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15015 exec 5>>config.log 15016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15017 # would make configure fail if this is the last instruction. 15018 $ac_cs_success || as_fn_exit 1 15019fi 15020if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15022printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15023fi 15024 15025 15026