1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xtrans 1.6.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/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/lib/libxtrans/-/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='xtrans' 667PACKAGE_TARNAME='xtrans' 668PACKAGE_VERSION='1.6.0' 669PACKAGE_STRING='xtrans 1.6.0' 670PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues' 671PACKAGE_URL='' 672 673ac_unique_file="Makefile.am" 674# Factoring default headers for most tests. 675ac_includes_default="\ 676#include <stddef.h> 677#ifdef HAVE_STDIO_H 678# include <stdio.h> 679#endif 680#ifdef HAVE_STDLIB_H 681# include <stdlib.h> 682#endif 683#ifdef HAVE_STRING_H 684# include <string.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_STRINGS_H 693# include <strings.h> 694#endif 695#ifdef HAVE_SYS_TYPES_H 696# include <sys/types.h> 697#endif 698#ifdef HAVE_SYS_STAT_H 699# include <sys/stat.h> 700#endif 701#ifdef HAVE_UNISTD_H 702# include <unistd.h> 703#endif" 704 705ac_header_c_list= 706ac_subst_vars='am__EXEEXT_FALSE 707am__EXEEXT_TRUE 708LTLIBOBJS 709LIBOBJS 710sticky_bit_define 711fchown_define 712HAVE_STYLESHEETS_FALSE 713HAVE_STYLESHEETS_TRUE 714XSL_STYLESHEET 715STYLESHEET_SRCDIR 716XORG_SGML_PATH 717HAVE_XSLTPROC_FALSE 718HAVE_XSLTPROC_TRUE 719XSLTPROC 720HAVE_FOP_FALSE 721HAVE_FOP_TRUE 722FOP 723HAVE_XMLTO_FALSE 724HAVE_XMLTO_TRUE 725HAVE_XMLTO_TEXT_FALSE 726HAVE_XMLTO_TEXT_TRUE 727XMLTO 728ENABLE_DOCS_FALSE 729ENABLE_DOCS_TRUE 730MAN_SUBSTS 731XORG_MAN_PAGE 732ADMIN_MAN_DIR 733DRIVER_MAN_DIR 734MISC_MAN_DIR 735FILE_MAN_DIR 736LIB_MAN_DIR 737APP_MAN_DIR 738ADMIN_MAN_SUFFIX 739DRIVER_MAN_SUFFIX 740MISC_MAN_SUFFIX 741FILE_MAN_SUFFIX 742LIB_MAN_SUFFIX 743APP_MAN_SUFFIX 744SED 745host_os 746host_vendor 747host_cpu 748host 749build_os 750build_vendor 751build_cpu 752build 753INSTALL_CMD 754PKG_CONFIG_LIBDIR 755PKG_CONFIG_PATH 756PKG_CONFIG 757CHANGELOG_CMD 758STRICT_CFLAGS 759CWARNFLAGS 760BASE_CFLAGS 761am__fastdepCC_FALSE 762am__fastdepCC_TRUE 763CCDEPMODE 764am__nodep 765AMDEPBACKSLASH 766AMDEP_FALSE 767AMDEP_TRUE 768am__include 769DEPDIR 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777am__xargs_n 778am__rm_f_notfound 779AM_BACKSLASH 780AM_DEFAULT_VERBOSITY 781AM_DEFAULT_V 782AM_V 783CSCOPE 784ETAGS 785CTAGS 786am__untar 787am__tar 788AMTAR 789am__leading_dot 790SET_MAKE 791AWK 792mkdir_p 793MKDIR_P 794INSTALL_STRIP_PROGRAM 795STRIP 796install_sh 797MAKEINFO 798AUTOHEADER 799AUTOMAKE 800AUTOCONF 801ACLOCAL 802VERSION 803PACKAGE 804CYGPATH_W 805am__isrc 806INSTALL_DATA 807INSTALL_SCRIPT 808INSTALL_PROGRAM 809target_alias 810host_alias 811build_alias 812LIBS 813ECHO_T 814ECHO_N 815ECHO_C 816DEFS 817mandir 818localedir 819libdir 820psdir 821pdfdir 822dvidir 823htmldir 824infodir 825docdir 826oldincludedir 827includedir 828runstatedir 829localstatedir 830sharedstatedir 831sysconfdir 832datadir 833datarootdir 834libexecdir 835sbindir 836bindir 837program_transform_name 838prefix 839exec_prefix 840PACKAGE_URL 841PACKAGE_BUGREPORT 842PACKAGE_STRING 843PACKAGE_VERSION 844PACKAGE_TARNAME 845PACKAGE_NAME 846PATH_SEPARATOR 847SHELL 848am__quote' 849ac_subst_files='' 850ac_user_opts=' 851enable_option_checking 852enable_silent_rules 853enable_dependency_tracking 854enable_selective_werror 855enable_strict_compilation 856enable_docs 857with_xmlto 858with_fop 859with_xsltproc 860' 861 ac_precious_vars='build_alias 862host_alias 863target_alias 864CC 865CFLAGS 866LDFLAGS 867LIBS 868CPPFLAGS 869PKG_CONFIG 870PKG_CONFIG_PATH 871PKG_CONFIG_LIBDIR 872XMLTO 873FOP 874XSLTPROC' 875 876 877# Initialize some variables set by options. 878ac_init_help= 879ac_init_version=false 880ac_unrecognized_opts= 881ac_unrecognized_sep= 882# The variables have the same names as the options, with 883# dashes changed to underlines. 884cache_file=/dev/null 885exec_prefix=NONE 886no_create= 887no_recursion= 888prefix=NONE 889program_prefix=NONE 890program_suffix=NONE 891program_transform_name=s,x,x, 892silent= 893site= 894srcdir= 895verbose= 896x_includes=NONE 897x_libraries=NONE 898 899# Installation directory options. 900# These are left unexpanded so users can "make install exec_prefix=/foo" 901# and all the variables that are supposed to be based on exec_prefix 902# by default will actually change. 903# Use braces instead of parens because sh, perl, etc. also accept them. 904# (The list follows the same order as the GNU Coding Standards.) 905bindir='${exec_prefix}/bin' 906sbindir='${exec_prefix}/sbin' 907libexecdir='${exec_prefix}/libexec' 908datarootdir='${prefix}/share' 909datadir='${datarootdir}' 910sysconfdir='${prefix}/etc' 911sharedstatedir='${prefix}/com' 912localstatedir='${prefix}/var' 913runstatedir='${localstatedir}/run' 914includedir='${prefix}/include' 915oldincludedir='/usr/include' 916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 917infodir='${datarootdir}/info' 918htmldir='${docdir}' 919dvidir='${docdir}' 920pdfdir='${docdir}' 921psdir='${docdir}' 922libdir='${exec_prefix}/lib' 923localedir='${datarootdir}/locale' 924mandir='${datarootdir}/man' 925 926ac_prev= 927ac_dashdash= 928for ac_option 929do 930 # If the previous option needs an argument, assign it. 931 if test -n "$ac_prev"; then 932 eval $ac_prev=\$ac_option 933 ac_prev= 934 continue 935 fi 936 937 case $ac_option in 938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 939 *=) ac_optarg= ;; 940 *) ac_optarg=yes ;; 941 esac 942 943 case $ac_dashdash$ac_option in 944 --) 945 ac_dashdash=yes ;; 946 947 -bindir | --bindir | --bindi | --bind | --bin | --bi) 948 ac_prev=bindir ;; 949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 950 bindir=$ac_optarg ;; 951 952 -build | --build | --buil | --bui | --bu) 953 ac_prev=build_alias ;; 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 955 build_alias=$ac_optarg ;; 956 957 -cache-file | --cache-file | --cache-fil | --cache-fi \ 958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 959 ac_prev=cache_file ;; 960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 962 cache_file=$ac_optarg ;; 963 964 --config-cache | -C) 965 cache_file=config.cache ;; 966 967 -datadir | --datadir | --datadi | --datad) 968 ac_prev=datadir ;; 969 -datadir=* | --datadir=* | --datadi=* | --datad=*) 970 datadir=$ac_optarg ;; 971 972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 973 | --dataroo | --dataro | --datar) 974 ac_prev=datarootdir ;; 975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 977 datarootdir=$ac_optarg ;; 978 979 -disable-* | --disable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: '$ac_useropt'" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=no ;; 994 995 -docdir | --docdir | --docdi | --doc | --do) 996 ac_prev=docdir ;; 997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 998 docdir=$ac_optarg ;; 999 1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1001 ac_prev=dvidir ;; 1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1003 dvidir=$ac_optarg ;; 1004 1005 -enable-* | --enable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: '$ac_useropt'" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=\$ac_optarg ;; 1020 1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1023 | --exec | --exe | --ex) 1024 ac_prev=exec_prefix ;; 1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1027 | --exec=* | --exe=* | --ex=*) 1028 exec_prefix=$ac_optarg ;; 1029 1030 -gas | --gas | --ga | --g) 1031 # Obsolete; use --with-gas. 1032 with_gas=yes ;; 1033 1034 -help | --help | --hel | --he | -h) 1035 ac_init_help=long ;; 1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1037 ac_init_help=recursive ;; 1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1039 ac_init_help=short ;; 1040 1041 -host | --host | --hos | --ho) 1042 ac_prev=host_alias ;; 1043 -host=* | --host=* | --hos=* | --ho=*) 1044 host_alias=$ac_optarg ;; 1045 1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1047 ac_prev=htmldir ;; 1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1049 | --ht=*) 1050 htmldir=$ac_optarg ;; 1051 1052 -includedir | --includedir | --includedi | --included | --include \ 1053 | --includ | --inclu | --incl | --inc) 1054 ac_prev=includedir ;; 1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1056 | --includ=* | --inclu=* | --incl=* | --inc=*) 1057 includedir=$ac_optarg ;; 1058 1059 -infodir | --infodir | --infodi | --infod | --info | --inf) 1060 ac_prev=infodir ;; 1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1062 infodir=$ac_optarg ;; 1063 1064 -libdir | --libdir | --libdi | --libd) 1065 ac_prev=libdir ;; 1066 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1067 libdir=$ac_optarg ;; 1068 1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1070 | --libexe | --libex | --libe) 1071 ac_prev=libexecdir ;; 1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1073 | --libexe=* | --libex=* | --libe=*) 1074 libexecdir=$ac_optarg ;; 1075 1076 -localedir | --localedir | --localedi | --localed | --locale) 1077 ac_prev=localedir ;; 1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1079 localedir=$ac_optarg ;; 1080 1081 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1082 | --localstate | --localstat | --localsta | --localst | --locals) 1083 ac_prev=localstatedir ;; 1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1086 localstatedir=$ac_optarg ;; 1087 1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1089 ac_prev=mandir ;; 1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1091 mandir=$ac_optarg ;; 1092 1093 -nfp | --nfp | --nf) 1094 # Obsolete; use --without-fp. 1095 with_fp=no ;; 1096 1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1098 | --no-cr | --no-c | -n) 1099 no_create=yes ;; 1100 1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1103 no_recursion=yes ;; 1104 1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1107 | --oldin | --oldi | --old | --ol | --o) 1108 ac_prev=oldincludedir ;; 1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1112 oldincludedir=$ac_optarg ;; 1113 1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1115 ac_prev=prefix ;; 1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1117 prefix=$ac_optarg ;; 1118 1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1120 | --program-pre | --program-pr | --program-p) 1121 ac_prev=program_prefix ;; 1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1124 program_prefix=$ac_optarg ;; 1125 1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1127 | --program-suf | --program-su | --program-s) 1128 ac_prev=program_suffix ;; 1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1131 program_suffix=$ac_optarg ;; 1132 1133 -program-transform-name | --program-transform-name \ 1134 | --program-transform-nam | --program-transform-na \ 1135 | --program-transform-n | --program-transform- \ 1136 | --program-transform | --program-transfor \ 1137 | --program-transfo | --program-transf \ 1138 | --program-trans | --program-tran \ 1139 | --progr-tra | --program-tr | --program-t) 1140 ac_prev=program_transform_name ;; 1141 -program-transform-name=* | --program-transform-name=* \ 1142 | --program-transform-nam=* | --program-transform-na=* \ 1143 | --program-transform-n=* | --program-transform-=* \ 1144 | --program-transform=* | --program-transfor=* \ 1145 | --program-transfo=* | --program-transf=* \ 1146 | --program-trans=* | --program-tran=* \ 1147 | --progr-tra=* | --program-tr=* | --program-t=*) 1148 program_transform_name=$ac_optarg ;; 1149 1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1151 ac_prev=pdfdir ;; 1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1153 pdfdir=$ac_optarg ;; 1154 1155 -psdir | --psdir | --psdi | --psd | --ps) 1156 ac_prev=psdir ;; 1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1158 psdir=$ac_optarg ;; 1159 1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1161 | -silent | --silent | --silen | --sile | --sil) 1162 silent=yes ;; 1163 1164 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1165 | --runstate | --runstat | --runsta | --runst | --runs \ 1166 | --run | --ru | --r) 1167 ac_prev=runstatedir ;; 1168 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1169 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1170 | --run=* | --ru=* | --r=*) 1171 runstatedir=$ac_optarg ;; 1172 1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1174 ac_prev=sbindir ;; 1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1176 | --sbi=* | --sb=*) 1177 sbindir=$ac_optarg ;; 1178 1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1181 | --sharedst | --shareds | --shared | --share | --shar \ 1182 | --sha | --sh) 1183 ac_prev=sharedstatedir ;; 1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1187 | --sha=* | --sh=*) 1188 sharedstatedir=$ac_optarg ;; 1189 1190 -site | --site | --sit) 1191 ac_prev=site ;; 1192 -site=* | --site=* | --sit=*) 1193 site=$ac_optarg ;; 1194 1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1196 ac_prev=srcdir ;; 1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1198 srcdir=$ac_optarg ;; 1199 1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1201 | --syscon | --sysco | --sysc | --sys | --sy) 1202 ac_prev=sysconfdir ;; 1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1205 sysconfdir=$ac_optarg ;; 1206 1207 -target | --target | --targe | --targ | --tar | --ta | --t) 1208 ac_prev=target_alias ;; 1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1210 target_alias=$ac_optarg ;; 1211 1212 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1213 verbose=yes ;; 1214 1215 -version | --version | --versio | --versi | --vers | -V) 1216 ac_init_version=: ;; 1217 1218 -with-* | --with-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: '$ac_useropt'" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=\$ac_optarg ;; 1233 1234 -without-* | --without-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: '$ac_useropt'" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243"with_$ac_useropt" 1244"*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=no ;; 1249 1250 --x) 1251 # Obsolete; use --with-x. 1252 with_x=yes ;; 1253 1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1255 | --x-incl | --x-inc | --x-in | --x-i) 1256 ac_prev=x_includes ;; 1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1259 x_includes=$ac_optarg ;; 1260 1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1263 ac_prev=x_libraries ;; 1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1266 x_libraries=$ac_optarg ;; 1267 1268 -*) as_fn_error $? "unrecognized option: '$ac_option' 1269Try '$0 --help' for more information" 1270 ;; 1271 1272 *=*) 1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1274 # Reject names that are not valid shell variable names. 1275 case $ac_envvar in #( 1276 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1277 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1278 esac 1279 eval $ac_envvar=\$ac_optarg 1280 export $ac_envvar ;; 1281 1282 *) 1283 # FIXME: should be removed in autoconf 3.0. 1284 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1286 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1288 ;; 1289 1290 esac 1291done 1292 1293if test -n "$ac_prev"; then 1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1295 as_fn_error $? "missing argument to $ac_option" 1296fi 1297 1298if test -n "$ac_unrecognized_opts"; then 1299 case $enable_option_checking in 1300 no) ;; 1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1302 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1303 esac 1304fi 1305 1306# Check all directory arguments for consistency. 1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1308 datadir sysconfdir sharedstatedir localstatedir includedir \ 1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1310 libdir localedir mandir runstatedir 1311do 1312 eval ac_val=\$$ac_var 1313 # Remove trailing slashes. 1314 case $ac_val in 1315 */ ) 1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1317 eval $ac_var=\$ac_val;; 1318 esac 1319 # Be sure to have absolute directory names. 1320 case $ac_val in 1321 [\\/$]* | ?:[\\/]* ) continue;; 1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1323 esac 1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1325done 1326 1327# There might be people who depend on the old broken behavior: '$host' 1328# used to hold the argument of --host etc. 1329# FIXME: To remove some day. 1330build=$build_alias 1331host=$host_alias 1332target=$target_alias 1333 1334# FIXME: To remove some day. 1335if test "x$host_alias" != x; then 1336 if test "x$build_alias" = x; then 1337 cross_compiling=maybe 1338 elif test "x$build_alias" != "x$host_alias"; then 1339 cross_compiling=yes 1340 fi 1341fi 1342 1343ac_tool_prefix= 1344test -n "$host_alias" && ac_tool_prefix=$host_alias- 1345 1346test "$silent" = yes && exec 6>/dev/null 1347 1348 1349ac_pwd=`pwd` && test -n "$ac_pwd" && 1350ac_ls_di=`ls -di .` && 1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1352 as_fn_error $? "working directory cannot be determined" 1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1354 as_fn_error $? "pwd does not report name of working directory" 1355 1356 1357# Find the source files, if location was not specified. 1358if test -z "$srcdir"; then 1359 ac_srcdir_defaulted=yes 1360 # Try the directory containing this script, then the parent directory. 1361 ac_confdir=`$as_dirname -- "$as_myself" || 1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1363 X"$as_myself" : 'X\(//\)[^/]' \| \ 1364 X"$as_myself" : 'X\(//\)$' \| \ 1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1366printf "%s\n" X"$as_myself" | 1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)[^/].*/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)$/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\).*/{ 1380 s//\1/ 1381 q 1382 } 1383 s/.*/./; q'` 1384 srcdir=$ac_confdir 1385 if test ! -r "$srcdir/$ac_unique_file"; then 1386 srcdir=.. 1387 fi 1388else 1389 ac_srcdir_defaulted=no 1390fi 1391if test ! -r "$srcdir/$ac_unique_file"; then 1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1394fi 1395ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1396ac_abs_confdir=`( 1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1398 pwd)` 1399# When building in place, set srcdir=. 1400if test "$ac_abs_confdir" = "$ac_pwd"; then 1401 srcdir=. 1402fi 1403# Remove unnecessary trailing slashes from srcdir. 1404# Double slashes in file names in object file debugging info 1405# mess up M-x gdb in Emacs. 1406case $srcdir in 1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1408esac 1409for ac_var in $ac_precious_vars; do 1410 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_env_${ac_var}_value=\$${ac_var} 1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1414done 1415 1416# 1417# Report the --help message. 1418# 1419if test "$ac_init_help" = "long"; then 1420 # Omit some internal or obsolete options to make the list less imposing. 1421 # This message is too long to be a string in the A/UX 3.1 sh. 1422 cat <<_ACEOF 1423'configure' configures xtrans 1.6.0 to adapt to many kinds of systems. 1424 1425Usage: $0 [OPTION]... [VAR=VALUE]... 1426 1427To assign environment variables (e.g., CC, CFLAGS...), specify them as 1428VAR=VALUE. See below for descriptions of some of the useful variables. 1429 1430Defaults for the options are specified in brackets. 1431 1432Configuration: 1433 -h, --help display this help and exit 1434 --help=short display options specific to this package 1435 --help=recursive display the short help of all the included packages 1436 -V, --version display version information and exit 1437 -q, --quiet, --silent do not print 'checking ...' messages 1438 --cache-file=FILE cache test results in FILE [disabled] 1439 -C, --config-cache alias for '--cache-file=config.cache' 1440 -n, --no-create do not create output files 1441 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1442 1443Installation directories: 1444 --prefix=PREFIX install architecture-independent files in PREFIX 1445 [$ac_default_prefix] 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1447 [PREFIX] 1448 1449By default, 'make install' will install all the files in 1450'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1451an installation prefix other than '$ac_default_prefix' using '--prefix', 1452for instance '--prefix=\$HOME'. 1453 1454For better control, use the options below. 1455 1456Fine tuning of the installation directories: 1457 --bindir=DIR user executables [EPREFIX/bin] 1458 --sbindir=DIR system admin executables [EPREFIX/sbin] 1459 --libexecdir=DIR program executables [EPREFIX/libexec] 1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1463 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1464 --libdir=DIR object code libraries [EPREFIX/lib] 1465 --includedir=DIR C header files [PREFIX/include] 1466 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1469 --infodir=DIR info documentation [DATAROOTDIR/info] 1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1471 --mandir=DIR man documentation [DATAROOTDIR/man] 1472 --docdir=DIR documentation root [DATAROOTDIR/doc/xtrans] 1473 --htmldir=DIR html documentation [DOCDIR] 1474 --dvidir=DIR dvi documentation [DOCDIR] 1475 --pdfdir=DIR pdf documentation [DOCDIR] 1476 --psdir=DIR ps documentation [DOCDIR] 1477_ACEOF 1478 1479 cat <<\_ACEOF 1480 1481Program names: 1482 --program-prefix=PREFIX prepend PREFIX to installed program names 1483 --program-suffix=SUFFIX append SUFFIX to installed program names 1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1485 1486System types: 1487 --build=BUILD configure for building on BUILD [guessed] 1488 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1489_ACEOF 1490fi 1491 1492if test -n "$ac_init_help"; then 1493 case $ac_init_help in 1494 short | recursive ) echo "Configuration of xtrans 1.6.0:";; 1495 esac 1496 cat <<\_ACEOF 1497 1498Optional Features: 1499 --disable-option-checking ignore unrecognized --enable/--with options 1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1502 --enable-silent-rules less verbose build output (undo: "make V=1") 1503 --disable-silent-rules verbose build output (undo: "make V=0") 1504 --enable-dependency-tracking 1505 do not reject slow dependency extractors 1506 --disable-dependency-tracking 1507 speeds up one-time build 1508 --disable-selective-werror 1509 Turn off selective compiler errors. (default: 1510 enabled) 1511 --enable-strict-compilation 1512 Enable all warnings from compiler and make them 1513 errors (default: disabled) 1514 --enable-docs Enable building the documentation (default: yes) 1515 1516Optional Packages: 1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1519 --with-xmlto Use xmlto to regenerate documentation (default: 1520 auto) 1521 --with-fop Use fop to regenerate documentation (default: auto) 1522 --with-xsltproc Use xsltproc for the transformation of XML documents 1523 (default: auto) 1524 1525Some influential environment variables: 1526 CC C compiler command 1527 CFLAGS C compiler flags 1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1529 nonstandard directory <lib dir> 1530 LIBS libraries to pass to the linker, e.g. -l<library> 1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1532 you have headers in a nonstandard directory <include dir> 1533 PKG_CONFIG path to pkg-config utility 1534 PKG_CONFIG_PATH 1535 directories to add to pkg-config's search path 1536 PKG_CONFIG_LIBDIR 1537 path overriding pkg-config's built-in search path 1538 XMLTO Path to xmlto command 1539 FOP Path to fop command 1540 XSLTPROC Path to xsltproc command 1541 1542Use these variables to override the choices made by 'configure' or to help 1543it to find libraries and programs with nonstandard names/locations. 1544 1545Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues>. 1546_ACEOF 1547ac_status=$? 1548fi 1549 1550if test "$ac_init_help" = "recursive"; then 1551 # If there are subdirs, report their specific --help. 1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1553 test -d "$ac_dir" || 1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1555 continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for configure.gnu first; this name is used for a wrapper for 1592 # Metaconfig's "Configure" on case-insensitive file systems. 1593 if test -f "$ac_srcdir/configure.gnu"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1596 elif test -f "$ac_srcdir/configure"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure" --help=recursive 1599 else 1600 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1601 fi || ac_status=$? 1602 cd "$ac_pwd" || { ac_status=$?; break; } 1603 done 1604fi 1605 1606test -n "$ac_init_help" && exit $ac_status 1607if $ac_init_version; then 1608 cat <<\_ACEOF 1609xtrans configure 1.6.0 1610generated by GNU Autoconf 2.72 1611 1612Copyright (C) 2023 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618 1619## ------------------------ ## 1620## Autoconf initialization. ## 1621## ------------------------ ## 1622 1623# ac_fn_c_try_compile LINENO 1624# -------------------------- 1625# Try to compile conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext conftest.beam 1630 if { { ac_try="$ac_compile" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636printf "%s\n" "$ac_try_echo"; } >&5 1637 (eval "$ac_compile") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest.$ac_objext 1649then : 1650 ac_retval=0 1651else case e in #( 1652 e) printf "%s\n" "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 ;; 1656esac 1657fi 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_compile 1662 1663# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1664# ------------------------------------------------------------------ 1665# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1666# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1667ac_fn_check_decl () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 as_decl_name=`echo $2|sed 's/ *(.*//'` 1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1672printf %s "checking whether $as_decl_name is declared... " >&6; } 1673if eval test \${$3+y} 1674then : 1675 printf %s "(cached) " >&6 1676else case e in #( 1677 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1678 eval ac_save_FLAGS=\$$6 1679 as_fn_append $6 " $5" 1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1681/* end confdefs.h. */ 1682$4 1683int 1684main (void) 1685{ 1686#ifndef $as_decl_name 1687#ifdef __cplusplus 1688 (void) $as_decl_use; 1689#else 1690 (void) $as_decl_name; 1691#endif 1692#endif 1693 1694 ; 1695 return 0; 1696} 1697_ACEOF 1698if ac_fn_c_try_compile "$LINENO" 1699then : 1700 eval "$3=yes" 1701else case e in #( 1702 e) eval "$3=no" ;; 1703esac 1704fi 1705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1706 eval $6=\$ac_save_FLAGS 1707 ;; 1708esac 1709fi 1710eval ac_res=\$$3 1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712printf "%s\n" "$ac_res" >&6; } 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715} # ac_fn_check_decl 1716 1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1718# ------------------------------------------------------- 1719# Tests whether HEADER exists and can be compiled using the include files in 1720# INCLUDES, setting the cache variable VAR accordingly. 1721ac_fn_c_check_header_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725printf %s "checking for $2... " >&6; } 1726if eval test \${$3+y} 1727then : 1728 printf %s "(cached) " >&6 1729else case e in #( 1730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO" 1736then : 1737 eval "$3=yes" 1738else case e in #( 1739 e) eval "$3=no" ;; 1740esac 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1743esac 1744fi 1745eval ac_res=\$$3 1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1747printf "%s\n" "$ac_res" >&6; } 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 1750} # ac_fn_c_check_header_compile 1751 1752# ac_fn_c_try_link LINENO 1753# ----------------------- 1754# Try to link conftest.$ac_ext, and return whether this succeeded. 1755ac_fn_c_try_link () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1759 if { { ac_try="$ac_link" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765printf "%s\n" "$ac_try_echo"; } >&5 1766 (eval "$ac_link") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } && { 1775 test -z "$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 } && test -s conftest$ac_exeext && { 1778 test "$cross_compiling" = yes || 1779 test -x conftest$ac_exeext 1780 } 1781then : 1782 ac_retval=0 1783else case e in #( 1784 e) printf "%s\n" "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 ;; 1788esac 1789fi 1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1792 # interfere with the next link command; also delete a directory that is 1793 # left behind by Apple's compiler. We do this before executing the actions. 1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_link 1799 1800# ac_fn_c_check_func LINENO FUNC VAR 1801# ---------------------------------- 1802# Tests whether FUNC exists, setting the cache variable VAR accordingly 1803ac_fn_c_check_func () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807printf %s "checking for $2... " >&6; } 1808if eval test \${$3+y} 1809then : 1810 printf %s "(cached) " >&6 1811else case e in #( 1812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1816#define $2 innocuous_$2 1817 1818/* System header to define __stub macros and hopefully few prototypes, 1819 which can conflict with char $2 (void); below. */ 1820 1821#include <limits.h> 1822#undef $2 1823 1824/* Override any GCC internal prototype to avoid an error. 1825 Use char because int might match the return type of a GCC 1826 builtin and then its argument prototype would still apply. */ 1827#ifdef __cplusplus 1828extern "C" 1829#endif 1830char $2 (void); 1831/* The GNU C library defines this for functions which it implements 1832 to always fail with ENOSYS. Some functions are actually named 1833 something starting with __ and the normal name is an alias. */ 1834#if defined __stub_$2 || defined __stub___$2 1835choke me 1836#endif 1837 1838int 1839main (void) 1840{ 1841return $2 (); 1842 ; 1843 return 0; 1844} 1845_ACEOF 1846if ac_fn_c_try_link "$LINENO" 1847then : 1848 eval "$3=yes" 1849else case e in #( 1850 e) eval "$3=no" ;; 1851esac 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1854 conftest$ac_exeext conftest.$ac_ext ;; 1855esac 1856fi 1857eval ac_res=\$$3 1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859printf "%s\n" "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_func 1863ac_configure_args_raw= 1864for ac_arg 1865do 1866 case $ac_arg in 1867 *\'*) 1868 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1869 esac 1870 as_fn_append ac_configure_args_raw " '$ac_arg'" 1871done 1872 1873case $ac_configure_args_raw in 1874 *$as_nl*) 1875 ac_safe_unquote= ;; 1876 *) 1877 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1878 ac_unsafe_a="$ac_unsafe_z#~" 1879 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1880 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1881esac 1882 1883cat >config.log <<_ACEOF 1884This file contains any messages produced by compilers while 1885running configure, to aid debugging if configure makes a mistake. 1886 1887It was created by xtrans $as_me 1.6.0, which was 1888generated by GNU Autoconf 2.72. Invocation command line was 1889 1890 $ $0$ac_configure_args_raw 1891 1892_ACEOF 1893exec 5>>config.log 1894{ 1895cat <<_ASUNAME 1896## --------- ## 1897## Platform. ## 1898## --------- ## 1899 1900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1901uname -m = `(uname -m) 2>/dev/null || echo unknown` 1902uname -r = `(uname -r) 2>/dev/null || echo unknown` 1903uname -s = `(uname -s) 2>/dev/null || echo unknown` 1904uname -v = `(uname -v) 2>/dev/null || echo unknown` 1905 1906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1907/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1908 1909/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1910/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1912/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1913/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1914/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1915/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1916 1917_ASUNAME 1918 1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1920for as_dir in $PATH 1921do 1922 IFS=$as_save_IFS 1923 case $as_dir in #((( 1924 '') as_dir=./ ;; 1925 */) ;; 1926 *) as_dir=$as_dir/ ;; 1927 esac 1928 printf "%s\n" "PATH: $as_dir" 1929 done 1930IFS=$as_save_IFS 1931 1932} >&5 1933 1934cat >&5 <<_ACEOF 1935 1936 1937## ----------- ## 1938## Core tests. ## 1939## ----------- ## 1940 1941_ACEOF 1942 1943 1944# Keep a trace of the command line. 1945# Strip out --no-create and --no-recursion so they do not pile up. 1946# Strip out --silent because we don't want to record it for future runs. 1947# Also quote any args containing shell meta-characters. 1948# Make two passes to allow for proper duplicate-argument suppression. 1949ac_configure_args= 1950ac_configure_args0= 1951ac_configure_args1= 1952ac_must_keep_next=false 1953for ac_pass in 1 2 1954do 1955 for ac_arg 1956 do 1957 case $ac_arg in 1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1960 | -silent | --silent | --silen | --sile | --sil) 1961 continue ;; 1962 *\'*) 1963 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1964 esac 1965 case $ac_pass in 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1967 2) 1968 as_fn_append ac_configure_args1 " '$ac_arg'" 1969 if test $ac_must_keep_next = true; then 1970 ac_must_keep_next=false # Got value, back to normal. 1971 else 1972 case $ac_arg in 1973 *=* | --config-cache | -C | -disable-* | --disable-* \ 1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1976 | -with-* | --with-* | -without-* | --without-* | --x) 1977 case "$ac_configure_args0 " in 1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1979 esac 1980 ;; 1981 -* ) ac_must_keep_next=true ;; 1982 esac 1983 fi 1984 as_fn_append ac_configure_args " '$ac_arg'" 1985 ;; 1986 esac 1987 done 1988done 1989{ ac_configure_args0=; unset ac_configure_args0;} 1990{ ac_configure_args1=; unset ac_configure_args1;} 1991 1992# When interrupted or exit'd, cleanup temporary files, and complete 1993# config.log. We remove comments because anyway the quotes in there 1994# would cause problems or look ugly. 1995# WARNING: Use '\'' to represent an apostrophe within the trap. 1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1997trap 'exit_status=$? 1998 # Sanitize IFS. 1999 IFS=" "" $as_nl" 2000 # Save into config.log some information that might help in debugging. 2001 { 2002 echo 2003 2004 printf "%s\n" "## ---------------- ## 2005## Cache variables. ## 2006## ---------------- ##" 2007 echo 2008 # The following way of writing the cache mishandles newlines in values, 2009( 2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2011 eval ac_val=\$$ac_var 2012 case $ac_val in #( 2013 *${as_nl}*) 2014 case $ac_var in #( 2015 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2016printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2017 esac 2018 case $ac_var in #( 2019 _ | IFS | as_nl) ;; #( 2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2021 *) { eval $ac_var=; unset $ac_var;} ;; 2022 esac ;; 2023 esac 2024 done 2025 (set) 2>&1 | 2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2027 *${as_nl}ac_space=\ *) 2028 sed -n \ 2029 "s/'\''/'\''\\\\'\'''\''/g; 2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2031 ;; #( 2032 *) 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2034 ;; 2035 esac | 2036 sort 2037) 2038 echo 2039 2040 printf "%s\n" "## ----------------- ## 2041## Output variables. ## 2042## ----------------- ##" 2043 echo 2044 for ac_var in $ac_subst_vars 2045 do 2046 eval ac_val=\$$ac_var 2047 case $ac_val in 2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2049 esac 2050 printf "%s\n" "$ac_var='\''$ac_val'\''" 2051 done | sort 2052 echo 2053 2054 if test -n "$ac_subst_files"; then 2055 printf "%s\n" "## ------------------- ## 2056## File substitutions. ## 2057## ------------------- ##" 2058 echo 2059 for ac_var in $ac_subst_files 2060 do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in 2063 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2064 esac 2065 printf "%s\n" "$ac_var='\''$ac_val'\''" 2066 done | sort 2067 echo 2068 fi 2069 2070 if test -s confdefs.h; then 2071 printf "%s\n" "## ----------- ## 2072## confdefs.h. ## 2073## ----------- ##" 2074 echo 2075 cat confdefs.h 2076 echo 2077 fi 2078 test "$ac_signal" != 0 && 2079 printf "%s\n" "$as_me: caught signal $ac_signal" 2080 printf "%s\n" "$as_me: exit $exit_status" 2081 } >&5 2082 rm -f core *.core core.conftest.* && 2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2084 exit $exit_status 2085' 0 2086for ac_signal in 1 2 13 15; do 2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2088done 2089ac_signal=0 2090 2091# confdefs.h avoids OS command line length limits that DEFS can exceed. 2092rm -f -r conftest* confdefs.h 2093 2094printf "%s\n" "/* confdefs.h */" > confdefs.h 2095 2096# Predefined preprocessor variables. 2097 2098printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2099 2100printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2101 2102printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2103 2104printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2105 2106printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2107 2108printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2109 2110 2111# Let the site file select an alternate cache file if it wants to. 2112# Prefer an explicitly selected file to automatically selected ones. 2113if test -n "$CONFIG_SITE"; then 2114 ac_site_files="$CONFIG_SITE" 2115elif test "x$prefix" != xNONE; then 2116 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2117else 2118 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2119fi 2120 2121for ac_site_file in $ac_site_files 2122do 2123 case $ac_site_file in #( 2124 */*) : 2125 ;; #( 2126 *) : 2127 ac_site_file=./$ac_site_file ;; 2128esac 2129 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2131printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2132 sed 's/^/| /' "$ac_site_file" >&5 2133 . "$ac_site_file" \ 2134 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2135printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2136as_fn_error $? "failed to load site script $ac_site_file 2137See 'config.log' for more details" "$LINENO" 5; } 2138 fi 2139done 2140 2141if test -r "$cache_file"; then 2142 # Some versions of bash will fail to source /dev/null (special files 2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2146printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2147 case $cache_file in 2148 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2149 *) . "./$cache_file";; 2150 esac 2151 fi 2152else 2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2154printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2155 >$cache_file 2156fi 2157 2158# Test code for whether the C compiler supports C89 (global declarations) 2159ac_c_conftest_c89_globals=' 2160/* Does the compiler advertise C89 conformance? 2161 Do not test the value of __STDC__, because some compilers set it to 0 2162 while being otherwise adequately conformant. */ 2163#if !defined __STDC__ 2164# error "Compiler does not advertise C89 conformance" 2165#endif 2166 2167#include <stddef.h> 2168#include <stdarg.h> 2169struct stat; 2170/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2171struct buf { int x; }; 2172struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2173static char *e (char **p, int i) 2174{ 2175 return p[i]; 2176} 2177static char *f (char * (*g) (char **, int), char **p, ...) 2178{ 2179 char *s; 2180 va_list v; 2181 va_start (v,p); 2182 s = g (p, va_arg (v,int)); 2183 va_end (v); 2184 return s; 2185} 2186 2187/* C89 style stringification. */ 2188#define noexpand_stringify(a) #a 2189const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2190 2191/* C89 style token pasting. Exercises some of the corner cases that 2192 e.g. old MSVC gets wrong, but not very hard. */ 2193#define noexpand_concat(a,b) a##b 2194#define expand_concat(a,b) noexpand_concat(a,b) 2195extern int vA; 2196extern int vbee; 2197#define aye A 2198#define bee B 2199int *pvA = &expand_concat(v,aye); 2200int *pvbee = &noexpand_concat(v,bee); 2201 2202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2203 function prototypes and stuff, but not \xHH hex character constants. 2204 These do not provoke an error unfortunately, instead are silently treated 2205 as an "x". The following induces an error, until -std is added to get 2206 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2207 array size at least. It is necessary to write \x00 == 0 to get something 2208 that is true only with -std. */ 2209int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2210 2211/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2212 inside strings and character constants. */ 2213#define FOO(x) '\''x'\'' 2214int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2215 2216int test (int i, double x); 2217struct s1 {int (*f) (int a);}; 2218struct s2 {int (*f) (double a);}; 2219int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2220 int, int);' 2221 2222# Test code for whether the C compiler supports C89 (body of main). 2223ac_c_conftest_c89_main=' 2224ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2225' 2226 2227# Test code for whether the C compiler supports C99 (global declarations) 2228ac_c_conftest_c99_globals=' 2229/* Does the compiler advertise C99 conformance? */ 2230#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2231# error "Compiler does not advertise C99 conformance" 2232#endif 2233 2234// See if C++-style comments work. 2235 2236#include <stdbool.h> 2237extern int puts (const char *); 2238extern int printf (const char *, ...); 2239extern int dprintf (int, const char *, ...); 2240extern void *malloc (size_t); 2241extern void free (void *); 2242 2243// Check varargs macros. These examples are taken from C99 6.10.3.5. 2244// dprintf is used instead of fprintf to avoid needing to declare 2245// FILE and stderr. 2246#define debug(...) dprintf (2, __VA_ARGS__) 2247#define showlist(...) puts (#__VA_ARGS__) 2248#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2249static void 2250test_varargs_macros (void) 2251{ 2252 int x = 1234; 2253 int y = 5678; 2254 debug ("Flag"); 2255 debug ("X = %d\n", x); 2256 showlist (The first, second, and third items.); 2257 report (x>y, "x is %d but y is %d", x, y); 2258} 2259 2260// Check long long types. 2261#define BIG64 18446744073709551615ull 2262#define BIG32 4294967295ul 2263#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2264#if !BIG_OK 2265 #error "your preprocessor is broken" 2266#endif 2267#if BIG_OK 2268#else 2269 #error "your preprocessor is broken" 2270#endif 2271static long long int bignum = -9223372036854775807LL; 2272static unsigned long long int ubignum = BIG64; 2273 2274struct incomplete_array 2275{ 2276 int datasize; 2277 double data[]; 2278}; 2279 2280struct named_init { 2281 int number; 2282 const wchar_t *name; 2283 double average; 2284}; 2285 2286typedef const char *ccp; 2287 2288static inline int 2289test_restrict (ccp restrict text) 2290{ 2291 // Iterate through items via the restricted pointer. 2292 // Also check for declarations in for loops. 2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2294 continue; 2295 return 0; 2296} 2297 2298// Check varargs and va_copy. 2299static bool 2300test_varargs (const char *format, ...) 2301{ 2302 va_list args; 2303 va_start (args, format); 2304 va_list args_copy; 2305 va_copy (args_copy, args); 2306 2307 const char *str = ""; 2308 int number = 0; 2309 float fnumber = 0; 2310 2311 while (*format) 2312 { 2313 switch (*format++) 2314 { 2315 case '\''s'\'': // string 2316 str = va_arg (args_copy, const char *); 2317 break; 2318 case '\''d'\'': // int 2319 number = va_arg (args_copy, int); 2320 break; 2321 case '\''f'\'': // float 2322 fnumber = va_arg (args_copy, double); 2323 break; 2324 default: 2325 break; 2326 } 2327 } 2328 va_end (args_copy); 2329 va_end (args); 2330 2331 return *str && number && fnumber; 2332} 2333' 2334 2335# Test code for whether the C compiler supports C99 (body of main). 2336ac_c_conftest_c99_main=' 2337 // Check bool. 2338 _Bool success = false; 2339 success |= (argc != 0); 2340 2341 // Check restrict. 2342 if (test_restrict ("String literal") == 0) 2343 success = true; 2344 char *restrict newvar = "Another string"; 2345 2346 // Check varargs. 2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2348 test_varargs_macros (); 2349 2350 // Check flexible array members. 2351 struct incomplete_array *ia = 2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2353 ia->datasize = 10; 2354 for (int i = 0; i < ia->datasize; ++i) 2355 ia->data[i] = i * 1.234; 2356 // Work around memory leak warnings. 2357 free (ia); 2358 2359 // Check named initializers. 2360 struct named_init ni = { 2361 .number = 34, 2362 .name = L"Test wide string", 2363 .average = 543.34343, 2364 }; 2365 2366 ni.number = 58; 2367 2368 int dynamic_array[ni.number]; 2369 dynamic_array[0] = argv[0][0]; 2370 dynamic_array[ni.number - 1] = 543; 2371 2372 // work around unused variable warnings 2373 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2374 || dynamic_array[ni.number - 1] != 543); 2375' 2376 2377# Test code for whether the C compiler supports C11 (global declarations) 2378ac_c_conftest_c11_globals=' 2379/* Does the compiler advertise C11 conformance? */ 2380#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2381# error "Compiler does not advertise C11 conformance" 2382#endif 2383 2384// Check _Alignas. 2385char _Alignas (double) aligned_as_double; 2386char _Alignas (0) no_special_alignment; 2387extern char aligned_as_int; 2388char _Alignas (0) _Alignas (int) aligned_as_int; 2389 2390// Check _Alignof. 2391enum 2392{ 2393 int_alignment = _Alignof (int), 2394 int_array_alignment = _Alignof (int[100]), 2395 char_alignment = _Alignof (char) 2396}; 2397_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2398 2399// Check _Noreturn. 2400int _Noreturn does_not_return (void) { for (;;) continue; } 2401 2402// Check _Static_assert. 2403struct test_static_assert 2404{ 2405 int x; 2406 _Static_assert (sizeof (int) <= sizeof (long int), 2407 "_Static_assert does not work in struct"); 2408 long int y; 2409}; 2410 2411// Check UTF-8 literals. 2412#define u8 syntax error! 2413char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2414 2415// Check duplicate typedefs. 2416typedef long *long_ptr; 2417typedef long int *long_ptr; 2418typedef long_ptr long_ptr; 2419 2420// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2421struct anonymous 2422{ 2423 union { 2424 struct { int i; int j; }; 2425 struct { int k; long int l; } w; 2426 }; 2427 int m; 2428} v1; 2429' 2430 2431# Test code for whether the C compiler supports C11 (body of main). 2432ac_c_conftest_c11_main=' 2433 _Static_assert ((offsetof (struct anonymous, i) 2434 == offsetof (struct anonymous, w.k)), 2435 "Anonymous union alignment botch"); 2436 v1.i = 2; 2437 v1.w.k = 5; 2438 ok |= v1.i != 5; 2439' 2440 2441# Test code for whether the C compiler supports C11 (complete). 2442ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2443${ac_c_conftest_c99_globals} 2444${ac_c_conftest_c11_globals} 2445 2446int 2447main (int argc, char **argv) 2448{ 2449 int ok = 0; 2450 ${ac_c_conftest_c89_main} 2451 ${ac_c_conftest_c99_main} 2452 ${ac_c_conftest_c11_main} 2453 return ok; 2454} 2455" 2456 2457# Test code for whether the C compiler supports C99 (complete). 2458ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2459${ac_c_conftest_c99_globals} 2460 2461int 2462main (int argc, char **argv) 2463{ 2464 int ok = 0; 2465 ${ac_c_conftest_c89_main} 2466 ${ac_c_conftest_c99_main} 2467 return ok; 2468} 2469" 2470 2471# Test code for whether the C compiler supports C89 (complete). 2472ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2473 2474int 2475main (int argc, char **argv) 2476{ 2477 int ok = 0; 2478 ${ac_c_conftest_c89_main} 2479 return ok; 2480} 2481" 2482 2483as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2484as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2485as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2486as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2487as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2488as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2489as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2490as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2491as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2492 2493# Auxiliary files required by this configure script. 2494ac_aux_files="config.guess config.sub compile missing install-sh" 2495 2496# Locations in which to look for auxiliary files. 2497ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2498 2499# Search for a directory containing all of the required auxiliary files, 2500# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2501# If we don't find one directory that contains all the files we need, 2502# we report the set of missing files from the *first* directory in 2503# $ac_aux_dir_candidates and give up. 2504ac_missing_aux_files="" 2505ac_first_candidate=: 2506printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508as_found=false 2509for as_dir in $ac_aux_dir_candidates 2510do 2511 IFS=$as_save_IFS 2512 case $as_dir in #((( 2513 '') as_dir=./ ;; 2514 */) ;; 2515 *) as_dir=$as_dir/ ;; 2516 esac 2517 as_found=: 2518 2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2520 ac_aux_dir_found=yes 2521 ac_install_sh= 2522 for ac_aux in $ac_aux_files 2523 do 2524 # As a special case, if "install-sh" is required, that requirement 2525 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2526 # and $ac_install_sh is set appropriately for whichever one is found. 2527 if test x"$ac_aux" = x"install-sh" 2528 then 2529 if test -f "${as_dir}install-sh"; then 2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2531 ac_install_sh="${as_dir}install-sh -c" 2532 elif test -f "${as_dir}install.sh"; then 2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2534 ac_install_sh="${as_dir}install.sh -c" 2535 elif test -f "${as_dir}shtool"; then 2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2537 ac_install_sh="${as_dir}shtool install -c" 2538 else 2539 ac_aux_dir_found=no 2540 if $ac_first_candidate; then 2541 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2542 else 2543 break 2544 fi 2545 fi 2546 else 2547 if test -f "${as_dir}${ac_aux}"; then 2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2549 else 2550 ac_aux_dir_found=no 2551 if $ac_first_candidate; then 2552 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2553 else 2554 break 2555 fi 2556 fi 2557 fi 2558 done 2559 if test "$ac_aux_dir_found" = yes; then 2560 ac_aux_dir="$as_dir" 2561 break 2562 fi 2563 ac_first_candidate=false 2564 2565 as_found=false 2566done 2567IFS=$as_save_IFS 2568if $as_found 2569then : 2570 2571else case e in #( 2572 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2573esac 2574fi 2575 2576 2577# These three variables are undocumented and unsupported, 2578# and are intended to be withdrawn in a future Autoconf release. 2579# They can cause serious problems if a builder's source tree is in a directory 2580# whose full name contains unusual characters. 2581if test -f "${ac_aux_dir}config.guess"; then 2582 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2583fi 2584if test -f "${ac_aux_dir}config.sub"; then 2585 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2586fi 2587if test -f "$ac_aux_dir/configure"; then 2588 ac_configure="$SHELL ${ac_aux_dir}configure" 2589fi 2590 2591# Check that the precious variables saved in the cache have kept the same 2592# value. 2593ac_cache_corrupted=false 2594for ac_var in $ac_precious_vars; do 2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2596 eval ac_new_set=\$ac_env_${ac_var}_set 2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2598 eval ac_new_val=\$ac_env_${ac_var}_value 2599 case $ac_old_set,$ac_new_set in 2600 set,) 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2602printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2603 ac_cache_corrupted=: ;; 2604 ,set) 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2606printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2607 ac_cache_corrupted=: ;; 2608 ,);; 2609 *) 2610 if test "x$ac_old_val" != "x$ac_new_val"; then 2611 # differences in whitespace do not lead to failure. 2612 ac_old_val_w=`echo x $ac_old_val` 2613 ac_new_val_w=`echo x $ac_new_val` 2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2616printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2617 ac_cache_corrupted=: 2618 else 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2620printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2621 eval $ac_var=\$ac_old_val 2622 fi 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2624printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2626printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2627 fi;; 2628 esac 2629 # Pass precious variables to config.status. 2630 if test "$ac_new_set" = set; then 2631 case $ac_new_val in 2632 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2633 *) ac_arg=$ac_var=$ac_new_val ;; 2634 esac 2635 case " $ac_configure_args " in 2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2638 esac 2639 fi 2640done 2641if $ac_cache_corrupted; then 2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2643printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2645printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2646 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2647 and start over" "$LINENO" 5 2648fi 2649## -------------------- ## 2650## Main body of script. ## 2651## -------------------- ## 2652 2653ac_ext=c 2654ac_cpp='$CPP $CPPFLAGS' 2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2657ac_compiler_gnu=$ac_cv_c_compiler_gnu 2658 2659 2660 2661 2662# Initialize Automake 2663am__api_version='1.17' 2664 2665 2666 2667 # Find a good install program. We prefer a C program (faster), 2668# so one script is as good as another. But avoid the broken or 2669# incompatible versions: 2670# SysV /etc/install, /usr/sbin/install 2671# SunOS /usr/etc/install 2672# IRIX /sbin/install 2673# AIX /bin/install 2674# AmigaOS /C/install, which installs bootblocks on floppy discs 2675# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2676# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2677# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2678# OS/2's system install, which has a completely different semantic 2679# ./install, which can be erroneously created by make from ./install.sh. 2680# Reject install programs that cannot install multiple files. 2681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2682printf %s "checking for a BSD-compatible install... " >&6; } 2683if test -z "$INSTALL"; then 2684if test ${ac_cv_path_install+y} 2685then : 2686 printf %s "(cached) " >&6 2687else case e in #( 2688 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 case $as_dir in #((( 2693 '') as_dir=./ ;; 2694 */) ;; 2695 *) as_dir=$as_dir/ ;; 2696 esac 2697 # Account for fact that we put trailing slashes in our PATH walk. 2698case $as_dir in #(( 2699 ./ | /[cC]/* | \ 2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2702 /usr/ucb/* ) ;; 2703 *) 2704 # OSF1 and SCO ODT 3.0 have their own names for install. 2705 # Don't use installbsd from OSF since it installs stuff as root 2706 # by default. 2707 for ac_prog in ginstall scoinst install; do 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2710 if test $ac_prog = install && 2711 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # AIX install. It has an incompatible calling convention. 2713 : 2714 elif test $ac_prog = install && 2715 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2716 # program-specific install script used by HP pwplus--don't use. 2717 : 2718 else 2719 rm -rf conftest.one conftest.two conftest.dir 2720 echo one > conftest.one 2721 echo two > conftest.two 2722 mkdir conftest.dir 2723 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2724 test -s conftest.one && test -s conftest.two && 2725 test -s conftest.dir/conftest.one && 2726 test -s conftest.dir/conftest.two 2727 then 2728 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2729 break 3 2730 fi 2731 fi 2732 fi 2733 done 2734 done 2735 ;; 2736esac 2737 2738 done 2739IFS=$as_save_IFS 2740 2741rm -rf conftest.one conftest.two conftest.dir 2742 ;; 2743esac 2744fi 2745 if test ${ac_cv_path_install+y}; then 2746 INSTALL=$ac_cv_path_install 2747 else 2748 # As a last resort, use the slow shell script. Don't cache a 2749 # value for INSTALL within a source directory, because that will 2750 # break other packages using the cache if that directory is 2751 # removed, or if the value is a relative name. 2752 INSTALL=$ac_install_sh 2753 fi 2754fi 2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2756printf "%s\n" "$INSTALL" >&6; } 2757 2758# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2759# It thinks the first close brace ends the variable substitution. 2760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2761 2762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2763 2764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2765 2766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2767printf %s "checking whether sleep supports fractional seconds... " >&6; } 2768if test ${am_cv_sleep_fractional_seconds+y} 2769then : 2770 printf %s "(cached) " >&6 2771else case e in #( 2772 e) if sleep 0.001 2>/dev/null 2773then : 2774 am_cv_sleep_fractional_seconds=yes 2775else case e in #( 2776 e) am_cv_sleep_fractional_seconds=no ;; 2777esac 2778fi 2779 ;; 2780esac 2781fi 2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2783printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2784 2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2786printf %s "checking filesystem timestamp resolution... " >&6; } 2787if test ${am_cv_filesystem_timestamp_resolution+y} 2788then : 2789 printf %s "(cached) " >&6 2790else case e in #( 2791 e) # Default to the worst case. 2792am_cv_filesystem_timestamp_resolution=2 2793 2794# Only try to go finer than 1 sec if sleep can do it. 2795# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2796# - 1 sec is not much of a win compared to 2 sec, and 2797# - it takes 2 seconds to perform the test whether 1 sec works. 2798# 2799# Instead, just use the default 2s on platforms that have 1s resolution, 2800# accept the extra 1s delay when using $sleep in the Automake tests, in 2801# exchange for not incurring the 2s delay for running the test for all 2802# packages. 2803# 2804am_try_resolutions= 2805if test "$am_cv_sleep_fractional_seconds" = yes; then 2806 # Even a millisecond often causes a bunch of false positives, 2807 # so just try a hundredth of a second. The time saved between .001 and 2808 # .01 is not terribly consequential. 2809 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2810fi 2811 2812# In order to catch current-generation FAT out, we must *modify* files 2813# that already exist; the *creation* timestamp is finer. Use names 2814# that make ls -t sort them differently when they have equal 2815# timestamps than when they have distinct timestamps, keeping 2816# in mind that ls -t prints the *newest* file first. 2817rm -f conftest.ts? 2818: > conftest.ts1 2819: > conftest.ts2 2820: > conftest.ts3 2821 2822# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2823# clobber the current shell's arguments. (Outer-level square brackets 2824# are removed by m4; they're present so that m4 does not expand 2825# <dollar><star>; be careful, easy to get confused.) 2826if ( 2827 set X `ls -t conftest.ts[12]` && 2828 { 2829 test "$*" != "X conftest.ts1 conftest.ts2" || 2830 test "$*" != "X conftest.ts2 conftest.ts1"; 2831 } 2832); then :; else 2833 # If neither matched, then we have a broken ls. This can happen 2834 # if, for instance, CONFIG_SHELL is bash and it inherits a 2835 # broken ls alias from the environment. This has actually 2836 # happened. Such a system could not be considered "sane". 2837 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2839printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2840as_fn_error $? "ls -t produces unexpected output. 2841Make sure there is not a broken ls alias in your environment. 2842See 'config.log' for more details" "$LINENO" 5; } 2843fi 2844 2845for am_try_res in $am_try_resolutions; do 2846 # Any one fine-grained sleep might happen to cross the boundary 2847 # between two values of a coarser actual resolution, but if we do 2848 # two fine-grained sleeps in a row, at least one of them will fall 2849 # entirely within a coarse interval. 2850 echo alpha > conftest.ts1 2851 sleep $am_try_res 2852 echo beta > conftest.ts2 2853 sleep $am_try_res 2854 echo gamma > conftest.ts3 2855 2856 # We assume that 'ls -t' will make use of high-resolution 2857 # timestamps if the operating system supports them at all. 2858 if (set X `ls -t conftest.ts?` && 2859 test "$2" = conftest.ts3 && 2860 test "$3" = conftest.ts2 && 2861 test "$4" = conftest.ts1); then 2862 # 2863 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2864 # because we don't need to test make. 2865 make_ok=true 2866 if test $am_try_res != 1; then 2867 # But if we've succeeded so far with a subsecond resolution, we 2868 # have one more thing to check: make. It can happen that 2869 # everything else supports the subsecond mtimes, but make doesn't; 2870 # notably on macOS, which ships make 3.81 from 2006 (the last one 2871 # released under GPLv2). https://bugs.gnu.org/68808 2872 # 2873 # We test $MAKE if it is defined in the environment, else "make". 2874 # It might get overridden later, but our hope is that in practice 2875 # it does not matter: it is the system "make" which is (by far) 2876 # the most likely to be broken, whereas if the user overrides it, 2877 # probably they did so with a better, or at least not worse, make. 2878 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2879 # 2880 # Create a Makefile (real tab character here): 2881 rm -f conftest.mk 2882 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2883 echo ' touch conftest.ts2' >>conftest.mk 2884 # 2885 # Now, running 2886 # touch conftest.ts1; touch conftest.ts2; make 2887 # should touch ts1 because ts2 is newer. This could happen by luck, 2888 # but most often, it will fail if make's support is insufficient. So 2889 # test for several consecutive successes. 2890 # 2891 # (We reuse conftest.ts[12] because we still want to modify existing 2892 # files, not create new ones, per above.) 2893 n=0 2894 make=${MAKE-make} 2895 until test $n -eq 3; do 2896 echo one > conftest.ts1 2897 sleep $am_try_res 2898 echo two > conftest.ts2 # ts2 should now be newer than ts1 2899 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2900 make_ok=false 2901 break # out of $n loop 2902 fi 2903 n=`expr $n + 1` 2904 done 2905 fi 2906 # 2907 if $make_ok; then 2908 # Everything we know to check worked out, so call this resolution good. 2909 am_cv_filesystem_timestamp_resolution=$am_try_res 2910 break # out of $am_try_res loop 2911 fi 2912 # Otherwise, we'll go on to check the next resolution. 2913 fi 2914done 2915rm -f conftest.ts? 2916# (end _am_filesystem_timestamp_resolution) 2917 ;; 2918esac 2919fi 2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2921printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2922 2923# This check should not be cached, as it may vary across builds of 2924# different projects. 2925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2926printf %s "checking whether build environment is sane... " >&6; } 2927# Reject unsafe characters in $srcdir or the absolute working directory 2928# name. Accept space and tab only in the latter. 2929am_lf=' 2930' 2931case `pwd` in 2932 *[\\\"\#\$\&\'\`$am_lf]*) 2933 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2934esac 2935case $srcdir in 2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2937 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2938esac 2939 2940# Do 'set' in a subshell so we don't clobber the current shell's 2941# arguments. Must try -L first in case configure is actually a 2942# symlink; some systems play weird games with the mod time of symlinks 2943# (eg FreeBSD returns the mod time of the symlink's containing 2944# directory). 2945am_build_env_is_sane=no 2946am_has_slept=no 2947rm -f conftest.file 2948for am_try in 1 2; do 2949 echo "timestamp, slept: $am_has_slept" > conftest.file 2950 if ( 2951 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2952 if test "$*" = "X"; then 2953 # -L didn't work. 2954 set X `ls -t "$srcdir/configure" conftest.file` 2955 fi 2956 test "$2" = conftest.file 2957 ); then 2958 am_build_env_is_sane=yes 2959 break 2960 fi 2961 # Just in case. 2962 sleep "$am_cv_filesystem_timestamp_resolution" 2963 am_has_slept=yes 2964done 2965 2966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2967printf "%s\n" "$am_build_env_is_sane" >&6; } 2968if test "$am_build_env_is_sane" = no; then 2969 as_fn_error $? "newly created file is older than distributed files! 2970Check your system clock" "$LINENO" 5 2971fi 2972 2973# If we didn't sleep, we still need to ensure time stamps of config.status and 2974# generated files are strictly newer. 2975am_sleep_pid= 2976if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2977then : 2978 2979else case e in #( 2980 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2981 am_sleep_pid=$! 2982 ;; 2983esac 2984fi 2985 2986rm -f conftest.file 2987 2988test "$program_prefix" != NONE && 2989 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2990# Use a double $ so make ignores it. 2991test "$program_suffix" != NONE && 2992 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2993# Double any \ or $. 2994# By default was 's,x,x', remove it if useless. 2995ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2996program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2997 2998 2999# Expand $ac_aux_dir to an absolute path. 3000am_aux_dir=`cd "$ac_aux_dir" && pwd` 3001 3002 3003 if test x"${MISSING+set}" != xset; then 3004 MISSING="\${SHELL} '$am_aux_dir/missing'" 3005fi 3006# Use eval to expand $SHELL 3007if eval "$MISSING --is-lightweight"; then 3008 am_missing_run="$MISSING " 3009else 3010 am_missing_run= 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3012printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3013fi 3014 3015if test x"${install_sh+set}" != xset; then 3016 case $am_aux_dir in 3017 *\ * | *\ *) 3018 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3019 *) 3020 install_sh="\${SHELL} $am_aux_dir/install-sh" 3021 esac 3022fi 3023 3024# Installed binaries are usually stripped using 'strip' when the user 3025# run "make install-strip". However 'strip' might not be the right 3026# tool to use in cross-compilation environments, therefore Automake 3027# will honor the 'STRIP' environment variable to overrule this program. 3028if test "$cross_compiling" != no; then 3029 if test -n "$ac_tool_prefix"; then 3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3031set dummy ${ac_tool_prefix}strip; ac_word=$2 3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033printf %s "checking for $ac_word... " >&6; } 3034if test ${ac_cv_prog_STRIP+y} 3035then : 3036 printf %s "(cached) " >&6 3037else case e in #( 3038 e) if test -n "$STRIP"; then 3039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3040else 3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 case $as_dir in #((( 3046 '') as_dir=./ ;; 3047 */) ;; 3048 *) as_dir=$as_dir/ ;; 3049 esac 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3052 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi ;; 3061esac 3062fi 3063STRIP=$ac_cv_prog_STRIP 3064if test -n "$STRIP"; then 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3066printf "%s\n" "$STRIP" >&6; } 3067else 3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069printf "%s\n" "no" >&6; } 3070fi 3071 3072 3073fi 3074if test -z "$ac_cv_prog_STRIP"; then 3075 ac_ct_STRIP=$STRIP 3076 # Extract the first word of "strip", so it can be a program name with args. 3077set dummy strip; ac_word=$2 3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3079printf %s "checking for $ac_word... " >&6; } 3080if test ${ac_cv_prog_ac_ct_STRIP+y} 3081then : 3082 printf %s "(cached) " >&6 3083else case e in #( 3084 e) if test -n "$ac_ct_STRIP"; then 3085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3086else 3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3088for as_dir in $PATH 3089do 3090 IFS=$as_save_IFS 3091 case $as_dir in #((( 3092 '') as_dir=./ ;; 3093 */) ;; 3094 *) as_dir=$as_dir/ ;; 3095 esac 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_ac_ct_STRIP="strip" 3099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103 done 3104IFS=$as_save_IFS 3105 3106fi ;; 3107esac 3108fi 3109ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3110if test -n "$ac_ct_STRIP"; then 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3112printf "%s\n" "$ac_ct_STRIP" >&6; } 3113else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115printf "%s\n" "no" >&6; } 3116fi 3117 3118 if test "x$ac_ct_STRIP" = x; then 3119 STRIP=":" 3120 else 3121 case $cross_compiling:$ac_tool_warned in 3122yes:) 3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3124printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3125ac_tool_warned=yes ;; 3126esac 3127 STRIP=$ac_ct_STRIP 3128 fi 3129else 3130 STRIP="$ac_cv_prog_STRIP" 3131fi 3132 3133fi 3134INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3135 3136 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3138printf %s "checking for a race-free mkdir -p... " >&6; } 3139if test -z "$MKDIR_P"; then 3140 if test ${ac_cv_path_mkdir+y} 3141then : 3142 printf %s "(cached) " >&6 3143else case e in #( 3144 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 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_prog in mkdir gmkdir; do 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3156 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3157 'mkdir ('*'coreutils) '* | \ 3158 *'BusyBox '* | \ 3159 'mkdir (fileutils) '4.1*) 3160 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3161 break 3;; 3162 esac 3163 done 3164 done 3165 done 3166IFS=$as_save_IFS 3167 ;; 3168esac 3169fi 3170 3171 test -d ./--version && rmdir ./--version 3172 if test ${ac_cv_path_mkdir+y}; then 3173 MKDIR_P="$ac_cv_path_mkdir -p" 3174 else 3175 # As a last resort, use plain mkdir -p, 3176 # in the hope it doesn't have the bugs of ancient mkdir. 3177 MKDIR_P='mkdir -p' 3178 fi 3179fi 3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3181printf "%s\n" "$MKDIR_P" >&6; } 3182 3183for ac_prog in gawk mawk nawk awk 3184do 3185 # Extract the first word of "$ac_prog", so it can be a program name with args. 3186set dummy $ac_prog; ac_word=$2 3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188printf %s "checking for $ac_word... " >&6; } 3189if test ${ac_cv_prog_AWK+y} 3190then : 3191 printf %s "(cached) " >&6 3192else case e in #( 3193 e) if test -n "$AWK"; then 3194 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3195else 3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH 3198do 3199 IFS=$as_save_IFS 3200 case $as_dir in #((( 3201 '') as_dir=./ ;; 3202 */) ;; 3203 *) as_dir=$as_dir/ ;; 3204 esac 3205 for ac_exec_ext in '' $ac_executable_extensions; do 3206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3207 ac_cv_prog_AWK="$ac_prog" 3208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215fi ;; 3216esac 3217fi 3218AWK=$ac_cv_prog_AWK 3219if test -n "$AWK"; then 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3221printf "%s\n" "$AWK" >&6; } 3222else 3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3224printf "%s\n" "no" >&6; } 3225fi 3226 3227 3228 test -n "$AWK" && break 3229done 3230 3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3232printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3233set x ${MAKE-make} 3234ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3235if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3236then : 3237 printf %s "(cached) " >&6 3238else case e in #( 3239 e) cat >conftest.make <<\_ACEOF 3240SHELL = /bin/sh 3241all: 3242 @echo '@@@%%%=$(MAKE)=@@@%%%' 3243_ACEOF 3244# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3245case `${MAKE-make} -f conftest.make 2>/dev/null` in 3246 *@@@%%%=?*=@@@%%%*) 3247 eval ac_cv_prog_make_${ac_make}_set=yes;; 3248 *) 3249 eval ac_cv_prog_make_${ac_make}_set=no;; 3250esac 3251rm -f conftest.make ;; 3252esac 3253fi 3254if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3256printf "%s\n" "yes" >&6; } 3257 SET_MAKE= 3258else 3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3260printf "%s\n" "no" >&6; } 3261 SET_MAKE="MAKE=${MAKE-make}" 3262fi 3263 3264rm -rf .tst 2>/dev/null 3265mkdir .tst 2>/dev/null 3266if test -d .tst; then 3267 am__leading_dot=. 3268else 3269 am__leading_dot=_ 3270fi 3271rmdir .tst 2>/dev/null 3272 3273AM_DEFAULT_VERBOSITY=1 3274# Check whether --enable-silent-rules was given. 3275if test ${enable_silent_rules+y} 3276then : 3277 enableval=$enable_silent_rules; 3278fi 3279 3280am_make=${MAKE-make} 3281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3282printf %s "checking whether $am_make supports nested variables... " >&6; } 3283if test ${am_cv_make_support_nested_variables+y} 3284then : 3285 printf %s "(cached) " >&6 3286else case e in #( 3287 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3288BAR0=false 3289BAR1=true 3290V=1 3291am__doit: 3292 @$(TRUE) 3293.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3294 am_cv_make_support_nested_variables=yes 3295else 3296 am_cv_make_support_nested_variables=no 3297fi ;; 3298esac 3299fi 3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3301printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3302AM_BACKSLASH='\' 3303 3304am__rm_f_notfound= 3305if (rm -f && rm -fr && rm -rf) 2>/dev/null 3306then : 3307 3308else case e in #( 3309 e) am__rm_f_notfound='""' ;; 3310esac 3311fi 3312 3313 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3315printf %s "checking xargs -n works... " >&6; } 3316if test ${am_cv_xargs_n_works+y} 3317then : 3318 printf %s "(cached) " >&6 3319else case e in #( 3320 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 33213" 3322then : 3323 am_cv_xargs_n_works=yes 3324else case e in #( 3325 e) am_cv_xargs_n_works=no ;; 3326esac 3327fi ;; 3328esac 3329fi 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3331printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3332if test "$am_cv_xargs_n_works" = yes 3333then : 3334 am__xargs_n='xargs -n' 3335else case e in #( 3336 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3337 ;; 3338esac 3339fi 3340 3341if test "`cd $srcdir && pwd`" != "`pwd`"; then 3342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3343 # is not polluted with repeated "-I." 3344 am__isrc=' -I$(srcdir)' 3345 # test to see if srcdir already configured 3346 if test -f $srcdir/config.status; then 3347 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3348 fi 3349fi 3350 3351# test whether we have cygpath 3352if test -z "$CYGPATH_W"; then 3353 if (cygpath --version) >/dev/null 2>/dev/null; then 3354 CYGPATH_W='cygpath -w' 3355 else 3356 CYGPATH_W=echo 3357 fi 3358fi 3359 3360 3361# Define the identity of the package. 3362 PACKAGE='xtrans' 3363 VERSION='1.6.0' 3364 3365 3366printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3367 3368 3369printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3370 3371# Some tools Automake needs. 3372 3373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3374 3375 3376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3377 3378 3379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3380 3381 3382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3383 3384 3385MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3386 3387# For better backward compatibility. To be removed once Automake 1.9.x 3388# dies out for good. For more background, see: 3389# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3390# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3391mkdir_p='$(MKDIR_P)' 3392 3393# We need awk for the "check" target (and possibly the TAP driver). The 3394# system "awk" is bad on some platforms. 3395# Always define AMTAR for backward compatibility. Yes, it's still used 3396# in the wild :-( We should find a proper way to deprecate it ... 3397AMTAR='$${TAR-tar}' 3398 3399 3400# We'll loop over all known methods to create a tar archive until one works. 3401_am_tools='gnutar pax cpio none' 3402 3403am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3404 3405 3406 3407 3408 3409# Variables for tags utilities; see am/tags.am 3410if test -z "$CTAGS"; then 3411 CTAGS=ctags 3412fi 3413 3414if test -z "$ETAGS"; then 3415 ETAGS=etags 3416fi 3417 3418if test -z "$CSCOPE"; then 3419 CSCOPE=cscope 3420fi 3421 3422 3423 3424 3425 3426 3427 3428 3429# Require xorg-macros minimum of 1.12 for DocBook external references 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450DEPDIR="${am__leading_dot}deps" 3451 3452ac_config_commands="$ac_config_commands depfiles" 3453 3454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3455printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3456cat > confinc.mk << 'END' 3457am__doit: 3458 @echo this is the am__doit target >confinc.out 3459.PHONY: am__doit 3460END 3461am__include="#" 3462am__quote= 3463# BSD make does it like this. 3464echo '.include "confinc.mk" # ignored' > confmf.BSD 3465# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3466echo 'include confinc.mk # ignored' > confmf.GNU 3467_am_result=no 3468for s in GNU BSD; do 3469 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3470 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3471 ac_status=$? 3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3473 (exit $ac_status); } 3474 case $?:`cat confinc.out 2>/dev/null` in #( 3475 '0:this is the am__doit target') : 3476 case $s in #( 3477 BSD) : 3478 am__include='.include' am__quote='"' ;; #( 3479 *) : 3480 am__include='include' am__quote='' ;; 3481esac ;; #( 3482 *) : 3483 ;; 3484esac 3485 if test "$am__include" != "#"; then 3486 _am_result="yes ($s style)" 3487 break 3488 fi 3489done 3490rm -f confinc.* confmf.* 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3492printf "%s\n" "${_am_result}" >&6; } 3493 3494# Check whether --enable-dependency-tracking was given. 3495if test ${enable_dependency_tracking+y} 3496then : 3497 enableval=$enable_dependency_tracking; 3498fi 3499 3500if test "x$enable_dependency_tracking" != xno; then 3501 am_depcomp="$ac_aux_dir/depcomp" 3502 AMDEPBACKSLASH='\' 3503 am__nodep='_no' 3504fi 3505 if test "x$enable_dependency_tracking" != xno; then 3506 AMDEP_TRUE= 3507 AMDEP_FALSE='#' 3508else 3509 AMDEP_TRUE='#' 3510 AMDEP_FALSE= 3511fi 3512 3513 3514ac_ext=c 3515ac_cpp='$CPP $CPPFLAGS' 3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3518ac_compiler_gnu=$ac_cv_c_compiler_gnu 3519if test -n "$ac_tool_prefix"; then 3520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3521set dummy ${ac_tool_prefix}gcc; ac_word=$2 3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523printf %s "checking for $ac_word... " >&6; } 3524if test ${ac_cv_prog_CC+y} 3525then : 3526 printf %s "(cached) " >&6 3527else case e in #( 3528 e) if test -n "$CC"; then 3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3530else 3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532for as_dir in $PATH 3533do 3534 IFS=$as_save_IFS 3535 case $as_dir in #((( 3536 '') as_dir=./ ;; 3537 */) ;; 3538 *) as_dir=$as_dir/ ;; 3539 esac 3540 for ac_exec_ext in '' $ac_executable_extensions; do 3541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3542 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3544 break 2 3545 fi 3546done 3547 done 3548IFS=$as_save_IFS 3549 3550fi ;; 3551esac 3552fi 3553CC=$ac_cv_prog_CC 3554if test -n "$CC"; then 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3556printf "%s\n" "$CC" >&6; } 3557else 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559printf "%s\n" "no" >&6; } 3560fi 3561 3562 3563fi 3564if test -z "$ac_cv_prog_CC"; then 3565 ac_ct_CC=$CC 3566 # Extract the first word of "gcc", so it can be a program name with args. 3567set dummy gcc; ac_word=$2 3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3569printf %s "checking for $ac_word... " >&6; } 3570if test ${ac_cv_prog_ac_ct_CC+y} 3571then : 3572 printf %s "(cached) " >&6 3573else case e in #( 3574 e) if test -n "$ac_ct_CC"; then 3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3576else 3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3578for as_dir in $PATH 3579do 3580 IFS=$as_save_IFS 3581 case $as_dir in #((( 3582 '') as_dir=./ ;; 3583 */) ;; 3584 *) as_dir=$as_dir/ ;; 3585 esac 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3588 ac_cv_prog_ac_ct_CC="gcc" 3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593 done 3594IFS=$as_save_IFS 3595 3596fi ;; 3597esac 3598fi 3599ac_ct_CC=$ac_cv_prog_ac_ct_CC 3600if test -n "$ac_ct_CC"; then 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3602printf "%s\n" "$ac_ct_CC" >&6; } 3603else 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3605printf "%s\n" "no" >&6; } 3606fi 3607 3608 if test "x$ac_ct_CC" = x; then 3609 CC="" 3610 else 3611 case $cross_compiling:$ac_tool_warned in 3612yes:) 3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3614printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3615ac_tool_warned=yes ;; 3616esac 3617 CC=$ac_ct_CC 3618 fi 3619else 3620 CC="$ac_cv_prog_CC" 3621fi 3622 3623if test -z "$CC"; then 3624 if test -n "$ac_tool_prefix"; then 3625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3626set dummy ${ac_tool_prefix}cc; ac_word=$2 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3628printf %s "checking for $ac_word... " >&6; } 3629if test ${ac_cv_prog_CC+y} 3630then : 3631 printf %s "(cached) " >&6 3632else case e in #( 3633 e) if test -n "$CC"; then 3634 ac_cv_prog_CC="$CC" # Let the user override the test. 3635else 3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3637for as_dir in $PATH 3638do 3639 IFS=$as_save_IFS 3640 case $as_dir in #((( 3641 '') as_dir=./ ;; 3642 */) ;; 3643 *) as_dir=$as_dir/ ;; 3644 esac 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3647 ac_cv_prog_CC="${ac_tool_prefix}cc" 3648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3649 break 2 3650 fi 3651done 3652 done 3653IFS=$as_save_IFS 3654 3655fi ;; 3656esac 3657fi 3658CC=$ac_cv_prog_CC 3659if test -n "$CC"; then 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3661printf "%s\n" "$CC" >&6; } 3662else 3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664printf "%s\n" "no" >&6; } 3665fi 3666 3667 3668 fi 3669fi 3670if test -z "$CC"; then 3671 # Extract the first word of "cc", so it can be a program name with args. 3672set dummy cc; ac_word=$2 3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674printf %s "checking for $ac_word... " >&6; } 3675if test ${ac_cv_prog_CC+y} 3676then : 3677 printf %s "(cached) " >&6 3678else case e in #( 3679 e) if test -n "$CC"; then 3680 ac_cv_prog_CC="$CC" # Let the user override the test. 3681else 3682 ac_prog_rejected=no 3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684for as_dir in $PATH 3685do 3686 IFS=$as_save_IFS 3687 case $as_dir in #((( 3688 '') as_dir=./ ;; 3689 */) ;; 3690 *) as_dir=$as_dir/ ;; 3691 esac 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3694 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3695 ac_prog_rejected=yes 3696 continue 3697 fi 3698 ac_cv_prog_CC="cc" 3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702done 3703 done 3704IFS=$as_save_IFS 3705 3706if test $ac_prog_rejected = yes; then 3707 # We found a bogon in the path, so make sure we never use it. 3708 set dummy $ac_cv_prog_CC 3709 shift 3710 if test $# != 0; then 3711 # We chose a different compiler from the bogus one. 3712 # However, it has the same basename, so the bogon will be chosen 3713 # first if we set CC to just the basename; use the full file name. 3714 shift 3715 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3716 fi 3717fi 3718fi ;; 3719esac 3720fi 3721CC=$ac_cv_prog_CC 3722if test -n "$CC"; then 3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3724printf "%s\n" "$CC" >&6; } 3725else 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727printf "%s\n" "no" >&6; } 3728fi 3729 3730 3731fi 3732if test -z "$CC"; then 3733 if test -n "$ac_tool_prefix"; then 3734 for ac_prog in cl.exe 3735 do 3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3737set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739printf %s "checking for $ac_word... " >&6; } 3740if test ${ac_cv_prog_CC+y} 3741then : 3742 printf %s "(cached) " >&6 3743else case e in #( 3744 e) if test -n "$CC"; then 3745 ac_cv_prog_CC="$CC" # Let the user override the test. 3746else 3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 case $as_dir in #((( 3752 '') as_dir=./ ;; 3753 */) ;; 3754 *) as_dir=$as_dir/ ;; 3755 esac 3756 for ac_exec_ext in '' $ac_executable_extensions; do 3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3760 break 2 3761 fi 3762done 3763 done 3764IFS=$as_save_IFS 3765 3766fi ;; 3767esac 3768fi 3769CC=$ac_cv_prog_CC 3770if test -n "$CC"; then 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3772printf "%s\n" "$CC" >&6; } 3773else 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3775printf "%s\n" "no" >&6; } 3776fi 3777 3778 3779 test -n "$CC" && break 3780 done 3781fi 3782if test -z "$CC"; then 3783 ac_ct_CC=$CC 3784 for ac_prog in cl.exe 3785do 3786 # Extract the first word of "$ac_prog", so it can be a program name with args. 3787set dummy $ac_prog; ac_word=$2 3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789printf %s "checking for $ac_word... " >&6; } 3790if test ${ac_cv_prog_ac_ct_CC+y} 3791then : 3792 printf %s "(cached) " >&6 3793else case e in #( 3794 e) if test -n "$ac_ct_CC"; then 3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3796else 3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798for as_dir in $PATH 3799do 3800 IFS=$as_save_IFS 3801 case $as_dir in #((( 3802 '') as_dir=./ ;; 3803 */) ;; 3804 *) as_dir=$as_dir/ ;; 3805 esac 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3808 ac_cv_prog_ac_ct_CC="$ac_prog" 3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812done 3813 done 3814IFS=$as_save_IFS 3815 3816fi ;; 3817esac 3818fi 3819ac_ct_CC=$ac_cv_prog_ac_ct_CC 3820if test -n "$ac_ct_CC"; then 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3822printf "%s\n" "$ac_ct_CC" >&6; } 3823else 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825printf "%s\n" "no" >&6; } 3826fi 3827 3828 3829 test -n "$ac_ct_CC" && break 3830done 3831 3832 if test "x$ac_ct_CC" = x; then 3833 CC="" 3834 else 3835 case $cross_compiling:$ac_tool_warned in 3836yes:) 3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3839ac_tool_warned=yes ;; 3840esac 3841 CC=$ac_ct_CC 3842 fi 3843fi 3844 3845fi 3846if test -z "$CC"; then 3847 if test -n "$ac_tool_prefix"; then 3848 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3849set dummy ${ac_tool_prefix}clang; ac_word=$2 3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3851printf %s "checking for $ac_word... " >&6; } 3852if test ${ac_cv_prog_CC+y} 3853then : 3854 printf %s "(cached) " >&6 3855else case e in #( 3856 e) if test -n "$CC"; then 3857 ac_cv_prog_CC="$CC" # Let the user override the test. 3858else 3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH 3861do 3862 IFS=$as_save_IFS 3863 case $as_dir in #((( 3864 '') as_dir=./ ;; 3865 */) ;; 3866 *) as_dir=$as_dir/ ;; 3867 esac 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_CC="${ac_tool_prefix}clang" 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878fi ;; 3879esac 3880fi 3881CC=$ac_cv_prog_CC 3882if test -n "$CC"; then 3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3884printf "%s\n" "$CC" >&6; } 3885else 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887printf "%s\n" "no" >&6; } 3888fi 3889 3890 3891fi 3892if test -z "$ac_cv_prog_CC"; then 3893 ac_ct_CC=$CC 3894 # Extract the first word of "clang", so it can be a program name with args. 3895set dummy clang; ac_word=$2 3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3897printf %s "checking for $ac_word... " >&6; } 3898if test ${ac_cv_prog_ac_ct_CC+y} 3899then : 3900 printf %s "(cached) " >&6 3901else case e in #( 3902 e) if test -n "$ac_ct_CC"; then 3903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3904else 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 case $as_dir in #((( 3910 '') as_dir=./ ;; 3911 */) ;; 3912 *) as_dir=$as_dir/ ;; 3913 esac 3914 for ac_exec_ext in '' $ac_executable_extensions; do 3915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3916 ac_cv_prog_ac_ct_CC="clang" 3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3918 break 2 3919 fi 3920done 3921 done 3922IFS=$as_save_IFS 3923 3924fi ;; 3925esac 3926fi 3927ac_ct_CC=$ac_cv_prog_ac_ct_CC 3928if test -n "$ac_ct_CC"; then 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3930printf "%s\n" "$ac_ct_CC" >&6; } 3931else 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3933printf "%s\n" "no" >&6; } 3934fi 3935 3936 if test "x$ac_ct_CC" = x; then 3937 CC="" 3938 else 3939 case $cross_compiling:$ac_tool_warned in 3940yes:) 3941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3943ac_tool_warned=yes ;; 3944esac 3945 CC=$ac_ct_CC 3946 fi 3947else 3948 CC="$ac_cv_prog_CC" 3949fi 3950 3951fi 3952 3953 3954test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3955printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3956as_fn_error $? "no acceptable C compiler found in \$PATH 3957See 'config.log' for more details" "$LINENO" 5; } 3958 3959# Provide some information about the compiler. 3960printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3961set X $ac_compile 3962ac_compiler=$2 3963for ac_option in --version -v -V -qversion -version; do 3964 { { ac_try="$ac_compiler $ac_option >&5" 3965case "(($ac_try" in 3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3967 *) ac_try_echo=$ac_try;; 3968esac 3969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3970printf "%s\n" "$ac_try_echo"; } >&5 3971 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3972 ac_status=$? 3973 if test -s conftest.err; then 3974 sed '10a\ 3975... rest of stderr output deleted ... 3976 10q' conftest.err >conftest.er1 3977 cat conftest.er1 >&5 3978 fi 3979 rm -f conftest.er1 conftest.err 3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3981 test $ac_status = 0; } 3982done 3983 3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987int 3988main (void) 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995ac_clean_files_save=$ac_clean_files 3996ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3997# Try to create an executable without -o first, disregard a.out. 3998# It will help us diagnose broken compilers, and finding out an intuition 3999# of exeext. 4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4001printf %s "checking whether the C compiler works... " >&6; } 4002ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4003 4004# The possible output files: 4005ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4006 4007ac_rmfiles= 4008for ac_file in $ac_files 4009do 4010 case $ac_file in 4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4012 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4013 esac 4014done 4015rm -f $ac_rmfiles 4016 4017if { { ac_try="$ac_link_default" 4018case "(($ac_try" in 4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4020 *) ac_try_echo=$ac_try;; 4021esac 4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4023printf "%s\n" "$ac_try_echo"; } >&5 4024 (eval "$ac_link_default") 2>&5 4025 ac_status=$? 4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4027 test $ac_status = 0; } 4028then : 4029 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4030# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4031# in a Makefile. We should not override ac_cv_exeext if it was cached, 4032# so that the user can short-circuit this test for compilers unknown to 4033# Autoconf. 4034for ac_file in $ac_files '' 4035do 4036 test -f "$ac_file" || continue 4037 case $ac_file in 4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4039 ;; 4040 [ab].out ) 4041 # We found the default executable, but exeext='' is most 4042 # certainly right. 4043 break;; 4044 *.* ) 4045 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4046 then :; else 4047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4048 fi 4049 # We set ac_cv_exeext here because the later test for it is not 4050 # safe: cross compilers may not add the suffix if given an '-o' 4051 # argument, so we may need to know it at that point already. 4052 # Even if this section looks crufty: it has the advantage of 4053 # actually working. 4054 break;; 4055 * ) 4056 break;; 4057 esac 4058done 4059test "$ac_cv_exeext" = no && ac_cv_exeext= 4060 4061else case e in #( 4062 e) ac_file='' ;; 4063esac 4064fi 4065if test -z "$ac_file" 4066then : 4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4068printf "%s\n" "no" >&6; } 4069printf "%s\n" "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4073printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4074as_fn_error 77 "C compiler cannot create executables 4075See 'config.log' for more details" "$LINENO" 5; } 4076else case e in #( 4077 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4078printf "%s\n" "yes" >&6; } ;; 4079esac 4080fi 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4082printf %s "checking for C compiler default output file name... " >&6; } 4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4084printf "%s\n" "$ac_file" >&6; } 4085ac_exeext=$ac_cv_exeext 4086 4087rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4088ac_clean_files=$ac_clean_files_save 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4090printf %s "checking for suffix of executables... " >&6; } 4091if { { ac_try="$ac_link" 4092case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4097printf "%s\n" "$ac_try_echo"; } >&5 4098 (eval "$ac_link") 2>&5 4099 ac_status=$? 4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; } 4102then : 4103 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4104# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4105# work properly (i.e., refer to 'conftest.exe'), while it won't with 4106# 'rm'. 4107for ac_file in conftest.exe conftest conftest.*; do 4108 test -f "$ac_file" || continue 4109 case $ac_file in 4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4112 break;; 4113 * ) break;; 4114 esac 4115done 4116else case e in #( 4117 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4118printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4119as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4120See 'config.log' for more details" "$LINENO" 5; } ;; 4121esac 4122fi 4123rm -f conftest conftest$ac_cv_exeext 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4125printf "%s\n" "$ac_cv_exeext" >&6; } 4126 4127rm -f conftest.$ac_ext 4128EXEEXT=$ac_cv_exeext 4129ac_exeext=$EXEEXT 4130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132#include <stdio.h> 4133int 4134main (void) 4135{ 4136FILE *f = fopen ("conftest.out", "w"); 4137 if (!f) 4138 return 1; 4139 return ferror (f) || fclose (f) != 0; 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145ac_clean_files="$ac_clean_files conftest.out" 4146# Check that the compiler produces executables we can run. If not, either 4147# the compiler is broken, or we cross compile. 4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4149printf %s "checking whether we are cross compiling... " >&6; } 4150if test "$cross_compiling" != yes; then 4151 { { ac_try="$ac_link" 4152case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155esac 4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4157printf "%s\n" "$ac_try_echo"; } >&5 4158 (eval "$ac_link") 2>&5 4159 ac_status=$? 4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4161 test $ac_status = 0; } 4162 if { ac_try='./conftest$ac_cv_exeext' 4163 { { case "(($ac_try" in 4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4165 *) ac_try_echo=$ac_try;; 4166esac 4167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4168printf "%s\n" "$ac_try_echo"; } >&5 4169 (eval "$ac_try") 2>&5 4170 ac_status=$? 4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4172 test $ac_status = 0; }; }; then 4173 cross_compiling=no 4174 else 4175 if test "$cross_compiling" = maybe; then 4176 cross_compiling=yes 4177 else 4178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4179printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4180as_fn_error 77 "cannot run C compiled programs. 4181If you meant to cross compile, use '--host'. 4182See 'config.log' for more details" "$LINENO" 5; } 4183 fi 4184 fi 4185fi 4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4187printf "%s\n" "$cross_compiling" >&6; } 4188 4189rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4190 conftest.o conftest.obj conftest.out 4191ac_clean_files=$ac_clean_files_save 4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4193printf %s "checking for suffix of object files... " >&6; } 4194if test ${ac_cv_objext+y} 4195then : 4196 printf %s "(cached) " >&6 4197else case e in #( 4198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200 4201int 4202main (void) 4203{ 4204 4205 ; 4206 return 0; 4207} 4208_ACEOF 4209rm -f conftest.o conftest.obj 4210if { { ac_try="$ac_compile" 4211case "(($ac_try" in 4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4213 *) ac_try_echo=$ac_try;; 4214esac 4215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4216printf "%s\n" "$ac_try_echo"; } >&5 4217 (eval "$ac_compile") 2>&5 4218 ac_status=$? 4219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4220 test $ac_status = 0; } 4221then : 4222 for ac_file in conftest.o conftest.obj conftest.*; do 4223 test -f "$ac_file" || continue; 4224 case $ac_file in 4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4227 break;; 4228 esac 4229done 4230else case e in #( 4231 e) printf "%s\n" "$as_me: failed program was:" >&5 4232sed 's/^/| /' conftest.$ac_ext >&5 4233 4234{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4235printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4236as_fn_error $? "cannot compute suffix of object files: cannot compile 4237See 'config.log' for more details" "$LINENO" 5; } ;; 4238esac 4239fi 4240rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4241esac 4242fi 4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4244printf "%s\n" "$ac_cv_objext" >&6; } 4245OBJEXT=$ac_cv_objext 4246ac_objext=$OBJEXT 4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4248printf %s "checking whether the compiler supports GNU C... " >&6; } 4249if test ${ac_cv_c_compiler_gnu+y} 4250then : 4251 printf %s "(cached) " >&6 4252else case e in #( 4253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4254/* end confdefs.h. */ 4255 4256int 4257main (void) 4258{ 4259#ifndef __GNUC__ 4260 choke me 4261#endif 4262 4263 ; 4264 return 0; 4265} 4266_ACEOF 4267if ac_fn_c_try_compile "$LINENO" 4268then : 4269 ac_compiler_gnu=yes 4270else case e in #( 4271 e) ac_compiler_gnu=no ;; 4272esac 4273fi 4274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4275ac_cv_c_compiler_gnu=$ac_compiler_gnu 4276 ;; 4277esac 4278fi 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4280printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4281ac_compiler_gnu=$ac_cv_c_compiler_gnu 4282 4283if test $ac_compiler_gnu = yes; then 4284 GCC=yes 4285else 4286 GCC= 4287fi 4288ac_test_CFLAGS=${CFLAGS+y} 4289ac_save_CFLAGS=$CFLAGS 4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4291printf %s "checking whether $CC accepts -g... " >&6; } 4292if test ${ac_cv_prog_cc_g+y} 4293then : 4294 printf %s "(cached) " >&6 4295else case e in #( 4296 e) ac_save_c_werror_flag=$ac_c_werror_flag 4297 ac_c_werror_flag=yes 4298 ac_cv_prog_cc_g=no 4299 CFLAGS="-g" 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302 4303int 4304main (void) 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311if ac_fn_c_try_compile "$LINENO" 4312then : 4313 ac_cv_prog_cc_g=yes 4314else case e in #( 4315 e) CFLAGS="" 4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318 4319int 4320main (void) 4321{ 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_compile "$LINENO" 4328then : 4329 4330else case e in #( 4331 e) ac_c_werror_flag=$ac_save_c_werror_flag 4332 CFLAGS="-g" 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4334/* end confdefs.h. */ 4335 4336int 4337main (void) 4338{ 4339 4340 ; 4341 return 0; 4342} 4343_ACEOF 4344if ac_fn_c_try_compile "$LINENO" 4345then : 4346 ac_cv_prog_cc_g=yes 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4349esac 4350fi 4351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4352esac 4353fi 4354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4355 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4356esac 4357fi 4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4359printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4360if test $ac_test_CFLAGS; then 4361 CFLAGS=$ac_save_CFLAGS 4362elif test $ac_cv_prog_cc_g = yes; then 4363 if test "$GCC" = yes; then 4364 CFLAGS="-g -O2" 4365 else 4366 CFLAGS="-g" 4367 fi 4368else 4369 if test "$GCC" = yes; then 4370 CFLAGS="-O2" 4371 else 4372 CFLAGS= 4373 fi 4374fi 4375ac_prog_cc_stdc=no 4376if test x$ac_prog_cc_stdc = xno 4377then : 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4379printf %s "checking for $CC option to enable C11 features... " >&6; } 4380if test ${ac_cv_prog_cc_c11+y} 4381then : 4382 printf %s "(cached) " >&6 4383else case e in #( 4384 e) ac_cv_prog_cc_c11=no 4385ac_save_CC=$CC 4386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388$ac_c_conftest_c11_program 4389_ACEOF 4390for ac_arg in '' -std=gnu11 4391do 4392 CC="$ac_save_CC $ac_arg" 4393 if ac_fn_c_try_compile "$LINENO" 4394then : 4395 ac_cv_prog_cc_c11=$ac_arg 4396fi 4397rm -f core conftest.err conftest.$ac_objext conftest.beam 4398 test "x$ac_cv_prog_cc_c11" != "xno" && break 4399done 4400rm -f conftest.$ac_ext 4401CC=$ac_save_CC ;; 4402esac 4403fi 4404 4405if test "x$ac_cv_prog_cc_c11" = xno 4406then : 4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4408printf "%s\n" "unsupported" >&6; } 4409else case e in #( 4410 e) if test "x$ac_cv_prog_cc_c11" = x 4411then : 4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4413printf "%s\n" "none needed" >&6; } 4414else case e in #( 4415 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4416printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4417 CC="$CC $ac_cv_prog_cc_c11" ;; 4418esac 4419fi 4420 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4421 ac_prog_cc_stdc=c11 ;; 4422esac 4423fi 4424fi 4425if test x$ac_prog_cc_stdc = xno 4426then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4428printf %s "checking for $CC option to enable C99 features... " >&6; } 4429if test ${ac_cv_prog_cc_c99+y} 4430then : 4431 printf %s "(cached) " >&6 4432else case e in #( 4433 e) ac_cv_prog_cc_c99=no 4434ac_save_CC=$CC 4435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437$ac_c_conftest_c99_program 4438_ACEOF 4439for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4440do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443then : 4444 ac_cv_prog_cc_c99=$ac_arg 4445fi 4446rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c99" != "xno" && break 4448done 4449rm -f conftest.$ac_ext 4450CC=$ac_save_CC ;; 4451esac 4452fi 4453 4454if test "x$ac_cv_prog_cc_c99" = xno 4455then : 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4457printf "%s\n" "unsupported" >&6; } 4458else case e in #( 4459 e) if test "x$ac_cv_prog_cc_c99" = x 4460then : 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4462printf "%s\n" "none needed" >&6; } 4463else case e in #( 4464 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4465printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4466 CC="$CC $ac_cv_prog_cc_c99" ;; 4467esac 4468fi 4469 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4470 ac_prog_cc_stdc=c99 ;; 4471esac 4472fi 4473fi 4474if test x$ac_prog_cc_stdc = xno 4475then : 4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4477printf %s "checking for $CC option to enable C89 features... " >&6; } 4478if test ${ac_cv_prog_cc_c89+y} 4479then : 4480 printf %s "(cached) " >&6 4481else case e in #( 4482 e) ac_cv_prog_cc_c89=no 4483ac_save_CC=$CC 4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4485/* end confdefs.h. */ 4486$ac_c_conftest_c89_program 4487_ACEOF 4488for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4489do 4490 CC="$ac_save_CC $ac_arg" 4491 if ac_fn_c_try_compile "$LINENO" 4492then : 4493 ac_cv_prog_cc_c89=$ac_arg 4494fi 4495rm -f core conftest.err conftest.$ac_objext conftest.beam 4496 test "x$ac_cv_prog_cc_c89" != "xno" && break 4497done 4498rm -f conftest.$ac_ext 4499CC=$ac_save_CC ;; 4500esac 4501fi 4502 4503if test "x$ac_cv_prog_cc_c89" = xno 4504then : 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4506printf "%s\n" "unsupported" >&6; } 4507else case e in #( 4508 e) if test "x$ac_cv_prog_cc_c89" = x 4509then : 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4511printf "%s\n" "none needed" >&6; } 4512else case e in #( 4513 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4514printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4515 CC="$CC $ac_cv_prog_cc_c89" ;; 4516esac 4517fi 4518 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4519 ac_prog_cc_stdc=c89 ;; 4520esac 4521fi 4522fi 4523 4524ac_ext=c 4525ac_cpp='$CPP $CPPFLAGS' 4526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4528ac_compiler_gnu=$ac_cv_c_compiler_gnu 4529 4530 4531 ac_ext=c 4532ac_cpp='$CPP $CPPFLAGS' 4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4535ac_compiler_gnu=$ac_cv_c_compiler_gnu 4536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4537printf %s "checking whether $CC understands -c and -o together... " >&6; } 4538if test ${am_cv_prog_cc_c_o+y} 4539then : 4540 printf %s "(cached) " >&6 4541else case e in #( 4542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544 4545int 4546main (void) 4547{ 4548 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553 # Make sure it works both with $CC and with simple cc. 4554 # Following AC_PROG_CC_C_O, we do the test twice because some 4555 # compilers refuse to overwrite an existing .o file with -o, 4556 # though they will create one. 4557 am_cv_prog_cc_c_o=yes 4558 for am_i in 1 2; do 4559 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4560 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } \ 4564 && test -f conftest2.$ac_objext; then 4565 : OK 4566 else 4567 am_cv_prog_cc_c_o=no 4568 break 4569 fi 4570 done 4571 rm -f core conftest* 4572 unset am_i ;; 4573esac 4574fi 4575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4576printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4577if test "$am_cv_prog_cc_c_o" != yes; then 4578 # Losing compiler, so override with the script. 4579 # FIXME: It is wrong to rewrite CC. 4580 # But if we don't then we get into trouble of one sort or another. 4581 # A longer-term fix would be to have automake use am__CC in this case, 4582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4583 CC="$am_aux_dir/compile $CC" 4584fi 4585ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591 4592depcc="$CC" am_compiler_list= 4593 4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4595printf %s "checking dependency style of $depcc... " >&6; } 4596if test ${am_cv_CC_dependencies_compiler_type+y} 4597then : 4598 printf %s "(cached) " >&6 4599else case e in #( 4600 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4601 # We make a subdir and do the tests there. Otherwise we can end up 4602 # making bogus files that we don't know about and never remove. For 4603 # instance it was reported that on HP-UX the gcc test will end up 4604 # making a dummy file named 'D' -- because '-MD' means "put the output 4605 # in D". 4606 rm -rf conftest.dir 4607 mkdir conftest.dir 4608 # Copy depcomp to subdir because otherwise we won't find it if we're 4609 # using a relative directory. 4610 cp "$am_depcomp" conftest.dir 4611 cd conftest.dir 4612 # We will build objects and dependencies in a subdirectory because 4613 # it helps to detect inapplicable dependency modes. For instance 4614 # both Tru64's cc and ICC support -MD to output dependencies as a 4615 # side effect of compilation, but ICC will put the dependencies in 4616 # the current directory while Tru64 will put them in the object 4617 # directory. 4618 mkdir sub 4619 4620 am_cv_CC_dependencies_compiler_type=none 4621 if test "$am_compiler_list" = ""; then 4622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4623 fi 4624 am__universal=false 4625 case " $depcc " in #( 4626 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4627 esac 4628 4629 for depmode in $am_compiler_list; do 4630 # Setup a source with many dependencies, because some compilers 4631 # like to wrap large dependency lists on column 80 (with \), and 4632 # we should not choose a depcomp mode which is confused by this. 4633 # 4634 # We need to recreate these files for each test, as the compiler may 4635 # overwrite some of them when testing with obscure command lines. 4636 # This happens at least with the AIX C compiler. 4637 : > sub/conftest.c 4638 for i in 1 2 3 4 5 6; do 4639 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4640 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4641 # Solaris 10 /bin/sh. 4642 echo '/* dummy */' > sub/conftst$i.h 4643 done 4644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4645 4646 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4647 # mode. It turns out that the SunPro C++ compiler does not properly 4648 # handle '-M -o', and we need to detect this. Also, some Intel 4649 # versions had trouble with output in subdirs. 4650 am__obj=sub/conftest.${OBJEXT-o} 4651 am__minus_obj="-o $am__obj" 4652 case $depmode in 4653 gcc) 4654 # This depmode causes a compiler race in universal mode. 4655 test "$am__universal" = false || continue 4656 ;; 4657 nosideeffect) 4658 # After this tag, mechanisms are not by side-effect, so they'll 4659 # only be used when explicitly requested. 4660 if test "x$enable_dependency_tracking" = xyes; then 4661 continue 4662 else 4663 break 4664 fi 4665 ;; 4666 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4667 # This compiler won't grok '-c -o', but also, the minuso test has 4668 # not run yet. These depmodes are late enough in the game, and 4669 # so weak that their functioning should not be impacted. 4670 am__obj=conftest.${OBJEXT-o} 4671 am__minus_obj= 4672 ;; 4673 none) break ;; 4674 esac 4675 if depmode=$depmode \ 4676 source=sub/conftest.c object=$am__obj \ 4677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4679 >/dev/null 2>conftest.err && 4680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4684 # icc doesn't choke on unknown options, it will just issue warnings 4685 # or remarks (even with -Werror). So we grep stderr for any message 4686 # that says an option was ignored or not supported. 4687 # When given -MP, icc 7.0 and 7.1 complain thus: 4688 # icc: Command line warning: ignoring option '-M'; no argument required 4689 # The diagnosis changed in icc 8.0: 4690 # icc: Command line remark: option '-MP' not supported 4691 if (grep 'ignoring option' conftest.err || 4692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4693 am_cv_CC_dependencies_compiler_type=$depmode 4694 break 4695 fi 4696 fi 4697 done 4698 4699 cd .. 4700 rm -rf conftest.dir 4701else 4702 am_cv_CC_dependencies_compiler_type=none 4703fi 4704 ;; 4705esac 4706fi 4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4708printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4709CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4710 4711 if 4712 test "x$enable_dependency_tracking" != xno \ 4713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4714 am__fastdepCC_TRUE= 4715 am__fastdepCC_FALSE='#' 4716else 4717 am__fastdepCC_TRUE='#' 4718 am__fastdepCC_FALSE= 4719fi 4720 4721 4722 4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4724printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4725if test ${ac_cv_c_undeclared_builtin_options+y} 4726then : 4727 printf %s "(cached) " >&6 4728else case e in #( 4729 e) ac_save_CFLAGS=$CFLAGS 4730 ac_cv_c_undeclared_builtin_options='cannot detect' 4731 for ac_arg in '' -fno-builtin; do 4732 CFLAGS="$ac_save_CFLAGS $ac_arg" 4733 # This test program should *not* compile successfully. 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735/* end confdefs.h. */ 4736 4737int 4738main (void) 4739{ 4740(void) strchr; 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745if ac_fn_c_try_compile "$LINENO" 4746then : 4747 4748else case e in #( 4749 e) # This test program should compile successfully. 4750 # No library function is consistently available on 4751 # freestanding implementations, so test against a dummy 4752 # declaration. Include always-available headers on the 4753 # off chance that they somehow elicit warnings. 4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4755/* end confdefs.h. */ 4756#include <float.h> 4757#include <limits.h> 4758#include <stdarg.h> 4759#include <stddef.h> 4760extern void ac_decl (int, char *); 4761 4762int 4763main (void) 4764{ 4765(void) ac_decl (0, (char *) 0); 4766 (void) ac_decl; 4767 4768 ; 4769 return 0; 4770} 4771_ACEOF 4772if ac_fn_c_try_compile "$LINENO" 4773then : 4774 if test x"$ac_arg" = x 4775then : 4776 ac_cv_c_undeclared_builtin_options='none needed' 4777else case e in #( 4778 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4779esac 4780fi 4781 break 4782fi 4783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4784esac 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4787 done 4788 CFLAGS=$ac_save_CFLAGS 4789 ;; 4790esac 4791fi 4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4793printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4794 case $ac_cv_c_undeclared_builtin_options in #( 4795 'cannot detect') : 4796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4797printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4798as_fn_error $? "cannot make $CC report undeclared builtins 4799See 'config.log' for more details" "$LINENO" 5; } ;; #( 4800 'none needed') : 4801 ac_c_undeclared_builtin_options='' ;; #( 4802 *) : 4803 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4804esac 4805 4806ac_header= ac_cache= 4807for ac_item in $ac_header_c_list 4808do 4809 if test $ac_cache; then 4810 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4811 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4812 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4813 fi 4814 ac_header= ac_cache= 4815 elif test $ac_header; then 4816 ac_cache=$ac_item 4817 else 4818 ac_header=$ac_item 4819 fi 4820done 4821 4822 4823 4824 4825 4826 4827 4828 4829if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4830then : 4831 4832printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4833 4834fi 4835 4836 4837 4838 4839ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4840if test "x$ac_cv_have_decl___clang__" = xyes 4841then : 4842 CLANGCC="yes" 4843else case e in #( 4844 e) CLANGCC="no" ;; 4845esac 4846fi 4847ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4848if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4849then : 4850 INTELCC="yes" 4851else case e in #( 4852 e) INTELCC="no" ;; 4853esac 4854fi 4855ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4856if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4857then : 4858 SUNCC="yes" 4859else case e in #( 4860 e) SUNCC="no" ;; 4861esac 4862fi 4863 4864 4865 4866 4867 4868 4869 4870 4871if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4872 if test -n "$ac_tool_prefix"; then 4873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4874set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4876printf %s "checking for $ac_word... " >&6; } 4877if test ${ac_cv_path_PKG_CONFIG+y} 4878then : 4879 printf %s "(cached) " >&6 4880else case e in #( 4881 e) case $PKG_CONFIG in 4882 [\\/]* | ?:[\\/]*) 4883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4884 ;; 4885 *) 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887for as_dir in $PATH 4888do 4889 IFS=$as_save_IFS 4890 case $as_dir in #((( 4891 '') as_dir=./ ;; 4892 */) ;; 4893 *) as_dir=$as_dir/ ;; 4894 esac 4895 for ac_exec_ext in '' $ac_executable_extensions; do 4896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4897 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4899 break 2 4900 fi 4901done 4902 done 4903IFS=$as_save_IFS 4904 4905 ;; 4906esac ;; 4907esac 4908fi 4909PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4910if test -n "$PKG_CONFIG"; then 4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4912printf "%s\n" "$PKG_CONFIG" >&6; } 4913else 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4915printf "%s\n" "no" >&6; } 4916fi 4917 4918 4919fi 4920if test -z "$ac_cv_path_PKG_CONFIG"; then 4921 ac_pt_PKG_CONFIG=$PKG_CONFIG 4922 # Extract the first word of "pkg-config", so it can be a program name with args. 4923set dummy pkg-config; ac_word=$2 4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4925printf %s "checking for $ac_word... " >&6; } 4926if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4927then : 4928 printf %s "(cached) " >&6 4929else case e in #( 4930 e) case $ac_pt_PKG_CONFIG in 4931 [\\/]* | ?:[\\/]*) 4932 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4933 ;; 4934 *) 4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4936for as_dir in $PATH 4937do 4938 IFS=$as_save_IFS 4939 case $as_dir in #((( 4940 '') as_dir=./ ;; 4941 */) ;; 4942 *) as_dir=$as_dir/ ;; 4943 esac 4944 for ac_exec_ext in '' $ac_executable_extensions; do 4945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4946 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4948 break 2 4949 fi 4950done 4951 done 4952IFS=$as_save_IFS 4953 4954 ;; 4955esac ;; 4956esac 4957fi 4958ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4959if test -n "$ac_pt_PKG_CONFIG"; then 4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4961printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4962else 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4964printf "%s\n" "no" >&6; } 4965fi 4966 4967 if test "x$ac_pt_PKG_CONFIG" = x; then 4968 PKG_CONFIG="" 4969 else 4970 case $cross_compiling:$ac_tool_warned in 4971yes:) 4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4973printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4974ac_tool_warned=yes ;; 4975esac 4976 PKG_CONFIG=$ac_pt_PKG_CONFIG 4977 fi 4978else 4979 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4980fi 4981 4982fi 4983if test -n "$PKG_CONFIG"; then 4984 _pkg_min_version=0.9.0 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4986printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4987 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4989printf "%s\n" "yes" >&6; } 4990 else 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992printf "%s\n" "no" >&6; } 4993 PKG_CONFIG="" 4994 fi 4995fi 4996 4997 4998 # Make sure we can run config.sub. 4999$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5000 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5001 5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5003printf %s "checking build system type... " >&6; } 5004if test ${ac_cv_build+y} 5005then : 5006 printf %s "(cached) " >&6 5007else case e in #( 5008 e) ac_build_alias=$build_alias 5009test "x$ac_build_alias" = x && 5010 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5011test "x$ac_build_alias" = x && 5012 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5013ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5014 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5015 ;; 5016esac 5017fi 5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5019printf "%s\n" "$ac_cv_build" >&6; } 5020case $ac_cv_build in 5021*-*-*) ;; 5022*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5023esac 5024build=$ac_cv_build 5025ac_save_IFS=$IFS; IFS='-' 5026set x $ac_cv_build 5027shift 5028build_cpu=$1 5029build_vendor=$2 5030shift; shift 5031# Remember, the first character of IFS is used to create $*, 5032# except with old shells: 5033build_os=$* 5034IFS=$ac_save_IFS 5035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5036 5037 5038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5039printf %s "checking host system type... " >&6; } 5040if test ${ac_cv_host+y} 5041then : 5042 printf %s "(cached) " >&6 5043else case e in #( 5044 e) if test "x$host_alias" = x; then 5045 ac_cv_host=$ac_cv_build 5046else 5047 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5048 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5049fi 5050 ;; 5051esac 5052fi 5053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5054printf "%s\n" "$ac_cv_host" >&6; } 5055case $ac_cv_host in 5056*-*-*) ;; 5057*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5058esac 5059host=$ac_cv_host 5060ac_save_IFS=$IFS; IFS='-' 5061set x $ac_cv_host 5062shift 5063host_cpu=$1 5064host_vendor=$2 5065shift; shift 5066# Remember, the first character of IFS is used to create $*, 5067# except with old shells: 5068host_os=$* 5069IFS=$ac_save_IFS 5070case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5071 5072 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5074printf %s "checking for a sed that does not truncate output... " >&6; } 5075if test ${ac_cv_path_SED+y} 5076then : 5077 printf %s "(cached) " >&6 5078else case e in #( 5079 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5080 for ac_i in 1 2 3 4 5 6 7; do 5081 ac_script="$ac_script$as_nl$ac_script" 5082 done 5083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5084 { ac_script=; unset ac_script;} 5085 if test -z "$SED"; then 5086 ac_path_SED_found=false 5087 # Loop through the user's path and test for each of PROGNAME-LIST 5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 case $as_dir in #((( 5093 '') as_dir=./ ;; 5094 */) ;; 5095 *) as_dir=$as_dir/ ;; 5096 esac 5097 for ac_prog in sed gsed 5098 do 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5101 as_fn_executable_p "$ac_path_SED" || continue 5102# Check for GNU ac_path_SED and select it if it is found. 5103 # Check for GNU $ac_path_SED 5104case `"$ac_path_SED" --version 2>&1` in #( 5105*GNU*) 5106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5107#( 5108*) 5109 ac_count=0 5110 printf %s 0123456789 >"conftest.in" 5111 while : 5112 do 5113 cat "conftest.in" "conftest.in" >"conftest.tmp" 5114 mv "conftest.tmp" "conftest.in" 5115 cp "conftest.in" "conftest.nl" 5116 printf "%s\n" '' >> "conftest.nl" 5117 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5119 as_fn_arith $ac_count + 1 && ac_count=$as_val 5120 if test $ac_count -gt ${ac_path_SED_max-0}; then 5121 # Best one so far, save it but keep looking for a better one 5122 ac_cv_path_SED="$ac_path_SED" 5123 ac_path_SED_max=$ac_count 5124 fi 5125 # 10*(2^10) chars as input seems more than enough 5126 test $ac_count -gt 10 && break 5127 done 5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5129esac 5130 5131 $ac_path_SED_found && break 3 5132 done 5133 done 5134 done 5135IFS=$as_save_IFS 5136 if test -z "$ac_cv_path_SED"; then 5137 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5138 fi 5139else 5140 ac_cv_path_SED=$SED 5141fi 5142 ;; 5143esac 5144fi 5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5146printf "%s\n" "$ac_cv_path_SED" >&6; } 5147 SED="$ac_cv_path_SED" 5148 rm -f conftest.sed 5149 5150 5151 5152 5153 5154 5155# Check whether --enable-selective-werror was given. 5156if test ${enable_selective_werror+y} 5157then : 5158 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5159else case e in #( 5160 e) SELECTIVE_WERROR=yes ;; 5161esac 5162fi 5163 5164 5165 5166 5167 5168# -v is too short to test reliably with XORG_TESTSET_CFLAG 5169if test "x$SUNCC" = "xyes"; then 5170 BASE_CFLAGS="-v" 5171else 5172 BASE_CFLAGS="" 5173fi 5174 5175# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189xorg_testset_save_CFLAGS="$CFLAGS" 5190 5191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5195if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5196then : 5197 printf %s "(cached) " >&6 5198else case e in #( 5199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202_ACEOF 5203if ac_fn_c_try_compile "$LINENO" 5204then : 5205 xorg_cv_cc_flag_unknown_warning_option=yes 5206else case e in #( 5207 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5208esac 5209fi 5210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5211esac 5212fi 5213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5216 CFLAGS="$xorg_testset_save_CFLAGS" 5217fi 5218 5219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 fi 5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5226if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5227then : 5228 printf %s "(cached) " >&6 5229else case e in #( 5230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233_ACEOF 5234if ac_fn_c_try_compile "$LINENO" 5235then : 5236 xorg_cv_cc_flag_unused_command_line_argument=yes 5237else case e in #( 5238 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5239esac 5240fi 5241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5242esac 5243fi 5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248fi 5249 5250found="no" 5251 5252 if test $found = "no" ; then 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 fi 5256 5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5259 fi 5260 5261 CFLAGS="$CFLAGS -Wall" 5262 5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5264printf %s "checking if $CC supports -Wall... " >&6; } 5265 cacheid=xorg_cv_cc_flag__Wall 5266 if eval test \${$cacheid+y} 5267then : 5268 printf %s "(cached) " >&6 5269else case e in #( 5270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273int 5274main (void) 5275{ 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281if ac_fn_c_try_link "$LINENO" 5282then : 5283 eval $cacheid=yes 5284else case e in #( 5285 e) eval $cacheid=no ;; 5286esac 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5289 conftest$ac_exeext conftest.$ac_ext ;; 5290esac 5291fi 5292 5293 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295 5296 eval supported=\$$cacheid 5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5298printf "%s\n" "$supported" >&6; } 5299 if test "$supported" = "yes" ; then 5300 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5301 found="yes" 5302 fi 5303 fi 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319xorg_testset_save_CFLAGS="$CFLAGS" 5320 5321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5326then : 5327 printf %s "(cached) " >&6 5328else case e in #( 5329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331int i; 5332_ACEOF 5333if ac_fn_c_try_compile "$LINENO" 5334then : 5335 xorg_cv_cc_flag_unknown_warning_option=yes 5336else case e in #( 5337 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5338esac 5339fi 5340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5341esac 5342fi 5343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347fi 5348 5349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 fi 5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5357then : 5358 printf %s "(cached) " >&6 5359else case e in #( 5360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362int i; 5363_ACEOF 5364if ac_fn_c_try_compile "$LINENO" 5365then : 5366 xorg_cv_cc_flag_unused_command_line_argument=yes 5367else case e in #( 5368 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5369esac 5370fi 5371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5372esac 5373fi 5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378fi 5379 5380found="no" 5381 5382 if test $found = "no" ; then 5383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 fi 5386 5387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5389 fi 5390 5391 CFLAGS="$CFLAGS -Wpointer-arith" 5392 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5394printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5395 cacheid=xorg_cv_cc_flag__Wpointer_arith 5396 if eval test \${$cacheid+y} 5397then : 5398 printf %s "(cached) " >&6 5399else case e in #( 5400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401/* end confdefs.h. */ 5402int i; 5403int 5404main (void) 5405{ 5406 5407 ; 5408 return 0; 5409} 5410_ACEOF 5411if ac_fn_c_try_link "$LINENO" 5412then : 5413 eval $cacheid=yes 5414else case e in #( 5415 e) eval $cacheid=no ;; 5416esac 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5419 conftest$ac_exeext conftest.$ac_ext ;; 5420esac 5421fi 5422 5423 5424 CFLAGS="$xorg_testset_save_CFLAGS" 5425 5426 eval supported=\$$cacheid 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5428printf "%s\n" "$supported" >&6; } 5429 if test "$supported" = "yes" ; then 5430 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5431 found="yes" 5432 fi 5433 fi 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449xorg_testset_save_CFLAGS="$CFLAGS" 5450 5451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5455if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5456then : 5457 printf %s "(cached) " >&6 5458else case e in #( 5459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460/* end confdefs.h. */ 5461int i; 5462_ACEOF 5463if ac_fn_c_try_compile "$LINENO" 5464then : 5465 xorg_cv_cc_flag_unknown_warning_option=yes 5466else case e in #( 5467 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5468esac 5469fi 5470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5471esac 5472fi 5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477fi 5478 5479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5482 fi 5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5486if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5487then : 5488 printf %s "(cached) " >&6 5489else case e in #( 5490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492int i; 5493_ACEOF 5494if ac_fn_c_try_compile "$LINENO" 5495then : 5496 xorg_cv_cc_flag_unused_command_line_argument=yes 5497else case e in #( 5498 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5499esac 5500fi 5501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5502esac 5503fi 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508fi 5509 5510found="no" 5511 5512 if test $found = "no" ; then 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 fi 5516 5517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 fi 5520 5521 CFLAGS="$CFLAGS -Wmissing-declarations" 5522 5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5524printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5525 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5526 if eval test \${$cacheid+y} 5527then : 5528 printf %s "(cached) " >&6 5529else case e in #( 5530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533int 5534main (void) 5535{ 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541if ac_fn_c_try_link "$LINENO" 5542then : 5543 eval $cacheid=yes 5544else case e in #( 5545 e) eval $cacheid=no ;; 5546esac 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5549 conftest$ac_exeext conftest.$ac_ext ;; 5550esac 5551fi 5552 5553 5554 CFLAGS="$xorg_testset_save_CFLAGS" 5555 5556 eval supported=\$$cacheid 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5558printf "%s\n" "$supported" >&6; } 5559 if test "$supported" = "yes" ; then 5560 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5561 found="yes" 5562 fi 5563 fi 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579xorg_testset_save_CFLAGS="$CFLAGS" 5580 5581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5586then : 5587 printf %s "(cached) " >&6 5588else case e in #( 5589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590/* end confdefs.h. */ 5591int i; 5592_ACEOF 5593if ac_fn_c_try_compile "$LINENO" 5594then : 5595 xorg_cv_cc_flag_unknown_warning_option=yes 5596else case e in #( 5597 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5598esac 5599fi 5600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5601esac 5602fi 5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5606 CFLAGS="$xorg_testset_save_CFLAGS" 5607fi 5608 5609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 fi 5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5617then : 5618 printf %s "(cached) " >&6 5619else case e in #( 5620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621/* end confdefs.h. */ 5622int i; 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO" 5625then : 5626 xorg_cv_cc_flag_unused_command_line_argument=yes 5627else case e in #( 5628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5629esac 5630fi 5631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5632esac 5633fi 5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638fi 5639 5640found="no" 5641 5642 if test $found = "no" ; then 5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 fi 5646 5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 fi 5650 5651 CFLAGS="$CFLAGS -Wformat=2" 5652 5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5654printf %s "checking if $CC supports -Wformat=2... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wformat_2 5656 if eval test \${$cacheid+y} 5657then : 5658 printf %s "(cached) " >&6 5659else case e in #( 5660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663int 5664main (void) 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_link "$LINENO" 5672then : 5673 eval $cacheid=yes 5674else case e in #( 5675 e) eval $cacheid=no ;; 5676esac 5677fi 5678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5679 conftest$ac_exeext conftest.$ac_ext ;; 5680esac 5681fi 5682 5683 5684 CFLAGS="$xorg_testset_save_CFLAGS" 5685 5686 eval supported=\$$cacheid 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5688printf "%s\n" "$supported" >&6; } 5689 if test "$supported" = "yes" ; then 5690 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5691 found="yes" 5692 fi 5693 fi 5694 5695 if test $found = "no" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 5700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5702 fi 5703 5704 CFLAGS="$CFLAGS -Wformat" 5705 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5707printf %s "checking if $CC supports -Wformat... " >&6; } 5708 cacheid=xorg_cv_cc_flag__Wformat 5709 if eval test \${$cacheid+y} 5710then : 5711 printf %s "(cached) " >&6 5712else case e in #( 5713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716int 5717main (void) 5718{ 5719 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724if ac_fn_c_try_link "$LINENO" 5725then : 5726 eval $cacheid=yes 5727else case e in #( 5728 e) eval $cacheid=no ;; 5729esac 5730fi 5731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5732 conftest$ac_exeext conftest.$ac_ext ;; 5733esac 5734fi 5735 5736 5737 CFLAGS="$xorg_testset_save_CFLAGS" 5738 5739 eval supported=\$$cacheid 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5741printf "%s\n" "$supported" >&6; } 5742 if test "$supported" = "yes" ; then 5743 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5744 found="yes" 5745 fi 5746 fi 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764xorg_testset_save_CFLAGS="$CFLAGS" 5765 5766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5770if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5771then : 5772 printf %s "(cached) " >&6 5773else case e in #( 5774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5775/* end confdefs.h. */ 5776int i; 5777_ACEOF 5778if ac_fn_c_try_compile "$LINENO" 5779then : 5780 xorg_cv_cc_flag_unknown_warning_option=yes 5781else case e in #( 5782 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5783esac 5784fi 5785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5786esac 5787fi 5788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5791 CFLAGS="$xorg_testset_save_CFLAGS" 5792fi 5793 5794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5801if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5802then : 5803 printf %s "(cached) " >&6 5804else case e in #( 5805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807int i; 5808_ACEOF 5809if ac_fn_c_try_compile "$LINENO" 5810then : 5811 xorg_cv_cc_flag_unused_command_line_argument=yes 5812else case e in #( 5813 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5814esac 5815fi 5816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5817esac 5818fi 5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5822 CFLAGS="$xorg_testset_save_CFLAGS" 5823fi 5824 5825found="no" 5826 5827 if test $found = "no" ; then 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 fi 5831 5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5834 fi 5835 5836 CFLAGS="$CFLAGS -Wstrict-prototypes" 5837 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5839printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5840 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5841 if eval test \${$cacheid+y} 5842then : 5843 printf %s "(cached) " >&6 5844else case e in #( 5845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848int 5849main (void) 5850{ 5851 5852 ; 5853 return 0; 5854} 5855_ACEOF 5856if ac_fn_c_try_link "$LINENO" 5857then : 5858 eval $cacheid=yes 5859else case e in #( 5860 e) eval $cacheid=no ;; 5861esac 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5864 conftest$ac_exeext conftest.$ac_ext ;; 5865esac 5866fi 5867 5868 5869 CFLAGS="$xorg_testset_save_CFLAGS" 5870 5871 eval supported=\$$cacheid 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5873printf "%s\n" "$supported" >&6; } 5874 if test "$supported" = "yes" ; then 5875 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5876 found="yes" 5877 fi 5878 fi 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894xorg_testset_save_CFLAGS="$CFLAGS" 5895 5896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5899printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5900if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5901then : 5902 printf %s "(cached) " >&6 5903else case e in #( 5904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5905/* end confdefs.h. */ 5906int i; 5907_ACEOF 5908if ac_fn_c_try_compile "$LINENO" 5909then : 5910 xorg_cv_cc_flag_unknown_warning_option=yes 5911else case e in #( 5912 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5913esac 5914fi 5915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5916esac 5917fi 5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5921 CFLAGS="$xorg_testset_save_CFLAGS" 5922fi 5923 5924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 fi 5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5932then : 5933 printf %s "(cached) " >&6 5934else case e in #( 5935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938_ACEOF 5939if ac_fn_c_try_compile "$LINENO" 5940then : 5941 xorg_cv_cc_flag_unused_command_line_argument=yes 5942else case e in #( 5943 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5944esac 5945fi 5946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5947esac 5948fi 5949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5952 CFLAGS="$xorg_testset_save_CFLAGS" 5953fi 5954 5955found="no" 5956 5957 if test $found = "no" ; then 5958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 fi 5961 5962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 fi 5965 5966 CFLAGS="$CFLAGS -Wmissing-prototypes" 5967 5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5969printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5970 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5971 if eval test \${$cacheid+y} 5972then : 5973 printf %s "(cached) " >&6 5974else case e in #( 5975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977int i; 5978int 5979main (void) 5980{ 5981 5982 ; 5983 return 0; 5984} 5985_ACEOF 5986if ac_fn_c_try_link "$LINENO" 5987then : 5988 eval $cacheid=yes 5989else case e in #( 5990 e) eval $cacheid=no ;; 5991esac 5992fi 5993rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5994 conftest$ac_exeext conftest.$ac_ext ;; 5995esac 5996fi 5997 5998 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000 6001 eval supported=\$$cacheid 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6003printf "%s\n" "$supported" >&6; } 6004 if test "$supported" = "yes" ; then 6005 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6006 found="yes" 6007 fi 6008 fi 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024xorg_testset_save_CFLAGS="$CFLAGS" 6025 6026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6029printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6030if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6031then : 6032 printf %s "(cached) " >&6 6033else case e in #( 6034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035/* end confdefs.h. */ 6036int i; 6037_ACEOF 6038if ac_fn_c_try_compile "$LINENO" 6039then : 6040 xorg_cv_cc_flag_unknown_warning_option=yes 6041else case e in #( 6042 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6043esac 6044fi 6045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6046esac 6047fi 6048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6051 CFLAGS="$xorg_testset_save_CFLAGS" 6052fi 6053 6054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6057 fi 6058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6061if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6062then : 6063 printf %s "(cached) " >&6 6064else case e in #( 6065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6066/* end confdefs.h. */ 6067int i; 6068_ACEOF 6069if ac_fn_c_try_compile "$LINENO" 6070then : 6071 xorg_cv_cc_flag_unused_command_line_argument=yes 6072else case e in #( 6073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6074esac 6075fi 6076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6077esac 6078fi 6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083fi 6084 6085found="no" 6086 6087 if test $found = "no" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 6092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6094 fi 6095 6096 CFLAGS="$CFLAGS -Wnested-externs" 6097 6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6099printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6100 cacheid=xorg_cv_cc_flag__Wnested_externs 6101 if eval test \${$cacheid+y} 6102then : 6103 printf %s "(cached) " >&6 6104else case e in #( 6105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107int i; 6108int 6109main (void) 6110{ 6111 6112 ; 6113 return 0; 6114} 6115_ACEOF 6116if ac_fn_c_try_link "$LINENO" 6117then : 6118 eval $cacheid=yes 6119else case e in #( 6120 e) eval $cacheid=no ;; 6121esac 6122fi 6123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6124 conftest$ac_exeext conftest.$ac_ext ;; 6125esac 6126fi 6127 6128 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130 6131 eval supported=\$$cacheid 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6133printf "%s\n" "$supported" >&6; } 6134 if test "$supported" = "yes" ; then 6135 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6136 found="yes" 6137 fi 6138 fi 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154xorg_testset_save_CFLAGS="$CFLAGS" 6155 6156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6160if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6161then : 6162 printf %s "(cached) " >&6 6163else case e in #( 6164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6165/* end confdefs.h. */ 6166int i; 6167_ACEOF 6168if ac_fn_c_try_compile "$LINENO" 6169then : 6170 xorg_cv_cc_flag_unknown_warning_option=yes 6171else case e in #( 6172 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6173esac 6174fi 6175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6176esac 6177fi 6178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6181 CFLAGS="$xorg_testset_save_CFLAGS" 6182fi 6183 6184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 fi 6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6192then : 6193 printf %s "(cached) " >&6 6194else case e in #( 6195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197int i; 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO" 6200then : 6201 xorg_cv_cc_flag_unused_command_line_argument=yes 6202else case e in #( 6203 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6204esac 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6207esac 6208fi 6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213fi 6214 6215found="no" 6216 6217 if test $found = "no" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6224 fi 6225 6226 CFLAGS="$CFLAGS -Wbad-function-cast" 6227 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6229printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6230 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6231 if eval test \${$cacheid+y} 6232then : 6233 printf %s "(cached) " >&6 6234else case e in #( 6235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238int 6239main (void) 6240{ 6241 6242 ; 6243 return 0; 6244} 6245_ACEOF 6246if ac_fn_c_try_link "$LINENO" 6247then : 6248 eval $cacheid=yes 6249else case e in #( 6250 e) eval $cacheid=no ;; 6251esac 6252fi 6253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6254 conftest$ac_exeext conftest.$ac_ext ;; 6255esac 6256fi 6257 6258 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260 6261 eval supported=\$$cacheid 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6263printf "%s\n" "$supported" >&6; } 6264 if test "$supported" = "yes" ; then 6265 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6266 found="yes" 6267 fi 6268 fi 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284xorg_testset_save_CFLAGS="$CFLAGS" 6285 6286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6290if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6291then : 6292 printf %s "(cached) " >&6 6293else case e in #( 6294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6295/* end confdefs.h. */ 6296int i; 6297_ACEOF 6298if ac_fn_c_try_compile "$LINENO" 6299then : 6300 xorg_cv_cc_flag_unknown_warning_option=yes 6301else case e in #( 6302 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6303esac 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6306esac 6307fi 6308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6309printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6311 CFLAGS="$xorg_testset_save_CFLAGS" 6312fi 6313 6314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6317 fi 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6320printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6321if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6322then : 6323 printf %s "(cached) " >&6 6324else case e in #( 6325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6326/* end confdefs.h. */ 6327int i; 6328_ACEOF 6329if ac_fn_c_try_compile "$LINENO" 6330then : 6331 xorg_cv_cc_flag_unused_command_line_argument=yes 6332else case e in #( 6333 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6334esac 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6337esac 6338fi 6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6342 CFLAGS="$xorg_testset_save_CFLAGS" 6343fi 6344 6345found="no" 6346 6347 if test $found = "no" ; then 6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6350 fi 6351 6352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6354 fi 6355 6356 CFLAGS="$CFLAGS -Wold-style-definition" 6357 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6359printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6360 cacheid=xorg_cv_cc_flag__Wold_style_definition 6361 if eval test \${$cacheid+y} 6362then : 6363 printf %s "(cached) " >&6 6364else case e in #( 6365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368int 6369main (void) 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_link "$LINENO" 6377then : 6378 eval $cacheid=yes 6379else case e in #( 6380 e) eval $cacheid=no ;; 6381esac 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6384 conftest$ac_exeext conftest.$ac_ext ;; 6385esac 6386fi 6387 6388 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390 6391 eval supported=\$$cacheid 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6393printf "%s\n" "$supported" >&6; } 6394 if test "$supported" = "yes" ; then 6395 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6396 found="yes" 6397 fi 6398 fi 6399 6400 if test $found = "no" ; then 6401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 fi 6404 6405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 fi 6408 6409 CFLAGS="$CFLAGS -fd" 6410 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6412printf %s "checking if $CC supports -fd... " >&6; } 6413 cacheid=xorg_cv_cc_flag__fd 6414 if eval test \${$cacheid+y} 6415then : 6416 printf %s "(cached) " >&6 6417else case e in #( 6418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420int i; 6421int 6422main (void) 6423{ 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429if ac_fn_c_try_link "$LINENO" 6430then : 6431 eval $cacheid=yes 6432else case e in #( 6433 e) eval $cacheid=no ;; 6434esac 6435fi 6436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6437 conftest$ac_exeext conftest.$ac_ext ;; 6438esac 6439fi 6440 6441 6442 CFLAGS="$xorg_testset_save_CFLAGS" 6443 6444 eval supported=\$$cacheid 6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6446printf "%s\n" "$supported" >&6; } 6447 if test "$supported" = "yes" ; then 6448 BASE_CFLAGS="$BASE_CFLAGS -fd" 6449 found="yes" 6450 fi 6451 fi 6452 6453 6454 6455 6456 6457# This chunk adds additional warnings that could catch undesired effects. 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471xorg_testset_save_CFLAGS="$CFLAGS" 6472 6473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6477if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6478then : 6479 printf %s "(cached) " >&6 6480else case e in #( 6481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484_ACEOF 6485if ac_fn_c_try_compile "$LINENO" 6486then : 6487 xorg_cv_cc_flag_unknown_warning_option=yes 6488else case e in #( 6489 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6490esac 6491fi 6492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6493esac 6494fi 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499fi 6500 6501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6504 fi 6505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6508if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6509then : 6510 printf %s "(cached) " >&6 6511else case e in #( 6512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514int i; 6515_ACEOF 6516if ac_fn_c_try_compile "$LINENO" 6517then : 6518 xorg_cv_cc_flag_unused_command_line_argument=yes 6519else case e in #( 6520 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6521esac 6522fi 6523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6524esac 6525fi 6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6529 CFLAGS="$xorg_testset_save_CFLAGS" 6530fi 6531 6532found="no" 6533 6534 if test $found = "no" ; then 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 fi 6538 6539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6541 fi 6542 6543 CFLAGS="$CFLAGS -Wunused" 6544 6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6546printf %s "checking if $CC supports -Wunused... " >&6; } 6547 cacheid=xorg_cv_cc_flag__Wunused 6548 if eval test \${$cacheid+y} 6549then : 6550 printf %s "(cached) " >&6 6551else case e in #( 6552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554int i; 6555int 6556main (void) 6557{ 6558 6559 ; 6560 return 0; 6561} 6562_ACEOF 6563if ac_fn_c_try_link "$LINENO" 6564then : 6565 eval $cacheid=yes 6566else case e in #( 6567 e) eval $cacheid=no ;; 6568esac 6569fi 6570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6571 conftest$ac_exeext conftest.$ac_ext ;; 6572esac 6573fi 6574 6575 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577 6578 eval supported=\$$cacheid 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6580printf "%s\n" "$supported" >&6; } 6581 if test "$supported" = "yes" ; then 6582 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6583 found="yes" 6584 fi 6585 fi 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601xorg_testset_save_CFLAGS="$CFLAGS" 6602 6603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6607if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6608then : 6609 printf %s "(cached) " >&6 6610else case e in #( 6611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613int i; 6614_ACEOF 6615if ac_fn_c_try_compile "$LINENO" 6616then : 6617 xorg_cv_cc_flag_unknown_warning_option=yes 6618else case e in #( 6619 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6620esac 6621fi 6622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6623esac 6624fi 6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629fi 6630 6631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 fi 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6638if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6639then : 6640 printf %s "(cached) " >&6 6641else case e in #( 6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644int i; 6645_ACEOF 6646if ac_fn_c_try_compile "$LINENO" 6647then : 6648 xorg_cv_cc_flag_unused_command_line_argument=yes 6649else case e in #( 6650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6651esac 6652fi 6653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6654esac 6655fi 6656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6659 CFLAGS="$xorg_testset_save_CFLAGS" 6660fi 6661 6662found="no" 6663 6664 if test $found = "no" ; then 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 fi 6668 6669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6671 fi 6672 6673 CFLAGS="$CFLAGS -Wuninitialized" 6674 6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6676printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6677 cacheid=xorg_cv_cc_flag__Wuninitialized 6678 if eval test \${$cacheid+y} 6679then : 6680 printf %s "(cached) " >&6 6681else case e in #( 6682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684int i; 6685int 6686main (void) 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_c_try_link "$LINENO" 6694then : 6695 eval $cacheid=yes 6696else case e in #( 6697 e) eval $cacheid=no ;; 6698esac 6699fi 6700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6701 conftest$ac_exeext conftest.$ac_ext ;; 6702esac 6703fi 6704 6705 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6707 6708 eval supported=\$$cacheid 6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6710printf "%s\n" "$supported" >&6; } 6711 if test "$supported" = "yes" ; then 6712 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6713 found="yes" 6714 fi 6715 fi 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731xorg_testset_save_CFLAGS="$CFLAGS" 6732 6733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6737if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6738then : 6739 printf %s "(cached) " >&6 6740else case e in #( 6741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743int i; 6744_ACEOF 6745if ac_fn_c_try_compile "$LINENO" 6746then : 6747 xorg_cv_cc_flag_unknown_warning_option=yes 6748else case e in #( 6749 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6750esac 6751fi 6752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6753esac 6754fi 6755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6758 CFLAGS="$xorg_testset_save_CFLAGS" 6759fi 6760 6761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6764 fi 6765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6768if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6769then : 6770 printf %s "(cached) " >&6 6771else case e in #( 6772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774int i; 6775_ACEOF 6776if ac_fn_c_try_compile "$LINENO" 6777then : 6778 xorg_cv_cc_flag_unused_command_line_argument=yes 6779else case e in #( 6780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6781esac 6782fi 6783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6784esac 6785fi 6786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790fi 6791 6792found="no" 6793 6794 if test $found = "no" ; then 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 6799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 fi 6802 6803 CFLAGS="$CFLAGS -Wshadow" 6804 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6806printf %s "checking if $CC supports -Wshadow... " >&6; } 6807 cacheid=xorg_cv_cc_flag__Wshadow 6808 if eval test \${$cacheid+y} 6809then : 6810 printf %s "(cached) " >&6 6811else case e in #( 6812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814int i; 6815int 6816main (void) 6817{ 6818 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823if ac_fn_c_try_link "$LINENO" 6824then : 6825 eval $cacheid=yes 6826else case e in #( 6827 e) eval $cacheid=no ;; 6828esac 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6831 conftest$ac_exeext conftest.$ac_ext ;; 6832esac 6833fi 6834 6835 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 6838 eval supported=\$$cacheid 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6840printf "%s\n" "$supported" >&6; } 6841 if test "$supported" = "yes" ; then 6842 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6843 found="yes" 6844 fi 6845 fi 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861xorg_testset_save_CFLAGS="$CFLAGS" 6862 6863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6868then : 6869 printf %s "(cached) " >&6 6870else case e in #( 6871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873int i; 6874_ACEOF 6875if ac_fn_c_try_compile "$LINENO" 6876then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878else case e in #( 6879 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6880esac 6881fi 6882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6883esac 6884fi 6885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6888 CFLAGS="$xorg_testset_save_CFLAGS" 6889fi 6890 6891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6894 fi 6895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6898if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6899then : 6900 printf %s "(cached) " >&6 6901else case e in #( 6902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905_ACEOF 6906if ac_fn_c_try_compile "$LINENO" 6907then : 6908 xorg_cv_cc_flag_unused_command_line_argument=yes 6909else case e in #( 6910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6911esac 6912fi 6913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6914esac 6915fi 6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6919 CFLAGS="$xorg_testset_save_CFLAGS" 6920fi 6921 6922found="no" 6923 6924 if test $found = "no" ; then 6925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 fi 6928 6929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6931 fi 6932 6933 CFLAGS="$CFLAGS -Wmissing-noreturn" 6934 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6936printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6937 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6938 if eval test \${$cacheid+y} 6939then : 6940 printf %s "(cached) " >&6 6941else case e in #( 6942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944int i; 6945int 6946main (void) 6947{ 6948 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953if ac_fn_c_try_link "$LINENO" 6954then : 6955 eval $cacheid=yes 6956else case e in #( 6957 e) eval $cacheid=no ;; 6958esac 6959fi 6960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6961 conftest$ac_exeext conftest.$ac_ext ;; 6962esac 6963fi 6964 6965 6966 CFLAGS="$xorg_testset_save_CFLAGS" 6967 6968 eval supported=\$$cacheid 6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6970printf "%s\n" "$supported" >&6; } 6971 if test "$supported" = "yes" ; then 6972 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6973 found="yes" 6974 fi 6975 fi 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991xorg_testset_save_CFLAGS="$CFLAGS" 6992 6993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6996printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6997if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6998then : 6999 printf %s "(cached) " >&6 7000else case e in #( 7001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7002/* end confdefs.h. */ 7003int i; 7004_ACEOF 7005if ac_fn_c_try_compile "$LINENO" 7006then : 7007 xorg_cv_cc_flag_unknown_warning_option=yes 7008else case e in #( 7009 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7010esac 7011fi 7012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7013esac 7014fi 7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019fi 7020 7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 fi 7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7028if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7029then : 7030 printf %s "(cached) " >&6 7031else case e in #( 7032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035_ACEOF 7036if ac_fn_c_try_compile "$LINENO" 7037then : 7038 xorg_cv_cc_flag_unused_command_line_argument=yes 7039else case e in #( 7040 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7041esac 7042fi 7043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7044esac 7045fi 7046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7049 CFLAGS="$xorg_testset_save_CFLAGS" 7050fi 7051 7052found="no" 7053 7054 if test $found = "no" ; then 7055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 fi 7058 7059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7061 fi 7062 7063 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7064 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7066printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7067 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7068 if eval test \${$cacheid+y} 7069then : 7070 printf %s "(cached) " >&6 7071else case e in #( 7072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074int i; 7075int 7076main (void) 7077{ 7078 7079 ; 7080 return 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_link "$LINENO" 7084then : 7085 eval $cacheid=yes 7086else case e in #( 7087 e) eval $cacheid=no ;; 7088esac 7089fi 7090rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7091 conftest$ac_exeext conftest.$ac_ext ;; 7092esac 7093fi 7094 7095 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097 7098 eval supported=\$$cacheid 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7100printf "%s\n" "$supported" >&6; } 7101 if test "$supported" = "yes" ; then 7102 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7103 found="yes" 7104 fi 7105 fi 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121xorg_testset_save_CFLAGS="$CFLAGS" 7122 7123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7128then : 7129 printf %s "(cached) " >&6 7130else case e in #( 7131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO" 7136then : 7137 xorg_cv_cc_flag_unknown_warning_option=yes 7138else case e in #( 7139 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7140esac 7141fi 7142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7143esac 7144fi 7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7148 CFLAGS="$xorg_testset_save_CFLAGS" 7149fi 7150 7151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7154 fi 7155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7158if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7159then : 7160 printf %s "(cached) " >&6 7161else case e in #( 7162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7163/* end confdefs.h. */ 7164int i; 7165_ACEOF 7166if ac_fn_c_try_compile "$LINENO" 7167then : 7168 xorg_cv_cc_flag_unused_command_line_argument=yes 7169else case e in #( 7170 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7171esac 7172fi 7173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7174esac 7175fi 7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7179 CFLAGS="$xorg_testset_save_CFLAGS" 7180fi 7181 7182found="no" 7183 7184 if test $found = "no" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7191 fi 7192 7193 CFLAGS="$CFLAGS -Wredundant-decls" 7194 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7196printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7197 cacheid=xorg_cv_cc_flag__Wredundant_decls 7198 if eval test \${$cacheid+y} 7199then : 7200 printf %s "(cached) " >&6 7201else case e in #( 7202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205int 7206main (void) 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_c_try_link "$LINENO" 7214then : 7215 eval $cacheid=yes 7216else case e in #( 7217 e) eval $cacheid=no ;; 7218esac 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7221 conftest$ac_exeext conftest.$ac_ext ;; 7222esac 7223fi 7224 7225 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227 7228 eval supported=\$$cacheid 7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7230printf "%s\n" "$supported" >&6; } 7231 if test "$supported" = "yes" ; then 7232 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7233 found="yes" 7234 fi 7235 fi 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251xorg_testset_save_CFLAGS="$CFLAGS" 7252 7253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7258then : 7259 printf %s "(cached) " >&6 7260else case e in #( 7261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263int i; 7264_ACEOF 7265if ac_fn_c_try_compile "$LINENO" 7266then : 7267 xorg_cv_cc_flag_unknown_warning_option=yes 7268else case e in #( 7269 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7270esac 7271fi 7272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7273esac 7274fi 7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7278 CFLAGS="$xorg_testset_save_CFLAGS" 7279fi 7280 7281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7284 fi 7285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7289then : 7290 printf %s "(cached) " >&6 7291else case e in #( 7292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294int i; 7295_ACEOF 7296if ac_fn_c_try_compile "$LINENO" 7297then : 7298 xorg_cv_cc_flag_unused_command_line_argument=yes 7299else case e in #( 7300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7301esac 7302fi 7303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7304esac 7305fi 7306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7309 CFLAGS="$xorg_testset_save_CFLAGS" 7310fi 7311 7312found="no" 7313 7314 if test $found = "no" ; then 7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7317 fi 7318 7319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7321 fi 7322 7323 CFLAGS="$CFLAGS -Wlogical-op" 7324 7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7326printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7327 cacheid=xorg_cv_cc_flag__Wlogical_op 7328 if eval test \${$cacheid+y} 7329then : 7330 printf %s "(cached) " >&6 7331else case e in #( 7332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335int 7336main (void) 7337{ 7338 7339 ; 7340 return 0; 7341} 7342_ACEOF 7343if ac_fn_c_try_link "$LINENO" 7344then : 7345 eval $cacheid=yes 7346else case e in #( 7347 e) eval $cacheid=no ;; 7348esac 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7351 conftest$ac_exeext conftest.$ac_ext ;; 7352esac 7353fi 7354 7355 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357 7358 eval supported=\$$cacheid 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7360printf "%s\n" "$supported" >&6; } 7361 if test "$supported" = "yes" ; then 7362 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7363 found="yes" 7364 fi 7365 fi 7366 7367 7368 7369# These are currently disabled because they are noisy. They will be enabled 7370# in the future once the codebase is sufficiently modernized to silence 7371# them. For now, I don't want them to drown out the other warnings. 7372# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7373# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7374# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7375 7376# Turn some warnings into errors, so we don't accidentally get successful builds 7377# when there are problems that should be fixed. 7378 7379if test "x$SELECTIVE_WERROR" = "xyes" ; then 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393xorg_testset_save_CFLAGS="$CFLAGS" 7394 7395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7400then : 7401 printf %s "(cached) " >&6 7402else case e in #( 7403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405int i; 7406_ACEOF 7407if ac_fn_c_try_compile "$LINENO" 7408then : 7409 xorg_cv_cc_flag_unknown_warning_option=yes 7410else case e in #( 7411 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7412esac 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7415esac 7416fi 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421fi 7422 7423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7430if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7431then : 7432 printf %s "(cached) " >&6 7433else case e in #( 7434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436int i; 7437_ACEOF 7438if ac_fn_c_try_compile "$LINENO" 7439then : 7440 xorg_cv_cc_flag_unused_command_line_argument=yes 7441else case e in #( 7442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7443esac 7444fi 7445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7446esac 7447fi 7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7451 CFLAGS="$xorg_testset_save_CFLAGS" 7452fi 7453 7454found="no" 7455 7456 if test $found = "no" ; then 7457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7459 fi 7460 7461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7463 fi 7464 7465 CFLAGS="$CFLAGS -Werror=implicit" 7466 7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7468printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7469 cacheid=xorg_cv_cc_flag__Werror_implicit 7470 if eval test \${$cacheid+y} 7471then : 7472 printf %s "(cached) " >&6 7473else case e in #( 7474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477int 7478main (void) 7479{ 7480 7481 ; 7482 return 0; 7483} 7484_ACEOF 7485if ac_fn_c_try_link "$LINENO" 7486then : 7487 eval $cacheid=yes 7488else case e in #( 7489 e) eval $cacheid=no ;; 7490esac 7491fi 7492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7493 conftest$ac_exeext conftest.$ac_ext ;; 7494esac 7495fi 7496 7497 7498 CFLAGS="$xorg_testset_save_CFLAGS" 7499 7500 eval supported=\$$cacheid 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7502printf "%s\n" "$supported" >&6; } 7503 if test "$supported" = "yes" ; then 7504 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7505 found="yes" 7506 fi 7507 fi 7508 7509 if test $found = "no" ; then 7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 fi 7513 7514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7516 fi 7517 7518 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7519 7520 { 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 7521printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7522 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7523 if eval test \${$cacheid+y} 7524then : 7525 printf %s "(cached) " >&6 7526else case e in #( 7527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529int i; 7530int 7531main (void) 7532{ 7533 7534 ; 7535 return 0; 7536} 7537_ACEOF 7538if ac_fn_c_try_link "$LINENO" 7539then : 7540 eval $cacheid=yes 7541else case e in #( 7542 e) eval $cacheid=no ;; 7543esac 7544fi 7545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7546 conftest$ac_exeext conftest.$ac_ext ;; 7547esac 7548fi 7549 7550 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552 7553 eval supported=\$$cacheid 7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7555printf "%s\n" "$supported" >&6; } 7556 if test "$supported" = "yes" ; then 7557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7558 found="yes" 7559 fi 7560 fi 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576xorg_testset_save_CFLAGS="$CFLAGS" 7577 7578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7581printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7582if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7583then : 7584 printf %s "(cached) " >&6 7585else case e in #( 7586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587/* end confdefs.h. */ 7588int i; 7589_ACEOF 7590if ac_fn_c_try_compile "$LINENO" 7591then : 7592 xorg_cv_cc_flag_unknown_warning_option=yes 7593else case e in #( 7594 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7595esac 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7598esac 7599fi 7600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604fi 7605 7606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7609 fi 7610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7613if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7614then : 7615 printf %s "(cached) " >&6 7616else case e in #( 7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619int i; 7620_ACEOF 7621if ac_fn_c_try_compile "$LINENO" 7622then : 7623 xorg_cv_cc_flag_unused_command_line_argument=yes 7624else case e in #( 7625 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7626esac 7627fi 7628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7629esac 7630fi 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635fi 7636 7637found="no" 7638 7639 if test $found = "no" ; then 7640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 fi 7643 7644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7646 fi 7647 7648 CFLAGS="$CFLAGS -Werror=nonnull" 7649 7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7651printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7652 cacheid=xorg_cv_cc_flag__Werror_nonnull 7653 if eval test \${$cacheid+y} 7654then : 7655 printf %s "(cached) " >&6 7656else case e in #( 7657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7658/* end confdefs.h. */ 7659int i; 7660int 7661main (void) 7662{ 7663 7664 ; 7665 return 0; 7666} 7667_ACEOF 7668if ac_fn_c_try_link "$LINENO" 7669then : 7670 eval $cacheid=yes 7671else case e in #( 7672 e) eval $cacheid=no ;; 7673esac 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7676 conftest$ac_exeext conftest.$ac_ext ;; 7677esac 7678fi 7679 7680 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682 7683 eval supported=\$$cacheid 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7685printf "%s\n" "$supported" >&6; } 7686 if test "$supported" = "yes" ; then 7687 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7688 found="yes" 7689 fi 7690 fi 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706xorg_testset_save_CFLAGS="$CFLAGS" 7707 7708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7712if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7713then : 7714 printf %s "(cached) " >&6 7715else case e in #( 7716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO" 7721then : 7722 xorg_cv_cc_flag_unknown_warning_option=yes 7723else case e in #( 7724 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7725esac 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7728esac 7729fi 7730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734fi 7735 7736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7739 fi 7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7743if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7744then : 7745 printf %s "(cached) " >&6 7746else case e in #( 7747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749int i; 7750_ACEOF 7751if ac_fn_c_try_compile "$LINENO" 7752then : 7753 xorg_cv_cc_flag_unused_command_line_argument=yes 7754else case e in #( 7755 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7756esac 7757fi 7758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7759esac 7760fi 7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7764 CFLAGS="$xorg_testset_save_CFLAGS" 7765fi 7766 7767found="no" 7768 7769 if test $found = "no" ; then 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 fi 7773 7774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7776 fi 7777 7778 CFLAGS="$CFLAGS -Werror=init-self" 7779 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7781printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7782 cacheid=xorg_cv_cc_flag__Werror_init_self 7783 if eval test \${$cacheid+y} 7784then : 7785 printf %s "(cached) " >&6 7786else case e in #( 7787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7788/* end confdefs.h. */ 7789int i; 7790int 7791main (void) 7792{ 7793 7794 ; 7795 return 0; 7796} 7797_ACEOF 7798if ac_fn_c_try_link "$LINENO" 7799then : 7800 eval $cacheid=yes 7801else case e in #( 7802 e) eval $cacheid=no ;; 7803esac 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7806 conftest$ac_exeext conftest.$ac_ext ;; 7807esac 7808fi 7809 7810 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812 7813 eval supported=\$$cacheid 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7815printf "%s\n" "$supported" >&6; } 7816 if test "$supported" = "yes" ; then 7817 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7818 found="yes" 7819 fi 7820 fi 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836xorg_testset_save_CFLAGS="$CFLAGS" 7837 7838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7842if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7843then : 7844 printf %s "(cached) " >&6 7845else case e in #( 7846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848int i; 7849_ACEOF 7850if ac_fn_c_try_compile "$LINENO" 7851then : 7852 xorg_cv_cc_flag_unknown_warning_option=yes 7853else case e in #( 7854 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7855esac 7856fi 7857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7858esac 7859fi 7860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864fi 7865 7866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7869 fi 7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7873if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7874then : 7875 printf %s "(cached) " >&6 7876else case e in #( 7877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879int i; 7880_ACEOF 7881if ac_fn_c_try_compile "$LINENO" 7882then : 7883 xorg_cv_cc_flag_unused_command_line_argument=yes 7884else case e in #( 7885 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7886esac 7887fi 7888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7889esac 7890fi 7891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897found="no" 7898 7899 if test $found = "no" ; then 7900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 fi 7903 7904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7906 fi 7907 7908 CFLAGS="$CFLAGS -Werror=main" 7909 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7911printf %s "checking if $CC supports -Werror=main... " >&6; } 7912 cacheid=xorg_cv_cc_flag__Werror_main 7913 if eval test \${$cacheid+y} 7914then : 7915 printf %s "(cached) " >&6 7916else case e in #( 7917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918/* end confdefs.h. */ 7919int i; 7920int 7921main (void) 7922{ 7923 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928if ac_fn_c_try_link "$LINENO" 7929then : 7930 eval $cacheid=yes 7931else case e in #( 7932 e) eval $cacheid=no ;; 7933esac 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7936 conftest$ac_exeext conftest.$ac_ext ;; 7937esac 7938fi 7939 7940 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942 7943 eval supported=\$$cacheid 7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7945printf "%s\n" "$supported" >&6; } 7946 if test "$supported" = "yes" ; then 7947 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7948 found="yes" 7949 fi 7950 fi 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966xorg_testset_save_CFLAGS="$CFLAGS" 7967 7968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7973then : 7974 printf %s "(cached) " >&6 7975else case e in #( 7976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978int i; 7979_ACEOF 7980if ac_fn_c_try_compile "$LINENO" 7981then : 7982 xorg_cv_cc_flag_unknown_warning_option=yes 7983else case e in #( 7984 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7985esac 7986fi 7987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7988esac 7989fi 7990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7993 CFLAGS="$xorg_testset_save_CFLAGS" 7994fi 7995 7996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7999 fi 8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8003if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8004then : 8005 printf %s "(cached) " >&6 8006else case e in #( 8007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010_ACEOF 8011if ac_fn_c_try_compile "$LINENO" 8012then : 8013 xorg_cv_cc_flag_unused_command_line_argument=yes 8014else case e in #( 8015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8016esac 8017fi 8018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8019esac 8020fi 8021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025fi 8026 8027found="no" 8028 8029 if test $found = "no" ; then 8030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 fi 8033 8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 fi 8037 8038 CFLAGS="$CFLAGS -Werror=missing-braces" 8039 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8041printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8042 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8043 if eval test \${$cacheid+y} 8044then : 8045 printf %s "(cached) " >&6 8046else case e in #( 8047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050int 8051main (void) 8052{ 8053 8054 ; 8055 return 0; 8056} 8057_ACEOF 8058if ac_fn_c_try_link "$LINENO" 8059then : 8060 eval $cacheid=yes 8061else case e in #( 8062 e) eval $cacheid=no ;; 8063esac 8064fi 8065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8066 conftest$ac_exeext conftest.$ac_ext ;; 8067esac 8068fi 8069 8070 8071 CFLAGS="$xorg_testset_save_CFLAGS" 8072 8073 eval supported=\$$cacheid 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8075printf "%s\n" "$supported" >&6; } 8076 if test "$supported" = "yes" ; then 8077 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8078 found="yes" 8079 fi 8080 fi 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096xorg_testset_save_CFLAGS="$CFLAGS" 8097 8098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8102if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8103then : 8104 printf %s "(cached) " >&6 8105else case e in #( 8106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8107/* end confdefs.h. */ 8108int i; 8109_ACEOF 8110if ac_fn_c_try_compile "$LINENO" 8111then : 8112 xorg_cv_cc_flag_unknown_warning_option=yes 8113else case e in #( 8114 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8115esac 8116fi 8117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8118esac 8119fi 8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8123 CFLAGS="$xorg_testset_save_CFLAGS" 8124fi 8125 8126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8133if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8134then : 8135 printf %s "(cached) " >&6 8136else case e in #( 8137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139int i; 8140_ACEOF 8141if ac_fn_c_try_compile "$LINENO" 8142then : 8143 xorg_cv_cc_flag_unused_command_line_argument=yes 8144else case e in #( 8145 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8146esac 8147fi 8148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8149esac 8150fi 8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8154 CFLAGS="$xorg_testset_save_CFLAGS" 8155fi 8156 8157found="no" 8158 8159 if test $found = "no" ; then 8160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8162 fi 8163 8164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8166 fi 8167 8168 CFLAGS="$CFLAGS -Werror=sequence-point" 8169 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8171printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8172 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8173 if eval test \${$cacheid+y} 8174then : 8175 printf %s "(cached) " >&6 8176else case e in #( 8177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8178/* end confdefs.h. */ 8179int i; 8180int 8181main (void) 8182{ 8183 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188if ac_fn_c_try_link "$LINENO" 8189then : 8190 eval $cacheid=yes 8191else case e in #( 8192 e) eval $cacheid=no ;; 8193esac 8194fi 8195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8196 conftest$ac_exeext conftest.$ac_ext ;; 8197esac 8198fi 8199 8200 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202 8203 eval supported=\$$cacheid 8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8205printf "%s\n" "$supported" >&6; } 8206 if test "$supported" = "yes" ; then 8207 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8208 found="yes" 8209 fi 8210 fi 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226xorg_testset_save_CFLAGS="$CFLAGS" 8227 8228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8233then : 8234 printf %s "(cached) " >&6 8235else case e in #( 8236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238int i; 8239_ACEOF 8240if ac_fn_c_try_compile "$LINENO" 8241then : 8242 xorg_cv_cc_flag_unknown_warning_option=yes 8243else case e in #( 8244 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8245esac 8246fi 8247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8248esac 8249fi 8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254fi 8255 8256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8263if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8264then : 8265 printf %s "(cached) " >&6 8266else case e in #( 8267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269int i; 8270_ACEOF 8271if ac_fn_c_try_compile "$LINENO" 8272then : 8273 xorg_cv_cc_flag_unused_command_line_argument=yes 8274else case e in #( 8275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8276esac 8277fi 8278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8279esac 8280fi 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287found="no" 8288 8289 if test $found = "no" ; then 8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 fi 8293 8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8296 fi 8297 8298 CFLAGS="$CFLAGS -Werror=return-type" 8299 8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8301printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8302 cacheid=xorg_cv_cc_flag__Werror_return_type 8303 if eval test \${$cacheid+y} 8304then : 8305 printf %s "(cached) " >&6 8306else case e in #( 8307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310int 8311main (void) 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO" 8319then : 8320 eval $cacheid=yes 8321else case e in #( 8322 e) eval $cacheid=no ;; 8323esac 8324fi 8325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8326 conftest$ac_exeext conftest.$ac_ext ;; 8327esac 8328fi 8329 8330 8331 CFLAGS="$xorg_testset_save_CFLAGS" 8332 8333 eval supported=\$$cacheid 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8335printf "%s\n" "$supported" >&6; } 8336 if test "$supported" = "yes" ; then 8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8338 found="yes" 8339 fi 8340 fi 8341 8342 if test $found = "no" ; then 8343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8345 fi 8346 8347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8349 fi 8350 8351 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8352 8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8354printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8355 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8356 if eval test \${$cacheid+y} 8357then : 8358 printf %s "(cached) " >&6 8359else case e in #( 8360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362int i; 8363int 8364main (void) 8365{ 8366 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371if ac_fn_c_try_link "$LINENO" 8372then : 8373 eval $cacheid=yes 8374else case e in #( 8375 e) eval $cacheid=no ;; 8376esac 8377fi 8378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8379 conftest$ac_exeext conftest.$ac_ext ;; 8380esac 8381fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388printf "%s\n" "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8416then : 8417 printf %s "(cached) " >&6 8418else case e in #( 8419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422_ACEOF 8423if ac_fn_c_try_compile "$LINENO" 8424then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426else case e in #( 8427 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8428esac 8429fi 8430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8431esac 8432fi 8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8437fi 8438 8439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8442 fi 8443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8446if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8447then : 8448 printf %s "(cached) " >&6 8449else case e in #( 8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452int i; 8453_ACEOF 8454if ac_fn_c_try_compile "$LINENO" 8455then : 8456 xorg_cv_cc_flag_unused_command_line_argument=yes 8457else case e in #( 8458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8459esac 8460fi 8461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8462esac 8463fi 8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8467 CFLAGS="$xorg_testset_save_CFLAGS" 8468fi 8469 8470found="no" 8471 8472 if test $found = "no" ; then 8473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 fi 8476 8477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 fi 8480 8481 CFLAGS="$CFLAGS -Werror=trigraphs" 8482 8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8484printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8485 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8486 if eval test \${$cacheid+y} 8487then : 8488 printf %s "(cached) " >&6 8489else case e in #( 8490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493int 8494main (void) 8495{ 8496 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501if ac_fn_c_try_link "$LINENO" 8502then : 8503 eval $cacheid=yes 8504else case e in #( 8505 e) eval $cacheid=no ;; 8506esac 8507fi 8508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8509 conftest$ac_exeext conftest.$ac_ext ;; 8510esac 8511fi 8512 8513 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515 8516 eval supported=\$$cacheid 8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8518printf "%s\n" "$supported" >&6; } 8519 if test "$supported" = "yes" ; then 8520 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8521 found="yes" 8522 fi 8523 fi 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539xorg_testset_save_CFLAGS="$CFLAGS" 8540 8541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8545if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8546then : 8547 printf %s "(cached) " >&6 8548else case e in #( 8549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int i; 8552_ACEOF 8553if ac_fn_c_try_compile "$LINENO" 8554then : 8555 xorg_cv_cc_flag_unknown_warning_option=yes 8556else case e in #( 8557 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8558esac 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8561esac 8562fi 8563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8566 CFLAGS="$xorg_testset_save_CFLAGS" 8567fi 8568 8569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8572 fi 8573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8576if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8577then : 8578 printf %s "(cached) " >&6 8579else case e in #( 8580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582int i; 8583_ACEOF 8584if ac_fn_c_try_compile "$LINENO" 8585then : 8586 xorg_cv_cc_flag_unused_command_line_argument=yes 8587else case e in #( 8588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8589esac 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8592esac 8593fi 8594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8597 CFLAGS="$xorg_testset_save_CFLAGS" 8598fi 8599 8600found="no" 8601 8602 if test $found = "no" ; then 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 fi 8606 8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8609 fi 8610 8611 CFLAGS="$CFLAGS -Werror=array-bounds" 8612 8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8614printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8615 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8616 if eval test \${$cacheid+y} 8617then : 8618 printf %s "(cached) " >&6 8619else case e in #( 8620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622int i; 8623int 8624main (void) 8625{ 8626 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631if ac_fn_c_try_link "$LINENO" 8632then : 8633 eval $cacheid=yes 8634else case e in #( 8635 e) eval $cacheid=no ;; 8636esac 8637fi 8638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8639 conftest$ac_exeext conftest.$ac_ext ;; 8640esac 8641fi 8642 8643 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645 8646 eval supported=\$$cacheid 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8648printf "%s\n" "$supported" >&6; } 8649 if test "$supported" = "yes" ; then 8650 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8651 found="yes" 8652 fi 8653 fi 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669xorg_testset_save_CFLAGS="$CFLAGS" 8670 8671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8676then : 8677 printf %s "(cached) " >&6 8678else case e in #( 8679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681int i; 8682_ACEOF 8683if ac_fn_c_try_compile "$LINENO" 8684then : 8685 xorg_cv_cc_flag_unknown_warning_option=yes 8686else case e in #( 8687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8688esac 8689fi 8690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8691esac 8692fi 8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697fi 8698 8699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8702 fi 8703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8707then : 8708 printf %s "(cached) " >&6 8709else case e in #( 8710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8711/* end confdefs.h. */ 8712int i; 8713_ACEOF 8714if ac_fn_c_try_compile "$LINENO" 8715then : 8716 xorg_cv_cc_flag_unused_command_line_argument=yes 8717else case e in #( 8718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8719esac 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8722esac 8723fi 8724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8727 CFLAGS="$xorg_testset_save_CFLAGS" 8728fi 8729 8730found="no" 8731 8732 if test $found = "no" ; then 8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 fi 8736 8737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8739 fi 8740 8741 CFLAGS="$CFLAGS -Werror=write-strings" 8742 8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8744printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8745 cacheid=xorg_cv_cc_flag__Werror_write_strings 8746 if eval test \${$cacheid+y} 8747then : 8748 printf %s "(cached) " >&6 8749else case e in #( 8750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753int 8754main (void) 8755{ 8756 8757 ; 8758 return 0; 8759} 8760_ACEOF 8761if ac_fn_c_try_link "$LINENO" 8762then : 8763 eval $cacheid=yes 8764else case e in #( 8765 e) eval $cacheid=no ;; 8766esac 8767fi 8768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8769 conftest$ac_exeext conftest.$ac_ext ;; 8770esac 8771fi 8772 8773 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775 8776 eval supported=\$$cacheid 8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8778printf "%s\n" "$supported" >&6; } 8779 if test "$supported" = "yes" ; then 8780 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8781 found="yes" 8782 fi 8783 fi 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799xorg_testset_save_CFLAGS="$CFLAGS" 8800 8801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8805if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8806then : 8807 printf %s "(cached) " >&6 8808else case e in #( 8809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811int i; 8812_ACEOF 8813if ac_fn_c_try_compile "$LINENO" 8814then : 8815 xorg_cv_cc_flag_unknown_warning_option=yes 8816else case e in #( 8817 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8818esac 8819fi 8820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8821esac 8822fi 8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827fi 8828 8829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8832 fi 8833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8836if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8837then : 8838 printf %s "(cached) " >&6 8839else case e in #( 8840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843_ACEOF 8844if ac_fn_c_try_compile "$LINENO" 8845then : 8846 xorg_cv_cc_flag_unused_command_line_argument=yes 8847else case e in #( 8848 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8849esac 8850fi 8851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8852esac 8853fi 8854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858fi 8859 8860found="no" 8861 8862 if test $found = "no" ; then 8863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8865 fi 8866 8867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8869 fi 8870 8871 CFLAGS="$CFLAGS -Werror=address" 8872 8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8874printf %s "checking if $CC supports -Werror=address... " >&6; } 8875 cacheid=xorg_cv_cc_flag__Werror_address 8876 if eval test \${$cacheid+y} 8877then : 8878 printf %s "(cached) " >&6 8879else case e in #( 8880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8881/* end confdefs.h. */ 8882int i; 8883int 8884main (void) 8885{ 8886 8887 ; 8888 return 0; 8889} 8890_ACEOF 8891if ac_fn_c_try_link "$LINENO" 8892then : 8893 eval $cacheid=yes 8894else case e in #( 8895 e) eval $cacheid=no ;; 8896esac 8897fi 8898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8899 conftest$ac_exeext conftest.$ac_ext ;; 8900esac 8901fi 8902 8903 8904 CFLAGS="$xorg_testset_save_CFLAGS" 8905 8906 eval supported=\$$cacheid 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8908printf "%s\n" "$supported" >&6; } 8909 if test "$supported" = "yes" ; then 8910 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8911 found="yes" 8912 fi 8913 fi 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929xorg_testset_save_CFLAGS="$CFLAGS" 8930 8931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8935if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8936then : 8937 printf %s "(cached) " >&6 8938else case e in #( 8939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941int i; 8942_ACEOF 8943if ac_fn_c_try_compile "$LINENO" 8944then : 8945 xorg_cv_cc_flag_unknown_warning_option=yes 8946else case e in #( 8947 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8948esac 8949fi 8950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8951esac 8952fi 8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8956 CFLAGS="$xorg_testset_save_CFLAGS" 8957fi 8958 8959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8962 fi 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8966if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8967then : 8968 printf %s "(cached) " >&6 8969else case e in #( 8970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971/* end confdefs.h. */ 8972int i; 8973_ACEOF 8974if ac_fn_c_try_compile "$LINENO" 8975then : 8976 xorg_cv_cc_flag_unused_command_line_argument=yes 8977else case e in #( 8978 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8979esac 8980fi 8981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8982esac 8983fi 8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8987 CFLAGS="$xorg_testset_save_CFLAGS" 8988fi 8989 8990found="no" 8991 8992 if test $found = "no" ; then 8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8995 fi 8996 8997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8999 fi 9000 9001 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9002 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9004printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9005 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9006 if eval test \${$cacheid+y} 9007then : 9008 printf %s "(cached) " >&6 9009else case e in #( 9010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013int 9014main (void) 9015{ 9016 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021if ac_fn_c_try_link "$LINENO" 9022then : 9023 eval $cacheid=yes 9024else case e in #( 9025 e) eval $cacheid=no ;; 9026esac 9027fi 9028rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9029 conftest$ac_exeext conftest.$ac_ext ;; 9030esac 9031fi 9032 9033 9034 CFLAGS="$xorg_testset_save_CFLAGS" 9035 9036 eval supported=\$$cacheid 9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9038printf "%s\n" "$supported" >&6; } 9039 if test "$supported" = "yes" ; then 9040 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9041 found="yes" 9042 fi 9043 fi 9044 9045 if test $found = "no" ; then 9046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 fi 9049 9050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9052 fi 9053 9054 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9055 9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9057printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9058 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9059 if eval test \${$cacheid+y} 9060then : 9061 printf %s "(cached) " >&6 9062else case e in #( 9063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9064/* end confdefs.h. */ 9065int i; 9066int 9067main (void) 9068{ 9069 9070 ; 9071 return 0; 9072} 9073_ACEOF 9074if ac_fn_c_try_link "$LINENO" 9075then : 9076 eval $cacheid=yes 9077else case e in #( 9078 e) eval $cacheid=no ;; 9079esac 9080fi 9081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9082 conftest$ac_exeext conftest.$ac_ext ;; 9083esac 9084fi 9085 9086 9087 CFLAGS="$xorg_testset_save_CFLAGS" 9088 9089 eval supported=\$$cacheid 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9091printf "%s\n" "$supported" >&6; } 9092 if test "$supported" = "yes" ; then 9093 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9094 found="yes" 9095 fi 9096 fi 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112xorg_testset_save_CFLAGS="$CFLAGS" 9113 9114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9117printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9118if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9119then : 9120 printf %s "(cached) " >&6 9121else case e in #( 9122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123/* end confdefs.h. */ 9124int i; 9125_ACEOF 9126if ac_fn_c_try_compile "$LINENO" 9127then : 9128 xorg_cv_cc_flag_unknown_warning_option=yes 9129else case e in #( 9130 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9131esac 9132fi 9133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9134esac 9135fi 9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9139 CFLAGS="$xorg_testset_save_CFLAGS" 9140fi 9141 9142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9145 fi 9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9150then : 9151 printf %s "(cached) " >&6 9152else case e in #( 9153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9154/* end confdefs.h. */ 9155int i; 9156_ACEOF 9157if ac_fn_c_try_compile "$LINENO" 9158then : 9159 xorg_cv_cc_flag_unused_command_line_argument=yes 9160else case e in #( 9161 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9162esac 9163fi 9164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9165esac 9166fi 9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9168printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173found="no" 9174 9175 if test $found = "no" ; then 9176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 fi 9179 9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 fi 9183 9184 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9185 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9187printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9188 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9189 if eval test \${$cacheid+y} 9190then : 9191 printf %s "(cached) " >&6 9192else case e in #( 9193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196int 9197main (void) 9198{ 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_c_try_link "$LINENO" 9205then : 9206 eval $cacheid=yes 9207else case e in #( 9208 e) eval $cacheid=no ;; 9209esac 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9212 conftest$ac_exeext conftest.$ac_ext ;; 9213esac 9214fi 9215 9216 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218 9219 eval supported=\$$cacheid 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9221printf "%s\n" "$supported" >&6; } 9222 if test "$supported" = "yes" ; then 9223 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9224 found="yes" 9225 fi 9226 fi 9227 9228 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9229else 9230{ 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 9231printf "%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;} 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245xorg_testset_save_CFLAGS="$CFLAGS" 9246 9247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9252then : 9253 printf %s "(cached) " >&6 9254else case e in #( 9255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257int i; 9258_ACEOF 9259if ac_fn_c_try_compile "$LINENO" 9260then : 9261 xorg_cv_cc_flag_unknown_warning_option=yes 9262else case e in #( 9263 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9264esac 9265fi 9266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9267esac 9268fi 9269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9272 CFLAGS="$xorg_testset_save_CFLAGS" 9273fi 9274 9275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 fi 9279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9282if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9283then : 9284 printf %s "(cached) " >&6 9285else case e in #( 9286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289_ACEOF 9290if ac_fn_c_try_compile "$LINENO" 9291then : 9292 xorg_cv_cc_flag_unused_command_line_argument=yes 9293else case e in #( 9294 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9295esac 9296fi 9297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9298esac 9299fi 9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9303 CFLAGS="$xorg_testset_save_CFLAGS" 9304fi 9305 9306found="no" 9307 9308 if test $found = "no" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9315 fi 9316 9317 CFLAGS="$CFLAGS -Wimplicit" 9318 9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9320printf %s "checking if $CC supports -Wimplicit... " >&6; } 9321 cacheid=xorg_cv_cc_flag__Wimplicit 9322 if eval test \${$cacheid+y} 9323then : 9324 printf %s "(cached) " >&6 9325else case e in #( 9326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9327/* end confdefs.h. */ 9328int i; 9329int 9330main (void) 9331{ 9332 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337if ac_fn_c_try_link "$LINENO" 9338then : 9339 eval $cacheid=yes 9340else case e in #( 9341 e) eval $cacheid=no ;; 9342esac 9343fi 9344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9345 conftest$ac_exeext conftest.$ac_ext ;; 9346esac 9347fi 9348 9349 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351 9352 eval supported=\$$cacheid 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9354printf "%s\n" "$supported" >&6; } 9355 if test "$supported" = "yes" ; then 9356 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9357 found="yes" 9358 fi 9359 fi 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375xorg_testset_save_CFLAGS="$CFLAGS" 9376 9377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9382then : 9383 printf %s "(cached) " >&6 9384else case e in #( 9385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387int i; 9388_ACEOF 9389if ac_fn_c_try_compile "$LINENO" 9390then : 9391 xorg_cv_cc_flag_unknown_warning_option=yes 9392else case e in #( 9393 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9394esac 9395fi 9396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9397esac 9398fi 9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9402 CFLAGS="$xorg_testset_save_CFLAGS" 9403fi 9404 9405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408 fi 9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9413then : 9414 printf %s "(cached) " >&6 9415else case e in #( 9416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419_ACEOF 9420if ac_fn_c_try_compile "$LINENO" 9421then : 9422 xorg_cv_cc_flag_unused_command_line_argument=yes 9423else case e in #( 9424 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9425esac 9426fi 9427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9428esac 9429fi 9430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434fi 9435 9436found="no" 9437 9438 if test $found = "no" ; then 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 fi 9442 9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9445 fi 9446 9447 CFLAGS="$CFLAGS -Wnonnull" 9448 9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9450printf %s "checking if $CC supports -Wnonnull... " >&6; } 9451 cacheid=xorg_cv_cc_flag__Wnonnull 9452 if eval test \${$cacheid+y} 9453then : 9454 printf %s "(cached) " >&6 9455else case e in #( 9456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9457/* end confdefs.h. */ 9458int i; 9459int 9460main (void) 9461{ 9462 9463 ; 9464 return 0; 9465} 9466_ACEOF 9467if ac_fn_c_try_link "$LINENO" 9468then : 9469 eval $cacheid=yes 9470else case e in #( 9471 e) eval $cacheid=no ;; 9472esac 9473fi 9474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9475 conftest$ac_exeext conftest.$ac_ext ;; 9476esac 9477fi 9478 9479 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481 9482 eval supported=\$$cacheid 9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9484printf "%s\n" "$supported" >&6; } 9485 if test "$supported" = "yes" ; then 9486 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9487 found="yes" 9488 fi 9489 fi 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505xorg_testset_save_CFLAGS="$CFLAGS" 9506 9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9511if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9512then : 9513 printf %s "(cached) " >&6 9514else case e in #( 9515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9516/* end confdefs.h. */ 9517int i; 9518_ACEOF 9519if ac_fn_c_try_compile "$LINENO" 9520then : 9521 xorg_cv_cc_flag_unknown_warning_option=yes 9522else case e in #( 9523 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9524esac 9525fi 9526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9527esac 9528fi 9529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9532 CFLAGS="$xorg_testset_save_CFLAGS" 9533fi 9534 9535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9538 fi 9539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9542if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9543then : 9544 printf %s "(cached) " >&6 9545else case e in #( 9546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547/* end confdefs.h. */ 9548int i; 9549_ACEOF 9550if ac_fn_c_try_compile "$LINENO" 9551then : 9552 xorg_cv_cc_flag_unused_command_line_argument=yes 9553else case e in #( 9554 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9555esac 9556fi 9557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9558esac 9559fi 9560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564fi 9565 9566found="no" 9567 9568 if test $found = "no" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9575 fi 9576 9577 CFLAGS="$CFLAGS -Winit-self" 9578 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9580printf %s "checking if $CC supports -Winit-self... " >&6; } 9581 cacheid=xorg_cv_cc_flag__Winit_self 9582 if eval test \${$cacheid+y} 9583then : 9584 printf %s "(cached) " >&6 9585else case e in #( 9586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589int 9590main (void) 9591{ 9592 9593 ; 9594 return 0; 9595} 9596_ACEOF 9597if ac_fn_c_try_link "$LINENO" 9598then : 9599 eval $cacheid=yes 9600else case e in #( 9601 e) eval $cacheid=no ;; 9602esac 9603fi 9604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9605 conftest$ac_exeext conftest.$ac_ext ;; 9606esac 9607fi 9608 9609 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611 9612 eval supported=\$$cacheid 9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9614printf "%s\n" "$supported" >&6; } 9615 if test "$supported" = "yes" ; then 9616 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9617 found="yes" 9618 fi 9619 fi 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635xorg_testset_save_CFLAGS="$CFLAGS" 9636 9637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9641if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9642then : 9643 printf %s "(cached) " >&6 9644else case e in #( 9645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647int i; 9648_ACEOF 9649if ac_fn_c_try_compile "$LINENO" 9650then : 9651 xorg_cv_cc_flag_unknown_warning_option=yes 9652else case e in #( 9653 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9654esac 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9657esac 9658fi 9659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9662 CFLAGS="$xorg_testset_save_CFLAGS" 9663fi 9664 9665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9668 fi 9669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9672if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9673then : 9674 printf %s "(cached) " >&6 9675else case e in #( 9676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678int i; 9679_ACEOF 9680if ac_fn_c_try_compile "$LINENO" 9681then : 9682 xorg_cv_cc_flag_unused_command_line_argument=yes 9683else case e in #( 9684 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9685esac 9686fi 9687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9688esac 9689fi 9690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9693 CFLAGS="$xorg_testset_save_CFLAGS" 9694fi 9695 9696found="no" 9697 9698 if test $found = "no" ; then 9699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701 fi 9702 9703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9705 fi 9706 9707 CFLAGS="$CFLAGS -Wmain" 9708 9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9710printf %s "checking if $CC supports -Wmain... " >&6; } 9711 cacheid=xorg_cv_cc_flag__Wmain 9712 if eval test \${$cacheid+y} 9713then : 9714 printf %s "(cached) " >&6 9715else case e in #( 9716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9717/* end confdefs.h. */ 9718int i; 9719int 9720main (void) 9721{ 9722 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727if ac_fn_c_try_link "$LINENO" 9728then : 9729 eval $cacheid=yes 9730else case e in #( 9731 e) eval $cacheid=no ;; 9732esac 9733fi 9734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9735 conftest$ac_exeext conftest.$ac_ext ;; 9736esac 9737fi 9738 9739 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 9742 eval supported=\$$cacheid 9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9744printf "%s\n" "$supported" >&6; } 9745 if test "$supported" = "yes" ; then 9746 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9747 found="yes" 9748 fi 9749 fi 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765xorg_testset_save_CFLAGS="$CFLAGS" 9766 9767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9771if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9772then : 9773 printf %s "(cached) " >&6 9774else case e in #( 9775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778_ACEOF 9779if ac_fn_c_try_compile "$LINENO" 9780then : 9781 xorg_cv_cc_flag_unknown_warning_option=yes 9782else case e in #( 9783 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9784esac 9785fi 9786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9787esac 9788fi 9789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9792 CFLAGS="$xorg_testset_save_CFLAGS" 9793fi 9794 9795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9798 fi 9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9802if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9803then : 9804 printf %s "(cached) " >&6 9805else case e in #( 9806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807/* end confdefs.h. */ 9808int i; 9809_ACEOF 9810if ac_fn_c_try_compile "$LINENO" 9811then : 9812 xorg_cv_cc_flag_unused_command_line_argument=yes 9813else case e in #( 9814 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9815esac 9816fi 9817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9818esac 9819fi 9820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9823 CFLAGS="$xorg_testset_save_CFLAGS" 9824fi 9825 9826found="no" 9827 9828 if test $found = "no" ; then 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 fi 9832 9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 fi 9836 9837 CFLAGS="$CFLAGS -Wmissing-braces" 9838 9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9840printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9841 cacheid=xorg_cv_cc_flag__Wmissing_braces 9842 if eval test \${$cacheid+y} 9843then : 9844 printf %s "(cached) " >&6 9845else case e in #( 9846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9847/* end confdefs.h. */ 9848int i; 9849int 9850main (void) 9851{ 9852 9853 ; 9854 return 0; 9855} 9856_ACEOF 9857if ac_fn_c_try_link "$LINENO" 9858then : 9859 eval $cacheid=yes 9860else case e in #( 9861 e) eval $cacheid=no ;; 9862esac 9863fi 9864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9865 conftest$ac_exeext conftest.$ac_ext ;; 9866esac 9867fi 9868 9869 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871 9872 eval supported=\$$cacheid 9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9874printf "%s\n" "$supported" >&6; } 9875 if test "$supported" = "yes" ; then 9876 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9877 found="yes" 9878 fi 9879 fi 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895xorg_testset_save_CFLAGS="$CFLAGS" 9896 9897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9901if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9902then : 9903 printf %s "(cached) " >&6 9904else case e in #( 9905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907int i; 9908_ACEOF 9909if ac_fn_c_try_compile "$LINENO" 9910then : 9911 xorg_cv_cc_flag_unknown_warning_option=yes 9912else case e in #( 9913 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9914esac 9915fi 9916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9917esac 9918fi 9919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923fi 9924 9925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9928 fi 9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9933then : 9934 printf %s "(cached) " >&6 9935else case e in #( 9936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9937/* end confdefs.h. */ 9938int i; 9939_ACEOF 9940if ac_fn_c_try_compile "$LINENO" 9941then : 9942 xorg_cv_cc_flag_unused_command_line_argument=yes 9943else case e in #( 9944 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9945esac 9946fi 9947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9948esac 9949fi 9950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9953 CFLAGS="$xorg_testset_save_CFLAGS" 9954fi 9955 9956found="no" 9957 9958 if test $found = "no" ; then 9959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 fi 9962 9963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9965 fi 9966 9967 CFLAGS="$CFLAGS -Wsequence-point" 9968 9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9970printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9971 cacheid=xorg_cv_cc_flag__Wsequence_point 9972 if eval test \${$cacheid+y} 9973then : 9974 printf %s "(cached) " >&6 9975else case e in #( 9976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9977/* end confdefs.h. */ 9978int i; 9979int 9980main (void) 9981{ 9982 9983 ; 9984 return 0; 9985} 9986_ACEOF 9987if ac_fn_c_try_link "$LINENO" 9988then : 9989 eval $cacheid=yes 9990else case e in #( 9991 e) eval $cacheid=no ;; 9992esac 9993fi 9994rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9995 conftest$ac_exeext conftest.$ac_ext ;; 9996esac 9997fi 9998 9999 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001 10002 eval supported=\$$cacheid 10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10004printf "%s\n" "$supported" >&6; } 10005 if test "$supported" = "yes" ; then 10006 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10007 found="yes" 10008 fi 10009 fi 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025xorg_testset_save_CFLAGS="$CFLAGS" 10026 10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10032then : 10033 printf %s "(cached) " >&6 10034else case e in #( 10035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037int i; 10038_ACEOF 10039if ac_fn_c_try_compile "$LINENO" 10040then : 10041 xorg_cv_cc_flag_unknown_warning_option=yes 10042else case e in #( 10043 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10044esac 10045fi 10046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10047esac 10048fi 10049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10052 CFLAGS="$xorg_testset_save_CFLAGS" 10053fi 10054 10055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10058 fi 10059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10062if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10063then : 10064 printf %s "(cached) " >&6 10065else case e in #( 10066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068int i; 10069_ACEOF 10070if ac_fn_c_try_compile "$LINENO" 10071then : 10072 xorg_cv_cc_flag_unused_command_line_argument=yes 10073else case e in #( 10074 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10075esac 10076fi 10077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10078esac 10079fi 10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10083 CFLAGS="$xorg_testset_save_CFLAGS" 10084fi 10085 10086found="no" 10087 10088 if test $found = "no" ; then 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 fi 10092 10093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10095 fi 10096 10097 CFLAGS="$CFLAGS -Wreturn-type" 10098 10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10100printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10101 cacheid=xorg_cv_cc_flag__Wreturn_type 10102 if eval test \${$cacheid+y} 10103then : 10104 printf %s "(cached) " >&6 10105else case e in #( 10106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10107/* end confdefs.h. */ 10108int i; 10109int 10110main (void) 10111{ 10112 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117if ac_fn_c_try_link "$LINENO" 10118then : 10119 eval $cacheid=yes 10120else case e in #( 10121 e) eval $cacheid=no ;; 10122esac 10123fi 10124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10125 conftest$ac_exeext conftest.$ac_ext ;; 10126esac 10127fi 10128 10129 10130 CFLAGS="$xorg_testset_save_CFLAGS" 10131 10132 eval supported=\$$cacheid 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10134printf "%s\n" "$supported" >&6; } 10135 if test "$supported" = "yes" ; then 10136 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10137 found="yes" 10138 fi 10139 fi 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155xorg_testset_save_CFLAGS="$CFLAGS" 10156 10157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10160printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10161if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10162then : 10163 printf %s "(cached) " >&6 10164else case e in #( 10165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167int i; 10168_ACEOF 10169if ac_fn_c_try_compile "$LINENO" 10170then : 10171 xorg_cv_cc_flag_unknown_warning_option=yes 10172else case e in #( 10173 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10174esac 10175fi 10176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10177esac 10178fi 10179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10182 CFLAGS="$xorg_testset_save_CFLAGS" 10183fi 10184 10185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10188 fi 10189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10193then : 10194 printf %s "(cached) " >&6 10195else case e in #( 10196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199_ACEOF 10200if ac_fn_c_try_compile "$LINENO" 10201then : 10202 xorg_cv_cc_flag_unused_command_line_argument=yes 10203else case e in #( 10204 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10205esac 10206fi 10207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10208esac 10209fi 10210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10213 CFLAGS="$xorg_testset_save_CFLAGS" 10214fi 10215 10216found="no" 10217 10218 if test $found = "no" ; then 10219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10221 fi 10222 10223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10225 fi 10226 10227 CFLAGS="$CFLAGS -Wtrigraphs" 10228 10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10230printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10231 cacheid=xorg_cv_cc_flag__Wtrigraphs 10232 if eval test \${$cacheid+y} 10233then : 10234 printf %s "(cached) " >&6 10235else case e in #( 10236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10237/* end confdefs.h. */ 10238int i; 10239int 10240main (void) 10241{ 10242 10243 ; 10244 return 0; 10245} 10246_ACEOF 10247if ac_fn_c_try_link "$LINENO" 10248then : 10249 eval $cacheid=yes 10250else case e in #( 10251 e) eval $cacheid=no ;; 10252esac 10253fi 10254rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10255 conftest$ac_exeext conftest.$ac_ext ;; 10256esac 10257fi 10258 10259 10260 CFLAGS="$xorg_testset_save_CFLAGS" 10261 10262 eval supported=\$$cacheid 10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10264printf "%s\n" "$supported" >&6; } 10265 if test "$supported" = "yes" ; then 10266 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10267 found="yes" 10268 fi 10269 fi 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285xorg_testset_save_CFLAGS="$CFLAGS" 10286 10287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10291if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10292then : 10293 printf %s "(cached) " >&6 10294else case e in #( 10295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO" 10300then : 10301 xorg_cv_cc_flag_unknown_warning_option=yes 10302else case e in #( 10303 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10304esac 10305fi 10306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10307esac 10308fi 10309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10312 CFLAGS="$xorg_testset_save_CFLAGS" 10313fi 10314 10315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10318 fi 10319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10322if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10323then : 10324 printf %s "(cached) " >&6 10325else case e in #( 10326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10327/* end confdefs.h. */ 10328int i; 10329_ACEOF 10330if ac_fn_c_try_compile "$LINENO" 10331then : 10332 xorg_cv_cc_flag_unused_command_line_argument=yes 10333else case e in #( 10334 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10335esac 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10338esac 10339fi 10340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10343 CFLAGS="$xorg_testset_save_CFLAGS" 10344fi 10345 10346found="no" 10347 10348 if test $found = "no" ; then 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 fi 10352 10353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10355 fi 10356 10357 CFLAGS="$CFLAGS -Warray-bounds" 10358 10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10360printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10361 cacheid=xorg_cv_cc_flag__Warray_bounds 10362 if eval test \${$cacheid+y} 10363then : 10364 printf %s "(cached) " >&6 10365else case e in #( 10366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10367/* end confdefs.h. */ 10368int i; 10369int 10370main (void) 10371{ 10372 10373 ; 10374 return 0; 10375} 10376_ACEOF 10377if ac_fn_c_try_link "$LINENO" 10378then : 10379 eval $cacheid=yes 10380else case e in #( 10381 e) eval $cacheid=no ;; 10382esac 10383fi 10384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10385 conftest$ac_exeext conftest.$ac_ext ;; 10386esac 10387fi 10388 10389 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391 10392 eval supported=\$$cacheid 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10394printf "%s\n" "$supported" >&6; } 10395 if test "$supported" = "yes" ; then 10396 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10397 found="yes" 10398 fi 10399 fi 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415xorg_testset_save_CFLAGS="$CFLAGS" 10416 10417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10421if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10422then : 10423 printf %s "(cached) " >&6 10424else case e in #( 10425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10426/* end confdefs.h. */ 10427int i; 10428_ACEOF 10429if ac_fn_c_try_compile "$LINENO" 10430then : 10431 xorg_cv_cc_flag_unknown_warning_option=yes 10432else case e in #( 10433 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10434esac 10435fi 10436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10437esac 10438fi 10439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10440printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10442 CFLAGS="$xorg_testset_save_CFLAGS" 10443fi 10444 10445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10448 fi 10449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10451printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10452if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10453then : 10454 printf %s "(cached) " >&6 10455else case e in #( 10456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10457/* end confdefs.h. */ 10458int i; 10459_ACEOF 10460if ac_fn_c_try_compile "$LINENO" 10461then : 10462 xorg_cv_cc_flag_unused_command_line_argument=yes 10463else case e in #( 10464 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10465esac 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10468esac 10469fi 10470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10473 CFLAGS="$xorg_testset_save_CFLAGS" 10474fi 10475 10476found="no" 10477 10478 if test $found = "no" ; then 10479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 fi 10482 10483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10485 fi 10486 10487 CFLAGS="$CFLAGS -Wwrite-strings" 10488 10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10490printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10491 cacheid=xorg_cv_cc_flag__Wwrite_strings 10492 if eval test \${$cacheid+y} 10493then : 10494 printf %s "(cached) " >&6 10495else case e in #( 10496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10497/* end confdefs.h. */ 10498int i; 10499int 10500main (void) 10501{ 10502 10503 ; 10504 return 0; 10505} 10506_ACEOF 10507if ac_fn_c_try_link "$LINENO" 10508then : 10509 eval $cacheid=yes 10510else case e in #( 10511 e) eval $cacheid=no ;; 10512esac 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10515 conftest$ac_exeext conftest.$ac_ext ;; 10516esac 10517fi 10518 10519 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521 10522 eval supported=\$$cacheid 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10524printf "%s\n" "$supported" >&6; } 10525 if test "$supported" = "yes" ; then 10526 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10527 found="yes" 10528 fi 10529 fi 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545xorg_testset_save_CFLAGS="$CFLAGS" 10546 10547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10552then : 10553 printf %s "(cached) " >&6 10554else case e in #( 10555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557int i; 10558_ACEOF 10559if ac_fn_c_try_compile "$LINENO" 10560then : 10561 xorg_cv_cc_flag_unknown_warning_option=yes 10562else case e in #( 10563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10564esac 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10567esac 10568fi 10569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10572 CFLAGS="$xorg_testset_save_CFLAGS" 10573fi 10574 10575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10578 fi 10579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10583then : 10584 printf %s "(cached) " >&6 10585else case e in #( 10586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10587/* end confdefs.h. */ 10588int i; 10589_ACEOF 10590if ac_fn_c_try_compile "$LINENO" 10591then : 10592 xorg_cv_cc_flag_unused_command_line_argument=yes 10593else case e in #( 10594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10595esac 10596fi 10597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10598esac 10599fi 10600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10603 CFLAGS="$xorg_testset_save_CFLAGS" 10604fi 10605 10606found="no" 10607 10608 if test $found = "no" ; then 10609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10611 fi 10612 10613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10615 fi 10616 10617 CFLAGS="$CFLAGS -Waddress" 10618 10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10620printf %s "checking if $CC supports -Waddress... " >&6; } 10621 cacheid=xorg_cv_cc_flag__Waddress 10622 if eval test \${$cacheid+y} 10623then : 10624 printf %s "(cached) " >&6 10625else case e in #( 10626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627/* end confdefs.h. */ 10628int i; 10629int 10630main (void) 10631{ 10632 10633 ; 10634 return 0; 10635} 10636_ACEOF 10637if ac_fn_c_try_link "$LINENO" 10638then : 10639 eval $cacheid=yes 10640else case e in #( 10641 e) eval $cacheid=no ;; 10642esac 10643fi 10644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10645 conftest$ac_exeext conftest.$ac_ext ;; 10646esac 10647fi 10648 10649 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 10652 eval supported=\$$cacheid 10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10654printf "%s\n" "$supported" >&6; } 10655 if test "$supported" = "yes" ; then 10656 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10657 found="yes" 10658 fi 10659 fi 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675xorg_testset_save_CFLAGS="$CFLAGS" 10676 10677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10681if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10682then : 10683 printf %s "(cached) " >&6 10684else case e in #( 10685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686/* end confdefs.h. */ 10687int i; 10688_ACEOF 10689if ac_fn_c_try_compile "$LINENO" 10690then : 10691 xorg_cv_cc_flag_unknown_warning_option=yes 10692else case e in #( 10693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10694esac 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10697esac 10698fi 10699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10702 CFLAGS="$xorg_testset_save_CFLAGS" 10703fi 10704 10705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10708 fi 10709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10713then : 10714 printf %s "(cached) " >&6 10715else case e in #( 10716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717/* end confdefs.h. */ 10718int i; 10719_ACEOF 10720if ac_fn_c_try_compile "$LINENO" 10721then : 10722 xorg_cv_cc_flag_unused_command_line_argument=yes 10723else case e in #( 10724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10725esac 10726fi 10727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10728esac 10729fi 10730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10733 CFLAGS="$xorg_testset_save_CFLAGS" 10734fi 10735 10736found="no" 10737 10738 if test $found = "no" ; then 10739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10741 fi 10742 10743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10745 fi 10746 10747 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10748 10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10750printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10751 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10752 if eval test \${$cacheid+y} 10753then : 10754 printf %s "(cached) " >&6 10755else case e in #( 10756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10757/* end confdefs.h. */ 10758int i; 10759int 10760main (void) 10761{ 10762 10763 ; 10764 return 0; 10765} 10766_ACEOF 10767if ac_fn_c_try_link "$LINENO" 10768then : 10769 eval $cacheid=yes 10770else case e in #( 10771 e) eval $cacheid=no ;; 10772esac 10773fi 10774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10775 conftest$ac_exeext conftest.$ac_ext ;; 10776esac 10777fi 10778 10779 10780 CFLAGS="$xorg_testset_save_CFLAGS" 10781 10782 eval supported=\$$cacheid 10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10784printf "%s\n" "$supported" >&6; } 10785 if test "$supported" = "yes" ; then 10786 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10787 found="yes" 10788 fi 10789 fi 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805xorg_testset_save_CFLAGS="$CFLAGS" 10806 10807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10812then : 10813 printf %s "(cached) " >&6 10814else case e in #( 10815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816/* end confdefs.h. */ 10817int i; 10818_ACEOF 10819if ac_fn_c_try_compile "$LINENO" 10820then : 10821 xorg_cv_cc_flag_unknown_warning_option=yes 10822else case e in #( 10823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10824esac 10825fi 10826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10827esac 10828fi 10829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10832 CFLAGS="$xorg_testset_save_CFLAGS" 10833fi 10834 10835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10838 fi 10839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10843then : 10844 printf %s "(cached) " >&6 10845else case e in #( 10846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10847/* end confdefs.h. */ 10848int i; 10849_ACEOF 10850if ac_fn_c_try_compile "$LINENO" 10851then : 10852 xorg_cv_cc_flag_unused_command_line_argument=yes 10853else case e in #( 10854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10855esac 10856fi 10857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10858esac 10859fi 10860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10863 CFLAGS="$xorg_testset_save_CFLAGS" 10864fi 10865 10866found="no" 10867 10868 if test $found = "no" ; then 10869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10871 fi 10872 10873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10875 fi 10876 10877 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10878 10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10880printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10881 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10882 if eval test \${$cacheid+y} 10883then : 10884 printf %s "(cached) " >&6 10885else case e in #( 10886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888int i; 10889int 10890main (void) 10891{ 10892 10893 ; 10894 return 0; 10895} 10896_ACEOF 10897if ac_fn_c_try_link "$LINENO" 10898then : 10899 eval $cacheid=yes 10900else case e in #( 10901 e) eval $cacheid=no ;; 10902esac 10903fi 10904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10905 conftest$ac_exeext conftest.$ac_ext ;; 10906esac 10907fi 10908 10909 10910 CFLAGS="$xorg_testset_save_CFLAGS" 10911 10912 eval supported=\$$cacheid 10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10914printf "%s\n" "$supported" >&6; } 10915 if test "$supported" = "yes" ; then 10916 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10917 found="yes" 10918 fi 10919 fi 10920 10921 10922fi 10923 10924 10925 10926 10927 10928 10929 10930 CWARNFLAGS="$BASE_CFLAGS" 10931 if test "x$GCC" = xyes ; then 10932 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10933 fi 10934 10935 10936 10937 10938 10939 10940 10941 10942# Check whether --enable-strict-compilation was given. 10943if test ${enable_strict_compilation+y} 10944then : 10945 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10946else case e in #( 10947 e) STRICT_COMPILE=no ;; 10948esac 10949fi 10950 10951 10952 10953 10954 10955 10956STRICT_CFLAGS="" 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970xorg_testset_save_CFLAGS="$CFLAGS" 10971 10972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10977then : 10978 printf %s "(cached) " >&6 10979else case e in #( 10980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10981/* end confdefs.h. */ 10982int i; 10983_ACEOF 10984if ac_fn_c_try_compile "$LINENO" 10985then : 10986 xorg_cv_cc_flag_unknown_warning_option=yes 10987else case e in #( 10988 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10989esac 10990fi 10991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10992esac 10993fi 10994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10997 CFLAGS="$xorg_testset_save_CFLAGS" 10998fi 10999 11000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11003 fi 11004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11007if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11008then : 11009 printf %s "(cached) " >&6 11010else case e in #( 11011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013int i; 11014_ACEOF 11015if ac_fn_c_try_compile "$LINENO" 11016then : 11017 xorg_cv_cc_flag_unused_command_line_argument=yes 11018else case e in #( 11019 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11020esac 11021fi 11022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11023esac 11024fi 11025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11028 CFLAGS="$xorg_testset_save_CFLAGS" 11029fi 11030 11031found="no" 11032 11033 if test $found = "no" ; then 11034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11036 fi 11037 11038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11040 fi 11041 11042 CFLAGS="$CFLAGS -pedantic" 11043 11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11045printf %s "checking if $CC supports -pedantic... " >&6; } 11046 cacheid=xorg_cv_cc_flag__pedantic 11047 if eval test \${$cacheid+y} 11048then : 11049 printf %s "(cached) " >&6 11050else case e in #( 11051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11052/* end confdefs.h. */ 11053int i; 11054int 11055main (void) 11056{ 11057 11058 ; 11059 return 0; 11060} 11061_ACEOF 11062if ac_fn_c_try_link "$LINENO" 11063then : 11064 eval $cacheid=yes 11065else case e in #( 11066 e) eval $cacheid=no ;; 11067esac 11068fi 11069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11070 conftest$ac_exeext conftest.$ac_ext ;; 11071esac 11072fi 11073 11074 11075 CFLAGS="$xorg_testset_save_CFLAGS" 11076 11077 eval supported=\$$cacheid 11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11079printf "%s\n" "$supported" >&6; } 11080 if test "$supported" = "yes" ; then 11081 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11082 found="yes" 11083 fi 11084 fi 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100xorg_testset_save_CFLAGS="$CFLAGS" 11101 11102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11106if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11107then : 11108 printf %s "(cached) " >&6 11109else case e in #( 11110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11111/* end confdefs.h. */ 11112int i; 11113_ACEOF 11114if ac_fn_c_try_compile "$LINENO" 11115then : 11116 xorg_cv_cc_flag_unknown_warning_option=yes 11117else case e in #( 11118 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11119esac 11120fi 11121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11122esac 11123fi 11124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11127 CFLAGS="$xorg_testset_save_CFLAGS" 11128fi 11129 11130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11133 fi 11134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11138then : 11139 printf %s "(cached) " >&6 11140else case e in #( 11141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11142/* end confdefs.h. */ 11143int i; 11144_ACEOF 11145if ac_fn_c_try_compile "$LINENO" 11146then : 11147 xorg_cv_cc_flag_unused_command_line_argument=yes 11148else case e in #( 11149 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11150esac 11151fi 11152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11153esac 11154fi 11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11158 CFLAGS="$xorg_testset_save_CFLAGS" 11159fi 11160 11161found="no" 11162 11163 if test $found = "no" ; then 11164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11166 fi 11167 11168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11170 fi 11171 11172 CFLAGS="$CFLAGS -Werror" 11173 11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11175printf %s "checking if $CC supports -Werror... " >&6; } 11176 cacheid=xorg_cv_cc_flag__Werror 11177 if eval test \${$cacheid+y} 11178then : 11179 printf %s "(cached) " >&6 11180else case e in #( 11181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11182/* end confdefs.h. */ 11183int i; 11184int 11185main (void) 11186{ 11187 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO" 11193then : 11194 eval $cacheid=yes 11195else case e in #( 11196 e) eval $cacheid=no ;; 11197esac 11198fi 11199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11200 conftest$ac_exeext conftest.$ac_ext ;; 11201esac 11202fi 11203 11204 11205 CFLAGS="$xorg_testset_save_CFLAGS" 11206 11207 eval supported=\$$cacheid 11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11209printf "%s\n" "$supported" >&6; } 11210 if test "$supported" = "yes" ; then 11211 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11212 found="yes" 11213 fi 11214 fi 11215 11216 if test $found = "no" ; then 11217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11219 fi 11220 11221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11223 fi 11224 11225 CFLAGS="$CFLAGS -errwarn" 11226 11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11228printf %s "checking if $CC supports -errwarn... " >&6; } 11229 cacheid=xorg_cv_cc_flag__errwarn 11230 if eval test \${$cacheid+y} 11231then : 11232 printf %s "(cached) " >&6 11233else case e in #( 11234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11235/* end confdefs.h. */ 11236int i; 11237int 11238main (void) 11239{ 11240 11241 ; 11242 return 0; 11243} 11244_ACEOF 11245if ac_fn_c_try_link "$LINENO" 11246then : 11247 eval $cacheid=yes 11248else case e in #( 11249 e) eval $cacheid=no ;; 11250esac 11251fi 11252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11253 conftest$ac_exeext conftest.$ac_ext ;; 11254esac 11255fi 11256 11257 11258 CFLAGS="$xorg_testset_save_CFLAGS" 11259 11260 eval supported=\$$cacheid 11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11262printf "%s\n" "$supported" >&6; } 11263 if test "$supported" = "yes" ; then 11264 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11265 found="yes" 11266 fi 11267 fi 11268 11269 11270 11271# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11272# activate it with -Werror, so we add it here explicitly. 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286xorg_testset_save_CFLAGS="$CFLAGS" 11287 11288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11291printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11292if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11293then : 11294 printf %s "(cached) " >&6 11295else case e in #( 11296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11297/* end confdefs.h. */ 11298int i; 11299_ACEOF 11300if ac_fn_c_try_compile "$LINENO" 11301then : 11302 xorg_cv_cc_flag_unknown_warning_option=yes 11303else case e in #( 11304 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11305esac 11306fi 11307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11308esac 11309fi 11310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11313 CFLAGS="$xorg_testset_save_CFLAGS" 11314fi 11315 11316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11319 fi 11320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11323if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11324then : 11325 printf %s "(cached) " >&6 11326else case e in #( 11327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329int i; 11330_ACEOF 11331if ac_fn_c_try_compile "$LINENO" 11332then : 11333 xorg_cv_cc_flag_unused_command_line_argument=yes 11334else case e in #( 11335 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11336esac 11337fi 11338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11339esac 11340fi 11341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11344 CFLAGS="$xorg_testset_save_CFLAGS" 11345fi 11346 11347found="no" 11348 11349 if test $found = "no" ; then 11350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11352 fi 11353 11354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11356 fi 11357 11358 CFLAGS="$CFLAGS -Werror=attributes" 11359 11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11361printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11362 cacheid=xorg_cv_cc_flag__Werror_attributes 11363 if eval test \${$cacheid+y} 11364then : 11365 printf %s "(cached) " >&6 11366else case e in #( 11367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369int i; 11370int 11371main (void) 11372{ 11373 11374 ; 11375 return 0; 11376} 11377_ACEOF 11378if ac_fn_c_try_link "$LINENO" 11379then : 11380 eval $cacheid=yes 11381else case e in #( 11382 e) eval $cacheid=no ;; 11383esac 11384fi 11385rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11386 conftest$ac_exeext conftest.$ac_ext ;; 11387esac 11388fi 11389 11390 11391 CFLAGS="$xorg_testset_save_CFLAGS" 11392 11393 eval supported=\$$cacheid 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11395printf "%s\n" "$supported" >&6; } 11396 if test "$supported" = "yes" ; then 11397 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11398 found="yes" 11399 fi 11400 fi 11401 11402 11403 11404if test "x$STRICT_COMPILE" = "xyes"; then 11405 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11406 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11407fi 11408 11409 11410 11411 11412 11413 11414 11415 11416cat >>confdefs.h <<_ACEOF 11417#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11418_ACEOF 11419 11420 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11421 if test "x$PVM" = "x"; then 11422 PVM="0" 11423 fi 11424 11425printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11426 11427 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11428 if test "x$PVP" = "x"; then 11429 PVP="0" 11430 fi 11431 11432printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11433 11434 11435 11436CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11437mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11438|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11439touch \$(top_srcdir)/ChangeLog; \ 11440echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11441 11442 11443 11444 11445macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11446INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11447mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11448|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11449touch \$(top_srcdir)/INSTALL; \ 11450echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11451 11452 11453 11454 11455 11456 11457case $host_os in 11458 solaris*) 11459 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11460 # check for a man page file found in later versions that use 11461 # traditional section numbers instead 11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11463printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11464if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11465then : 11466 printf %s "(cached) " >&6 11467else case e in #( 11468 e) test "$cross_compiling" = yes && 11469 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11470if test -r "/usr/share/man/man7/attributes.7"; then 11471 ac_cv_file__usr_share_man_man7_attributes_7=yes 11472else 11473 ac_cv_file__usr_share_man_man7_attributes_7=no 11474fi ;; 11475esac 11476fi 11477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11478printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11479if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11480then : 11481 SYSV_MAN_SECTIONS=false 11482else case e in #( 11483 e) SYSV_MAN_SECTIONS=true ;; 11484esac 11485fi 11486 11487 ;; 11488 *) SYSV_MAN_SECTIONS=false ;; 11489esac 11490 11491if test x$APP_MAN_SUFFIX = x ; then 11492 APP_MAN_SUFFIX=1 11493fi 11494if test x$APP_MAN_DIR = x ; then 11495 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11496fi 11497 11498if test x$LIB_MAN_SUFFIX = x ; then 11499 LIB_MAN_SUFFIX=3 11500fi 11501if test x$LIB_MAN_DIR = x ; then 11502 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11503fi 11504 11505if test x$FILE_MAN_SUFFIX = x ; then 11506 case $SYSV_MAN_SECTIONS in 11507 true) FILE_MAN_SUFFIX=4 ;; 11508 *) FILE_MAN_SUFFIX=5 ;; 11509 esac 11510fi 11511if test x$FILE_MAN_DIR = x ; then 11512 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11513fi 11514 11515if test x$MISC_MAN_SUFFIX = x ; then 11516 case $SYSV_MAN_SECTIONS in 11517 true) MISC_MAN_SUFFIX=5 ;; 11518 *) MISC_MAN_SUFFIX=7 ;; 11519 esac 11520fi 11521if test x$MISC_MAN_DIR = x ; then 11522 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11523fi 11524 11525if test x$DRIVER_MAN_SUFFIX = x ; then 11526 case $SYSV_MAN_SECTIONS in 11527 true) DRIVER_MAN_SUFFIX=7 ;; 11528 *) DRIVER_MAN_SUFFIX=4 ;; 11529 esac 11530fi 11531if test x$DRIVER_MAN_DIR = x ; then 11532 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11533fi 11534 11535if test x$ADMIN_MAN_SUFFIX = x ; then 11536 case $SYSV_MAN_SECTIONS in 11537 true) ADMIN_MAN_SUFFIX=1m ;; 11538 *) ADMIN_MAN_SUFFIX=8 ;; 11539 esac 11540fi 11541if test x$ADMIN_MAN_DIR = x ; then 11542 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11543fi 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559XORG_MAN_PAGE="X Version 11" 11560 11561MAN_SUBSTS="\ 11562 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11563 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11564 -e 's|__xservername__|Xorg|g' \ 11565 -e 's|__xconfigfile__|xorg.conf|g' \ 11566 -e 's|__projectroot__|\$(prefix)|g' \ 11567 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11568 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11569 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11570 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11571 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11572 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11573 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11574 11575 11576 11577 11578AM_DEFAULT_VERBOSITY=0 11579 11580 11581 11582 11583# Check whether --enable-docs was given. 11584if test ${enable_docs+y} 11585then : 11586 enableval=$enable_docs; build_docs=$enableval 11587else case e in #( 11588 e) build_docs=yes ;; 11589esac 11590fi 11591 11592 11593 if test x$build_docs = xyes; then 11594 ENABLE_DOCS_TRUE= 11595 ENABLE_DOCS_FALSE='#' 11596else 11597 ENABLE_DOCS_TRUE='#' 11598 ENABLE_DOCS_FALSE= 11599fi 11600 11601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 11602printf %s "checking whether to build documentation... " >&6; } 11603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 11604printf "%s\n" "$build_docs" >&6; } 11605 11606 11607 11608 11609 11610# Check whether --with-xmlto was given. 11611if test ${with_xmlto+y} 11612then : 11613 withval=$with_xmlto; use_xmlto=$withval 11614else case e in #( 11615 e) use_xmlto=auto ;; 11616esac 11617fi 11618 11619 11620 11621if test "x$use_xmlto" = x"auto"; then 11622 # Extract the first word of "xmlto", so it can be a program name with args. 11623set dummy xmlto; ac_word=$2 11624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11625printf %s "checking for $ac_word... " >&6; } 11626if test ${ac_cv_path_XMLTO+y} 11627then : 11628 printf %s "(cached) " >&6 11629else case e in #( 11630 e) case $XMLTO in 11631 [\\/]* | ?:[\\/]*) 11632 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11633 ;; 11634 *) 11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11636for as_dir in $PATH 11637do 11638 IFS=$as_save_IFS 11639 case $as_dir in #((( 11640 '') as_dir=./ ;; 11641 */) ;; 11642 *) as_dir=$as_dir/ ;; 11643 esac 11644 for ac_exec_ext in '' $ac_executable_extensions; do 11645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11646 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11648 break 2 11649 fi 11650done 11651 done 11652IFS=$as_save_IFS 11653 11654 ;; 11655esac ;; 11656esac 11657fi 11658XMLTO=$ac_cv_path_XMLTO 11659if test -n "$XMLTO"; then 11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11661printf "%s\n" "$XMLTO" >&6; } 11662else 11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11664printf "%s\n" "no" >&6; } 11665fi 11666 11667 11668 if test "x$XMLTO" = "x"; then 11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11670printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11671 have_xmlto=no 11672 else 11673 have_xmlto=yes 11674 fi 11675elif test "x$use_xmlto" = x"yes" ; then 11676 # Extract the first word of "xmlto", so it can be a program name with args. 11677set dummy xmlto; ac_word=$2 11678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11679printf %s "checking for $ac_word... " >&6; } 11680if test ${ac_cv_path_XMLTO+y} 11681then : 11682 printf %s "(cached) " >&6 11683else case e in #( 11684 e) case $XMLTO in 11685 [\\/]* | ?:[\\/]*) 11686 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11687 ;; 11688 *) 11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11690for as_dir in $PATH 11691do 11692 IFS=$as_save_IFS 11693 case $as_dir in #((( 11694 '') as_dir=./ ;; 11695 */) ;; 11696 *) as_dir=$as_dir/ ;; 11697 esac 11698 for ac_exec_ext in '' $ac_executable_extensions; do 11699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11700 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11702 break 2 11703 fi 11704done 11705 done 11706IFS=$as_save_IFS 11707 11708 ;; 11709esac ;; 11710esac 11711fi 11712XMLTO=$ac_cv_path_XMLTO 11713if test -n "$XMLTO"; then 11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11715printf "%s\n" "$XMLTO" >&6; } 11716else 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11718printf "%s\n" "no" >&6; } 11719fi 11720 11721 11722 if test "x$XMLTO" = "x"; then 11723 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11724 fi 11725 have_xmlto=yes 11726elif test "x$use_xmlto" = x"no" ; then 11727 if test "x$XMLTO" != "x"; then 11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11729printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11730 fi 11731 have_xmlto=no 11732else 11733 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11734fi 11735 11736# Test for a minimum version of xmlto, if provided. 11737if test "$have_xmlto" = yes; then 11738 # scrape the xmlto version 11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11740printf %s "checking the xmlto version... " >&6; } 11741 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11743printf "%s\n" "$xmlto_version" >&6; } 11744 as_arg_v1=$xmlto_version 11745as_arg_v2=0.0.22 11746awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11747case $? in #( 11748 1) : 11749 if test "x$use_xmlto" = xauto; then 11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 11751printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 11752 have_xmlto=no 11753 else 11754 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 11755 fi ;; #( 11756 0) : 11757 ;; #( 11758 2) : 11759 ;; #( 11760 *) : 11761 ;; 11762esac 11763fi 11764 11765# Test for the ability of xmlto to generate a text target 11766# 11767# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11768# following test for empty XML docbook files. 11769# For compatibility reasons use the following empty XML docbook file and if 11770# it fails try it again with a non-empty XML file. 11771have_xmlto_text=no 11772cat > conftest.xml << "EOF" 11773EOF 11774if test "$have_xmlto" = yes 11775then : 11776 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11777then : 11778 have_xmlto_text=yes 11779else case e in #( 11780 e) # Try it again with a non-empty XML file. 11781 cat > conftest.xml << "EOF" 11782<x></x> 11783EOF 11784 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11785then : 11786 have_xmlto_text=yes 11787else case e in #( 11788 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11789printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 11790esac 11791fi ;; 11792esac 11793fi 11794fi 11795rm -f conftest.xml 11796 if test $have_xmlto_text = yes; then 11797 HAVE_XMLTO_TEXT_TRUE= 11798 HAVE_XMLTO_TEXT_FALSE='#' 11799else 11800 HAVE_XMLTO_TEXT_TRUE='#' 11801 HAVE_XMLTO_TEXT_FALSE= 11802fi 11803 11804 if test "$have_xmlto" = yes; then 11805 HAVE_XMLTO_TRUE= 11806 HAVE_XMLTO_FALSE='#' 11807else 11808 HAVE_XMLTO_TRUE='#' 11809 HAVE_XMLTO_FALSE= 11810fi 11811 11812 11813 11814 11815 11816 11817# Check whether --with-fop was given. 11818if test ${with_fop+y} 11819then : 11820 withval=$with_fop; use_fop=$withval 11821else case e in #( 11822 e) use_fop=auto ;; 11823esac 11824fi 11825 11826 11827 11828if test "x$use_fop" = x"auto"; then 11829 # Extract the first word of "fop", so it can be a program name with args. 11830set dummy fop; ac_word=$2 11831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11832printf %s "checking for $ac_word... " >&6; } 11833if test ${ac_cv_path_FOP+y} 11834then : 11835 printf %s "(cached) " >&6 11836else case e in #( 11837 e) case $FOP in 11838 [\\/]* | ?:[\\/]*) 11839 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11840 ;; 11841 *) 11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11843for as_dir in $PATH 11844do 11845 IFS=$as_save_IFS 11846 case $as_dir in #((( 11847 '') as_dir=./ ;; 11848 */) ;; 11849 *) as_dir=$as_dir/ ;; 11850 esac 11851 for ac_exec_ext in '' $ac_executable_extensions; do 11852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11853 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11855 break 2 11856 fi 11857done 11858 done 11859IFS=$as_save_IFS 11860 11861 ;; 11862esac ;; 11863esac 11864fi 11865FOP=$ac_cv_path_FOP 11866if test -n "$FOP"; then 11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11868printf "%s\n" "$FOP" >&6; } 11869else 11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11871printf "%s\n" "no" >&6; } 11872fi 11873 11874 11875 if test "x$FOP" = "x"; then 11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 11877printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 11878 have_fop=no 11879 else 11880 have_fop=yes 11881 fi 11882elif test "x$use_fop" = x"yes" ; then 11883 # Extract the first word of "fop", so it can be a program name with args. 11884set dummy fop; ac_word=$2 11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11886printf %s "checking for $ac_word... " >&6; } 11887if test ${ac_cv_path_FOP+y} 11888then : 11889 printf %s "(cached) " >&6 11890else case e in #( 11891 e) case $FOP in 11892 [\\/]* | ?:[\\/]*) 11893 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11894 ;; 11895 *) 11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11897for as_dir in $PATH 11898do 11899 IFS=$as_save_IFS 11900 case $as_dir in #((( 11901 '') as_dir=./ ;; 11902 */) ;; 11903 *) as_dir=$as_dir/ ;; 11904 esac 11905 for ac_exec_ext in '' $ac_executable_extensions; do 11906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11907 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11909 break 2 11910 fi 11911done 11912 done 11913IFS=$as_save_IFS 11914 11915 ;; 11916esac ;; 11917esac 11918fi 11919FOP=$ac_cv_path_FOP 11920if test -n "$FOP"; then 11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11922printf "%s\n" "$FOP" >&6; } 11923else 11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11925printf "%s\n" "no" >&6; } 11926fi 11927 11928 11929 if test "x$FOP" = "x"; then 11930 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 11931 fi 11932 have_fop=yes 11933elif test "x$use_fop" = x"no" ; then 11934 if test "x$FOP" != "x"; then 11935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 11936printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 11937 fi 11938 have_fop=no 11939else 11940 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 11941fi 11942 11943# Test for a minimum version of fop, if provided. 11944 11945 if test "$have_fop" = yes; then 11946 HAVE_FOP_TRUE= 11947 HAVE_FOP_FALSE='#' 11948else 11949 HAVE_FOP_TRUE='#' 11950 HAVE_FOP_FALSE= 11951fi 11952 11953 11954 11955 11956# Preserves the interface, should it be implemented later 11957 11958 11959 11960# Check whether --with-xsltproc was given. 11961if test ${with_xsltproc+y} 11962then : 11963 withval=$with_xsltproc; use_xsltproc=$withval 11964else case e in #( 11965 e) use_xsltproc=auto ;; 11966esac 11967fi 11968 11969 11970 11971if test "x$use_xsltproc" = x"auto"; then 11972 # Extract the first word of "xsltproc", so it can be a program name with args. 11973set dummy xsltproc; ac_word=$2 11974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11975printf %s "checking for $ac_word... " >&6; } 11976if test ${ac_cv_path_XSLTPROC+y} 11977then : 11978 printf %s "(cached) " >&6 11979else case e in #( 11980 e) case $XSLTPROC in 11981 [\\/]* | ?:[\\/]*) 11982 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11983 ;; 11984 *) 11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11986for as_dir in $PATH 11987do 11988 IFS=$as_save_IFS 11989 case $as_dir in #((( 11990 '') as_dir=./ ;; 11991 */) ;; 11992 *) as_dir=$as_dir/ ;; 11993 esac 11994 for ac_exec_ext in '' $ac_executable_extensions; do 11995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11996 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 11997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11998 break 2 11999 fi 12000done 12001 done 12002IFS=$as_save_IFS 12003 12004 ;; 12005esac ;; 12006esac 12007fi 12008XSLTPROC=$ac_cv_path_XSLTPROC 12009if test -n "$XSLTPROC"; then 12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12011printf "%s\n" "$XSLTPROC" >&6; } 12012else 12013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12014printf "%s\n" "no" >&6; } 12015fi 12016 12017 12018 if test "x$XSLTPROC" = "x"; then 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12020printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12021 have_xsltproc=no 12022 else 12023 have_xsltproc=yes 12024 fi 12025elif test "x$use_xsltproc" = x"yes" ; then 12026 # Extract the first word of "xsltproc", so it can be a program name with args. 12027set dummy xsltproc; ac_word=$2 12028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12029printf %s "checking for $ac_word... " >&6; } 12030if test ${ac_cv_path_XSLTPROC+y} 12031then : 12032 printf %s "(cached) " >&6 12033else case e in #( 12034 e) case $XSLTPROC in 12035 [\\/]* | ?:[\\/]*) 12036 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12037 ;; 12038 *) 12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12040for as_dir in $PATH 12041do 12042 IFS=$as_save_IFS 12043 case $as_dir in #((( 12044 '') as_dir=./ ;; 12045 */) ;; 12046 *) as_dir=$as_dir/ ;; 12047 esac 12048 for ac_exec_ext in '' $ac_executable_extensions; do 12049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12050 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 12051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12052 break 2 12053 fi 12054done 12055 done 12056IFS=$as_save_IFS 12057 12058 ;; 12059esac ;; 12060esac 12061fi 12062XSLTPROC=$ac_cv_path_XSLTPROC 12063if test -n "$XSLTPROC"; then 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12065printf "%s\n" "$XSLTPROC" >&6; } 12066else 12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12068printf "%s\n" "no" >&6; } 12069fi 12070 12071 12072 if test "x$XSLTPROC" = "x"; then 12073 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12074 fi 12075 have_xsltproc=yes 12076elif test "x$use_xsltproc" = x"no" ; then 12077 if test "x$XSLTPROC" != "x"; then 12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12079printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12080 fi 12081 have_xsltproc=no 12082else 12083 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12084fi 12085 12086 if test "$have_xsltproc" = yes; then 12087 HAVE_XSLTPROC_TRUE= 12088 HAVE_XSLTPROC_FALSE='#' 12089else 12090 HAVE_XSLTPROC_TRUE='#' 12091 HAVE_XSLTPROC_FALSE= 12092fi 12093 12094 12095 12096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12097printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 12098XORG_SGML_PATH= 12099if test -n "$PKG_CONFIG" && \ 12100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12101 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12102 ac_status=$? 12103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12104 test $ac_status = 0; }; then 12105 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12106else 12107 : 12108 12109fi 12110 12111# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12112# the path and the name of the doc stylesheet 12113if test "x$XORG_SGML_PATH" != "x" ; then 12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12115printf "%s\n" "$XORG_SGML_PATH" >&6; } 12116 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12117 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12118else 12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12120printf "%s\n" "no" >&6; } 12121fi 12122 12123 12124 12125 12126 if test "x$XSL_STYLESHEET" != "x"; then 12127 HAVE_STYLESHEETS_TRUE= 12128 HAVE_STYLESHEETS_FALSE='#' 12129else 12130 HAVE_STYLESHEETS_TRUE='#' 12131 HAVE_STYLESHEETS_FALSE= 12132fi 12133 12134 12135 12136# Because xtrans is included into other modules rather than being linked 12137# with, these defines have to be added to the cflags line 12138 12139# fchown() 12140 12141ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 12142if test "x$ac_cv_func_fchown" = xyes 12143then : 12144 fchown_define="-DHAS_FCHOWN" 12145else case e in #( 12146 e) fchown_define="" ;; 12147esac 12148fi 12149 12150 12151 12152 12153# sticky bit 12154# 12155# if any system exists without sticky dir bits this 12156# needs to be redone with a real autoconf test 12157 12158sticky_bit_define="-DHAS_STICKY_DIR_BIT" 12159 12160 12161 12162ac_config_files="$ac_config_files Makefile doc/Makefile xtrans.pc" 12163 12164cat >confcache <<\_ACEOF 12165# This file is a shell script that caches the results of configure 12166# tests run on this system so they can be shared between configure 12167# scripts and configure runs, see configure's option --config-cache. 12168# It is not useful on other systems. If it contains results you don't 12169# want to keep, you may remove or edit it. 12170# 12171# config.status only pays attention to the cache file if you give it 12172# the --recheck option to rerun configure. 12173# 12174# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12175# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12176# following values. 12177 12178_ACEOF 12179 12180# The following way of writing the cache mishandles newlines in values, 12181# but we know of no workaround that is simple, portable, and efficient. 12182# So, we kill variables containing newlines. 12183# Ultrix sh set writes to stderr and can't be redirected directly, 12184# and sets the high bit in the cache file unless we assign to the vars. 12185( 12186 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12187 eval ac_val=\$$ac_var 12188 case $ac_val in #( 12189 *${as_nl}*) 12190 case $ac_var in #( 12191 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12192printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12193 esac 12194 case $ac_var in #( 12195 _ | IFS | as_nl) ;; #( 12196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12197 *) { eval $ac_var=; unset $ac_var;} ;; 12198 esac ;; 12199 esac 12200 done 12201 12202 (set) 2>&1 | 12203 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12204 *${as_nl}ac_space=\ *) 12205 # 'set' does not quote correctly, so add quotes: double-quote 12206 # substitution turns \\\\ into \\, and sed turns \\ into \. 12207 sed -n \ 12208 "s/'/'\\\\''/g; 12209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12210 ;; #( 12211 *) 12212 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12214 ;; 12215 esac | 12216 sort 12217) | 12218 sed ' 12219 /^ac_cv_env_/b end 12220 t clear 12221 :clear 12222 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12223 t end 12224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12225 :end' >>confcache 12226if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12227 if test -w "$cache_file"; then 12228 if test "x$cache_file" != "x/dev/null"; then 12229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12230printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12231 if test ! -f "$cache_file" || test -h "$cache_file"; then 12232 cat confcache >"$cache_file" 12233 else 12234 case $cache_file in #( 12235 */* | ?:*) 12236 mv -f confcache "$cache_file"$$ && 12237 mv -f "$cache_file"$$ "$cache_file" ;; #( 12238 *) 12239 mv -f confcache "$cache_file" ;; 12240 esac 12241 fi 12242 fi 12243 else 12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12245printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12246 fi 12247fi 12248rm -f confcache 12249 12250test "x$prefix" = xNONE && prefix=$ac_default_prefix 12251# Let make expand exec_prefix. 12252test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12253 12254# Transform confdefs.h into DEFS. 12255# Protect against shell expansion while executing Makefile rules. 12256# Protect against Makefile macro expansion. 12257# 12258# If the first sed substitution is executed (which looks for macros that 12259# take arguments), then branch to the quote section. Otherwise, 12260# look for a macro that doesn't take arguments. 12261ac_script=' 12262:mline 12263/\\$/{ 12264 N 12265 s,\\\n,, 12266 b mline 12267} 12268t clear 12269:clear 12270s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12271t quote 12272s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12273t quote 12274b any 12275:quote 12276s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12277s/\$/$$/g 12278H 12279:any 12280${ 12281 g 12282 s/^\n// 12283 s/\n/ /g 12284 p 12285} 12286' 12287DEFS=`sed -n "$ac_script" confdefs.h` 12288 12289 12290ac_libobjs= 12291ac_ltlibobjs= 12292U= 12293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12294 # 1. Remove the extension, and $U if already installed. 12295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12296 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12298 # will be set to the directory where LIBOBJS objects are built. 12299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12301done 12302LIBOBJS=$ac_libobjs 12303 12304LTLIBOBJS=$ac_ltlibobjs 12305 12306 12307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12308printf %s "checking that generated files are newer than configure... " >&6; } 12309 if test -n "$am_sleep_pid"; then 12310 # Hide warnings about reused PIDs. 12311 wait $am_sleep_pid 2>/dev/null 12312 fi 12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12314printf "%s\n" "done" >&6; } 12315case $enable_silent_rules in # ((( 12316 yes) AM_DEFAULT_VERBOSITY=0;; 12317 no) AM_DEFAULT_VERBOSITY=1;; 12318esac 12319if test $am_cv_make_support_nested_variables = yes; then 12320 AM_V='$(V)' 12321 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12322else 12323 AM_V=$AM_DEFAULT_VERBOSITY 12324 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12325fi 12326 12327 if test -n "$EXEEXT"; then 12328 am__EXEEXT_TRUE= 12329 am__EXEEXT_FALSE='#' 12330else 12331 am__EXEEXT_TRUE='#' 12332 am__EXEEXT_FALSE= 12333fi 12334 12335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12336 as_fn_error $? "conditional \"AMDEP\" was never defined. 12337Usually this means the macro was only invoked conditionally." "$LINENO" 5 12338fi 12339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12340 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12341Usually this means the macro was only invoked conditionally." "$LINENO" 5 12342fi 12343if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 12344 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 12345Usually this means the macro was only invoked conditionally." "$LINENO" 5 12346fi 12347if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 12348 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 12349Usually this means the macro was only invoked conditionally." "$LINENO" 5 12350fi 12351if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 12352 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 12353Usually this means the macro was only invoked conditionally." "$LINENO" 5 12354fi 12355if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 12356 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 12357Usually this means the macro was only invoked conditionally." "$LINENO" 5 12358fi 12359if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 12360 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 12361Usually this means the macro was only invoked conditionally." "$LINENO" 5 12362fi 12363if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 12364 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 12365Usually this means the macro was only invoked conditionally." "$LINENO" 5 12366fi 12367 12368: "${CONFIG_STATUS=./config.status}" 12369ac_write_fail=0 12370ac_clean_files_save=$ac_clean_files 12371ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12373printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12374as_write_fail=0 12375cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12376#! $SHELL 12377# Generated by $as_me. 12378# Run this file to recreate the current configuration. 12379# Compiler output produced by configure, useful for debugging 12380# configure, is in config.log if it exists. 12381 12382debug=false 12383ac_cs_recheck=false 12384ac_cs_silent=false 12385 12386SHELL=\${CONFIG_SHELL-$SHELL} 12387export SHELL 12388_ASEOF 12389cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12390## -------------------- ## 12391## M4sh Initialization. ## 12392## -------------------- ## 12393 12394# Be more Bourne compatible 12395DUALCASE=1; export DUALCASE # for MKS sh 12396if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12397then : 12398 emulate sh 12399 NULLCMD=: 12400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12401 # is contrary to our usage. Disable this feature. 12402 alias -g '${1+"$@"}'='"$@"' 12403 setopt NO_GLOB_SUBST 12404else case e in #( 12405 e) case `(set -o) 2>/dev/null` in #( 12406 *posix*) : 12407 set -o posix ;; #( 12408 *) : 12409 ;; 12410esac ;; 12411esac 12412fi 12413 12414 12415 12416# Reset variables that may have inherited troublesome values from 12417# the environment. 12418 12419# IFS needs to be set, to space, tab, and newline, in precisely that order. 12420# (If _AS_PATH_WALK were called with IFS unset, it would have the 12421# side effect of setting IFS to empty, thus disabling word splitting.) 12422# Quoting is to prevent editors from complaining about space-tab. 12423as_nl=' 12424' 12425export as_nl 12426IFS=" "" $as_nl" 12427 12428PS1='$ ' 12429PS2='> ' 12430PS4='+ ' 12431 12432# Ensure predictable behavior from utilities with locale-dependent output. 12433LC_ALL=C 12434export LC_ALL 12435LANGUAGE=C 12436export LANGUAGE 12437 12438# We cannot yet rely on "unset" to work, but we need these variables 12439# to be unset--not just set to an empty or harmless value--now, to 12440# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12441# also avoids known problems related to "unset" and subshell syntax 12442# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12443for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12444do eval test \${$as_var+y} \ 12445 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12446done 12447 12448# Ensure that fds 0, 1, and 2 are open. 12449if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12450if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12451if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12452 12453# The user is always right. 12454if ${PATH_SEPARATOR+false} :; then 12455 PATH_SEPARATOR=: 12456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12458 PATH_SEPARATOR=';' 12459 } 12460fi 12461 12462 12463# Find who we are. Look in the path if we contain no directory separator. 12464as_myself= 12465case $0 in #(( 12466 *[\\/]* ) as_myself=$0 ;; 12467 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12468for as_dir in $PATH 12469do 12470 IFS=$as_save_IFS 12471 case $as_dir in #((( 12472 '') as_dir=./ ;; 12473 */) ;; 12474 *) as_dir=$as_dir/ ;; 12475 esac 12476 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12477 done 12478IFS=$as_save_IFS 12479 12480 ;; 12481esac 12482# We did not find ourselves, most probably we were run as 'sh COMMAND' 12483# in which case we are not to be found in the path. 12484if test "x$as_myself" = x; then 12485 as_myself=$0 12486fi 12487if test ! -f "$as_myself"; then 12488 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12489 exit 1 12490fi 12491 12492 12493 12494# as_fn_error STATUS ERROR [LINENO LOG_FD] 12495# ---------------------------------------- 12496# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12497# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12498# script with STATUS, using 1 if that was 0. 12499as_fn_error () 12500{ 12501 as_status=$1; test $as_status -eq 0 && as_status=1 12502 if test "$4"; then 12503 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12505 fi 12506 printf "%s\n" "$as_me: error: $2" >&2 12507 as_fn_exit $as_status 12508} # as_fn_error 12509 12510 12511# as_fn_set_status STATUS 12512# ----------------------- 12513# Set $? to STATUS, without forking. 12514as_fn_set_status () 12515{ 12516 return $1 12517} # as_fn_set_status 12518 12519# as_fn_exit STATUS 12520# ----------------- 12521# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12522as_fn_exit () 12523{ 12524 set +e 12525 as_fn_set_status $1 12526 exit $1 12527} # as_fn_exit 12528 12529# as_fn_unset VAR 12530# --------------- 12531# Portably unset VAR. 12532as_fn_unset () 12533{ 12534 { eval $1=; unset $1;} 12535} 12536as_unset=as_fn_unset 12537 12538# as_fn_append VAR VALUE 12539# ---------------------- 12540# Append the text in VALUE to the end of the definition contained in VAR. Take 12541# advantage of any shell optimizations that allow amortized linear growth over 12542# repeated appends, instead of the typical quadratic growth present in naive 12543# implementations. 12544if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12545then : 12546 eval 'as_fn_append () 12547 { 12548 eval $1+=\$2 12549 }' 12550else case e in #( 12551 e) as_fn_append () 12552 { 12553 eval $1=\$$1\$2 12554 } ;; 12555esac 12556fi # as_fn_append 12557 12558# as_fn_arith ARG... 12559# ------------------ 12560# Perform arithmetic evaluation on the ARGs, and store the result in the 12561# global $as_val. Take advantage of shells that can avoid forks. The arguments 12562# must be portable across $(()) and expr. 12563if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12564then : 12565 eval 'as_fn_arith () 12566 { 12567 as_val=$(( $* )) 12568 }' 12569else case e in #( 12570 e) as_fn_arith () 12571 { 12572 as_val=`expr "$@" || test $? -eq 1` 12573 } ;; 12574esac 12575fi # as_fn_arith 12576 12577 12578if expr a : '\(a\)' >/dev/null 2>&1 && 12579 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12580 as_expr=expr 12581else 12582 as_expr=false 12583fi 12584 12585if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12586 as_basename=basename 12587else 12588 as_basename=false 12589fi 12590 12591if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12592 as_dirname=dirname 12593else 12594 as_dirname=false 12595fi 12596 12597as_me=`$as_basename -- "$0" || 12598$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12599 X"$0" : 'X\(//\)$' \| \ 12600 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12601printf "%s\n" X/"$0" | 12602 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12603 s//\1/ 12604 q 12605 } 12606 /^X\/\(\/\/\)$/{ 12607 s//\1/ 12608 q 12609 } 12610 /^X\/\(\/\).*/{ 12611 s//\1/ 12612 q 12613 } 12614 s/.*/./; q'` 12615 12616# Avoid depending upon Character Ranges. 12617as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12619as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12620as_cr_digits='0123456789' 12621as_cr_alnum=$as_cr_Letters$as_cr_digits 12622 12623 12624# Determine whether it's possible to make 'echo' print without a newline. 12625# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12626# for compatibility with existing Makefiles. 12627ECHO_C= ECHO_N= ECHO_T= 12628case `echo -n x` in #((((( 12629-n*) 12630 case `echo 'xy\c'` in 12631 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12632 xy) ECHO_C='\c';; 12633 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12634 ECHO_T=' ';; 12635 esac;; 12636*) 12637 ECHO_N='-n';; 12638esac 12639 12640# For backward compatibility with old third-party macros, we provide 12641# the shell variables $as_echo and $as_echo_n. New code should use 12642# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12643as_echo='printf %s\n' 12644as_echo_n='printf %s' 12645 12646rm -f conf$$ conf$$.exe conf$$.file 12647if test -d conf$$.dir; then 12648 rm -f conf$$.dir/conf$$.file 12649else 12650 rm -f conf$$.dir 12651 mkdir conf$$.dir 2>/dev/null 12652fi 12653if (echo >conf$$.file) 2>/dev/null; then 12654 if ln -s conf$$.file conf$$ 2>/dev/null; then 12655 as_ln_s='ln -s' 12656 # ... but there are two gotchas: 12657 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12658 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12659 # In both cases, we have to default to 'cp -pR'. 12660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12661 as_ln_s='cp -pR' 12662 elif ln conf$$.file conf$$ 2>/dev/null; then 12663 as_ln_s=ln 12664 else 12665 as_ln_s='cp -pR' 12666 fi 12667else 12668 as_ln_s='cp -pR' 12669fi 12670rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12671rmdir conf$$.dir 2>/dev/null 12672 12673 12674# as_fn_mkdir_p 12675# ------------- 12676# Create "$as_dir" as a directory, including parents if necessary. 12677as_fn_mkdir_p () 12678{ 12679 12680 case $as_dir in #( 12681 -*) as_dir=./$as_dir;; 12682 esac 12683 test -d "$as_dir" || eval $as_mkdir_p || { 12684 as_dirs= 12685 while :; do 12686 case $as_dir in #( 12687 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12688 *) as_qdir=$as_dir;; 12689 esac 12690 as_dirs="'$as_qdir' $as_dirs" 12691 as_dir=`$as_dirname -- "$as_dir" || 12692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12693 X"$as_dir" : 'X\(//\)[^/]' \| \ 12694 X"$as_dir" : 'X\(//\)$' \| \ 12695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12696printf "%s\n" X"$as_dir" | 12697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12698 s//\1/ 12699 q 12700 } 12701 /^X\(\/\/\)[^/].*/{ 12702 s//\1/ 12703 q 12704 } 12705 /^X\(\/\/\)$/{ 12706 s//\1/ 12707 q 12708 } 12709 /^X\(\/\).*/{ 12710 s//\1/ 12711 q 12712 } 12713 s/.*/./; q'` 12714 test -d "$as_dir" && break 12715 done 12716 test -z "$as_dirs" || eval "mkdir $as_dirs" 12717 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12718 12719 12720} # as_fn_mkdir_p 12721if mkdir -p . 2>/dev/null; then 12722 as_mkdir_p='mkdir -p "$as_dir"' 12723else 12724 test -d ./-p && rmdir ./-p 12725 as_mkdir_p=false 12726fi 12727 12728 12729# as_fn_executable_p FILE 12730# ----------------------- 12731# Test if FILE is an executable regular file. 12732as_fn_executable_p () 12733{ 12734 test -f "$1" && test -x "$1" 12735} # as_fn_executable_p 12736as_test_x='test -x' 12737as_executable_p=as_fn_executable_p 12738 12739# Sed expression to map a string onto a valid CPP name. 12740as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12741as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12742 12743# Sed expression to map a string onto a valid variable name. 12744as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12745as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12746 12747 12748exec 6>&1 12749## ----------------------------------- ## 12750## Main body of $CONFIG_STATUS script. ## 12751## ----------------------------------- ## 12752_ASEOF 12753test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12754 12755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12756# Save the log message, to keep $0 and so on meaningful, and to 12757# report actual input values of CONFIG_FILES etc. instead of their 12758# values after options handling. 12759ac_log=" 12760This file was extended by xtrans $as_me 1.6.0, which was 12761generated by GNU Autoconf 2.72. Invocation command line was 12762 12763 CONFIG_FILES = $CONFIG_FILES 12764 CONFIG_HEADERS = $CONFIG_HEADERS 12765 CONFIG_LINKS = $CONFIG_LINKS 12766 CONFIG_COMMANDS = $CONFIG_COMMANDS 12767 $ $0 $@ 12768 12769on `(hostname || uname -n) 2>/dev/null | sed 1q` 12770" 12771 12772_ACEOF 12773 12774case $ac_config_files in *" 12775"*) set x $ac_config_files; shift; ac_config_files=$*;; 12776esac 12777 12778 12779 12780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12781# Files that config.status was made for. 12782config_files="$ac_config_files" 12783config_commands="$ac_config_commands" 12784 12785_ACEOF 12786 12787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12788ac_cs_usage="\ 12789'$as_me' instantiates files and other configuration actions 12790from templates according to the current configuration. Unless the files 12791and actions are specified as TAGs, all are instantiated by default. 12792 12793Usage: $0 [OPTION]... [TAG]... 12794 12795 -h, --help print this help, then exit 12796 -V, --version print version number and configuration settings, then exit 12797 --config print configuration, then exit 12798 -q, --quiet, --silent 12799 do not print progress messages 12800 -d, --debug don't remove temporary files 12801 --recheck update $as_me by reconfiguring in the same conditions 12802 --file=FILE[:TEMPLATE] 12803 instantiate the configuration file FILE 12804 12805Configuration files: 12806$config_files 12807 12808Configuration commands: 12809$config_commands 12810 12811Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues>." 12812 12813_ACEOF 12814ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12815ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12817ac_cs_config='$ac_cs_config_escaped' 12818ac_cs_version="\\ 12819xtrans config.status 1.6.0 12820configured by $0, generated by GNU Autoconf 2.72, 12821 with options \\"\$ac_cs_config\\" 12822 12823Copyright (C) 2023 Free Software Foundation, Inc. 12824This config.status script is free software; the Free Software Foundation 12825gives unlimited permission to copy, distribute and modify it." 12826 12827ac_pwd='$ac_pwd' 12828srcdir='$srcdir' 12829INSTALL='$INSTALL' 12830MKDIR_P='$MKDIR_P' 12831AWK='$AWK' 12832test -n "\$AWK" || AWK=awk 12833_ACEOF 12834 12835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12836# The default lists apply if the user does not specify any file. 12837ac_need_defaults=: 12838while test $# != 0 12839do 12840 case $1 in 12841 --*=?*) 12842 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12844 ac_shift=: 12845 ;; 12846 --*=) 12847 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12848 ac_optarg= 12849 ac_shift=: 12850 ;; 12851 *) 12852 ac_option=$1 12853 ac_optarg=$2 12854 ac_shift=shift 12855 ;; 12856 esac 12857 12858 case $ac_option in 12859 # Handling of the options. 12860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12861 ac_cs_recheck=: ;; 12862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12863 printf "%s\n" "$ac_cs_version"; exit ;; 12864 --config | --confi | --conf | --con | --co | --c ) 12865 printf "%s\n" "$ac_cs_config"; exit ;; 12866 --debug | --debu | --deb | --de | --d | -d ) 12867 debug=: ;; 12868 --file | --fil | --fi | --f ) 12869 $ac_shift 12870 case $ac_optarg in 12871 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12872 '') as_fn_error $? "missing file argument" ;; 12873 esac 12874 as_fn_append CONFIG_FILES " '$ac_optarg'" 12875 ac_need_defaults=false;; 12876 --he | --h | --help | --hel | -h ) 12877 printf "%s\n" "$ac_cs_usage"; exit ;; 12878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12879 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12880 ac_cs_silent=: ;; 12881 12882 # This is an error. 12883 -*) as_fn_error $? "unrecognized option: '$1' 12884Try '$0 --help' for more information." ;; 12885 12886 *) as_fn_append ac_config_targets " $1" 12887 ac_need_defaults=false ;; 12888 12889 esac 12890 shift 12891done 12892 12893ac_configure_extra_args= 12894 12895if $ac_cs_silent; then 12896 exec 6>/dev/null 12897 ac_configure_extra_args="$ac_configure_extra_args --silent" 12898fi 12899 12900_ACEOF 12901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12902if \$ac_cs_recheck; then 12903 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12904 shift 12905 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12906 CONFIG_SHELL='$SHELL' 12907 export CONFIG_SHELL 12908 exec "\$@" 12909fi 12910 12911_ACEOF 12912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12913exec 5>>config.log 12914{ 12915 echo 12916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12917## Running $as_me. ## 12918_ASBOX 12919 printf "%s\n" "$ac_log" 12920} >&5 12921 12922_ACEOF 12923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12924# 12925# INIT-COMMANDS 12926# 12927AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12928 12929_ACEOF 12930 12931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12932 12933# Handling of arguments. 12934for ac_config_target in $ac_config_targets 12935do 12936 case $ac_config_target in 12937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12939 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12940 "xtrans.pc") CONFIG_FILES="$CONFIG_FILES xtrans.pc" ;; 12941 12942 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12943 esac 12944done 12945 12946 12947# If the user did not use the arguments to specify the items to instantiate, 12948# then the envvar interface is used. Set only those that are not. 12949# We use the long form for the default assignment because of an extremely 12950# bizarre bug on SunOS 4.1.3. 12951if $ac_need_defaults; then 12952 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12953 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12954fi 12955 12956# Have a temporary directory for convenience. Make it in the build tree 12957# simply because there is no reason against having it here, and in addition, 12958# creating and moving files from /tmp can sometimes cause problems. 12959# Hook for its removal unless debugging. 12960# Note that there is a small window in which the directory will not be cleaned: 12961# after its creation but before its name has been assigned to '$tmp'. 12962$debug || 12963{ 12964 tmp= ac_tmp= 12965 trap 'exit_status=$? 12966 : "${ac_tmp:=$tmp}" 12967 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12968' 0 12969 trap 'as_fn_exit 1' 1 2 13 15 12970} 12971# Create a (secure) tmp directory for tmp files. 12972 12973{ 12974 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12975 test -d "$tmp" 12976} || 12977{ 12978 tmp=./conf$$-$RANDOM 12979 (umask 077 && mkdir "$tmp") 12980} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12981ac_tmp=$tmp 12982 12983# Set up the scripts for CONFIG_FILES section. 12984# No need to generate them if there are no CONFIG_FILES. 12985# This happens for instance with './config.status config.h'. 12986if test -n "$CONFIG_FILES"; then 12987 12988 12989ac_cr=`echo X | tr X '\015'` 12990# On cygwin, bash can eat \r inside `` if the user requested igncr. 12991# But we know of no other shell where ac_cr would be empty at this 12992# point, so we can use a bashism as a fallback. 12993if test "x$ac_cr" = x; then 12994 eval ac_cr=\$\'\\r\' 12995fi 12996ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12997if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12998 ac_cs_awk_cr='\\r' 12999else 13000 ac_cs_awk_cr=$ac_cr 13001fi 13002 13003echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13004_ACEOF 13005 13006 13007{ 13008 echo "cat >conf$$subs.awk <<_ACEOF" && 13009 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13010 echo "_ACEOF" 13011} >conf$$subs.sh || 13012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13013ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13014ac_delim='%!_!# ' 13015for ac_last_try in false false false false false :; do 13016 . ./conf$$subs.sh || 13017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13018 13019 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13020 if test $ac_delim_n = $ac_delim_num; then 13021 break 13022 elif $ac_last_try; then 13023 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13024 else 13025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13026 fi 13027done 13028rm -f conf$$subs.sh 13029 13030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13031cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13032_ACEOF 13033sed -n ' 13034h 13035s/^/S["/; s/!.*/"]=/ 13036p 13037g 13038s/^[^!]*!// 13039:repl 13040t repl 13041s/'"$ac_delim"'$// 13042t delim 13043:nl 13044h 13045s/\(.\{148\}\)..*/\1/ 13046t more1 13047s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13048p 13049n 13050b repl 13051:more1 13052s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13053p 13054g 13055s/.\{148\}// 13056t nl 13057:delim 13058h 13059s/\(.\{148\}\)..*/\1/ 13060t more2 13061s/["\\]/\\&/g; s/^/"/; s/$/"/ 13062p 13063b 13064:more2 13065s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13066p 13067g 13068s/.\{148\}// 13069t delim 13070' <conf$$subs.awk | sed ' 13071/^[^""]/{ 13072 N 13073 s/\n// 13074} 13075' >>$CONFIG_STATUS || ac_write_fail=1 13076rm -f conf$$subs.awk 13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13078_ACAWK 13079cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13080 for (key in S) S_is_set[key] = 1 13081 FS = "" 13082 13083} 13084{ 13085 line = $ 0 13086 nfields = split(line, field, "@") 13087 substed = 0 13088 len = length(field[1]) 13089 for (i = 2; i < nfields; i++) { 13090 key = field[i] 13091 keylen = length(key) 13092 if (S_is_set[key]) { 13093 value = S[key] 13094 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13095 len += length(value) + length(field[++i]) 13096 substed = 1 13097 } else 13098 len += 1 + keylen 13099 } 13100 13101 print line 13102} 13103 13104_ACAWK 13105_ACEOF 13106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13107if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13108 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13109else 13110 cat 13111fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13112 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13113_ACEOF 13114 13115# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13116# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13117# trailing colons and then remove the whole line if VPATH becomes empty 13118# (actually we leave an empty line to preserve line numbers). 13119if test "x$srcdir" = x.; then 13120 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13121h 13122s/// 13123s/^/:/ 13124s/[ ]*$/:/ 13125s/:\$(srcdir):/:/g 13126s/:\${srcdir}:/:/g 13127s/:@srcdir@:/:/g 13128s/^:*// 13129s/:*$// 13130x 13131s/\(=[ ]*\).*/\1/ 13132G 13133s/\n// 13134s/^[^=]*=[ ]*$// 13135}' 13136fi 13137 13138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13139fi # test -n "$CONFIG_FILES" 13140 13141 13142eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13143shift 13144for ac_tag 13145do 13146 case $ac_tag in 13147 :[FHLC]) ac_mode=$ac_tag; continue;; 13148 esac 13149 case $ac_mode$ac_tag in 13150 :[FHL]*:*);; 13151 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13152 :[FH]-) ac_tag=-:-;; 13153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13154 esac 13155 ac_save_IFS=$IFS 13156 IFS=: 13157 set x $ac_tag 13158 IFS=$ac_save_IFS 13159 shift 13160 ac_file=$1 13161 shift 13162 13163 case $ac_mode in 13164 :L) ac_source=$1;; 13165 :[FH]) 13166 ac_file_inputs= 13167 for ac_f 13168 do 13169 case $ac_f in 13170 -) ac_f="$ac_tmp/stdin";; 13171 *) # Look for the file first in the build tree, then in the source tree 13172 # (if the path is not absolute). The absolute path cannot be DOS-style, 13173 # because $ac_f cannot contain ':'. 13174 test -f "$ac_f" || 13175 case $ac_f in 13176 [\\/$]*) false;; 13177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13178 esac || 13179 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13180 esac 13181 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13182 as_fn_append ac_file_inputs " '$ac_f'" 13183 done 13184 13185 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13186 # use $as_me), people would be surprised to read: 13187 # /* config.h. Generated by config.status. */ 13188 configure_input='Generated from '` 13189 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13190 `' by configure.' 13191 if test x"$ac_file" != x-; then 13192 configure_input="$ac_file. $configure_input" 13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13194printf "%s\n" "$as_me: creating $ac_file" >&6;} 13195 fi 13196 # Neutralize special characters interpreted by sed in replacement strings. 13197 case $configure_input in #( 13198 *\&* | *\|* | *\\* ) 13199 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13200 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13201 *) ac_sed_conf_input=$configure_input;; 13202 esac 13203 13204 case $ac_tag in 13205 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13207 esac 13208 ;; 13209 esac 13210 13211 ac_dir=`$as_dirname -- "$ac_file" || 13212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13213 X"$ac_file" : 'X\(//\)[^/]' \| \ 13214 X"$ac_file" : 'X\(//\)$' \| \ 13215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13216printf "%s\n" X"$ac_file" | 13217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13218 s//\1/ 13219 q 13220 } 13221 /^X\(\/\/\)[^/].*/{ 13222 s//\1/ 13223 q 13224 } 13225 /^X\(\/\/\)$/{ 13226 s//\1/ 13227 q 13228 } 13229 /^X\(\/\).*/{ 13230 s//\1/ 13231 q 13232 } 13233 s/.*/./; q'` 13234 as_dir="$ac_dir"; as_fn_mkdir_p 13235 ac_builddir=. 13236 13237case "$ac_dir" in 13238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13239*) 13240 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13241 # A ".." for each directory in $ac_dir_suffix. 13242 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13243 case $ac_top_builddir_sub in 13244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13246 esac ;; 13247esac 13248ac_abs_top_builddir=$ac_pwd 13249ac_abs_builddir=$ac_pwd$ac_dir_suffix 13250# for backward compatibility: 13251ac_top_builddir=$ac_top_build_prefix 13252 13253case $srcdir in 13254 .) # We are building in place. 13255 ac_srcdir=. 13256 ac_top_srcdir=$ac_top_builddir_sub 13257 ac_abs_top_srcdir=$ac_pwd ;; 13258 [\\/]* | ?:[\\/]* ) # Absolute name. 13259 ac_srcdir=$srcdir$ac_dir_suffix; 13260 ac_top_srcdir=$srcdir 13261 ac_abs_top_srcdir=$srcdir ;; 13262 *) # Relative name. 13263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13264 ac_top_srcdir=$ac_top_build_prefix$srcdir 13265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13266esac 13267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13268 13269 13270 case $ac_mode in 13271 :F) 13272 # 13273 # CONFIG_FILE 13274 # 13275 13276 case $INSTALL in 13277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13279 esac 13280 ac_MKDIR_P=$MKDIR_P 13281 case $MKDIR_P in 13282 [\\/$]* | ?:[\\/]* ) ;; 13283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13284 esac 13285_ACEOF 13286 13287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13288# If the template does not know about datarootdir, expand it. 13289# FIXME: This hack should be removed a few years after 2.60. 13290ac_datarootdir_hack=; ac_datarootdir_seen= 13291ac_sed_dataroot=' 13292/datarootdir/ { 13293 p 13294 q 13295} 13296/@datadir@/p 13297/@docdir@/p 13298/@infodir@/p 13299/@localedir@/p 13300/@mandir@/p' 13301case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13302*datarootdir*) ac_datarootdir_seen=yes;; 13303*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13305printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13306_ACEOF 13307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13308 ac_datarootdir_hack=' 13309 s&@datadir@&$datadir&g 13310 s&@docdir@&$docdir&g 13311 s&@infodir@&$infodir&g 13312 s&@localedir@&$localedir&g 13313 s&@mandir@&$mandir&g 13314 s&\\\${datarootdir}&$datarootdir&g' ;; 13315esac 13316_ACEOF 13317 13318# Neutralize VPATH when '$srcdir' = '.'. 13319# Shell code in configure.ac might set extrasub. 13320# FIXME: do we really want to maintain this feature? 13321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13322ac_sed_extra="$ac_vpsub 13323$extrasub 13324_ACEOF 13325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13326:t 13327/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13328s|@configure_input@|$ac_sed_conf_input|;t t 13329s&@top_builddir@&$ac_top_builddir_sub&;t t 13330s&@top_build_prefix@&$ac_top_build_prefix&;t t 13331s&@srcdir@&$ac_srcdir&;t t 13332s&@abs_srcdir@&$ac_abs_srcdir&;t t 13333s&@top_srcdir@&$ac_top_srcdir&;t t 13334s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13335s&@builddir@&$ac_builddir&;t t 13336s&@abs_builddir@&$ac_abs_builddir&;t t 13337s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13338s&@INSTALL@&$ac_INSTALL&;t t 13339s&@MKDIR_P@&$ac_MKDIR_P&;t t 13340$ac_datarootdir_hack 13341" 13342eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13343 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13344 13345test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13348 "$ac_tmp/out"`; test -z "$ac_out"; } && 13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13350which seems to be undefined. Please make sure it is defined" >&5 13351printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13352which seems to be undefined. Please make sure it is defined" >&2;} 13353 13354 rm -f "$ac_tmp/stdin" 13355 case $ac_file in 13356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13358 esac \ 13359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13360 ;; 13361 13362 13363 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13364printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13365 ;; 13366 esac 13367 13368 13369 case $ac_file$ac_mode in 13370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13371 # Older Autoconf quotes --file arguments for eval, but not when files 13372 # are listed without --file. Let's play safe and only enable the eval 13373 # if we detect the quoting. 13374 # TODO: see whether this extra hack can be removed once we start 13375 # requiring Autoconf 2.70 or later. 13376 case $CONFIG_FILES in #( 13377 *\'*) : 13378 eval set x "$CONFIG_FILES" ;; #( 13379 *) : 13380 set x $CONFIG_FILES ;; #( 13381 *) : 13382 ;; 13383esac 13384 shift 13385 # Used to flag and report bootstrapping failures. 13386 am_rc=0 13387 for am_mf 13388 do 13389 # Strip MF so we end up with the name of the file. 13390 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13391 # Check whether this is an Automake generated Makefile which includes 13392 # dependency-tracking related rules and includes. 13393 # Grep'ing the whole file directly is not great: AIX grep has a line 13394 # limit of 2048, but all sed's we know have understand at least 4000. 13395 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13396 || continue 13397 am_dirpart=`$as_dirname -- "$am_mf" || 13398$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13399 X"$am_mf" : 'X\(//\)[^/]' \| \ 13400 X"$am_mf" : 'X\(//\)$' \| \ 13401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13402printf "%s\n" X"$am_mf" | 13403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13404 s//\1/ 13405 q 13406 } 13407 /^X\(\/\/\)[^/].*/{ 13408 s//\1/ 13409 q 13410 } 13411 /^X\(\/\/\)$/{ 13412 s//\1/ 13413 q 13414 } 13415 /^X\(\/\).*/{ 13416 s//\1/ 13417 q 13418 } 13419 s/.*/./; q'` 13420 am_filepart=`$as_basename -- "$am_mf" || 13421$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13422 X"$am_mf" : 'X\(//\)$' \| \ 13423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13424printf "%s\n" X/"$am_mf" | 13425 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13426 s//\1/ 13427 q 13428 } 13429 /^X\/\(\/\/\)$/{ 13430 s//\1/ 13431 q 13432 } 13433 /^X\/\(\/\).*/{ 13434 s//\1/ 13435 q 13436 } 13437 s/.*/./; q'` 13438 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13439 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13440 | $MAKE -f - am--depfiles" >&5 13441 (cd "$am_dirpart" \ 13442 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13443 | $MAKE -f - am--depfiles) >&5 2>&5 13444 ac_status=$? 13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13446 (exit $ac_status); } || am_rc=$? 13447 done 13448 if test $am_rc -ne 0; then 13449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13450printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13451as_fn_error $? "Something went wrong bootstrapping makefile fragments 13452 for automatic dependency tracking. If GNU make was not used, consider 13453 re-running the configure script with MAKE=\"gmake\" (or whatever is 13454 necessary). You can also try re-running configure with the 13455 '--disable-dependency-tracking' option to at least be able to build 13456 the package (albeit without support for automatic dependency tracking). 13457See 'config.log' for more details" "$LINENO" 5; } 13458 fi 13459 { am_dirpart=; unset am_dirpart;} 13460 { am_filepart=; unset am_filepart;} 13461 { am_mf=; unset am_mf;} 13462 { am_rc=; unset am_rc;} 13463 rm -f conftest-deps.mk 13464} 13465 ;; 13466 13467 esac 13468done # for ac_tag 13469 13470 13471as_fn_exit 0 13472_ACEOF 13473ac_clean_files=$ac_clean_files_save 13474 13475test $ac_write_fail = 0 || 13476 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13477 13478 13479# configure is writing to config.log, and then calls config.status. 13480# config.status does its own redirection, appending to config.log. 13481# Unfortunately, on DOS this fails, as config.log is still kept open 13482# by configure, so config.status won't be able to write to it; its 13483# output is simply discarded. So we exec the FD to /dev/null, 13484# effectively closing config.log, so it can be properly (re)opened and 13485# appended to by config.status. When coming back to configure, we 13486# need to make the FD available again. 13487if test "$no_create" != yes; then 13488 ac_cs_success=: 13489 ac_config_status_args= 13490 test "$silent" = yes && 13491 ac_config_status_args="$ac_config_status_args --quiet" 13492 exec 5>/dev/null 13493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13494 exec 5>>config.log 13495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13496 # would make configure fail if this is the last instruction. 13497 $ac_cs_success || as_fn_exit 1 13498fi 13499if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13501printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13502fi 13503 13504 13505