1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.73 for xlsfonts 1.0.9. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # contradicts POSIX and common usage. Disable this. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 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. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export 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). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${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 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if 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 114 fi 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. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 case $# in # (( 135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 137 esac 138 # Admittedly, this is quite paranoid, since all the known shells bail 139 # out after a failed 'exec'. 140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 141 exit 255 142 fi 143 # We don't want this to propagate to other subprocesses. 144 { _as_can_reexec=; unset _as_can_reexec;} 145 if test "x$CONFIG_SHELL" = x; then 146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 147 then : 148 emulate sh 149 NULLCMD=: 150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 151 # contradicts POSIX and common usage. Disable this. 152 alias -g '\${1+\"\$@\"}'='\"\$@\"' 153 setopt NO_GLOB_SUBST 154 else case e in #( 155 e) case \`(set -o) 2>/dev/null\` in #( 156 *posix*) : 157 set -o posix ;; #( 158 *) : 159 ;; 160 esac ;; 161 esac 162 fi 163 " 164 as_required="as_fn_return () { (exit \$1); } 165 as_fn_success () { as_fn_return 0; } 166 as_fn_failure () { as_fn_return 1; } 167 as_fn_ret_success () { return 0; } 168 as_fn_ret_failure () { return 1; } 169 170 exitcode=0 171 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 175 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 176 then : 177 178 else case e in #( 179 e) exitcode=1; echo positional parameters were not saved. ;; 180 esac 181 fi 182 test x\$exitcode = x0 || exit 1 183 blah=\$(echo \$(echo blah)) 184 test x\"\$blah\" = xblah || exit 1 185 test -x / || exit 1" 186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 190 test \$(( 1 + 1 )) = 2 || exit 1" 191 if (eval "$as_required") 2>/dev/null 192 then : 193 as_have_required=yes 194 else case e in #( 195 e) as_have_required=no ;; 196 esac 197 fi 198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 199 then : 200 201 else case e in #( 202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 203 as_found=false 204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 205 do 206 IFS=$as_save_IFS 207 case $as_dir in #((( 208 '') as_dir=./ ;; 209 */) ;; 210 *) as_dir=$as_dir/ ;; 211 esac 212 as_found=: 213 case $as_dir in #( 214 /*) 215 for as_base in sh bash ksh sh5; do 216 # Try only shells that exist, to save several forks. 217 as_shell=$as_dir$as_base 218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 220 then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 223 then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 IFS=$as_save_IFS 232 if $as_found 233 then : 234 235 else case e in #( 236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 238 then : 239 CONFIG_SHELL=$SHELL as_have_required=yes 240 fi ;; 241 esac 242 fi 243 244 245 if test "x$CONFIG_SHELL" != x 246 then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 case $# in # (( 262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 264 esac 265 # Admittedly, this is quite paranoid, since all the known shells bail 266 # out after a failed 'exec'. 267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 268 exit 255 269 fi 270 271 if test x$as_have_required = xno 272 then : 273 printf '%s\n' "$0: This script requires a shell more modern than all" 274 printf '%s\n' "$0: the shells that I found on your system." 275 if test ${ZSH_VERSION+y} ; then 276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and 280 $0: https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues 281 $0: about your system, including any error possibly output 282 $0: before this message. Then install a modern shell, or 283 $0: manually run the script under such a shell if you do 284 $0: have one." 285 fi 286 exit 1 287 fi ;; 288 esac 289 fi 290 fi 291 SHELL=${CONFIG_SHELL-/bin/sh} 292 export SHELL 293 # Unset more variables known to interfere with behavior of common tools. 294 CLICOLOR_FORCE= GREP_OPTIONS= 295 unset CLICOLOR_FORCE GREP_OPTIONS 296 297 ## --------------------- ## 298 ## M4sh Shell Functions. ## 299 ## --------------------- ## 300 # as_fn_unset VAR 301 # --------------- 302 # Portably unset VAR. 303 as_fn_unset () 304 { 305 { eval $1=; unset $1;} 306 } 307 as_unset=as_fn_unset 308 309 310 # as_fn_set_status STATUS 311 # ----------------------- 312 # Set $? to STATUS, without forking. 313 as_fn_set_status () 314 { 315 return $1 316 } # as_fn_set_status 317 318 # as_fn_exit STATUS 319 # ----------------- 320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 321 as_fn_exit () 322 { 323 set +e 324 as_fn_set_status $1 325 exit $1 326 } # as_fn_exit 327 328 # as_fn_mkdir_p 329 # ------------- 330 # Create "$as_dir" as a directory, including parents if necessary. 331 as_fn_mkdir_p () 332 { 333 334 case $as_dir in #( 335 -*) as_dir=./$as_dir;; 336 esac 337 test -d "$as_dir" || eval $as_mkdir_p || { 338 as_dirs= 339 while :; do 340 case $as_dir in #( 341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 342 *) as_qdir=$as_dir;; 343 esac 344 as_dirs="'$as_qdir' $as_dirs" 345 as_dir=`$as_dirname -- "$as_dir" || 346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 347 X"$as_dir" : 'X\(//\)[^/]' \| \ 348 X"$as_dir" : 'X\(//\)$' \| \ 349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 350 printf '%s\n' X"$as_dir" | 351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)[^/].*/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)$/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\).*/{ 364 s//\1/ 365 q 366 } 367 s/.*/./; q'` 368 test -d "$as_dir" && break 369 done 370 test -z "$as_dirs" || eval "mkdir $as_dirs" 371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 372 373 374 } # as_fn_mkdir_p 375 376 # as_fn_executable_p FILE 377 # ----------------------- 378 # Test if FILE is an executable regular file. 379 as_fn_executable_p () 380 { 381 test -f "$1" && test -x "$1" 382 } # as_fn_executable_p 383 # as_fn_append VAR VALUE 384 # ---------------------- 385 # Append the text in VALUE to the end of the definition contained in VAR. Take 386 # advantage of any shell optimizations that allow amortized linear growth over 387 # repeated appends, instead of the typical quadratic growth present in naive 388 # implementations. 389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 390 then : 391 eval 'as_fn_append () 392 { 393 eval $1+=\$2 394 }' 395 else case e in #( 396 e) as_fn_append () 397 { 398 eval $1=\$$1\$2 399 } ;; 400 esac 401 fi # as_fn_append 402 403 # as_fn_arith ARG... 404 # ------------------ 405 # Perform arithmetic evaluation on the ARGs, and store the result in the 406 # global $as_val. Take advantage of shells that can avoid forks. The arguments 407 # must be portable across $(()) and expr. 408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 409 then : 410 eval 'as_fn_arith () 411 { 412 as_val=$(( $* )) 413 }' 414 else case e in #( 415 e) as_fn_arith () 416 { 417 as_val=`expr "$@" || test $? -eq 1` 418 } ;; 419 esac 420 fi # as_fn_arith 421 422 423 # as_fn_error STATUS ERROR [LINENO LOG_FD] 424 # ---------------------------------------- 425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427 # script with STATUS, using 1 if that was 0. 428 as_fn_error () 429 { 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf '%s\n' "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437 } # as_fn_error 438 439 if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442 else 443 as_expr=false 444 fi 445 446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448 else 449 as_basename=false 450 fi 451 452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454 else 455 as_dirname=false 456 fi 457 458 as_me=`$as_basename -- "$0" || 459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462 printf '%s\n' X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477 # Avoid depending upon Character Ranges. 478 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481 as_cr_digits='0123456789' 482 as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 t clear 496 :clear 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520 } 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 535 # In both cases, we have to default to 'cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 562 563 # Sed expression to map a string onto a valid variable name. 564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 566 567 568 test -n "$DJDIR" || exec 7<&0 </dev/null 569 exec 6>&1 570 571 # Name of the host. 572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573 # so uname gets run too. 574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576 # 577 # Initializations. 578 # 579 ac_default_prefix=/usr/local 580 ac_clean_CONFIG_STATUS= 581 ac_clean_files= 582 ac_config_libobj_dir=. 583 LIBOBJS= 584 cross_compiling=no 585 subdirs= 586 MFLAGS= 587 MAKEFLAGS= 588 589 # Identity of this package. 590 PACKAGE_NAME='xlsfonts' 591 PACKAGE_TARNAME='xlsfonts' 592 PACKAGE_VERSION='1.0.9' 593 PACKAGE_STRING='xlsfonts 1.0.9' 594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues' 595 PACKAGE_URL='' 596 597 ac_unique_file="Makefile.am" 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stddef.h> 601 #ifdef HAVE_STDIO_H 602 # include <stdio.h> 603 #endif 604 #ifdef HAVE_STDLIB_H 605 # include <stdlib.h> 606 #endif 607 #ifdef HAVE_STRING_H 608 # include <string.h> 609 #endif 610 #ifdef HAVE_INTTYPES_H 611 # include <inttypes.h> 612 #endif 613 #ifdef HAVE_STDINT_H 614 # include <stdint.h> 615 #endif 616 #ifdef HAVE_STRINGS_H 617 # include <strings.h> 618 #endif 619 #ifdef HAVE_SYS_TYPES_H 620 # include <sys/types.h> 621 #endif 622 #ifdef HAVE_SYS_STAT_H 623 # include <sys/stat.h> 624 #endif 625 #ifdef HAVE_UNISTD_H 626 # include <unistd.h> 627 #endif" 628 629 ac_header_c_list= 630 ac_subst_vars='am__EXEEXT_FALSE 631 am__EXEEXT_TRUE 632 LTLIBOBJS 633 LIBOBJS 634 XLSFONTS_LIBS 635 XLSFONTS_CFLAGS 636 MAN_SUBSTS 637 XORG_MAN_PAGE 638 ADMIN_MAN_DIR 639 DRIVER_MAN_DIR 640 MISC_MAN_DIR 641 FILE_MAN_DIR 642 LIB_MAN_DIR 643 APP_MAN_DIR 644 ADMIN_MAN_SUFFIX 645 DRIVER_MAN_SUFFIX 646 MISC_MAN_SUFFIX 647 FILE_MAN_SUFFIX 648 LIB_MAN_SUFFIX 649 APP_MAN_SUFFIX 650 SED 651 host_os 652 host_vendor 653 host_cpu 654 host 655 build_os 656 build_vendor 657 build_cpu 658 build 659 INSTALL_CMD 660 PKG_CONFIG_LIBDIR 661 PKG_CONFIG_PATH 662 PKG_CONFIG 663 CHANGELOG_CMD 664 STRICT_CFLAGS 665 CWARNFLAGS 666 BASE_CFLAGS 667 am__xargs_n 668 am__rm_f_notfound 669 AM_BACKSLASH 670 AM_DEFAULT_VERBOSITY 671 AM_DEFAULT_V 672 AM_V 673 CSCOPE 674 ETAGS 675 CTAGS 676 am__fastdepCC_FALSE 677 am__fastdepCC_TRUE 678 CCDEPMODE 679 am__nodep 680 AMDEPBACKSLASH 681 AMDEP_FALSE 682 AMDEP_TRUE 683 am__include 684 DEPDIR 685 am__untar 686 am__tar 687 AMTAR 688 am__leading_dot 689 SET_MAKE 690 AWK 691 mkdir_p 692 MKDIR_P 693 INSTALL_STRIP_PROGRAM 694 STRIP 695 install_sh 696 MAKEINFO 697 AUTOHEADER 698 AUTOMAKE 699 AUTOCONF 700 ACLOCAL 701 VERSION 702 PACKAGE 703 CYGPATH_W 704 am__isrc 705 INSTALL_DATA 706 INSTALL_SCRIPT 707 INSTALL_PROGRAM 708 OBJEXT 709 EXEEXT 710 ac_ct_CC 711 CPPFLAGS 712 LDFLAGS 713 CFLAGS 714 CC 715 ECHO_T 716 ECHO_N 717 ECHO_C 718 target_alias 719 host_alias 720 build_alias 721 LIBS 722 DEFS 723 mandir 724 localedir 725 libdir 726 psdir 727 pdfdir 728 dvidir 729 htmldir 730 infodir 731 docdir 732 oldincludedir 733 includedir 734 runstatedir 735 localstatedir 736 sharedstatedir 737 sysconfdir 738 datadir 739 datarootdir 740 libexecdir 741 sbindir 742 bindir 743 program_transform_name 744 prefix 745 exec_prefix 746 PACKAGE_URL 747 PACKAGE_BUGREPORT 748 PACKAGE_STRING 749 PACKAGE_VERSION 750 PACKAGE_TARNAME 751 PACKAGE_NAME 752 PATH_SEPARATOR 753 SHELL 754 am__quote' 755 ac_subst_files='' 756 ac_user_opts=' 757 enable_option_checking 758 enable_dependency_tracking 759 enable_silent_rules 760 enable_selective_werror 761 enable_strict_compilation 762 ' 763 ac_precious_vars='build_alias 764 host_alias 765 target_alias 766 CC 767 CFLAGS 768 LDFLAGS 769 LIBS 770 CPPFLAGS 771 PKG_CONFIG 772 PKG_CONFIG_PATH 773 PKG_CONFIG_LIBDIR 774 XLSFONTS_CFLAGS 775 XLSFONTS_LIBS' 776 777 778 # Initialize some variables set by options. 779 ac_init_help= 780 ac_init_version=false 781 ac_unrecognized_opts= 782 ac_unrecognized_sep= 783 # The variables have the same names as the options, with 784 # dashes changed to underlines. 785 cache_file=/dev/null 786 exec_prefix=NONE 787 no_create= 788 no_recursion= 789 prefix=NONE 790 program_prefix=NONE 791 program_suffix=NONE 792 program_transform_name=s,x,x, 793 silent= 794 site= 795 srcdir= 796 verbose= 797 x_includes=NONE 798 x_libraries=NONE 799 800 # Installation directory options. 801 # These are left unexpanded so users can "make install exec_prefix=/foo" 802 # and all the variables that are supposed to be based on exec_prefix 803 # by default will actually change. 804 # Use braces instead of parens because sh, perl, etc. also accept them. 805 # (The list follows the same order as the GNU Coding Standards.) 806 bindir='${exec_prefix}/bin' 807 sbindir='${exec_prefix}/sbin' 808 libexecdir='${exec_prefix}/libexec' 809 datarootdir='${prefix}/share' 810 datadir='${datarootdir}' 811 sysconfdir='${prefix}/etc' 812 sharedstatedir='${prefix}/com' 813 localstatedir='${prefix}/var' 814 runstatedir='${localstatedir}/run' 815 includedir='${prefix}/include' 816 oldincludedir='/usr/include' 817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 818 infodir='${datarootdir}/info' 819 htmldir='${docdir}' 820 dvidir='${docdir}' 821 pdfdir='${docdir}' 822 psdir='${docdir}' 823 libdir='${exec_prefix}/lib' 824 localedir='${datarootdir}/locale' 825 mandir='${datarootdir}/man' 826 827 ac_prev= 828 ac_dashdash= 829 for ac_option 830 do 831 # If the previous option needs an argument, assign it. 832 if test -n "$ac_prev"; then 833 eval $ac_prev=\$ac_option 834 ac_prev= 835 continue 836 fi 837 838 case $ac_option in 839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 840 *=) ac_optarg= ;; 841 *) ac_optarg=yes ;; 842 esac 843 844 case $ac_dashdash$ac_option in 845 --) 846 ac_dashdash=yes ;; 847 848 -bindir | --bindir | --bindi | --bind | --bin | --bi) 849 ac_prev=bindir ;; 850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 851 bindir=$ac_optarg ;; 852 853 -build | --build | --buil | --bui | --bu) 854 ac_prev=build_alias ;; 855 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 856 build_alias=$ac_optarg ;; 857 858 -cache-file | --cache-file | --cache-fil | --cache-fi \ 859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 860 ac_prev=cache_file ;; 861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 863 cache_file=$ac_optarg ;; 864 865 --config-cache | -C) 866 cache_file=config.cache ;; 867 868 -datadir | --datadir | --datadi | --datad) 869 ac_prev=datadir ;; 870 -datadir=* | --datadir=* | --datadi=* | --datad=*) 871 datadir=$ac_optarg ;; 872 873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 874 | --dataroo | --dataro | --datar) 875 ac_prev=datarootdir ;; 876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 878 datarootdir=$ac_optarg ;; 879 880 -disable-* | --disable-*) 881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 882 # Reject names that are not valid shell variable names. 883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 884 as_fn_error $? "invalid feature name: '$ac_useropt'" 885 ac_useropt_orig=$ac_useropt 886 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 887 case $ac_user_opts in 888 *" 889 "enable_$ac_useropt" 890 "*) ;; 891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 892 ac_unrecognized_sep=', ';; 893 esac 894 eval enable_$ac_useropt=no ;; 895 896 -docdir | --docdir | --docdi | --doc | --do) 897 ac_prev=docdir ;; 898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 899 docdir=$ac_optarg ;; 900 901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 902 ac_prev=dvidir ;; 903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 904 dvidir=$ac_optarg ;; 905 906 -enable-* | --enable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: '$ac_useropt'" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915 "enable_$ac_useropt" 916 "*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=\$ac_optarg ;; 921 922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 924 | --exec | --exe | --ex) 925 ac_prev=exec_prefix ;; 926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 928 | --exec=* | --exe=* | --ex=*) 929 exec_prefix=$ac_optarg ;; 930 931 -gas | --gas | --ga | --g) 932 # Obsolete; use --with-gas. 933 with_gas=yes ;; 934 935 -help | --help | --hel | --he | -h) 936 ac_init_help=long ;; 937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 938 ac_init_help=recursive ;; 939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 940 ac_init_help=short ;; 941 942 -host | --host | --hos | --ho) 943 ac_prev=host_alias ;; 944 -host=* | --host=* | --hos=* | --ho=*) 945 host_alias=$ac_optarg ;; 946 947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 948 ac_prev=htmldir ;; 949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 950 | --ht=*) 951 htmldir=$ac_optarg ;; 952 953 -includedir | --includedir | --includedi | --included | --include \ 954 | --includ | --inclu | --incl | --inc) 955 ac_prev=includedir ;; 956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 957 | --includ=* | --inclu=* | --incl=* | --inc=*) 958 includedir=$ac_optarg ;; 959 960 -infodir | --infodir | --infodi | --infod | --info | --inf) 961 ac_prev=infodir ;; 962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 963 infodir=$ac_optarg ;; 964 965 -libdir | --libdir | --libdi | --libd) 966 ac_prev=libdir ;; 967 -libdir=* | --libdir=* | --libdi=* | --libd=*) 968 libdir=$ac_optarg ;; 969 970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 971 | --libexe | --libex | --libe) 972 ac_prev=libexecdir ;; 973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 974 | --libexe=* | --libex=* | --libe=*) 975 libexecdir=$ac_optarg ;; 976 977 -localedir | --localedir | --localedi | --localed | --locale) 978 ac_prev=localedir ;; 979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 980 localedir=$ac_optarg ;; 981 982 -localstatedir | --localstatedir | --localstatedi | --localstated \ 983 | --localstate | --localstat | --localsta | --localst | --locals) 984 ac_prev=localstatedir ;; 985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 987 localstatedir=$ac_optarg ;; 988 989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 990 ac_prev=mandir ;; 991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 992 mandir=$ac_optarg ;; 993 994 -nfp | --nfp | --nf) 995 # Obsolete; use --without-fp. 996 with_fp=no ;; 997 998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 999 | --no-cr | --no-c | -n) 1000 no_create=yes ;; 1001 1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1004 no_recursion=yes ;; 1005 1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1008 | --oldin | --oldi | --old | --ol | --o) 1009 ac_prev=oldincludedir ;; 1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1013 oldincludedir=$ac_optarg ;; 1014 1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1016 ac_prev=prefix ;; 1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1018 prefix=$ac_optarg ;; 1019 1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1021 | --program-pre | --program-pr | --program-p) 1022 ac_prev=program_prefix ;; 1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1025 program_prefix=$ac_optarg ;; 1026 1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1028 | --program-suf | --program-su | --program-s) 1029 ac_prev=program_suffix ;; 1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1032 program_suffix=$ac_optarg ;; 1033 1034 -program-transform-name | --program-transform-name \ 1035 | --program-transform-nam | --program-transform-na \ 1036 | --program-transform-n | --program-transform- \ 1037 | --program-transform | --program-transfor \ 1038 | --program-transfo | --program-transf \ 1039 | --program-trans | --program-tran \ 1040 | --progr-tra | --program-tr | --program-t) 1041 ac_prev=program_transform_name ;; 1042 -program-transform-name=* | --program-transform-name=* \ 1043 | --program-transform-nam=* | --program-transform-na=* \ 1044 | --program-transform-n=* | --program-transform-=* \ 1045 | --program-transform=* | --program-transfor=* \ 1046 | --program-transfo=* | --program-transf=* \ 1047 | --program-trans=* | --program-tran=* \ 1048 | --progr-tra=* | --program-tr=* | --program-t=*) 1049 program_transform_name=$ac_optarg ;; 1050 1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1052 ac_prev=pdfdir ;; 1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1054 pdfdir=$ac_optarg ;; 1055 1056 -psdir | --psdir | --psdi | --psd | --ps) 1057 ac_prev=psdir ;; 1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1059 psdir=$ac_optarg ;; 1060 1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1062 | -silent | --silent | --silen | --sile | --sil) 1063 silent=yes ;; 1064 1065 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1066 | --runstate | --runstat | --runsta | --runst | --runs \ 1067 | --run | --ru | --r) 1068 ac_prev=runstatedir ;; 1069 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1070 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1071 | --run=* | --ru=* | --r=*) 1072 runstatedir=$ac_optarg ;; 1073 1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1075 ac_prev=sbindir ;; 1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1077 | --sbi=* | --sb=*) 1078 sbindir=$ac_optarg ;; 1079 1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1082 | --sharedst | --shareds | --shared | --share | --shar \ 1083 | --sha | --sh) 1084 ac_prev=sharedstatedir ;; 1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1088 | --sha=* | --sh=*) 1089 sharedstatedir=$ac_optarg ;; 1090 1091 -site | --site | --sit) 1092 ac_prev=site ;; 1093 -site=* | --site=* | --sit=*) 1094 site=$ac_optarg ;; 1095 1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1097 ac_prev=srcdir ;; 1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1099 srcdir=$ac_optarg ;; 1100 1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1102 | --syscon | --sysco | --sysc | --sys | --sy) 1103 ac_prev=sysconfdir ;; 1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1106 sysconfdir=$ac_optarg ;; 1107 1108 -target | --target | --targe | --targ | --tar | --ta | --t) 1109 ac_prev=target_alias ;; 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1111 target_alias=$ac_optarg ;; 1112 1113 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1114 verbose=yes ;; 1115 1116 -version | --version | --versio | --versi | --vers | -V) 1117 ac_init_version=: ;; 1118 1119 -with-* | --with-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: '$ac_useropt'" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128 "with_$ac_useropt" 1129 "*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=\$ac_optarg ;; 1134 1135 -without-* | --without-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: '$ac_useropt'" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144 "with_$ac_useropt" 1145 "*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=no ;; 1150 1151 --x) 1152 # Obsolete; use --with-x. 1153 with_x=yes ;; 1154 1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1156 | --x-incl | --x-inc | --x-in | --x-i) 1157 ac_prev=x_includes ;; 1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1160 x_includes=$ac_optarg ;; 1161 1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1164 ac_prev=x_libraries ;; 1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1167 x_libraries=$ac_optarg ;; 1168 1169 -*) as_fn_error $? "unrecognized option: '$ac_option' 1170 Try '$0 --help' for more information" 1171 ;; 1172 1173 *=*) 1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1175 # Reject names that are not valid shell variable names. 1176 case $ac_envvar in #( 1177 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1178 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1179 esac 1180 eval $ac_envvar=\$ac_optarg 1181 export $ac_envvar ;; 1182 1183 *) 1184 # FIXME: should be removed in autoconf 3.0. 1185 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1187 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2 1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1189 ;; 1190 1191 esac 1192 done 1193 1194 if test -n "$ac_prev"; then 1195 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'` 1196 as_fn_error $? "missing argument to $ac_option" 1197 fi 1198 1199 if test -n "$ac_unrecognized_opts"; then 1200 case $enable_option_checking in 1201 no) ;; 1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1203 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1204 esac 1205 fi 1206 1207 # Check all directory arguments for consistency. 1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1209 datadir sysconfdir sharedstatedir localstatedir includedir \ 1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1211 libdir localedir mandir runstatedir 1212 do 1213 eval ac_val=\$$ac_var 1214 # Remove trailing slashes. 1215 case $ac_val in 1216 */ ) 1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1218 eval $ac_var=\$ac_val;; 1219 esac 1220 # Be sure to have absolute directory names. 1221 case $ac_val in 1222 [\\/$]* | ?:[\\/]* ) continue;; 1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1224 esac 1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1226 done 1227 1228 # There might be people who depend on the old broken behavior: '$host' 1229 # used to hold the argument of --host etc. 1230 # FIXME: To remove some day. 1231 build=$build_alias 1232 host=$host_alias 1233 target=$target_alias 1234 1235 # FIXME: To remove some day. 1236 if test "x$host_alias" != x; then 1237 if test "x$build_alias" = x; then 1238 cross_compiling=maybe 1239 elif test "x$build_alias" != "x$host_alias"; then 1240 cross_compiling=yes 1241 fi 1242 fi 1243 1244 ac_tool_prefix= 1245 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1246 1247 test "$silent" = yes && exec 6>/dev/null 1248 1249 1250 ac_pwd=`pwd` && test -n "$ac_pwd" && 1251 ac_ls_di=`ls -di .` && 1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1253 as_fn_error $? "working directory cannot be determined" 1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1255 as_fn_error $? "pwd does not report name of working directory" 1256 1257 1258 # Find the source files, if location was not specified. 1259 if test -z "$srcdir"; then 1260 ac_srcdir_defaulted=yes 1261 # Try the directory containing this script, then the parent directory. 1262 ac_confdir=`$as_dirname -- "$as_myself" || 1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 X"$as_myself" : 'X\(//\)$' \| \ 1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267 printf '%s\n' X"$as_myself" | 1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)[^/].*/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\).*/{ 1281 s//\1/ 1282 q 1283 } 1284 s/.*/./; q'` 1285 srcdir=$ac_confdir 1286 if test ! -r "$srcdir/$ac_unique_file"; then 1287 srcdir=.. 1288 fi 1289 else 1290 ac_srcdir_defaulted=no 1291 fi 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1295 fi 1296 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1297 ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1299 pwd)` 1300 # When building in place, set srcdir=. 1301 if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303 fi 1304 # Remove unnecessary trailing slashes from srcdir. 1305 # Double slashes in file names in object file debugging info 1306 # mess up M-x gdb in Emacs. 1307 case $srcdir in 1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309 esac 1310 for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315 done 1316 1317 # 1318 # Report the --help message. 1319 # 1320 if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324 'configure' configures xlsfonts 1.0.9 to adapt to many kinds of systems. 1325 1326 Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329 VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331 Defaults for the options are specified in brackets. 1332 1333 Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print 'checking ...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for '--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1343 1344 Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350 By default, 'make install' will install all the files in 1351 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1352 an installation prefix other than '$ac_default_prefix' using '--prefix', 1353 for instance '--prefix=\$HOME'. 1354 1355 For better control, use the options below. 1356 1357 Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1365 --libdir=DIR object code libraries [EPREFIX/lib] 1366 --includedir=DIR C header files [PREFIX/include] 1367 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1370 --infodir=DIR info documentation [DATAROOTDIR/info] 1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1372 --mandir=DIR man documentation [DATAROOTDIR/man] 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsfonts] 1374 --htmldir=DIR html documentation [DOCDIR] 1375 --dvidir=DIR dvi documentation [DOCDIR] 1376 --pdfdir=DIR pdf documentation [DOCDIR] 1377 --psdir=DIR ps documentation [DOCDIR] 1378 _ACEOF 1379 1380 cat <<\_ACEOF 1381 1382 Program names: 1383 --program-prefix=PREFIX prepend PREFIX to installed program names 1384 --program-suffix=SUFFIX append SUFFIX to installed program names 1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1386 1387 System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390 _ACEOF 1391 fi 1392 1393 if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of xlsfonts 1.0.9:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399 Optional Features: 1400 --disable-option-checking ignore unrecognized --enable/--with options 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --enable-dependency-tracking 1404 do not reject slow dependency extractors 1405 --disable-dependency-tracking 1406 speeds up one-time build 1407 --enable-silent-rules less verbose build output (undo: "make V=1") 1408 --disable-silent-rules verbose build output (undo: "make V=0") 1409 --disable-selective-werror 1410 Turn off selective compiler errors. (default: 1411 enabled) 1412 --enable-strict-compilation 1413 Enable all warnings from compiler and make them 1414 errors (default: disabled) 1415 1416 Some influential environment variables: 1417 CC C compiler command 1418 CFLAGS C compiler flags 1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1420 nonstandard directory <lib dir> 1421 LIBS libraries to pass to the linker, e.g. -l<library> 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1423 you have headers in a nonstandard directory <include dir> 1424 PKG_CONFIG path to pkg-config utility 1425 PKG_CONFIG_PATH 1426 directories to add to pkg-config's search path 1427 PKG_CONFIG_LIBDIR 1428 path overriding pkg-config's built-in search path 1429 XLSFONTS_CFLAGS 1430 C compiler flags for XLSFONTS, overriding pkg-config 1431 XLSFONTS_LIBS 1432 linker flags for XLSFONTS, overriding pkg-config 1433 1434 Use these variables to override the choices made by 'configure' or to help 1435 it to find libraries and programs with nonstandard names/locations. 1436 1437 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>. 1438 _ACEOF 1439 ac_status=$? 1440 fi 1441 1442 if test "$ac_init_help" = "recursive"; then 1443 # If there are subdirs, report their specific --help. 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1448 ac_builddir=. 1449 1450 case "$ac_dir" in 1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452 *) 1453 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 1454 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1456 case $ac_top_builddir_sub in 1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 esac ;; 1460 esac 1461 ac_abs_top_builddir=$ac_pwd 1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1463 # for backward compatibility: 1464 ac_top_builddir=$ac_top_build_prefix 1465 1466 case $srcdir in 1467 .) # We are building in place. 1468 ac_srcdir=. 1469 ac_top_srcdir=$ac_top_builddir_sub 1470 ac_abs_top_srcdir=$ac_pwd ;; 1471 [\\/]* | ?:[\\/]* ) # Absolute name. 1472 ac_srcdir=$srcdir$ac_dir_suffix; 1473 ac_top_srcdir=$srcdir 1474 ac_abs_top_srcdir=$srcdir ;; 1475 *) # Relative name. 1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1477 ac_top_srcdir=$ac_top_build_prefix$srcdir 1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1479 esac 1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1481 1482 cd "$ac_dir" || { ac_status=$?; continue; } 1483 # Check for configure.gnu first; this name is used for a wrapper for 1484 # Metaconfig's "Configure" on case-insensitive file systems. 1485 if test -f "$ac_srcdir/configure.gnu"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1488 elif test -f "$ac_srcdir/configure"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure" --help=recursive 1491 else 1492 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1493 fi || ac_status=$? 1494 cd "$ac_pwd" || { ac_status=$?; break; } 1495 done 1496 fi 1497 1498 test -n "$ac_init_help" && exit $ac_status 1499 if $ac_init_version; then 1500 cat <<\_ACEOF 1501 xlsfonts configure 1.0.9 1502 generated by GNU Autoconf 2.73 1503 1504 Copyright (C) 2026 Free Software Foundation, Inc. 1505 This configure script is free software; the Free Software Foundation 1506 gives unlimited permission to copy, distribute and modify it. 1507 _ACEOF 1508 exit 1509 fi 1510 1511 ## ------------------------ ## 1512 ## Autoconf initialization. ## 1513 ## ------------------------ ## 1514 1515 # ac_fn_c_try_compile LINENO 1516 # -------------------------- 1517 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1518 ac_fn_c_try_compile () 1519 { 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1521 rm -f conftest.$ac_objext conftest.beam 1522 if { { ac_try="$ac_compile" 1523 case "(($ac_try" in 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1525 *) ac_try_echo=$ac_try;; 1526 esac 1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1528 printf '%s\n' "$ac_try_echo"; } >&5 1529 (eval "$ac_compile") 2>conftest.err 1530 ac_status=$? 1531 if test -s conftest.err; then 1532 grep -v '^ *+' conftest.err >conftest.er1 1533 cat conftest.er1 >&5 1534 mv -f conftest.er1 conftest.err 1535 fi 1536 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1537 test $ac_status = 0; } && { 1538 test -z "$ac_c_werror_flag" || 1539 test ! -s conftest.err 1540 } && test -s conftest.$ac_objext 1541 then : 1542 ac_retval=0 1543 else case e in #( 1544 e) printf '%s\n' "$as_me: failed program was:" >&5 1545 sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=1 ;; 1548 esac 1549 fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553 } # ac_fn_c_try_compile 1554 1555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1556 # ------------------------------------------------------- 1557 # Tests whether HEADER exists and can be compiled using the include files in 1558 # INCLUDES, setting the cache variable VAR accordingly. 1559 ac_fn_c_check_header_compile () 1560 { 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1563 printf %s "checking for $2... " >&6; } 1564 if eval test \${$3+y} 1565 then : 1566 printf %s "(cached) " >&6 1567 else case e in #( 1568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1569 /* end confdefs.h. */ 1570 $4 1571 #include <$2> 1572 _ACEOF 1573 if ac_fn_c_try_compile "$LINENO" 1574 then : 1575 eval "$3=yes" 1576 else case e in #( 1577 e) eval "$3=no" ;; 1578 esac 1579 fi 1580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1581 esac 1582 fi 1583 eval ac_res=\$$3 1584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1585 printf '%s\n' "$ac_res" >&6; } 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 1588 } # ac_fn_c_check_header_compile 1589 1590 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1591 # ------------------------------------------------------------------ 1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1593 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1594 ac_fn_check_decl () 1595 { 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 as_decl_name=`echo $2|sed 's/ *(.*//'` 1598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1599 printf %s "checking whether $as_decl_name is declared... " >&6; } 1600 if eval test \${$3+y} 1601 then : 1602 printf %s "(cached) " >&6 1603 else case e in #( 1604 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1605 eval ac_save_FLAGS=\$$6 1606 as_fn_append $6 " $5" 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608 /* end confdefs.h. */ 1609 $4 1610 int 1611 main (void) 1612 { 1613 #ifndef $as_decl_name 1614 #ifdef __cplusplus 1615 (void) $as_decl_use; 1616 #else 1617 (void) $as_decl_name; 1618 #endif 1619 #endif 1620 1621 ; 1622 return 0; 1623 } 1624 _ACEOF 1625 if ac_fn_c_try_compile "$LINENO" 1626 then : 1627 eval "$3=yes" 1628 else case e in #( 1629 e) eval "$3=no" ;; 1630 esac 1631 fi 1632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1633 eval $6=\$ac_save_FLAGS 1634 ;; 1635 esac 1636 fi 1637 eval ac_res=\$$3 1638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1639 printf '%s\n' "$ac_res" >&6; } 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 1642 } # ac_fn_check_decl 1643 1644 # ac_fn_c_try_link LINENO 1645 # ----------------------- 1646 # Try to link conftest.$ac_ext, and return whether this succeeded. 1647 ac_fn_c_try_link () 1648 { 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1651 if { { ac_try="$ac_link" 1652 case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655 esac 1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657 printf '%s\n' "$ac_try_echo"; } >&5 1658 (eval "$ac_link") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } && { 1667 test -z "$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 } && test -s conftest$ac_exeext && { 1670 test "$cross_compiling" = yes || 1671 test -x conftest$ac_exeext 1672 } 1673 then : 1674 ac_retval=0 1675 else case e in #( 1676 e) printf '%s\n' "$as_me: failed program was:" >&5 1677 sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 ;; 1680 esac 1681 fi 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1684 # interfere with the next link command; also delete a directory that is 1685 # left behind by Apple's compiler. We do this before executing the actions. 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690 } # ac_fn_c_try_link 1691 1692 # ac_fn_c_check_func LINENO FUNC VAR 1693 # ---------------------------------- 1694 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1695 ac_fn_c_check_func () 1696 { 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699 printf %s "checking for $2... " >&6; } 1700 if eval test \${$3+y} 1701 then : 1702 printf %s "(cached) " >&6 1703 else case e in #( 1704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705 /* end confdefs.h. */ 1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1708 #define $2 innocuous_$2 1709 1710 /* System header to define __stub macros and hopefully few prototypes, 1711 which can conflict with char $2 (void); below. */ 1712 1713 #include <limits.h> 1714 #undef $2 1715 1716 /* Override any GCC internal prototype to avoid an error. 1717 Use char because int might match the return type of a GCC 1718 builtin and then its argument prototype would still apply. */ 1719 #ifdef __cplusplus 1720 extern "C" 1721 #endif 1722 char $2 (void); 1723 /* The GNU C library defines this for functions which it implements 1724 to always fail with ENOSYS. Some functions are actually named 1725 something starting with __ and the normal name is an alias. */ 1726 #if defined __stub_$2 || defined __stub___$2 1727 choke me 1728 #endif 1729 1730 int 1731 main (void) 1732 { 1733 return $2 (); 1734 ; 1735 return 0; 1736 } 1737 _ACEOF 1738 if ac_fn_c_try_link "$LINENO" 1739 then : 1740 eval "$3=yes" 1741 else case e in #( 1742 e) eval "$3=no" ;; 1743 esac 1744 fi 1745 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1746 conftest$ac_exeext conftest.$ac_ext ;; 1747 esac 1748 fi 1749 eval ac_res=\$$3 1750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751 printf '%s\n' "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754 } # ac_fn_c_check_func 1755 ac_configure_args_raw= 1756 for ac_arg 1757 do 1758 case $ac_arg in 1759 *\'*) 1760 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1761 esac 1762 as_fn_append ac_configure_args_raw " '$ac_arg'" 1763 done 1764 1765 case $ac_configure_args_raw in 1766 *$as_nl*) 1767 ac_safe_unquote= ;; 1768 *) 1769 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1770 ac_unsafe_a="$ac_unsafe_z#~" 1771 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1772 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1773 esac 1774 1775 cat >config.log <<_ACEOF 1776 This file contains any messages produced by compilers while 1777 running configure, to aid debugging if configure makes a mistake. 1778 1779 It was created by xlsfonts $as_me 1.0.9, which was 1780 generated by GNU Autoconf 2.73. Invocation command line was 1781 1782 $ $0$ac_configure_args_raw 1783 1784 _ACEOF 1785 exec 5>>config.log 1786 { 1787 cat <<_ASUNAME 1788 ## --------- ## 1789 ## Platform. ## 1790 ## --------- ## 1791 1792 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1793 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1794 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1795 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1796 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1797 1798 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1799 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1800 1801 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1802 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1803 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1804 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1805 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1806 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1807 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1808 1809 _ASUNAME 1810 1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1812 for as_dir in $PATH 1813 do 1814 IFS=$as_save_IFS 1815 case $as_dir in #((( 1816 '') as_dir=./ ;; 1817 */) ;; 1818 *) as_dir=$as_dir/ ;; 1819 esac 1820 printf '%s\n' "PATH: $as_dir" 1821 done 1822 IFS=$as_save_IFS 1823 1824 } >&5 1825 1826 cat >&5 <<_ACEOF 1827 1828 1829 ## ----------- ## 1830 ## Core tests. ## 1831 ## ----------- ## 1832 1833 _ACEOF 1834 1835 1836 # Keep a trace of the command line. 1837 # Strip out --no-create and --no-recursion so they do not pile up. 1838 # Strip out --silent because we don't want to record it for future runs. 1839 # Also quote any args containing shell meta-characters. 1840 # Make two passes to allow for proper duplicate-argument suppression. 1841 ac_configure_args= 1842 ac_configure_args0= 1843 ac_configure_args1= 1844 ac_must_keep_next=false 1845 for ac_pass in 1 2 1846 do 1847 for ac_arg 1848 do 1849 case $ac_arg in 1850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1852 | -silent | --silent | --silen | --sile | --sil) 1853 continue ;; 1854 *\'*) 1855 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1856 esac 1857 case $ac_pass in 1858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1859 2) 1860 as_fn_append ac_configure_args1 " '$ac_arg'" 1861 if test $ac_must_keep_next = true; then 1862 ac_must_keep_next=false # Got value, back to normal. 1863 else 1864 case $ac_arg in 1865 *=* | --config-cache | -C | -disable-* | --disable-* \ 1866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1868 | -with-* | --with-* | -without-* | --without-* | --x) 1869 case "$ac_configure_args0 " in 1870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1871 esac 1872 ;; 1873 -* ) ac_must_keep_next=true ;; 1874 esac 1875 fi 1876 as_fn_append ac_configure_args " '$ac_arg'" 1877 ;; 1878 esac 1879 done 1880 done 1881 { ac_configure_args0=; unset ac_configure_args0;} 1882 { ac_configure_args1=; unset ac_configure_args1;} 1883 1884 # Dump the cache to stdout. It can be in a pipe (this is a requirement). 1885 ac_cache_dump () 1886 { 1887 # The following way of writing the cache mishandles newlines in values, 1888 # but we know of no workaround that is simple, portable, and efficient. 1889 # So, we kill variables containing newlines. 1890 # Ultrix sh set writes to stderr and can't be redirected directly, 1891 # and sets the high bit in the cache file unless we assign to the vars. 1892 ( 1893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in #( 1896 *${as_nl}*) 1897 case $ac_var in #( 1898 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1899 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1900 esac 1901 case $ac_var in #( 1902 _ | IFS | as_nl) ;; #( 1903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1904 *) { eval $ac_var=; unset $ac_var;} ;; 1905 esac ;; 1906 esac 1907 done 1908 1909 (set) 2>&1 | 1910 case $as_nl`(ac_space=' '; set) 2>&1` in #( 1911 *${as_nl}ac_space=\ *) 1912 # 'set' does not quote correctly, so add quotes: double-quote 1913 # substitution turns \\\\ into \\, and sed turns \\ into \. 1914 sed -n \ 1915 "s/'/'\\\\''/g; 1916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1917 ;; #( 1918 *) 1919 # 'set' quotes correctly as required by POSIX, so do not add quotes. 1920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1921 ;; 1922 esac | 1923 sort 1924 ) 1925 } 1926 1927 # Print debugging info to stdout. 1928 ac_dump_debugging_info () 1929 { 1930 echo 1931 1932 printf '%s\n' "## ---------------- ## 1933 ## Cache variables. ## 1934 ## ---------------- ##" 1935 echo 1936 ac_cache_dump 1937 echo 1938 1939 printf '%s\n' "## ----------------- ## 1940 ## Output variables. ## 1941 ## ----------------- ##" 1942 echo 1943 for ac_var in $ac_subst_vars 1944 do 1945 eval ac_val=\$$ac_var 1946 case $ac_val in 1947 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1948 esac 1949 printf '%s\n' "$ac_var='$ac_val'" 1950 done | sort 1951 echo 1952 1953 if test -n "$ac_subst_files"; then 1954 printf '%s\n' "## ------------------- ## 1955 ## File substitutions. ## 1956 ## ------------------- ##" 1957 echo 1958 for ac_var in $ac_subst_files 1959 do 1960 eval ac_val=\$$ac_var 1961 case $ac_val in 1962 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1963 esac 1964 printf '%s\n' "$ac_var='$ac_val'" 1965 done | sort 1966 echo 1967 fi 1968 1969 if test -s confdefs.h; then 1970 printf '%s\n' "## ----------- ## 1971 ## confdefs.h. ## 1972 ## ----------- ##" 1973 echo 1974 cat confdefs.h 1975 echo 1976 fi 1977 test "$ac_signal" != 0 && 1978 printf '%s\n' "$as_me: caught signal $ac_signal" 1979 printf '%s\n' "$as_me: exit $exit_status" 1980 } 1981 1982 # When interrupted or exit'd, cleanup temporary files, and complete 1983 # config.log. 1984 ac_exit_trap () 1985 { 1986 exit_status= 1987 # Sanitize IFS. 1988 IFS=" "" $as_nl" 1989 # Save into config.log some information that might help in debugging. 1990 ac_dump_debugging_info >&5 1991 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" && 1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1993 exit $exit_status 1994 } 1995 1996 trap 'ac_exit_trap $?' 0 1997 for ac_signal in 1 2 13 15; do 1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1999 done 2000 ac_signal=0 2001 2002 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2003 rm -f -r conftest* confdefs.h 2004 2005 printf '%s\n' "/* confdefs.h */" > confdefs.h 2006 2007 # Predefined preprocessor variables. 2008 2009 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2010 2011 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2012 2013 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2014 2015 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2016 2017 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2018 2019 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2020 2021 2022 # Let the site file select an alternate cache file if it wants to. 2023 # Prefer an explicitly selected file to automatically selected ones. 2024 if test -n "$CONFIG_SITE"; then 2025 ac_site_files="$CONFIG_SITE" 2026 elif test "x$prefix" != xNONE; then 2027 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2028 else 2029 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2030 fi 2031 2032 for ac_site_file in $ac_site_files 2033 do 2034 case $ac_site_file in #( 2035 */*) : 2036 ;; #( 2037 *) : 2038 ac_site_file=./$ac_site_file ;; 2039 esac 2040 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2041 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2042 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;} 2043 sed 's/^/| /' "$ac_site_file" >&5 2044 . "$ac_site_file" \ 2045 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2046 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2047 as_fn_error $? "failed to load site script $ac_site_file 2048 See 'config.log' for more details" "$LINENO" 5; } 2049 fi 2050 done 2051 2052 if test -r "$cache_file"; then 2053 # Some versions of bash will fail to source /dev/null (special files 2054 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2055 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2057 printf '%s\n' "$as_me: loading cache $cache_file" >&6;} 2058 case $cache_file in 2059 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2060 *) . "./$cache_file";; 2061 esac 2062 fi 2063 else 2064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2065 printf '%s\n' "$as_me: creating cache $cache_file" >&6;} 2066 >$cache_file 2067 fi 2068 2069 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2070 # Test code for whether the C compiler supports C23 (global declarations) 2071 ac_c_conftest_c23_globals=' 2072 /* Does the compiler advertise conformance to C17 or earlier? 2073 Although GCC 14 does not do that, even with -std=gnu23, 2074 it is close enough, and defines __STDC_VERSION == 202000L. */ 2075 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L 2076 # error "Compiler advertises conformance to C17 or earlier" 2077 #endif 2078 2079 // Check alignas. 2080 char alignas (double) c23_aligned_as_double; 2081 char alignas (0) c23_no_special_alignment; 2082 extern char c23_aligned_as_int; 2083 char alignas (0) alignas (int) c23_aligned_as_int; 2084 2085 // Check alignof. 2086 enum 2087 { 2088 c23_int_alignment = alignof (int), 2089 c23_int_array_alignment = alignof (int[100]), 2090 c23_char_alignment = alignof (char) 2091 }; 2092 static_assert (0 < -alignof (int), "alignof is signed"); 2093 2094 int function_with_unnamed_parameter (int) { return 0; } 2095 2096 void c23_noreturn (); 2097 2098 /* Test parsing of string and char UTF-8 literals (including hex escapes). 2099 The parens pacify GCC 15. */ 2100 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\''); 2101 2102 bool check_that_bool_works = true | false | !nullptr; 2103 #if !true 2104 # error "true does not work in #if" 2105 #endif 2106 #if false 2107 #elifdef __STDC_VERSION__ 2108 #else 2109 # error "#elifdef does not work" 2110 #endif 2111 2112 #ifndef __has_c_attribute 2113 # error "__has_c_attribute not defined" 2114 #endif 2115 2116 #ifndef __has_include 2117 # error "__has_include not defined" 2118 #endif 2119 2120 #define LPAREN() ( 2121 #define FORTY_TWO(x) 42 2122 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x)) 2123 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42); 2124 2125 static_assert (0b101010 == 42); 2126 static_assert (0B101010 == 42); 2127 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559); 2128 static_assert (0.500'\''000'\''000 == 0.5); 2129 2130 enum unsignedish : unsigned int { uione = 1 }; 2131 static_assert (0 < -uione); 2132 2133 #include <stddef.h> 2134 constexpr nullptr_t null_pointer = nullptr; 2135 2136 static typeof (1 + 1L) two () { return 2; } 2137 static long int three () { return 3; } 2138 ' 2139 2140 # Test code for whether the C compiler supports C23 (body of main). 2141 ac_c_conftest_c23_main=' 2142 { 2143 label_before_declaration: 2144 int arr[10] = {}; 2145 if (arr[0]) 2146 goto label_before_declaration; 2147 if (!arr[0]) 2148 goto label_at_end_of_block; 2149 label_at_end_of_block: 2150 } 2151 ok |= !null_pointer; 2152 ok |= two != three; 2153 ' 2154 2155 # Test code for whether the C compiler supports C23 (complete). 2156 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals} 2157 2158 int 2159 main (int, char **) 2160 { 2161 int ok = 0; 2162 ${ac_c_conftest_c23_main} 2163 return ok; 2164 } 2165 " 2166 2167 # Test code for whether the C compiler supports C89 (global declarations) 2168 ac_c_conftest_c89_globals=' 2169 /* Do not test the value of __STDC__, because some compilers define it to 0 2170 or do not define it, while otherwise adequately conforming. */ 2171 2172 #include <stddef.h> 2173 #include <stdarg.h> 2174 struct stat; 2175 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2176 struct buf { int x; }; 2177 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2178 static char *e (char **p, int i) 2179 { 2180 return p[i]; 2181 } 2182 static char *f (char * (*g) (char **, int), char **p, ...) 2183 { 2184 char *s; 2185 va_list v; 2186 va_start (v,p); 2187 s = g (p, va_arg (v,int)); 2188 va_end (v); 2189 return s; 2190 } 2191 2192 /* C89 style stringification. */ 2193 #define noexpand_stringify(a) #a 2194 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2195 2196 /* C89 style token pasting. Exercises some of the corner cases that 2197 e.g. old MSVC gets wrong, but not very hard. */ 2198 #define noexpand_concat(a,b) a##b 2199 #define expand_concat(a,b) noexpand_concat(a,b) 2200 extern int vA; 2201 extern int vbee; 2202 #define aye A 2203 #define bee B 2204 int *pvA = &expand_concat(v,aye); 2205 int *pvbee = &noexpand_concat(v,bee); 2206 2207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2208 function prototypes and stuff, but not \xHH hex character constants. 2209 These do not provoke an error unfortunately, instead are silently treated 2210 as an "x". The following induces an error, until -std is added to get 2211 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2212 array size at least. It is necessary to write \x00 == 0 to get something 2213 that is true only with -std. */ 2214 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2215 2216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2217 inside strings and character constants. */ 2218 #define FOO(x) '\''x'\'' 2219 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2220 2221 int test (int i, double x); 2222 struct s1 {int (*f) (int a);}; 2223 struct s2 {int (*f) (double a);}; 2224 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2225 int, int);' 2226 2227 # Test code for whether the C compiler supports C89 (body of main). 2228 ac_c_conftest_c89_main=' 2229 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2230 ' 2231 2232 # Test code for whether the C compiler supports C99 (global declarations) 2233 ac_c_conftest_c99_globals=' 2234 /* Does the compiler advertise C99 conformance? */ 2235 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2236 # error "Compiler does not advertise C99 conformance" 2237 #endif 2238 2239 // See if C++-style comments work. 2240 2241 #include <stdbool.h> 2242 extern int puts (const char *); 2243 extern int printf (const char *, ...); 2244 extern int dprintf (int, const char *, ...); 2245 extern void *malloc (size_t); 2246 extern void free (void *); 2247 2248 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2249 // dprintf is used instead of fprintf to avoid needing to declare 2250 // FILE and stderr, and "aND" is used instead of "and" to work around 2251 // GCC bug 40564 which is irrelevant here. 2252 #define debug(...) dprintf (2, __VA_ARGS__) 2253 #define showlist(...) puts (#__VA_ARGS__) 2254 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2255 static void 2256 test_varargs_macros (void) 2257 { 2258 int x = 1234; 2259 int y = 5678; 2260 debug ("Flag"); 2261 debug ("X = %d\n", x); 2262 showlist (The first, second, aND third items.); 2263 report (x>y, "x is %d but y is %d", x, y); 2264 } 2265 2266 // Check long long types. 2267 #define BIG64 18446744073709551615ull 2268 #define BIG32 4294967295ul 2269 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2270 #if !BIG_OK 2271 #error "your preprocessor is broken" 2272 #endif 2273 #if BIG_OK 2274 #else 2275 #error "your preprocessor is broken" 2276 #endif 2277 static long long int bignum = -9223372036854775807LL; 2278 static unsigned long long int ubignum = BIG64; 2279 2280 struct incomplete_array 2281 { 2282 int datasize; 2283 double data[]; 2284 }; 2285 2286 struct named_init { 2287 int number; 2288 const wchar_t *name; 2289 double average; 2290 }; 2291 2292 typedef const char *ccp; 2293 2294 static inline int 2295 test_restrict (ccp restrict text) 2296 { 2297 // Iterate through items via the restricted pointer. 2298 // Also check for declarations in for loops. 2299 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2300 continue; 2301 return 0; 2302 } 2303 2304 // Check varargs and va_copy. 2305 static bool 2306 test_varargs (const char *format, ...) 2307 { 2308 va_list args; 2309 va_start (args, format); 2310 va_list args_copy; 2311 va_copy (args_copy, args); 2312 2313 const char *str = ""; 2314 int number = 0; 2315 float fnumber = 0; 2316 2317 while (*format) 2318 { 2319 switch (*format++) 2320 { 2321 case '\''s'\'': // string 2322 str = va_arg (args_copy, const char *); 2323 break; 2324 case '\''d'\'': // int 2325 number = va_arg (args_copy, int); 2326 break; 2327 case '\''f'\'': // float 2328 fnumber = va_arg (args_copy, double); 2329 break; 2330 default: 2331 break; 2332 } 2333 } 2334 va_end (args_copy); 2335 va_end (args); 2336 2337 return *str && number && fnumber; 2338 } 2339 ' 2340 2341 # Test code for whether the C compiler supports C99 (body of main). 2342 ac_c_conftest_c99_main=' 2343 // Check bool. 2344 _Bool success = false; 2345 success |= (argc != 0); 2346 2347 // Check restrict. 2348 if (test_restrict ("String literal") == 0) 2349 success = true; 2350 const char *restrict newvar = "Another string"; 2351 2352 // Check varargs. 2353 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2354 test_varargs_macros (); 2355 2356 // Check flexible array members. 2357 static struct incomplete_array *volatile incomplete_array_pointer; 2358 struct incomplete_array *ia = incomplete_array_pointer; 2359 ia->datasize = 10; 2360 for (int i = 0; i < ia->datasize; ++i) 2361 ia->data[i] = i * 1.234; 2362 // Work around memory leak warnings. 2363 free (ia); 2364 2365 // Check named initializers. 2366 struct named_init ni = { 2367 .number = 34, 2368 .name = L"Test wide string", 2369 .average = 543.34343, 2370 }; 2371 2372 ni.number = 58; 2373 2374 // Do not test for VLAs, as some otherwise-conforming compilers lack them. 2375 // C code should instead use __STDC_NO_VLA__; see Autoconf manual. 2376 2377 // work around unused variable warnings 2378 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2379 || ni.number != 58); 2380 ' 2381 2382 # Test code for whether the C compiler supports C11 (global declarations) 2383 ac_c_conftest_c11_globals=' 2384 /* Does the compiler advertise C11 conformance? */ 2385 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2386 # error "Compiler does not advertise C11 conformance" 2387 #endif 2388 2389 // Check _Alignas. 2390 char _Alignas (double) aligned_as_double; 2391 char _Alignas (0) no_special_alignment; 2392 extern char aligned_as_int; 2393 char _Alignas (0) _Alignas (int) aligned_as_int; 2394 2395 // Check _Alignof. 2396 enum 2397 { 2398 int_alignment = _Alignof (int), 2399 int_array_alignment = _Alignof (int[100]), 2400 char_alignment = _Alignof (char) 2401 }; 2402 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2403 2404 // Check _Noreturn. 2405 int _Noreturn does_not_return (void) { for (;;) continue; } 2406 2407 // Check _Static_assert. 2408 struct test_static_assert 2409 { 2410 int x; 2411 _Static_assert (sizeof (int) <= sizeof (long int), 2412 "_Static_assert does not work in struct"); 2413 long int y; 2414 }; 2415 2416 // Check UTF-8 literals. 2417 #define u8 syntax error! 2418 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2419 2420 // Check duplicate typedefs. 2421 typedef long *long_ptr; 2422 typedef long int *long_ptr; 2423 typedef long_ptr long_ptr; 2424 2425 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2426 struct anonymous 2427 { 2428 union { 2429 struct { int i; int j; }; 2430 struct { int k; long int l; } w; 2431 }; 2432 int m; 2433 } v1; 2434 ' 2435 2436 # Test code for whether the C compiler supports C11 (body of main). 2437 ac_c_conftest_c11_main=' 2438 _Static_assert ((offsetof (struct anonymous, i) 2439 == offsetof (struct anonymous, w.k)), 2440 "Anonymous union alignment botch"); 2441 v1.i = 2; 2442 v1.w.k = 5; 2443 ok |= v1.i != 5; 2444 ' 2445 2446 # Test code for whether the C compiler supports C11 (complete). 2447 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2448 ${ac_c_conftest_c99_globals} 2449 ${ac_c_conftest_c11_globals} 2450 2451 int 2452 main (int argc, char **argv) 2453 { 2454 int ok = 0; 2455 ${ac_c_conftest_c89_main} 2456 ${ac_c_conftest_c99_main} 2457 ${ac_c_conftest_c11_main} 2458 return ok; 2459 } 2460 " 2461 2462 # Test code for whether the C compiler supports C99 (complete). 2463 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2464 ${ac_c_conftest_c99_globals} 2465 2466 int 2467 main (int argc, char **argv) 2468 { 2469 int ok = 0; 2470 ${ac_c_conftest_c89_main} 2471 ${ac_c_conftest_c99_main} 2472 return ok; 2473 } 2474 " 2475 2476 # Test code for whether the C compiler supports C89 (complete). 2477 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2478 2479 int 2480 main (int argc, char **argv) 2481 { 2482 int ok = 0; 2483 ${ac_c_conftest_c89_main} 2484 return ok; 2485 } 2486 " 2487 2488 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2489 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2490 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2491 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2492 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2493 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2494 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2495 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2496 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2497 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2498 2499 # Auxiliary files required by this configure script. 2500 ac_aux_files="config.guess config.sub missing install-sh compile" 2501 2502 # Locations in which to look for auxiliary files. 2503 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2504 2505 # Search for a directory containing all of the required auxiliary files, 2506 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2507 # If we don't find one directory that contains all the files we need, 2508 # we report the set of missing files from the *first* directory in 2509 # $ac_aux_dir_candidates and give up. 2510 ac_missing_aux_files="" 2511 ac_first_candidate=: 2512 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514 as_found=false 2515 for as_dir in $ac_aux_dir_candidates 2516 do 2517 IFS=$as_save_IFS 2518 case $as_dir in #((( 2519 '') as_dir=./ ;; 2520 */) ;; 2521 *) as_dir=$as_dir/ ;; 2522 esac 2523 as_found=: 2524 2525 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2526 ac_aux_dir_found=yes 2527 ac_install_sh= 2528 for ac_aux in $ac_aux_files 2529 do 2530 # As a special case, if "install-sh" is required, that requirement 2531 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2532 # and $ac_install_sh is set appropriately for whichever one is found. 2533 if test x"$ac_aux" = x"install-sh" 2534 then 2535 if test -f "${as_dir}install-sh"; then 2536 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2537 ac_install_sh="${as_dir}install-sh -c" 2538 elif test -f "${as_dir}install.sh"; then 2539 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2540 ac_install_sh="${as_dir}install.sh -c" 2541 elif test -f "${as_dir}shtool"; then 2542 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2543 ac_install_sh="${as_dir}shtool install -c" 2544 else 2545 ac_aux_dir_found=no 2546 if $ac_first_candidate; then 2547 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2548 else 2549 break 2550 fi 2551 fi 2552 else 2553 if test -f "${as_dir}${ac_aux}"; then 2554 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2555 else 2556 ac_aux_dir_found=no 2557 if $ac_first_candidate; then 2558 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2559 else 2560 break 2561 fi 2562 fi 2563 fi 2564 done 2565 if test "$ac_aux_dir_found" = yes; then 2566 ac_aux_dir="$as_dir" 2567 break 2568 fi 2569 ac_first_candidate=false 2570 2571 as_found=false 2572 done 2573 IFS=$as_save_IFS 2574 if $as_found 2575 then : 2576 2577 else case e in #( 2578 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2579 esac 2580 fi 2581 2582 2583 # These three variables are undocumented and unsupported, 2584 # and are intended to be withdrawn in a future Autoconf release. 2585 # They can cause serious problems if a builder's source tree is in a directory 2586 # whose full name contains unusual characters. 2587 if test -f "${ac_aux_dir}config.guess"; then 2588 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2589 fi 2590 if test -f "${ac_aux_dir}config.sub"; then 2591 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2592 fi 2593 if test -f "$ac_aux_dir/configure"; then 2594 ac_configure="$SHELL ${ac_aux_dir}configure" 2595 fi 2596 2597 # Check that the precious variables saved in the cache have kept the same 2598 # value. 2599 ac_cache_corrupted=false 2600 for ac_var in $ac_precious_vars; do 2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2602 eval ac_new_set=\$ac_env_${ac_var}_set 2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2604 eval ac_new_val=\$ac_env_${ac_var}_value 2605 case $ac_old_set,$ac_new_set in 2606 set,) 2607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2608 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2609 ac_cache_corrupted=: ;; 2610 ,set) 2611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2612 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2613 ac_cache_corrupted=: ;; 2614 ,);; 2615 *) 2616 if test "x$ac_old_val" != "x$ac_new_val"; then 2617 # differences in whitespace do not lead to failure. 2618 ac_old_val_w= 2619 for ac_val in x $ac_old_val; do 2620 ac_old_val_w="$ac_old_val_w $ac_val" 2621 done 2622 ac_new_val_w= 2623 for ac_val in x $ac_new_val; do 2624 ac_new_val_w="$ac_new_val_w $ac_val" 2625 done 2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2628 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2629 ac_cache_corrupted=: 2630 else 2631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2632 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2633 eval $ac_var=\$ac_old_val 2634 fi 2635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2636 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;} 2637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2638 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;} 2639 fi;; 2640 esac 2641 # Pass precious variables to config.status. 2642 if test "$ac_new_set" = set; then 2643 case $ac_new_val in 2644 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2645 *) ac_arg=$ac_var=$ac_new_val ;; 2646 esac 2647 case " $ac_configure_args " in 2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2650 esac 2651 fi 2652 done 2653 if $ac_cache_corrupted; then 2654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2655 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2657 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;} 2658 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2659 and start over" "$LINENO" 5 2660 fi 2661 ## -------------------- ## 2662 ## Main body of script. ## 2663 ## -------------------- ## 2664 2665 2666 # Determine whether it's possible to make 'echo' print without a newline. 2667 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 2668 # for compatibility with existing Makefiles. 2669 ECHO_C= ECHO_N= ECHO_T= 2670 case `echo -n x` in #((((( 2671 -n*) 2672 case `echo 'xy\c'` in 2673 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2674 xy) ECHO_C='\c';; 2675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2676 ECHO_T=' ';; 2677 esac;; 2678 *) 2679 ECHO_N='-n';; 2680 esac 2681 2682 ac_ext=c 2683 ac_cpp='$CPP $CPPFLAGS' 2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2687 2688 2689 2690 ac_config_headers="$ac_config_headers config.h" 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 # Expand $ac_aux_dir to an absolute path. 2707 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2708 2709 ac_ext=c 2710 ac_cpp='$CPP $CPPFLAGS' 2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2714 if test -n "$ac_tool_prefix"; then 2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2716 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718 printf %s "checking for $ac_word... " >&6; } 2719 if test ${ac_cv_prog_CC+y} 2720 then : 2721 printf %s "(cached) " >&6 2722 else case e in #( 2723 e) if test -n "$CC"; then 2724 ac_cv_prog_CC="$CC" # Let the user override the test. 2725 else 2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727 for as_dir in $PATH 2728 do 2729 IFS=$as_save_IFS 2730 case $as_dir in #((( 2731 '') as_dir=./ ;; 2732 */) ;; 2733 *) as_dir=$as_dir/ ;; 2734 esac 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2737 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2738 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741 done 2742 done 2743 IFS=$as_save_IFS 2744 2745 fi ;; 2746 esac 2747 fi 2748 CC=$ac_cv_prog_CC 2749 if test -n "$CC"; then 2750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2751 printf '%s\n' "$CC" >&6; } 2752 else 2753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754 printf '%s\n' "no" >&6; } 2755 fi 2756 2757 2758 fi 2759 if test -z "$ac_cv_prog_CC"; then 2760 ac_ct_CC=$CC 2761 # Extract the first word of "gcc", so it can be a program name with args. 2762 set dummy gcc; ac_word=$2 2763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764 printf %s "checking for $ac_word... " >&6; } 2765 if test ${ac_cv_prog_ac_ct_CC+y} 2766 then : 2767 printf %s "(cached) " >&6 2768 else case e in #( 2769 e) if test -n "$ac_ct_CC"; then 2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2771 else 2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773 for as_dir in $PATH 2774 do 2775 IFS=$as_save_IFS 2776 case $as_dir in #((( 2777 '') as_dir=./ ;; 2778 */) ;; 2779 *) as_dir=$as_dir/ ;; 2780 esac 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_ac_ct_CC="gcc" 2784 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787 done 2788 done 2789 IFS=$as_save_IFS 2790 2791 fi ;; 2792 esac 2793 fi 2794 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2795 if test -n "$ac_ct_CC"; then 2796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2797 printf '%s\n' "$ac_ct_CC" >&6; } 2798 else 2799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800 printf '%s\n' "no" >&6; } 2801 fi 2802 2803 if test "x$ac_ct_CC" = x; then 2804 CC="" 2805 else 2806 case $cross_compiling:$ac_tool_warned in 2807 yes:) 2808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2809 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2810 ac_tool_warned=yes ;; 2811 esac 2812 CC=$ac_ct_CC 2813 fi 2814 else 2815 CC="$ac_cv_prog_CC" 2816 fi 2817 2818 if test -z "$CC"; then 2819 if test -n "$ac_tool_prefix"; then 2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2821 set dummy ${ac_tool_prefix}cc; ac_word=$2 2822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2823 printf %s "checking for $ac_word... " >&6; } 2824 if test ${ac_cv_prog_CC+y} 2825 then : 2826 printf %s "(cached) " >&6 2827 else case e in #( 2828 e) if test -n "$CC"; then 2829 ac_cv_prog_CC="$CC" # Let the user override the test. 2830 else 2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832 for as_dir in $PATH 2833 do 2834 IFS=$as_save_IFS 2835 case $as_dir in #((( 2836 '') as_dir=./ ;; 2837 */) ;; 2838 *) as_dir=$as_dir/ ;; 2839 esac 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2842 ac_cv_prog_CC="${ac_tool_prefix}cc" 2843 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2844 break 2 2845 fi 2846 done 2847 done 2848 IFS=$as_save_IFS 2849 2850 fi ;; 2851 esac 2852 fi 2853 CC=$ac_cv_prog_CC 2854 if test -n "$CC"; then 2855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856 printf '%s\n' "$CC" >&6; } 2857 else 2858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859 printf '%s\n' "no" >&6; } 2860 fi 2861 2862 2863 fi 2864 fi 2865 if test -z "$CC"; then 2866 # Extract the first word of "cc", so it can be a program name with args. 2867 set dummy cc; ac_word=$2 2868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869 printf %s "checking for $ac_word... " >&6; } 2870 if test ${ac_cv_prog_CC+y} 2871 then : 2872 printf %s "(cached) " >&6 2873 else case e in #( 2874 e) if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876 else 2877 ac_prog_rejected=no 2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879 for as_dir in $PATH 2880 do 2881 IFS=$as_save_IFS 2882 case $as_dir in #((( 2883 '') as_dir=./ ;; 2884 */) ;; 2885 *) as_dir=$as_dir/ ;; 2886 esac 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2889 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2890 ac_prog_rejected=yes 2891 continue 2892 fi 2893 ac_cv_prog_CC="cc" 2894 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897 done 2898 done 2899 IFS=$as_save_IFS 2900 2901 if test $ac_prog_rejected = yes; then 2902 # We found a bogon in the path, so make sure we never use it. 2903 set dummy $ac_cv_prog_CC 2904 shift 2905 if test $# != 0; then 2906 # We chose a different compiler from the bogus one. 2907 # However, it has the same basename, so the bogon will be chosen 2908 # first if we set CC to just the basename; use the full file name. 2909 shift 2910 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2911 fi 2912 fi 2913 fi ;; 2914 esac 2915 fi 2916 CC=$ac_cv_prog_CC 2917 if test -n "$CC"; then 2918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2919 printf '%s\n' "$CC" >&6; } 2920 else 2921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922 printf '%s\n' "no" >&6; } 2923 fi 2924 2925 2926 fi 2927 if test -z "$CC"; then 2928 if test -n "$ac_tool_prefix"; then 2929 for ac_prog in cl.exe 2930 do 2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934 printf %s "checking for $ac_word... " >&6; } 2935 if test ${ac_cv_prog_CC+y} 2936 then : 2937 printf %s "(cached) " >&6 2938 else case e in #( 2939 e) if test -n "$CC"; then 2940 ac_cv_prog_CC="$CC" # Let the user override the test. 2941 else 2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943 for as_dir in $PATH 2944 do 2945 IFS=$as_save_IFS 2946 case $as_dir in #((( 2947 '') as_dir=./ ;; 2948 */) ;; 2949 *) as_dir=$as_dir/ ;; 2950 esac 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2954 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957 done 2958 done 2959 IFS=$as_save_IFS 2960 2961 fi ;; 2962 esac 2963 fi 2964 CC=$ac_cv_prog_CC 2965 if test -n "$CC"; then 2966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2967 printf '%s\n' "$CC" >&6; } 2968 else 2969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970 printf '%s\n' "no" >&6; } 2971 fi 2972 2973 2974 test -n "$CC" && break 2975 done 2976 fi 2977 if test -z "$CC"; then 2978 ac_ct_CC=$CC 2979 for ac_prog in cl.exe 2980 do 2981 # Extract the first word of "$ac_prog", so it can be a program name with args. 2982 set dummy $ac_prog; ac_word=$2 2983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984 printf %s "checking for $ac_word... " >&6; } 2985 if test ${ac_cv_prog_ac_ct_CC+y} 2986 then : 2987 printf %s "(cached) " >&6 2988 else case e in #( 2989 e) if test -n "$ac_ct_CC"; then 2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2991 else 2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993 for as_dir in $PATH 2994 do 2995 IFS=$as_save_IFS 2996 case $as_dir in #((( 2997 '') as_dir=./ ;; 2998 */) ;; 2999 *) as_dir=$as_dir/ ;; 3000 esac 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3003 ac_cv_prog_ac_ct_CC="$ac_prog" 3004 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3005 break 2 3006 fi 3007 done 3008 done 3009 IFS=$as_save_IFS 3010 3011 fi ;; 3012 esac 3013 fi 3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3015 if test -n "$ac_ct_CC"; then 3016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3017 printf '%s\n' "$ac_ct_CC" >&6; } 3018 else 3019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020 printf '%s\n' "no" >&6; } 3021 fi 3022 3023 3024 test -n "$ac_ct_CC" && break 3025 done 3026 3027 if test "x$ac_ct_CC" = x; then 3028 CC="" 3029 else 3030 case $cross_compiling:$ac_tool_warned in 3031 yes:) 3032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3033 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3034 ac_tool_warned=yes ;; 3035 esac 3036 CC=$ac_ct_CC 3037 fi 3038 fi 3039 3040 fi 3041 if test -z "$CC"; then 3042 if test -n "$ac_tool_prefix"; then 3043 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3044 set dummy ${ac_tool_prefix}clang; ac_word=$2 3045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3046 printf %s "checking for $ac_word... " >&6; } 3047 if test ${ac_cv_prog_CC+y} 3048 then : 3049 printf %s "(cached) " >&6 3050 else case e in #( 3051 e) if test -n "$CC"; then 3052 ac_cv_prog_CC="$CC" # Let the user override the test. 3053 else 3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3055 for as_dir in $PATH 3056 do 3057 IFS=$as_save_IFS 3058 case $as_dir in #((( 3059 '') as_dir=./ ;; 3060 */) ;; 3061 *) as_dir=$as_dir/ ;; 3062 esac 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_CC="${ac_tool_prefix}clang" 3066 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069 done 3070 done 3071 IFS=$as_save_IFS 3072 3073 fi ;; 3074 esac 3075 fi 3076 CC=$ac_cv_prog_CC 3077 if test -n "$CC"; then 3078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3079 printf '%s\n' "$CC" >&6; } 3080 else 3081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082 printf '%s\n' "no" >&6; } 3083 fi 3084 3085 3086 fi 3087 if test -z "$ac_cv_prog_CC"; then 3088 ac_ct_CC=$CC 3089 # Extract the first word of "clang", so it can be a program name with args. 3090 set dummy clang; ac_word=$2 3091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092 printf %s "checking for $ac_word... " >&6; } 3093 if test ${ac_cv_prog_ac_ct_CC+y} 3094 then : 3095 printf %s "(cached) " >&6 3096 else case e in #( 3097 e) if test -n "$ac_ct_CC"; then 3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3099 else 3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101 for as_dir in $PATH 3102 do 3103 IFS=$as_save_IFS 3104 case $as_dir in #((( 3105 '') as_dir=./ ;; 3106 */) ;; 3107 *) as_dir=$as_dir/ ;; 3108 esac 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_ac_ct_CC="clang" 3112 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115 done 3116 done 3117 IFS=$as_save_IFS 3118 3119 fi ;; 3120 esac 3121 fi 3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3123 if test -n "$ac_ct_CC"; then 3124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3125 printf '%s\n' "$ac_ct_CC" >&6; } 3126 else 3127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128 printf '%s\n' "no" >&6; } 3129 fi 3130 3131 if test "x$ac_ct_CC" = x; then 3132 CC="" 3133 else 3134 case $cross_compiling:$ac_tool_warned in 3135 yes:) 3136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3137 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3138 ac_tool_warned=yes ;; 3139 esac 3140 CC=$ac_ct_CC 3141 fi 3142 else 3143 CC="$ac_cv_prog_CC" 3144 fi 3145 3146 fi 3147 3148 3149 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3150 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3151 as_fn_error $? "no acceptable C compiler found in \$PATH 3152 See 'config.log' for more details" "$LINENO" 5; } 3153 3154 # Provide some information about the compiler. 3155 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3156 set X $ac_compile 3157 ac_compiler=$2 3158 for ac_option in --version -v -V -qversion -version; do 3159 { { ac_try="$ac_compiler $ac_option >&5" 3160 case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163 esac 3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3165 printf '%s\n' "$ac_try_echo"; } >&5 3166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3167 ac_status=$? 3168 if test -s conftest.err; then 3169 sed '10a\ 3170 ... rest of stderr output deleted ... 3171 10q' conftest.err >conftest.er1 3172 cat conftest.er1 >&5 3173 fi 3174 rm -f conftest.er1 conftest.err 3175 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3176 test $ac_status = 0; } 3177 done 3178 3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180 /* end confdefs.h. */ 3181 3182 int 3183 main (void) 3184 { 3185 3186 ; 3187 return 0; 3188 } 3189 _ACEOF 3190 ac_clean_files_save=$ac_clean_files 3191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3192 # Try to create an executable without -o first, disregard a.out. 3193 # It will help us diagnose broken compilers, and finding out an intuition 3194 # of exeext. 3195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3196 printf %s "checking whether the C compiler works... " >&6; } 3197 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3198 3199 # The possible output files: 3200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3201 3202 ac_rmfiles= 3203 for ac_file in $ac_files 3204 do 3205 case $ac_file in 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3207 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3208 esac 3209 done 3210 rm -f $ac_rmfiles 3211 3212 if { { ac_try="$ac_link_default" 3213 case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216 esac 3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3218 printf '%s\n' "$ac_try_echo"; } >&5 3219 (eval "$ac_link_default") 2>&5 3220 ac_status=$? 3221 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3222 test $ac_status = 0; } 3223 then : 3224 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3225 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3226 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3227 # so that the user can short-circuit this test for compilers unknown to 3228 # Autoconf. 3229 for ac_file in $ac_files '' 3230 do 3231 test -f "$ac_file" || continue 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3234 ;; 3235 [ab].out ) 3236 # We found the default executable, but exeext='' is most 3237 # certainly right. 3238 break;; 3239 *.* ) 3240 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3241 then :; else 3242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3243 fi 3244 # We set ac_cv_exeext here because the later test for it is not 3245 # safe: cross compilers may not add the suffix if given an '-o' 3246 # argument, so we may need to know it at that point already. 3247 # Even if this section looks crufty: it has the advantage of 3248 # actually working. 3249 break;; 3250 * ) 3251 break;; 3252 esac 3253 done 3254 test "$ac_cv_exeext" = no && ac_cv_exeext= 3255 3256 else case e in #( 3257 e) ac_file='' ;; 3258 esac 3259 fi 3260 if test -z "$ac_file" 3261 then : 3262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263 printf '%s\n' "no" >&6; } 3264 printf '%s\n' "$as_me: failed program was:" >&5 3265 sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3268 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3269 as_fn_error 77 "C compiler cannot create executables 3270 See 'config.log' for more details" "$LINENO" 5; } 3271 else case e in #( 3272 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3273 printf '%s\n' "yes" >&6; } ;; 3274 esac 3275 fi 3276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3277 printf %s "checking for C compiler default output file name... " >&6; } 3278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3279 printf '%s\n' "$ac_file" >&6; } 3280 ac_exeext=$ac_cv_exeext 3281 3282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3283 ac_clean_files=$ac_clean_files_save 3284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3285 printf %s "checking for suffix of executables... " >&6; } 3286 if { { ac_try="$ac_link" 3287 case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290 esac 3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292 printf '%s\n' "$ac_try_echo"; } >&5 3293 (eval "$ac_link") 2>&5 3294 ac_status=$? 3295 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; } 3297 then : 3298 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3299 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3300 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3301 # 'rm'. 3302 for ac_file in conftest.exe conftest conftest.*; do 3303 test -f "$ac_file" || continue 3304 case $ac_file in 3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3307 break;; 3308 * ) break;; 3309 esac 3310 done 3311 else case e in #( 3312 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3313 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3314 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3315 See 'config.log' for more details" "$LINENO" 5; } ;; 3316 esac 3317 fi 3318 rm -f conftest conftest$ac_cv_exeext 3319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3320 printf '%s\n' "$ac_cv_exeext" >&6; } 3321 3322 rm -f conftest.$ac_ext 3323 EXEEXT=$ac_cv_exeext 3324 ac_exeext=$EXEEXT 3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3326 /* end confdefs.h. */ 3327 #include <stdio.h> 3328 int 3329 main (void) 3330 { 3331 FILE *f = fopen ("conftest.out", "w"); 3332 if (!f) 3333 return 1; 3334 return ferror (f) || fclose (f) != 0; 3335 3336 ; 3337 return 0; 3338 } 3339 _ACEOF 3340 ac_clean_files="$ac_clean_files conftest.out" 3341 # Check that the compiler produces executables we can run. If not, either 3342 # the compiler is broken, or we cross compile. 3343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3344 printf %s "checking whether we are cross compiling... " >&6; } 3345 if test "$cross_compiling" != yes; then 3346 { { ac_try="$ac_link" 3347 case "(($ac_try" in 3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3349 *) ac_try_echo=$ac_try;; 3350 esac 3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3352 printf '%s\n' "$ac_try_echo"; } >&5 3353 (eval "$ac_link") 2>&5 3354 ac_status=$? 3355 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356 test $ac_status = 0; } 3357 if { ac_try='./conftest$ac_cv_exeext' 3358 { { case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361 esac 3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3363 printf '%s\n' "$ac_try_echo"; } >&5 3364 (eval "$ac_try") 2>&5 3365 ac_status=$? 3366 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; }; }; then 3368 cross_compiling=no 3369 else 3370 if test "$cross_compiling" = maybe; then 3371 cross_compiling=yes 3372 else 3373 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3374 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3375 as_fn_error 77 "cannot run C compiled programs. 3376 If you meant to cross compile, use '--host'. 3377 See 'config.log' for more details" "$LINENO" 5; } 3378 fi 3379 fi 3380 fi 3381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3382 printf '%s\n' "$cross_compiling" >&6; } 3383 3384 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3385 conftest.o conftest.obj conftest.out 3386 ac_clean_files=$ac_clean_files_save 3387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3388 printf %s "checking for suffix of object files... " >&6; } 3389 if test ${ac_cv_objext+y} 3390 then : 3391 printf %s "(cached) " >&6 3392 else case e in #( 3393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394 /* end confdefs.h. */ 3395 3396 int 3397 main (void) 3398 { 3399 3400 ; 3401 return 0; 3402 } 3403 _ACEOF 3404 rm -f conftest.o conftest.obj 3405 if { { ac_try="$ac_compile" 3406 case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409 esac 3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411 printf '%s\n' "$ac_try_echo"; } >&5 3412 (eval "$ac_compile") 2>&5 3413 ac_status=$? 3414 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; } 3416 then : 3417 for ac_file in conftest.o conftest.obj conftest.*; do 3418 test -f "$ac_file" || continue; 3419 case $ac_file in 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3422 break;; 3423 esac 3424 done 3425 else case e in #( 3426 e) printf '%s\n' "$as_me: failed program was:" >&5 3427 sed 's/^/| /' conftest.$ac_ext >&5 3428 3429 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3430 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3431 as_fn_error $? "cannot compute suffix of object files: cannot compile 3432 See 'config.log' for more details" "$LINENO" 5; } ;; 3433 esac 3434 fi 3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3436 esac 3437 fi 3438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3439 printf '%s\n' "$ac_cv_objext" >&6; } 3440 OBJEXT=$ac_cv_objext 3441 ac_objext=$OBJEXT 3442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3443 printf %s "checking whether the compiler supports GNU C... " >&6; } 3444 if test ${ac_cv_c_compiler_gnu+y} 3445 then : 3446 printf %s "(cached) " >&6 3447 else case e in #( 3448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449 /* end confdefs.h. */ 3450 3451 int 3452 main (void) 3453 { 3454 #ifndef __GNUC__ 3455 choke me 3456 #endif 3457 3458 ; 3459 return 0; 3460 } 3461 _ACEOF 3462 if ac_fn_c_try_compile "$LINENO" 3463 then : 3464 ac_compiler_gnu=yes 3465 else case e in #( 3466 e) ac_compiler_gnu=no ;; 3467 esac 3468 fi 3469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3470 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3471 ;; 3472 esac 3473 fi 3474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3475 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; } 3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3477 3478 if test $ac_compiler_gnu = yes; then 3479 GCC=yes 3480 else 3481 GCC= 3482 fi 3483 ac_test_CFLAGS=${CFLAGS+y} 3484 ac_save_CFLAGS=$CFLAGS 3485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3486 printf %s "checking whether $CC accepts -g... " >&6; } 3487 if test ${ac_cv_prog_cc_g+y} 3488 then : 3489 printf %s "(cached) " >&6 3490 else case e in #( 3491 e) ac_save_c_werror_flag=$ac_c_werror_flag 3492 ac_c_werror_flag=yes 3493 ac_cv_prog_cc_g=no 3494 CFLAGS="-g" 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496 /* end confdefs.h. */ 3497 3498 int 3499 main (void) 3500 { 3501 3502 ; 3503 return 0; 3504 } 3505 _ACEOF 3506 if ac_fn_c_try_compile "$LINENO" 3507 then : 3508 ac_cv_prog_cc_g=yes 3509 else case e in #( 3510 e) CFLAGS="" 3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512 /* end confdefs.h. */ 3513 3514 int 3515 main (void) 3516 { 3517 3518 ; 3519 return 0; 3520 } 3521 _ACEOF 3522 if ac_fn_c_try_compile "$LINENO" 3523 then : 3524 3525 else case e in #( 3526 e) ac_c_werror_flag=$ac_save_c_werror_flag 3527 CFLAGS="-g" 3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3529 /* end confdefs.h. */ 3530 3531 int 3532 main (void) 3533 { 3534 3535 ; 3536 return 0; 3537 } 3538 _ACEOF 3539 if ac_fn_c_try_compile "$LINENO" 3540 then : 3541 ac_cv_prog_cc_g=yes 3542 fi 3543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3544 esac 3545 fi 3546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3547 esac 3548 fi 3549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3550 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3551 esac 3552 fi 3553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3554 printf '%s\n' "$ac_cv_prog_cc_g" >&6; } 3555 if test $ac_test_CFLAGS; then 3556 CFLAGS=$ac_save_CFLAGS 3557 elif test $ac_cv_prog_cc_g = yes; then 3558 if test "$GCC" = yes; then 3559 CFLAGS="-g -O2" 3560 else 3561 CFLAGS="-g" 3562 fi 3563 else 3564 if test "$GCC" = yes; then 3565 CFLAGS="-O2" 3566 else 3567 CFLAGS= 3568 fi 3569 fi 3570 ac_prog_cc_stdc=no 3571 if test x$ac_prog_cc_stdc = xno 3572 then : 3573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5 3574 printf %s "checking for $CC option to enable C23 features... " >&6; } 3575 if test ${ac_cv_prog_cc_c23+y} 3576 then : 3577 printf %s "(cached) " >&6 3578 else case e in #( 3579 e) ac_cv_prog_cc_c23=no 3580 ac_save_CC=$CC 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582 /* end confdefs.h. */ 3583 $ac_c_conftest_c23_program 3584 _ACEOF 3585 for ac_arg in '' -std=gnu23 3586 do 3587 CC="$ac_save_CC $ac_arg" 3588 if ac_fn_c_try_compile "$LINENO" 3589 then : 3590 ac_cv_prog_cc_c23=$ac_arg 3591 fi 3592 rm -f core conftest.err conftest.$ac_objext conftest.beam 3593 test "x$ac_cv_prog_cc_c23" != "xno" && break 3594 done 3595 rm -f conftest.$ac_ext 3596 CC=$ac_save_CC ;; 3597 esac 3598 fi 3599 3600 if test "x$ac_cv_prog_cc_c23" = xno 3601 then : 3602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3603 printf '%s\n' "unsupported" >&6; } 3604 else case e in #( 3605 e) if test "x$ac_cv_prog_cc_c23" = x 3606 then : 3607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3608 printf '%s\n' "none needed" >&6; } 3609 else case e in #( 3610 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5 3611 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; } 3612 CC="$CC $ac_cv_prog_cc_c23" ;; 3613 esac 3614 fi 3615 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23 3616 ac_prog_cc_stdc=c23 ;; 3617 esac 3618 fi 3619 fi 3620 if test x$ac_prog_cc_stdc = xno 3621 then : 3622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3623 printf %s "checking for $CC option to enable C11 features... " >&6; } 3624 if test ${ac_cv_prog_cc_c11+y} 3625 then : 3626 printf %s "(cached) " >&6 3627 else case e in #( 3628 e) ac_cv_prog_cc_c11=no 3629 ac_save_CC=$CC 3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631 /* end confdefs.h. */ 3632 $ac_c_conftest_c11_program 3633 _ACEOF 3634 for ac_arg in '' -std=gnu11 -std:c11 3635 do 3636 CC="$ac_save_CC $ac_arg" 3637 if ac_fn_c_try_compile "$LINENO" 3638 then : 3639 ac_cv_prog_cc_c11=$ac_arg 3640 fi 3641 rm -f core conftest.err conftest.$ac_objext conftest.beam 3642 test "x$ac_cv_prog_cc_c11" != "xno" && break 3643 done 3644 rm -f conftest.$ac_ext 3645 CC=$ac_save_CC ;; 3646 esac 3647 fi 3648 3649 if test "x$ac_cv_prog_cc_c11" = xno 3650 then : 3651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3652 printf '%s\n' "unsupported" >&6; } 3653 else case e in #( 3654 e) if test "x$ac_cv_prog_cc_c11" = x 3655 then : 3656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3657 printf '%s\n' "none needed" >&6; } 3658 else case e in #( 3659 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3660 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; } 3661 CC="$CC $ac_cv_prog_cc_c11" ;; 3662 esac 3663 fi 3664 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3665 ac_prog_cc_stdc=c11 ;; 3666 esac 3667 fi 3668 fi 3669 if test x$ac_prog_cc_stdc = xno 3670 then : 3671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3672 printf %s "checking for $CC option to enable C99 features... " >&6; } 3673 if test ${ac_cv_prog_cc_c99+y} 3674 then : 3675 printf %s "(cached) " >&6 3676 else case e in #( 3677 e) ac_cv_prog_cc_c99=no 3678 ac_save_CC=$CC 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680 /* end confdefs.h. */ 3681 $ac_c_conftest_c99_program 3682 _ACEOF 3683 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3684 do 3685 CC="$ac_save_CC $ac_arg" 3686 if ac_fn_c_try_compile "$LINENO" 3687 then : 3688 ac_cv_prog_cc_c99=$ac_arg 3689 fi 3690 rm -f core conftest.err conftest.$ac_objext conftest.beam 3691 test "x$ac_cv_prog_cc_c99" != "xno" && break 3692 done 3693 rm -f conftest.$ac_ext 3694 CC=$ac_save_CC ;; 3695 esac 3696 fi 3697 3698 if test "x$ac_cv_prog_cc_c99" = xno 3699 then : 3700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3701 printf '%s\n' "unsupported" >&6; } 3702 else case e in #( 3703 e) if test "x$ac_cv_prog_cc_c99" = x 3704 then : 3705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3706 printf '%s\n' "none needed" >&6; } 3707 else case e in #( 3708 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3709 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; } 3710 CC="$CC $ac_cv_prog_cc_c99" ;; 3711 esac 3712 fi 3713 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3714 ac_prog_cc_stdc=c99 ;; 3715 esac 3716 fi 3717 fi 3718 if test x$ac_prog_cc_stdc = xno 3719 then : 3720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3721 printf %s "checking for $CC option to enable C89 features... " >&6; } 3722 if test ${ac_cv_prog_cc_c89+y} 3723 then : 3724 printf %s "(cached) " >&6 3725 else case e in #( 3726 e) ac_cv_prog_cc_c89=no 3727 ac_save_CC=$CC 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729 /* end confdefs.h. */ 3730 $ac_c_conftest_c89_program 3731 _ACEOF 3732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3733 do 3734 CC="$ac_save_CC $ac_arg" 3735 if ac_fn_c_try_compile "$LINENO" 3736 then : 3737 ac_cv_prog_cc_c89=$ac_arg 3738 fi 3739 rm -f core conftest.err conftest.$ac_objext conftest.beam 3740 test "x$ac_cv_prog_cc_c89" != "xno" && break 3741 done 3742 rm -f conftest.$ac_ext 3743 CC=$ac_save_CC ;; 3744 esac 3745 fi 3746 3747 if test "x$ac_cv_prog_cc_c89" = xno 3748 then : 3749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3750 printf '%s\n' "unsupported" >&6; } 3751 else case e in #( 3752 e) if test "x$ac_cv_prog_cc_c89" = x 3753 then : 3754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3755 printf '%s\n' "none needed" >&6; } 3756 else case e in #( 3757 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3758 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; } 3759 CC="$CC $ac_cv_prog_cc_c89" ;; 3760 esac 3761 fi 3762 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3763 ac_prog_cc_stdc=c89 ;; 3764 esac 3765 fi 3766 fi 3767 3768 ac_ext=c 3769 ac_cpp='$CPP $CPPFLAGS' 3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773 3774 3775 ac_ext=c 3776 ac_cpp='$CPP $CPPFLAGS' 3777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3779 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3781 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3782 if test ${am_cv_prog_cc_c_o+y} 3783 then : 3784 printf %s "(cached) " >&6 3785 else case e in #( 3786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787 /* end confdefs.h. */ 3788 3789 int 3790 main (void) 3791 { 3792 3793 ; 3794 return 0; 3795 } 3796 _ACEOF 3797 # Make sure it works both with $CC and with simple cc. 3798 # Following AC_PROG_CC_C_O, we do the test twice because some 3799 # compilers refuse to overwrite an existing .o file with -o, 3800 # though they will create one. 3801 am_cv_prog_cc_c_o=yes 3802 for am_i in 1 2; do 3803 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3804 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3805 ac_status=$? 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3807 (exit $ac_status); } \ 3808 && test -f conftest2.$ac_objext; then 3809 : OK 3810 else 3811 am_cv_prog_cc_c_o=no 3812 break 3813 fi 3814 done 3815 # aligned with autoconf, so not including core; see bug#72225. 3816 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 3817 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 3818 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 3819 unset am_i ;; 3820 esac 3821 fi 3822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3823 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; } 3824 if test "$am_cv_prog_cc_c_o" != yes; then 3825 # Losing compiler, so override with the script. 3826 # FIXME: It is wrong to rewrite CC. 3827 # But if we don't then we get into trouble of one sort or another. 3828 # A longer-term fix would be to have automake use am__CC in this case, 3829 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3830 CC="$am_aux_dir/compile $CC" 3831 fi 3832 ac_ext=c 3833 ac_cpp='$CPP $CPPFLAGS' 3834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3836 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3837 3838 3839 3840 ac_header= ac_cache= 3841 for ac_item in $ac_header_c_list 3842 do 3843 if test $ac_cache; then 3844 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3845 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3846 printf '%s\n' "#define $ac_item 1" >> confdefs.h 3847 fi 3848 ac_header= ac_cache= 3849 elif test $ac_header; then 3850 ac_cache=$ac_item 3851 else 3852 ac_header=$ac_item 3853 fi 3854 done 3855 3856 3857 3858 3859 3860 3861 3862 3863 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3864 then : 3865 3866 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h 3867 3868 fi 3869 3870 3871 3872 3873 3874 3875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3876 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3877 if test ${ac_cv_safe_to_define___extensions__+y} 3878 then : 3879 printf %s "(cached) " >&6 3880 else case e in #( 3881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882 /* end confdefs.h. */ 3883 3884 # define __EXTENSIONS__ 1 3885 $ac_includes_default 3886 int 3887 main (void) 3888 { 3889 3890 ; 3891 return 0; 3892 } 3893 _ACEOF 3894 if ac_fn_c_try_compile "$LINENO" 3895 then : 3896 ac_cv_safe_to_define___extensions__=yes 3897 else case e in #( 3898 e) ac_cv_safe_to_define___extensions__=no ;; 3899 esac 3900 fi 3901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3902 esac 3903 fi 3904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3905 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; } 3906 3907 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3908 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3909 if test ${ac_cv_should_define__xopen_source+y} 3910 then : 3911 printf %s "(cached) " >&6 3912 else case e in #( 3913 e) ac_cv_should_define__xopen_source=no 3914 if test $ac_cv_header_wchar_h = yes 3915 then : 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917 /* end confdefs.h. */ 3918 3919 #include <wchar.h> 3920 mbstate_t x; 3921 int 3922 main (void) 3923 { 3924 3925 ; 3926 return 0; 3927 } 3928 _ACEOF 3929 if ac_fn_c_try_compile "$LINENO" 3930 then : 3931 3932 else case e in #( 3933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934 /* end confdefs.h. */ 3935 3936 #define _XOPEN_SOURCE 500 3937 #include <wchar.h> 3938 mbstate_t x; 3939 int 3940 main (void) 3941 { 3942 3943 ; 3944 return 0; 3945 } 3946 _ACEOF 3947 if ac_fn_c_try_compile "$LINENO" 3948 then : 3949 ac_cv_should_define__xopen_source=yes 3950 fi 3951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3952 esac 3953 fi 3954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3955 fi ;; 3956 esac 3957 fi 3958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3959 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; } 3960 3961 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h 3962 3963 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h 3964 3965 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3966 3967 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h 3968 3969 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3970 3971 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h 3972 3973 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h 3974 3975 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3976 3977 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3978 3979 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3980 3981 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3982 3983 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3984 3985 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3986 3987 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3988 3989 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3990 3991 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3992 3993 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h 3994 3995 if test $ac_cv_header_minix_config_h = yes 3996 then : 3997 MINIX=yes 3998 printf '%s\n' "#define _MINIX 1" >>confdefs.h 3999 4000 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h 4001 4002 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h 4003 4004 else case e in #( 4005 e) MINIX= ;; 4006 esac 4007 fi 4008 if test $ac_cv_safe_to_define___extensions__ = yes 4009 then : 4010 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h 4011 4012 fi 4013 if test $ac_cv_should_define__xopen_source = yes 4014 then : 4015 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h 4016 4017 fi 4018 4019 4020 # Initialize Automake 4021 am__api_version='1.18' 4022 4023 4024 # Find a good install program. We prefer a C program (faster), 4025 # so one script is as good as another. But avoid the broken or 4026 # incompatible versions: 4027 # SysV /etc/install, /usr/sbin/install 4028 # SunOS /usr/etc/install 4029 # IRIX /sbin/install 4030 # AIX /bin/install 4031 # AmigaOS /C/install, which installs bootblocks on floppy discs 4032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4035 # OS/2's system install, which has a completely different semantic 4036 # ./install, which can be erroneously created by make from ./install.sh. 4037 # Reject install programs that cannot install multiple files. 4038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4039 printf %s "checking for a BSD-compatible install... " >&6; } 4040 if test -z "$INSTALL"; then 4041 if test ${ac_cv_path_install+y} 4042 then : 4043 printf %s "(cached) " >&6 4044 else case e in #( 4045 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046 for as_dir in $PATH 4047 do 4048 IFS=$as_save_IFS 4049 case $as_dir in #((( 4050 '') as_dir=./ ;; 4051 */) ;; 4052 *) as_dir=$as_dir/ ;; 4053 esac 4054 # Account for fact that we put trailing slashes in our PATH walk. 4055 case $as_dir in #(( 4056 ./ | /[cC]/* | \ 4057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4058 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4059 /usr/ucb/* ) ;; 4060 *) 4061 # OSF/1 and SCO ODT 3.0 have their own names for install. 4062 # Don't use installbsd from OSF/1 since it installs stuff as root 4063 # by default. 4064 for ac_prog in ginstall scoinst install; do 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4067 if test $ac_prog = install && 4068 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4069 # AIX install. It has an incompatible calling convention. 4070 : 4071 elif test $ac_prog = install && 4072 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4073 # program-specific install script used by HP pwplus--don't use. 4074 : 4075 else 4076 rm -rf conftest.one conftest.two conftest.dir 4077 echo one > conftest.one 4078 echo two > conftest.two 4079 mkdir conftest.dir 4080 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4081 test -s conftest.one && test -s conftest.two && 4082 test -s conftest.dir/conftest.one && 4083 test -s conftest.dir/conftest.two 4084 then 4085 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4086 break 3 4087 fi 4088 fi 4089 fi 4090 done 4091 done 4092 ;; 4093 esac 4094 4095 done 4096 IFS=$as_save_IFS 4097 4098 rm -rf conftest.one conftest.two conftest.dir 4099 ;; 4100 esac 4101 fi 4102 if test ${ac_cv_path_install+y}; then 4103 INSTALL=$ac_cv_path_install 4104 else 4105 # As a last resort, use the slow shell script. Don't cache a 4106 # value for INSTALL within a source directory, because that will 4107 # break other packages using the cache if that directory is 4108 # removed, or if the value is a relative name. 4109 INSTALL=$ac_install_sh 4110 fi 4111 fi 4112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4113 printf '%s\n' "$INSTALL" >&6; } 4114 4115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4116 # It thinks the first close brace ends the variable substitution. 4117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4118 4119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4120 4121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4122 4123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4124 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4125 if test ${am_cv_sleep_fractional_seconds+y} 4126 then : 4127 printf %s "(cached) " >&6 4128 else case e in #( 4129 e) if sleep 0.001 2>/dev/null 4130 then : 4131 am_cv_sleep_fractional_seconds=yes 4132 else case e in #( 4133 e) am_cv_sleep_fractional_seconds=no ;; 4134 esac 4135 fi 4136 ;; 4137 esac 4138 fi 4139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4140 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; } 4141 4142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4143 printf %s "checking filesystem timestamp resolution... " >&6; } 4144 if test ${am_cv_filesystem_timestamp_resolution+y} 4145 then : 4146 printf %s "(cached) " >&6 4147 else case e in #( 4148 e) # Default to the worst case. 4149 am_cv_filesystem_timestamp_resolution=2 4150 4151 # Only try to go finer than 1 sec if sleep can do it. 4152 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4153 # - 1 sec is not much of a win compared to 2 sec, and 4154 # - it takes 2 seconds to perform the test whether 1 sec works. 4155 # 4156 # Instead, just use the default 2s on platforms that have 1s resolution, 4157 # accept the extra 1s delay when using $sleep in the Automake tests, in 4158 # exchange for not incurring the 2s delay for running the test for all 4159 # packages. 4160 # 4161 am_try_resolutions= 4162 if test "$am_cv_sleep_fractional_seconds" = yes; then 4163 # Even a millisecond often causes a bunch of false positives, 4164 # so just try a hundredth of a second. The time saved between .001 and 4165 # .01 is not terribly consequential. 4166 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4167 fi 4168 4169 # In order to catch current-generation FAT out, we must *modify* files 4170 # that already exist; the *creation* timestamp is finer. Use names 4171 # that make ls -t sort them differently when they have equal 4172 # timestamps than when they have distinct timestamps, keeping 4173 # in mind that ls -t prints the *newest* file first. 4174 rm -f conftest.ts? 4175 : > conftest.ts1 4176 : > conftest.ts2 4177 : > conftest.ts3 4178 4179 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4180 # clobber the current shell's arguments. (Outer-level square brackets 4181 # are removed by m4; they're present so that m4 does not expand 4182 # <dollar><star>; be careful, easy to get confused.) 4183 if ( 4184 set X `ls -t conftest.ts[12]` && 4185 { 4186 test "$*" != "X conftest.ts1 conftest.ts2" || 4187 test "$*" != "X conftest.ts2 conftest.ts1"; 4188 } 4189 ); then :; else 4190 # If neither matched, then we have a broken ls. This can happen 4191 # if, for instance, CONFIG_SHELL is bash and it inherits a 4192 # broken ls alias from the environment. This has actually 4193 # happened. Such a system could not be considered "sane". 4194 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4195 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4196 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4197 as_fn_error $? "ls -t produces unexpected output. 4198 Make sure there is not a broken ls alias in your environment. 4199 See 'config.log' for more details" "$LINENO" 5; } 4200 fi 4201 4202 for am_try_res in $am_try_resolutions; do 4203 # Any one fine-grained sleep might happen to cross the boundary 4204 # between two values of a coarser actual resolution, but if we do 4205 # two fine-grained sleeps in a row, at least one of them will fall 4206 # entirely within a coarse interval. 4207 echo alpha > conftest.ts1 4208 sleep $am_try_res 4209 echo beta > conftest.ts2 4210 sleep $am_try_res 4211 echo gamma > conftest.ts3 4212 4213 # We assume that 'ls -t' will make use of high-resolution 4214 # timestamps if the operating system supports them at all. 4215 if (set X `ls -t conftest.ts?` && 4216 test "$2" = conftest.ts3 && 4217 test "$3" = conftest.ts2 && 4218 test "$4" = conftest.ts1); then 4219 # 4220 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4221 # because we don't need to test make. 4222 make_ok=true 4223 if test $am_try_res != 1; then 4224 # But if we've succeeded so far with a subsecond resolution, we 4225 # have one more thing to check: make. It can happen that 4226 # everything else supports the subsecond mtimes, but make doesn't; 4227 # notably on macOS, which ships make 3.81 from 2006 (the last one 4228 # released under GPLv2). https://bugs.gnu.org/68808 4229 # 4230 # We test $MAKE if it is defined in the environment, else "make". 4231 # It might get overridden later, but our hope is that in practice 4232 # it does not matter: it is the system "make" which is (by far) 4233 # the most likely to be broken, whereas if the user overrides it, 4234 # probably they did so with a better, or at least not worse, make. 4235 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4236 # 4237 # Create a Makefile (real tab character here): 4238 rm -f conftest.mk 4239 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4240 echo ' touch conftest.ts2' >>conftest.mk 4241 # 4242 # Now, running 4243 # touch conftest.ts1; touch conftest.ts2; make 4244 # should touch ts1 because ts2 is newer. This could happen by luck, 4245 # but most often, it will fail if make's support is insufficient. So 4246 # test for several consecutive successes. 4247 # 4248 # (We reuse conftest.ts[12] because we still want to modify existing 4249 # files, not create new ones, per above.) 4250 n=0 4251 make=${MAKE-make} 4252 until test $n -eq 3; do 4253 echo one > conftest.ts1 4254 sleep $am_try_res 4255 echo two > conftest.ts2 # ts2 should now be newer than ts1 4256 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4257 make_ok=false 4258 break # out of $n loop 4259 fi 4260 n=`expr $n + 1` 4261 done 4262 fi 4263 # 4264 if $make_ok; then 4265 # Everything we know to check worked out, so call this resolution good. 4266 am_cv_filesystem_timestamp_resolution=$am_try_res 4267 break # out of $am_try_res loop 4268 fi 4269 # Otherwise, we'll go on to check the next resolution. 4270 fi 4271 done 4272 rm -f conftest.ts? 4273 # (end _am_filesystem_timestamp_resolution) 4274 ;; 4275 esac 4276 fi 4277 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4278 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; } 4279 4280 # This check should not be cached, as it may vary across builds of 4281 # different projects. 4282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4283 printf %s "checking whether build environment is sane... " >&6; } 4284 # Reject unsafe characters in $srcdir or the absolute working directory 4285 # name. Accept space and tab only in the latter. 4286 am_lf=' 4287 ' 4288 case `pwd` in 4289 *[\\\"\#\$\&\'\`$am_lf]*) 4290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291 printf '%s\n' "no" >&6; } 4292 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4293 esac 4294 case $srcdir in 4295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297 printf '%s\n' "no" >&6; } 4298 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4299 esac 4300 4301 # Do 'set' in a subshell so we don't clobber the current shell's 4302 # arguments. Must try -L first in case configure is actually a 4303 # symlink; some systems play weird games with the mod time of symlinks 4304 # (eg FreeBSD returns the mod time of the symlink's containing 4305 # directory). 4306 am_build_env_is_sane=no 4307 am_has_slept=no 4308 rm -f conftest.file 4309 for am_try in 1 2; do 4310 echo "timestamp, slept: $am_has_slept" > conftest.file 4311 if ( 4312 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4313 if test "$*" = "X"; then 4314 # -L didn't work. 4315 set X `ls -t "$srcdir/configure" conftest.file` 4316 fi 4317 test "$2" = conftest.file 4318 ); then 4319 am_build_env_is_sane=yes 4320 break 4321 fi 4322 # Just in case. 4323 sleep "$am_cv_filesystem_timestamp_resolution" 4324 am_has_slept=yes 4325 done 4326 4327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4328 printf '%s\n' "$am_build_env_is_sane" >&6; } 4329 if test "$am_build_env_is_sane" = no; then 4330 as_fn_error $? "newly created file is older than distributed files! 4331 Check your system clock" "$LINENO" 5 4332 fi 4333 4334 # If we didn't sleep, we still need to ensure time stamps of config.status and 4335 # generated files are strictly newer. 4336 am_sleep_pid= 4337 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4338 then : 4339 4340 else case e in #( 4341 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4342 am_sleep_pid=$! 4343 ;; 4344 esac 4345 fi 4346 4347 rm -f conftest.file 4348 4349 test "$program_prefix" != NONE && 4350 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4351 # Use a double $ so make ignores it. 4352 test "$program_suffix" != NONE && 4353 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4354 # Double any \ or $. 4355 # By default was 's,x,x', remove it if useless. 4356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4357 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"` 4358 4359 4360 if test x"${MISSING+set}" != xset; then 4361 MISSING="\${SHELL} '$am_aux_dir/missing'" 4362 fi 4363 # Use eval to expand $SHELL 4364 if eval "$MISSING --is-lightweight"; then 4365 am_missing_run="$MISSING " 4366 else 4367 am_missing_run= 4368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4369 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4370 fi 4371 4372 if test x"${install_sh+set}" != xset; then 4373 case $am_aux_dir in 4374 *\ * | *\ *) 4375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4376 *) 4377 install_sh="\${SHELL} $am_aux_dir/install-sh" 4378 esac 4379 fi 4380 4381 # Installed binaries are usually stripped using 'strip' when the user 4382 # run "make install-strip". However 'strip' might not be the right 4383 # tool to use in cross-compilation environments, therefore Automake 4384 # will honor the 'STRIP' environment variable to overrule this program. 4385 if test "$cross_compiling" != no; then 4386 if test -n "$ac_tool_prefix"; then 4387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4388 set dummy ${ac_tool_prefix}strip; ac_word=$2 4389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4390 printf %s "checking for $ac_word... " >&6; } 4391 if test ${ac_cv_prog_STRIP+y} 4392 then : 4393 printf %s "(cached) " >&6 4394 else case e in #( 4395 e) if test -n "$STRIP"; then 4396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4397 else 4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399 for as_dir in $PATH 4400 do 4401 IFS=$as_save_IFS 4402 case $as_dir in #((( 4403 '') as_dir=./ ;; 4404 */) ;; 4405 *) as_dir=$as_dir/ ;; 4406 esac 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4409 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4410 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413 done 4414 done 4415 IFS=$as_save_IFS 4416 4417 fi ;; 4418 esac 4419 fi 4420 STRIP=$ac_cv_prog_STRIP 4421 if test -n "$STRIP"; then 4422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4423 printf '%s\n' "$STRIP" >&6; } 4424 else 4425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426 printf '%s\n' "no" >&6; } 4427 fi 4428 4429 4430 fi 4431 if test -z "$ac_cv_prog_STRIP"; then 4432 ac_ct_STRIP=$STRIP 4433 # Extract the first word of "strip", so it can be a program name with args. 4434 set dummy strip; ac_word=$2 4435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4436 printf %s "checking for $ac_word... " >&6; } 4437 if test ${ac_cv_prog_ac_ct_STRIP+y} 4438 then : 4439 printf %s "(cached) " >&6 4440 else case e in #( 4441 e) if test -n "$ac_ct_STRIP"; then 4442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4443 else 4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4445 for as_dir in $PATH 4446 do 4447 IFS=$as_save_IFS 4448 case $as_dir in #((( 4449 '') as_dir=./ ;; 4450 */) ;; 4451 *) as_dir=$as_dir/ ;; 4452 esac 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4455 ac_cv_prog_ac_ct_STRIP="strip" 4456 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459 done 4460 done 4461 IFS=$as_save_IFS 4462 4463 fi ;; 4464 esac 4465 fi 4466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4467 if test -n "$ac_ct_STRIP"; then 4468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4469 printf '%s\n' "$ac_ct_STRIP" >&6; } 4470 else 4471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4472 printf '%s\n' "no" >&6; } 4473 fi 4474 4475 if test "x$ac_ct_STRIP" = x; then 4476 STRIP=":" 4477 else 4478 case $cross_compiling:$ac_tool_warned in 4479 yes:) 4480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4481 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4482 ac_tool_warned=yes ;; 4483 esac 4484 STRIP=$ac_ct_STRIP 4485 fi 4486 else 4487 STRIP="$ac_cv_prog_STRIP" 4488 fi 4489 4490 fi 4491 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4492 4493 4494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4495 printf %s "checking for a race-free mkdir -p... " >&6; } 4496 if test -z "$MKDIR_P"; then 4497 if test ${ac_cv_path_mkdir+y} 4498 then : 4499 printf %s "(cached) " >&6 4500 else case e in #( 4501 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4503 do 4504 IFS=$as_save_IFS 4505 case $as_dir in #((( 4506 '') as_dir=./ ;; 4507 */) ;; 4508 *) as_dir=$as_dir/ ;; 4509 esac 4510 for ac_prog in mkdir gmkdir; do 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4513 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4514 'mkdir ('*'coreutils) '* | \ 4515 *'BusyBox '* | \ 4516 'mkdir (fileutils) '4.1*) 4517 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4518 break 3;; 4519 esac 4520 done 4521 done 4522 done 4523 IFS=$as_save_IFS 4524 ;; 4525 esac 4526 fi 4527 4528 test -d ./--version && rmdir ./--version 4529 if test ${ac_cv_path_mkdir+y}; then 4530 MKDIR_P="$ac_cv_path_mkdir -p" 4531 else 4532 # As a last resort, use plain mkdir -p, 4533 # in the hope it doesn't have the bugs of ancient mkdir. 4534 MKDIR_P='mkdir -p' 4535 fi 4536 fi 4537 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4538 printf '%s\n' "$MKDIR_P" >&6; } 4539 4540 for ac_prog in gawk mawk nawk awk 'busybox awk' 4541 do 4542 # Extract the first word of "$ac_prog", so it can be a program name with args. 4543 set dummy $ac_prog; ac_word=$2 4544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4545 printf %s "checking for $ac_word... " >&6; } 4546 if test ${ac_cv_prog_AWK+y} 4547 then : 4548 printf %s "(cached) " >&6 4549 else case e in #( 4550 e) if test -n "$AWK"; then 4551 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4552 else 4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554 for as_dir in $PATH 4555 do 4556 IFS=$as_save_IFS 4557 case $as_dir in #((( 4558 '') as_dir=./ ;; 4559 */) ;; 4560 *) as_dir=$as_dir/ ;; 4561 esac 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4564 ac_cv_prog_AWK="$ac_prog" 4565 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4566 break 2 4567 fi 4568 done 4569 done 4570 IFS=$as_save_IFS 4571 4572 fi ;; 4573 esac 4574 fi 4575 AWK=$ac_cv_prog_AWK 4576 if test -n "$AWK"; then 4577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4578 printf '%s\n' "$AWK" >&6; } 4579 else 4580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4581 printf '%s\n' "no" >&6; } 4582 fi 4583 4584 4585 test -n "$AWK" && break 4586 done 4587 4588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4589 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4590 set x ${MAKE-make} 4591 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4592 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4593 then : 4594 printf %s "(cached) " >&6 4595 else case e in #( 4596 e) cat >conftest.make <<\_ACEOF 4597 SHELL = /bin/sh 4598 all: 4599 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%' 4600 _ACEOF 4601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4602 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4603 *@@@%%%=?*=@@@%%%*) 4604 eval ac_cv_prog_make_${ac_make}_set=yes;; 4605 *) 4606 eval ac_cv_prog_make_${ac_make}_set=no;; 4607 esac 4608 rm -f conftest.make ;; 4609 esac 4610 fi 4611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4613 printf '%s\n' "yes" >&6; } 4614 SET_MAKE= 4615 else 4616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4617 printf '%s\n' "no" >&6; } 4618 SET_MAKE="MAKE=${MAKE-make}" 4619 fi 4620 4621 rm -rf .tst 2>/dev/null 4622 mkdir .tst 2>/dev/null 4623 if test -d .tst; then 4624 am__leading_dot=. 4625 else 4626 am__leading_dot=_ 4627 fi 4628 rmdir .tst 2>/dev/null 4629 4630 DEPDIR="${am__leading_dot}deps" 4631 4632 ac_config_commands="$ac_config_commands depfiles" 4633 4634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4635 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4636 cat > confinc.mk << 'END' 4637 am__doit: 4638 @echo this is the am__doit target >confinc.out 4639 .PHONY: am__doit 4640 END 4641 am__include="#" 4642 am__quote= 4643 # BSD make does it like this. 4644 echo '.include "confinc.mk" # ignored' > confmf.BSD 4645 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4646 echo 'include confinc.mk # ignored' > confmf.GNU 4647 _am_result=no 4648 for s in GNU BSD; do 4649 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4650 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4651 ac_status=$? 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } 4654 case $?:`cat confinc.out 2>/dev/null` in #( 4655 '0:this is the am__doit target') : 4656 case $s in #( 4657 BSD) : 4658 am__include='.include' am__quote='"' ;; #( 4659 *) : 4660 am__include='include' am__quote='' ;; 4661 esac ;; #( 4662 *) : 4663 ;; 4664 esac 4665 if test "$am__include" != "#"; then 4666 _am_result="yes ($s style)" 4667 break 4668 fi 4669 done 4670 rm -f confinc.* confmf.* 4671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4672 printf '%s\n' "${_am_result}" >&6; } 4673 4674 # Check whether --enable-dependency-tracking was given. 4675 if test ${enable_dependency_tracking+y} 4676 then : 4677 enableval=$enable_dependency_tracking; 4678 fi 4679 4680 if test "x$enable_dependency_tracking" != xno; then 4681 am_depcomp="$ac_aux_dir/depcomp" 4682 AMDEPBACKSLASH='\' 4683 am__nodep='_no' 4684 fi 4685 if test "x$enable_dependency_tracking" != xno; then 4686 AMDEP_TRUE= 4687 AMDEP_FALSE='#' 4688 else 4689 AMDEP_TRUE='#' 4690 AMDEP_FALSE= 4691 fi 4692 4693 4694 AM_DEFAULT_VERBOSITY=1 4695 # Check whether --enable-silent-rules was given. 4696 if test ${enable_silent_rules+y} 4697 then : 4698 enableval=$enable_silent_rules; 4699 fi 4700 4701 am_make=${MAKE-make} 4702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4703 printf %s "checking whether $am_make supports nested variables... " >&6; } 4704 if test ${am_cv_make_support_nested_variables+y} 4705 then : 4706 printf %s "(cached) " >&6 4707 else case e in #( 4708 e) if printf '%s\n' 'TRUE=$(BAR$(V)) 4709 BAR0=false 4710 BAR1=true 4711 V=1 4712 am__doit: 4713 @$(TRUE) 4714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4715 am_cv_make_support_nested_variables=yes 4716 else 4717 am_cv_make_support_nested_variables=no 4718 fi ;; 4719 esac 4720 fi 4721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4722 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; } 4723 AM_BACKSLASH='\' 4724 4725 am__rm_f_notfound= 4726 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4727 then : 4728 4729 else case e in #( 4730 e) am__rm_f_notfound='""' ;; 4731 esac 4732 fi 4733 4734 4735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4736 printf %s "checking xargs -n works... " >&6; } 4737 if test ${am_cv_xargs_n_works+y} 4738 then : 4739 printf %s "(cached) " >&6 4740 else case e in #( 4741 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4742 3" 4743 then : 4744 am_cv_xargs_n_works=yes 4745 else case e in #( 4746 e) am_cv_xargs_n_works=no ;; 4747 esac 4748 fi ;; 4749 esac 4750 fi 4751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4752 printf '%s\n' "$am_cv_xargs_n_works" >&6; } 4753 if test "$am_cv_xargs_n_works" = yes 4754 then : 4755 am__xargs_n='xargs -n' 4756 else case e in #( 4757 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4758 ;; 4759 esac 4760 fi 4761 4762 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4763 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4764 # is not polluted with repeated "-I." 4765 am__isrc=' -I$(srcdir)' 4766 # test to see if srcdir already configured 4767 if test -f $srcdir/config.status; then 4768 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4769 fi 4770 fi 4771 4772 # test whether we have cygpath 4773 if test -z "$CYGPATH_W"; then 4774 if (cygpath --version) >/dev/null 2>/dev/null; then 4775 CYGPATH_W='cygpath -w' 4776 else 4777 CYGPATH_W=echo 4778 fi 4779 fi 4780 4781 4782 # Define the identity of the package. 4783 PACKAGE='xlsfonts' 4784 VERSION='1.0.9' 4785 4786 4787 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4788 4789 4790 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h 4791 4792 # Some tools Automake needs. 4793 4794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4795 4796 4797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4798 4799 4800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4801 4802 4803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4804 4805 4806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4807 4808 # For better backward compatibility. To be removed once Automake 1.9.x 4809 # dies out for good. For more background, see: 4810 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4811 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4812 mkdir_p='$(MKDIR_P)' 4813 4814 # We need awk for the "check" target (and possibly the TAP driver). The 4815 # system "awk" is bad on some platforms. 4816 # Always define AMTAR for backward compatibility. Yes, it's still used 4817 # in the wild :-( We should find a proper way to deprecate it ... 4818 AMTAR='$${TAR-tar}' 4819 4820 4821 # We'll loop over all known methods to create a tar archive until one works. 4822 _am_tools='gnutar plaintar pax cpio none' 4823 4824 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4825 # There is notably a 21 bits limit for the UID and the GID. In fact, 4826 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4827 # and bug#13588). 4828 am_max_uid=2097151 # 2^21 - 1 4829 am_max_gid=$am_max_uid 4830 # The $UID and $GID variables are not portable, so we need to resort 4831 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4832 # below are definitely unexpected, so allow the users to see them 4833 # (that is, avoid stderr redirection). 4834 am_uid=`id -u || echo unknown` 4835 am_gid=`id -g || echo unknown` 4836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4837 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4838 if test x$am_uid = xunknown; then 4839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4840 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4841 elif test $am_uid -le $am_max_uid; then 4842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4843 printf '%s\n' "yes" >&6; } 4844 else 4845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846 printf '%s\n' "no" >&6; } 4847 _am_tools=none 4848 fi 4849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4850 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4851 if test x$gm_gid = xunknown; then 4852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4853 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4854 elif test $am_gid -le $am_max_gid; then 4855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4856 printf '%s\n' "yes" >&6; } 4857 else 4858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4859 printf '%s\n' "no" >&6; } 4860 _am_tools=none 4861 fi 4862 4863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4864 printf %s "checking how to create a ustar tar archive... " >&6; } 4865 4866 # Go ahead even if we have the value already cached. We do so because we 4867 # need to set the values for the 'am__tar' and 'am__untar' variables. 4868 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4869 4870 for _am_tool in $_am_tools; do 4871 case $_am_tool in 4872 gnutar) 4873 for _am_tar in tar gnutar gtar; do 4874 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4875 ($_am_tar --version) >&5 2>&5 4876 ac_status=$? 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4878 (exit $ac_status); } && break 4879 done 4880 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4881 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4882 am__untar="$_am_tar -xf -" 4883 ;; 4884 plaintar) 4885 # Must skip GNU tar: if it does not support --format= it doesn't create 4886 # ustar tarball either. 4887 (tar --version) >/dev/null 2>&1 && continue 4888 am__tar='tar chf - "$$tardir"' 4889 am__tar_='tar chf - "$tardir"' 4890 am__untar='tar xf -' 4891 ;; 4892 pax) 4893 am__tar='pax -L -x ustar -w "$$tardir"' 4894 am__tar_='pax -L -x ustar -w "$tardir"' 4895 am__untar='pax -r' 4896 ;; 4897 cpio) 4898 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4899 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4900 am__untar='cpio -i -H ustar -d' 4901 ;; 4902 none) 4903 am__tar=false 4904 am__tar_=false 4905 am__untar=false 4906 ;; 4907 esac 4908 4909 # If the value was cached, stop now. We just wanted to have am__tar 4910 # and am__untar set. 4911 test -n "${am_cv_prog_tar_ustar}" && break 4912 4913 # tar/untar a dummy directory, and stop if the command works. 4914 rm -rf conftest.dir 4915 mkdir conftest.dir 4916 echo GrepMe > conftest.dir/file 4917 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4918 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4919 ac_status=$? 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); } 4922 rm -rf conftest.dir 4923 if test -s conftest.tar; then 4924 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4925 ($am__untar <conftest.tar) >&5 2>&5 4926 ac_status=$? 4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4928 (exit $ac_status); } 4929 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4930 (cat conftest.dir/file) >&5 2>&5 4931 ac_status=$? 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4933 (exit $ac_status); } 4934 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4935 fi 4936 done 4937 rm -rf conftest.dir 4938 4939 if test ${am_cv_prog_tar_ustar+y} 4940 then : 4941 printf %s "(cached) " >&6 4942 else case e in #( 4943 e) am_cv_prog_tar_ustar=$_am_tool ;; 4944 esac 4945 fi 4946 4947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4948 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; } 4949 4950 4951 4952 4953 4954 depcc="$CC" am_compiler_list= 4955 4956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4957 printf %s "checking dependency style of $depcc... " >&6; } 4958 if test ${am_cv_CC_dependencies_compiler_type+y} 4959 then : 4960 printf %s "(cached) " >&6 4961 else case e in #( 4962 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4963 # We make a subdir and do the tests there. Otherwise we can end up 4964 # making bogus files that we don't know about and never remove. For 4965 # instance it was reported that on HP-UX the gcc test will end up 4966 # making a dummy file named 'D' -- because '-MD' means "put the output 4967 # in D". 4968 rm -rf conftest.dir 4969 mkdir conftest.dir 4970 # Copy depcomp to subdir because otherwise we won't find it if we're 4971 # using a relative directory. 4972 cp "$am_depcomp" conftest.dir 4973 cd conftest.dir 4974 # We will build objects and dependencies in a subdirectory because 4975 # it helps to detect inapplicable dependency modes. For instance 4976 # both Tru64's cc and ICC support -MD to output dependencies as a 4977 # side effect of compilation, but ICC will put the dependencies in 4978 # the current directory while Tru64 will put them in the object 4979 # directory. 4980 mkdir sub 4981 4982 am_cv_CC_dependencies_compiler_type=none 4983 if test "$am_compiler_list" = ""; then 4984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4985 fi 4986 am__universal=false 4987 case " $depcc " in #( 4988 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4989 esac 4990 4991 for depmode in $am_compiler_list; do 4992 # Setup a source with many dependencies, because some compilers 4993 # like to wrap large dependency lists on column 80 (with \), and 4994 # we should not choose a depcomp mode which is confused by this. 4995 # 4996 # We need to recreate these files for each test, as the compiler may 4997 # overwrite some of them when testing with obscure command lines. 4998 # This happens at least with the AIX C compiler. 4999 : > sub/conftest.c 5000 for i in 1 2 3 4 5 6; do 5001 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5002 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5003 # Solaris 10 /bin/sh. 5004 echo '/* dummy */' > sub/conftst$i.h 5005 done 5006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5007 5008 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5009 # mode. It turns out that the SunPro C++ compiler does not properly 5010 # handle '-M -o', and we need to detect this. Also, some Intel 5011 # versions had trouble with output in subdirs. 5012 am__obj=sub/conftest.${OBJEXT-o} 5013 am__minus_obj="-o $am__obj" 5014 case $depmode in 5015 gcc) 5016 # This depmode causes a compiler race in universal mode. 5017 test "$am__universal" = false || continue 5018 ;; 5019 nosideeffect) 5020 # After this tag, mechanisms are not by side-effect, so they'll 5021 # only be used when explicitly requested. 5022 if test "x$enable_dependency_tracking" = xyes; then 5023 continue 5024 else 5025 break 5026 fi 5027 ;; 5028 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5029 # This compiler won't grok '-c -o', but also, the minuso test has 5030 # not run yet. These depmodes are late enough in the game, and 5031 # so weak that their functioning should not be impacted. 5032 am__obj=conftest.${OBJEXT-o} 5033 am__minus_obj= 5034 ;; 5035 none) break ;; 5036 esac 5037 if depmode=$depmode \ 5038 source=sub/conftest.c object=$am__obj \ 5039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5041 >/dev/null 2>conftest.err && 5042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5046 # icc doesn't choke on unknown options, it will just issue warnings 5047 # or remarks (even with -Werror). So we grep stderr for any message 5048 # that says an option was ignored or not supported. 5049 # When given -MP, icc 7.0 and 7.1 complain thus: 5050 # icc: Command line warning: ignoring option '-M'; no argument required 5051 # The diagnosis changed in icc 8.0: 5052 # icc: Command line remark: option '-MP' not supported 5053 if (grep 'ignoring option' conftest.err || 5054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5055 am_cv_CC_dependencies_compiler_type=$depmode 5056 break 5057 fi 5058 fi 5059 done 5060 5061 cd .. 5062 rm -rf conftest.dir 5063 else 5064 am_cv_CC_dependencies_compiler_type=none 5065 fi 5066 ;; 5067 esac 5068 fi 5069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5070 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; } 5071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5072 5073 if 5074 test "x$enable_dependency_tracking" != xno \ 5075 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5076 am__fastdepCC_TRUE= 5077 am__fastdepCC_FALSE='#' 5078 else 5079 am__fastdepCC_TRUE='#' 5080 am__fastdepCC_FALSE= 5081 fi 5082 5083 5084 # Variables for tags utilities; see am/tags.am 5085 if test -z "$CTAGS"; then 5086 CTAGS=ctags 5087 fi 5088 5089 if test -z "$ETAGS"; then 5090 ETAGS=etags 5091 fi 5092 5093 if test -z "$CSCOPE"; then 5094 CSCOPE=cscope 5095 fi 5096 5097 5098 5099 5100 5101 5102 5103 5104 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5 5117 printf %s "checking for $CC options to detect undeclared functions... " >&6; } 5118 if test ${ac_cv_c_undeclared_builtin_options+y} 5119 then : 5120 printf %s "(cached) " >&6 5121 else case e in #( 5122 e) ac_save_CFLAGS=$CFLAGS 5123 ac_cv_c_undeclared_builtin_options='cannot detect' 5124 for ac_arg in '' -fno-builtin; do 5125 CFLAGS="$ac_save_CFLAGS $ac_arg" 5126 # This test program should *not* compile successfully. 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128 /* end confdefs.h. */ 5129 5130 int 5131 main (void) 5132 { 5133 (void) strchr; 5134 ; 5135 return 0; 5136 } 5137 _ACEOF 5138 if ac_fn_c_try_compile "$LINENO" 5139 then : 5140 5141 else case e in #( 5142 e) # This test program should compile successfully. 5143 # No library function is consistently available on 5144 # freestanding implementations, so test against a dummy 5145 # declaration. Include always-available headers on the 5146 # off chance that they somehow elicit warnings. 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148 /* end confdefs.h. */ 5149 #include <float.h> 5150 #include <limits.h> 5151 #include <stdarg.h> 5152 #include <stddef.h> 5153 extern void ac_decl (int, char *); 5154 5155 int 5156 main (void) 5157 { 5158 (void) ac_decl (0, (char *) 0); 5159 (void) ac_decl; 5160 5161 ; 5162 return 0; 5163 } 5164 _ACEOF 5165 if ac_fn_c_try_compile "$LINENO" 5166 then : 5167 if test x"$ac_arg" = x 5168 then : 5169 ac_cv_c_undeclared_builtin_options='none needed' 5170 else case e in #( 5171 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5172 esac 5173 fi 5174 break 5175 fi 5176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5177 esac 5178 fi 5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5180 done 5181 CFLAGS=$ac_save_CFLAGS 5182 ;; 5183 esac 5184 fi 5185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5186 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; } 5187 case $ac_cv_c_undeclared_builtin_options in #( 5188 'cannot detect') : 5189 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5190 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 5191 as_fn_error $? "cannot make $CC report undeclared builtins 5192 See 'config.log' for more details" "$LINENO" 5; } ;; #( 5193 'none needed') : 5194 ac_c_undeclared_builtin_options='' ;; #( 5195 *) : 5196 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5197 esac 5198 5199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5 5200 printf %s "checking for $CC options to ignore future-version functions... " >&6; } 5201 if test ${ac_cv_c_future_darwin_options+y} 5202 then : 5203 printf %s "(cached) " >&6 5204 else case e in #( 5205 e) ac_compile_saved="$ac_compile" 5206 ac_compile="$ac_compile -Werror=unguarded-availability-new" 5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208 /* end confdefs.h. */ 5209 #if ! (defined __APPLE__ && defined __MACH__) 5210 #error "-Werror=unguarded-availability-new not needed here" 5211 #endif 5212 5213 int 5214 main (void) 5215 { 5216 5217 ; 5218 return 0; 5219 } 5220 _ACEOF 5221 if ac_fn_c_try_compile "$LINENO" 5222 then : 5223 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new' 5224 else case e in #( 5225 e) ac_cv_c_future_darwin_options='none needed' ;; 5226 esac 5227 fi 5228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5229 ac_compile="$ac_compile_saved" 5230 ;; 5231 esac 5232 fi 5233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5 5234 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; } 5235 case $ac_cv_c_future_darwin_options in #( 5236 'none needed') : 5237 ac_c_future_darwin_options='' ;; #( 5238 *) : 5239 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;; 5240 esac 5241 5242 5243 5244 5245 5246 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5247 if test "x$ac_cv_have_decl___clang__" = xyes 5248 then : 5249 CLANGCC="yes" 5250 else case e in #( 5251 e) CLANGCC="no" ;; 5252 esac 5253 fi 5254 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5255 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5256 then : 5257 INTELCC="yes" 5258 else case e in #( 5259 e) INTELCC="no" ;; 5260 esac 5261 fi 5262 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5263 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5264 then : 5265 SUNCC="yes" 5266 else case e in #( 5267 e) SUNCC="no" ;; 5268 esac 5269 fi 5270 5271 5272 5273 5274 5275 5276 5277 5278 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5279 if test -n "$ac_tool_prefix"; then 5280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5281 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5283 printf %s "checking for $ac_word... " >&6; } 5284 if test ${ac_cv_path_PKG_CONFIG+y} 5285 then : 5286 printf %s "(cached) " >&6 5287 else case e in #( 5288 e) case $PKG_CONFIG in 5289 [\\/]* | ?:[\\/]*) 5290 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5291 ;; 5292 *) 5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5294 for as_dir in $PATH 5295 do 5296 IFS=$as_save_IFS 5297 case $as_dir in #((( 5298 '') as_dir=./ ;; 5299 */) ;; 5300 *) as_dir=$as_dir/ ;; 5301 esac 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5304 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5305 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308 done 5309 done 5310 IFS=$as_save_IFS 5311 5312 ;; 5313 esac ;; 5314 esac 5315 fi 5316 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5317 if test -n "$PKG_CONFIG"; then 5318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5319 printf '%s\n' "$PKG_CONFIG" >&6; } 5320 else 5321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5322 printf '%s\n' "no" >&6; } 5323 fi 5324 5325 5326 fi 5327 if test -z "$ac_cv_path_PKG_CONFIG"; then 5328 ac_pt_PKG_CONFIG=$PKG_CONFIG 5329 # Extract the first word of "pkg-config", so it can be a program name with args. 5330 set dummy pkg-config; ac_word=$2 5331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5332 printf %s "checking for $ac_word... " >&6; } 5333 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5334 then : 5335 printf %s "(cached) " >&6 5336 else case e in #( 5337 e) case $ac_pt_PKG_CONFIG in 5338 [\\/]* | ?:[\\/]*) 5339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5340 ;; 5341 *) 5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5343 for as_dir in $PATH 5344 do 5345 IFS=$as_save_IFS 5346 case $as_dir in #((( 5347 '') as_dir=./ ;; 5348 */) ;; 5349 *) as_dir=$as_dir/ ;; 5350 esac 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5353 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5354 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357 done 5358 done 5359 IFS=$as_save_IFS 5360 5361 ;; 5362 esac ;; 5363 esac 5364 fi 5365 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5366 if test -n "$ac_pt_PKG_CONFIG"; then 5367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5368 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; } 5369 else 5370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5371 printf '%s\n' "no" >&6; } 5372 fi 5373 5374 if test "x$ac_pt_PKG_CONFIG" = x; then 5375 PKG_CONFIG="" 5376 else 5377 case $cross_compiling:$ac_tool_warned in 5378 yes:) 5379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5380 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5381 ac_tool_warned=yes ;; 5382 esac 5383 PKG_CONFIG=$ac_pt_PKG_CONFIG 5384 fi 5385 else 5386 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5387 fi 5388 5389 fi 5390 if test -n "$PKG_CONFIG"; then 5391 _pkg_min_version=0.9.0 5392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5393 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5394 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5396 printf '%s\n' "yes" >&6; } 5397 else 5398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5399 printf '%s\n' "no" >&6; } 5400 PKG_CONFIG="" 5401 fi 5402 fi 5403 5404 5405 # Make sure we can run config.sub. 5406 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5407 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5408 5409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5410 printf %s "checking build system type... " >&6; } 5411 if test ${ac_cv_build+y} 5412 then : 5413 printf %s "(cached) " >&6 5414 else case e in #( 5415 e) ac_build_alias=$build_alias 5416 test "x$ac_build_alias" = x && 5417 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5418 test "x$ac_build_alias" = x && 5419 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5420 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5421 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5422 ;; 5423 esac 5424 fi 5425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5426 printf '%s\n' "$ac_cv_build" >&6; } 5427 case $ac_cv_build in 5428 *-*-*) ;; 5429 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5430 esac 5431 build=$ac_cv_build 5432 ac_save_IFS=$IFS; IFS='-' 5433 set x $ac_cv_build 5434 shift 5435 build_cpu=$1 5436 build_vendor=$2 5437 shift; shift 5438 # Remember, the first character of IFS is used to create $*, 5439 # except with old shells: 5440 build_os=$* 5441 IFS=$ac_save_IFS 5442 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac 5443 5444 5445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5446 printf %s "checking host system type... " >&6; } 5447 if test ${ac_cv_host+y} 5448 then : 5449 printf %s "(cached) " >&6 5450 else case e in #( 5451 e) if test "x$host_alias" = x; then 5452 ac_cv_host=$ac_cv_build 5453 else 5454 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5455 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5456 fi 5457 ;; 5458 esac 5459 fi 5460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5461 printf '%s\n' "$ac_cv_host" >&6; } 5462 case $ac_cv_host in 5463 *-*-*) ;; 5464 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5465 esac 5466 host=$ac_cv_host 5467 ac_save_IFS=$IFS; IFS='-' 5468 set x $ac_cv_host 5469 shift 5470 host_cpu=$1 5471 host_vendor=$2 5472 shift; shift 5473 # Remember, the first character of IFS is used to create $*, 5474 # except with old shells: 5475 host_os=$* 5476 IFS=$ac_save_IFS 5477 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac 5478 5479 5480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5481 printf %s "checking for a sed that does not truncate output... " >&6; } 5482 if test ${ac_cv_path_SED+y} 5483 then : 5484 printf %s "(cached) " >&6 5485 else case e in #( 5486 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5487 for ac_i in 1 2 3 4 5 6 7; do 5488 ac_script="$ac_script$as_nl$ac_script" 5489 done 5490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5491 { ac_script=; unset ac_script;} 5492 if test -z "$SED"; then 5493 ac_path_SED_found=false 5494 # Loop through the user's path and test for each of PROGNAME-LIST 5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496 for as_dir in $PATH 5497 do 5498 IFS=$as_save_IFS 5499 case $as_dir in #((( 5500 '') as_dir=./ ;; 5501 */) ;; 5502 *) as_dir=$as_dir/ ;; 5503 esac 5504 for ac_prog in sed gsed 5505 do 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5508 as_fn_executable_p "$ac_path_SED" || continue 5509 # Check for GNU ac_path_SED and select it if it is found. 5510 # Check for GNU $ac_path_SED 5511 case `"$ac_path_SED" --version 2>&1` in #( 5512 *GNU*) 5513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5514 #( 5515 *) 5516 ac_count=0 5517 printf %s 0123456789 >"conftest.in" 5518 while : 5519 do 5520 cat "conftest.in" "conftest.in" >"conftest.tmp" 5521 mv "conftest.tmp" "conftest.in" 5522 cp "conftest.in" "conftest.nl" 5523 printf '%s\n' '' >> "conftest.nl" 5524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5526 as_fn_arith $ac_count + 1 && ac_count=$as_val 5527 if test $ac_count -gt ${ac_path_SED_max-0}; then 5528 # Best one so far, save it but keep looking for a better one 5529 ac_cv_path_SED="$ac_path_SED" 5530 ac_path_SED_max=$ac_count 5531 fi 5532 # 10*(2^10) chars as input seems more than enough 5533 test $ac_count -gt 10 && break 5534 done 5535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5536 esac 5537 5538 $ac_path_SED_found && break 3 5539 done 5540 done 5541 done 5542 IFS=$as_save_IFS 5543 if test -z "$ac_cv_path_SED"; then 5544 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5545 fi 5546 else 5547 ac_cv_path_SED=$SED 5548 fi 5549 ;; 5550 esac 5551 fi 5552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5553 printf '%s\n' "$ac_cv_path_SED" >&6; } 5554 SED="$ac_cv_path_SED" 5555 rm -f conftest.sed 5556 5557 5558 5559 5560 5561 5562 # Check whether --enable-selective-werror was given. 5563 if test ${enable_selective_werror+y} 5564 then : 5565 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5566 else case e in #( 5567 e) SELECTIVE_WERROR=yes ;; 5568 esac 5569 fi 5570 5571 5572 5573 5574 5575 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5576 if test "x$SUNCC" = "xyes"; then 5577 BASE_CFLAGS="-v" 5578 else 5579 BASE_CFLAGS="" 5580 fi 5581 5582 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 xorg_testset_save_CFLAGS="$CFLAGS" 5597 5598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5602 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5603 then : 5604 printf %s "(cached) " >&6 5605 else case e in #( 5606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607 /* end confdefs.h. */ 5608 int i; 5609 _ACEOF 5610 if ac_fn_c_try_compile "$LINENO" 5611 then : 5612 xorg_cv_cc_flag_unknown_warning_option=yes 5613 else case e in #( 5614 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5615 esac 5616 fi 5617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5618 esac 5619 fi 5620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5621 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 fi 5625 5626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 fi 5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5634 then : 5635 printf %s "(cached) " >&6 5636 else case e in #( 5637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638 /* end confdefs.h. */ 5639 int i; 5640 _ACEOF 5641 if ac_fn_c_try_compile "$LINENO" 5642 then : 5643 xorg_cv_cc_flag_unused_command_line_argument=yes 5644 else case e in #( 5645 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5646 esac 5647 fi 5648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5649 esac 5650 fi 5651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5652 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5654 CFLAGS="$xorg_testset_save_CFLAGS" 5655 fi 5656 5657 found="no" 5658 5659 if test $found = "no" ; then 5660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5662 fi 5663 5664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5666 fi 5667 5668 CFLAGS="$CFLAGS -Wall" 5669 5670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5671 printf %s "checking if $CC supports -Wall... " >&6; } 5672 cacheid=xorg_cv_cc_flag__Wall 5673 if eval test \${$cacheid+y} 5674 then : 5675 printf %s "(cached) " >&6 5676 else case e in #( 5677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5678 /* end confdefs.h. */ 5679 int i; 5680 int 5681 main (void) 5682 { 5683 5684 ; 5685 return 0; 5686 } 5687 _ACEOF 5688 if ac_fn_c_try_link "$LINENO" 5689 then : 5690 eval $cacheid=yes 5691 else case e in #( 5692 e) eval $cacheid=no ;; 5693 esac 5694 fi 5695 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5696 conftest$ac_exeext conftest.$ac_ext ;; 5697 esac 5698 fi 5699 5700 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702 5703 eval supported=\$$cacheid 5704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5705 printf '%s\n' "$supported" >&6; } 5706 if test "$supported" = "yes" ; then 5707 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5708 found="yes" 5709 fi 5710 fi 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 xorg_testset_save_CFLAGS="$CFLAGS" 5727 5728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5732 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5733 then : 5734 printf %s "(cached) " >&6 5735 else case e in #( 5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737 /* end confdefs.h. */ 5738 int i; 5739 _ACEOF 5740 if ac_fn_c_try_compile "$LINENO" 5741 then : 5742 xorg_cv_cc_flag_unknown_warning_option=yes 5743 else case e in #( 5744 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5745 esac 5746 fi 5747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5748 esac 5749 fi 5750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5751 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5753 CFLAGS="$xorg_testset_save_CFLAGS" 5754 fi 5755 5756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 fi 5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5764 then : 5765 printf %s "(cached) " >&6 5766 else case e in #( 5767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5768 /* end confdefs.h. */ 5769 int i; 5770 _ACEOF 5771 if ac_fn_c_try_compile "$LINENO" 5772 then : 5773 xorg_cv_cc_flag_unused_command_line_argument=yes 5774 else case e in #( 5775 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5776 esac 5777 fi 5778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5779 esac 5780 fi 5781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5782 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5784 CFLAGS="$xorg_testset_save_CFLAGS" 5785 fi 5786 5787 found="no" 5788 5789 if test $found = "no" ; then 5790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5792 fi 5793 5794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5796 fi 5797 5798 CFLAGS="$CFLAGS -Wpointer-arith" 5799 5800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5801 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5802 cacheid=xorg_cv_cc_flag__Wpointer_arith 5803 if eval test \${$cacheid+y} 5804 then : 5805 printf %s "(cached) " >&6 5806 else case e in #( 5807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808 /* end confdefs.h. */ 5809 int i; 5810 int 5811 main (void) 5812 { 5813 5814 ; 5815 return 0; 5816 } 5817 _ACEOF 5818 if ac_fn_c_try_link "$LINENO" 5819 then : 5820 eval $cacheid=yes 5821 else case e in #( 5822 e) eval $cacheid=no ;; 5823 esac 5824 fi 5825 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5826 conftest$ac_exeext conftest.$ac_ext ;; 5827 esac 5828 fi 5829 5830 5831 CFLAGS="$xorg_testset_save_CFLAGS" 5832 5833 eval supported=\$$cacheid 5834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5835 printf '%s\n' "$supported" >&6; } 5836 if test "$supported" = "yes" ; then 5837 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5838 found="yes" 5839 fi 5840 fi 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 xorg_testset_save_CFLAGS="$CFLAGS" 5857 5858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5861 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5862 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5863 then : 5864 printf %s "(cached) " >&6 5865 else case e in #( 5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867 /* end confdefs.h. */ 5868 int i; 5869 _ACEOF 5870 if ac_fn_c_try_compile "$LINENO" 5871 then : 5872 xorg_cv_cc_flag_unknown_warning_option=yes 5873 else case e in #( 5874 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5875 esac 5876 fi 5877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5878 esac 5879 fi 5880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5881 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884 fi 5885 5886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 fi 5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5894 then : 5895 printf %s "(cached) " >&6 5896 else case e in #( 5897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898 /* end confdefs.h. */ 5899 int i; 5900 _ACEOF 5901 if ac_fn_c_try_compile "$LINENO" 5902 then : 5903 xorg_cv_cc_flag_unused_command_line_argument=yes 5904 else case e in #( 5905 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5906 esac 5907 fi 5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5909 esac 5910 fi 5911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5912 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915 fi 5916 5917 found="no" 5918 5919 if test $found = "no" ; then 5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5922 fi 5923 5924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5926 fi 5927 5928 CFLAGS="$CFLAGS -Wmissing-declarations" 5929 5930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5931 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5932 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5933 if eval test \${$cacheid+y} 5934 then : 5935 printf %s "(cached) " >&6 5936 else case e in #( 5937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938 /* end confdefs.h. */ 5939 int i; 5940 int 5941 main (void) 5942 { 5943 5944 ; 5945 return 0; 5946 } 5947 _ACEOF 5948 if ac_fn_c_try_link "$LINENO" 5949 then : 5950 eval $cacheid=yes 5951 else case e in #( 5952 e) eval $cacheid=no ;; 5953 esac 5954 fi 5955 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5956 conftest$ac_exeext conftest.$ac_ext ;; 5957 esac 5958 fi 5959 5960 5961 CFLAGS="$xorg_testset_save_CFLAGS" 5962 5963 eval supported=\$$cacheid 5964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5965 printf '%s\n' "$supported" >&6; } 5966 if test "$supported" = "yes" ; then 5967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5968 found="yes" 5969 fi 5970 fi 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 xorg_testset_save_CFLAGS="$CFLAGS" 5987 5988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5992 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5993 then : 5994 printf %s "(cached) " >&6 5995 else case e in #( 5996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997 /* end confdefs.h. */ 5998 int i; 5999 _ACEOF 6000 if ac_fn_c_try_compile "$LINENO" 6001 then : 6002 xorg_cv_cc_flag_unknown_warning_option=yes 6003 else case e in #( 6004 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6005 esac 6006 fi 6007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6008 esac 6009 fi 6010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6011 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014 fi 6015 6016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 fi 6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6024 then : 6025 printf %s "(cached) " >&6 6026 else case e in #( 6027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028 /* end confdefs.h. */ 6029 int i; 6030 _ACEOF 6031 if ac_fn_c_try_compile "$LINENO" 6032 then : 6033 xorg_cv_cc_flag_unused_command_line_argument=yes 6034 else case e in #( 6035 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6036 esac 6037 fi 6038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6039 esac 6040 fi 6041 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6042 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6044 CFLAGS="$xorg_testset_save_CFLAGS" 6045 fi 6046 6047 found="no" 6048 6049 if test $found = "no" ; then 6050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 fi 6053 6054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6056 fi 6057 6058 CFLAGS="$CFLAGS -Wformat=2" 6059 6060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6061 printf %s "checking if $CC supports -Wformat=2... " >&6; } 6062 cacheid=xorg_cv_cc_flag__Wformat_2 6063 if eval test \${$cacheid+y} 6064 then : 6065 printf %s "(cached) " >&6 6066 else case e in #( 6067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068 /* end confdefs.h. */ 6069 int i; 6070 int 6071 main (void) 6072 { 6073 6074 ; 6075 return 0; 6076 } 6077 _ACEOF 6078 if ac_fn_c_try_link "$LINENO" 6079 then : 6080 eval $cacheid=yes 6081 else case e in #( 6082 e) eval $cacheid=no ;; 6083 esac 6084 fi 6085 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6086 conftest$ac_exeext conftest.$ac_ext ;; 6087 esac 6088 fi 6089 6090 6091 CFLAGS="$xorg_testset_save_CFLAGS" 6092 6093 eval supported=\$$cacheid 6094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6095 printf '%s\n' "$supported" >&6; } 6096 if test "$supported" = "yes" ; then 6097 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6098 found="yes" 6099 fi 6100 fi 6101 6102 if test $found = "no" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6109 fi 6110 6111 CFLAGS="$CFLAGS -Wformat" 6112 6113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6114 printf %s "checking if $CC supports -Wformat... " >&6; } 6115 cacheid=xorg_cv_cc_flag__Wformat 6116 if eval test \${$cacheid+y} 6117 then : 6118 printf %s "(cached) " >&6 6119 else case e in #( 6120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121 /* end confdefs.h. */ 6122 int i; 6123 int 6124 main (void) 6125 { 6126 6127 ; 6128 return 0; 6129 } 6130 _ACEOF 6131 if ac_fn_c_try_link "$LINENO" 6132 then : 6133 eval $cacheid=yes 6134 else case e in #( 6135 e) eval $cacheid=no ;; 6136 esac 6137 fi 6138 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6139 conftest$ac_exeext conftest.$ac_ext ;; 6140 esac 6141 fi 6142 6143 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 6146 eval supported=\$$cacheid 6147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6148 printf '%s\n' "$supported" >&6; } 6149 if test "$supported" = "yes" ; then 6150 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6151 found="yes" 6152 fi 6153 fi 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 xorg_testset_save_CFLAGS="$CFLAGS" 6172 6173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6176 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6177 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6178 then : 6179 printf %s "(cached) " >&6 6180 else case e in #( 6181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182 /* end confdefs.h. */ 6183 int i; 6184 _ACEOF 6185 if ac_fn_c_try_compile "$LINENO" 6186 then : 6187 xorg_cv_cc_flag_unknown_warning_option=yes 6188 else case e in #( 6189 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6190 esac 6191 fi 6192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6193 esac 6194 fi 6195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6196 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199 fi 6200 6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6207 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6208 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6209 then : 6210 printf %s "(cached) " >&6 6211 else case e in #( 6212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213 /* end confdefs.h. */ 6214 int i; 6215 _ACEOF 6216 if ac_fn_c_try_compile "$LINENO" 6217 then : 6218 xorg_cv_cc_flag_unused_command_line_argument=yes 6219 else case e in #( 6220 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6221 esac 6222 fi 6223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6224 esac 6225 fi 6226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6227 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6229 CFLAGS="$xorg_testset_save_CFLAGS" 6230 fi 6231 6232 found="no" 6233 6234 if test $found = "no" ; then 6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6237 fi 6238 6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6241 fi 6242 6243 CFLAGS="$CFLAGS -Wstrict-prototypes" 6244 6245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6246 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6247 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6248 if eval test \${$cacheid+y} 6249 then : 6250 printf %s "(cached) " >&6 6251 else case e in #( 6252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253 /* end confdefs.h. */ 6254 int i; 6255 int 6256 main (void) 6257 { 6258 6259 ; 6260 return 0; 6261 } 6262 _ACEOF 6263 if ac_fn_c_try_link "$LINENO" 6264 then : 6265 eval $cacheid=yes 6266 else case e in #( 6267 e) eval $cacheid=no ;; 6268 esac 6269 fi 6270 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6271 conftest$ac_exeext conftest.$ac_ext ;; 6272 esac 6273 fi 6274 6275 6276 CFLAGS="$xorg_testset_save_CFLAGS" 6277 6278 eval supported=\$$cacheid 6279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6280 printf '%s\n' "$supported" >&6; } 6281 if test "$supported" = "yes" ; then 6282 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6283 found="yes" 6284 fi 6285 fi 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 xorg_testset_save_CFLAGS="$CFLAGS" 6302 6303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6307 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6308 then : 6309 printf %s "(cached) " >&6 6310 else case e in #( 6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 /* end confdefs.h. */ 6313 int i; 6314 _ACEOF 6315 if ac_fn_c_try_compile "$LINENO" 6316 then : 6317 xorg_cv_cc_flag_unknown_warning_option=yes 6318 else case e in #( 6319 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6320 esac 6321 fi 6322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6323 esac 6324 fi 6325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6326 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6328 CFLAGS="$xorg_testset_save_CFLAGS" 6329 fi 6330 6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 fi 6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6339 then : 6340 printf %s "(cached) " >&6 6341 else case e in #( 6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343 /* end confdefs.h. */ 6344 int i; 6345 _ACEOF 6346 if ac_fn_c_try_compile "$LINENO" 6347 then : 6348 xorg_cv_cc_flag_unused_command_line_argument=yes 6349 else case e in #( 6350 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6351 esac 6352 fi 6353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6354 esac 6355 fi 6356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360 fi 6361 6362 found="no" 6363 6364 if test $found = "no" ; then 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6371 fi 6372 6373 CFLAGS="$CFLAGS -Wmissing-prototypes" 6374 6375 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6376 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6377 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6378 if eval test \${$cacheid+y} 6379 then : 6380 printf %s "(cached) " >&6 6381 else case e in #( 6382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383 /* end confdefs.h. */ 6384 int i; 6385 int 6386 main (void) 6387 { 6388 6389 ; 6390 return 0; 6391 } 6392 _ACEOF 6393 if ac_fn_c_try_link "$LINENO" 6394 then : 6395 eval $cacheid=yes 6396 else case e in #( 6397 e) eval $cacheid=no ;; 6398 esac 6399 fi 6400 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6401 conftest$ac_exeext conftest.$ac_ext ;; 6402 esac 6403 fi 6404 6405 6406 CFLAGS="$xorg_testset_save_CFLAGS" 6407 6408 eval supported=\$$cacheid 6409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6410 printf '%s\n' "$supported" >&6; } 6411 if test "$supported" = "yes" ; then 6412 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6413 found="yes" 6414 fi 6415 fi 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 xorg_testset_save_CFLAGS="$CFLAGS" 6432 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6437 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6438 then : 6439 printf %s "(cached) " >&6 6440 else case e in #( 6441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442 /* end confdefs.h. */ 6443 int i; 6444 _ACEOF 6445 if ac_fn_c_try_compile "$LINENO" 6446 then : 6447 xorg_cv_cc_flag_unknown_warning_option=yes 6448 else case e in #( 6449 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6450 esac 6451 fi 6452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6453 esac 6454 fi 6455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6456 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459 fi 6460 6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6464 fi 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6469 then : 6470 printf %s "(cached) " >&6 6471 else case e in #( 6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473 /* end confdefs.h. */ 6474 int i; 6475 _ACEOF 6476 if ac_fn_c_try_compile "$LINENO" 6477 then : 6478 xorg_cv_cc_flag_unused_command_line_argument=yes 6479 else case e in #( 6480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6481 esac 6482 fi 6483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6484 esac 6485 fi 6486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 fi 6491 6492 found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wnested-externs" 6504 6505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6506 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wnested_externs 6508 if eval test \${$cacheid+y} 6509 then : 6510 printf %s "(cached) " >&6 6511 else case e in #( 6512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513 /* end confdefs.h. */ 6514 int i; 6515 int 6516 main (void) 6517 { 6518 6519 ; 6520 return 0; 6521 } 6522 _ACEOF 6523 if ac_fn_c_try_link "$LINENO" 6524 then : 6525 eval $cacheid=yes 6526 else case e in #( 6527 e) eval $cacheid=no ;; 6528 esac 6529 fi 6530 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6531 conftest$ac_exeext conftest.$ac_ext ;; 6532 esac 6533 fi 6534 6535 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537 6538 eval supported=\$$cacheid 6539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6540 printf '%s\n' "$supported" >&6; } 6541 if test "$supported" = "yes" ; then 6542 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6543 found="yes" 6544 fi 6545 fi 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 xorg_testset_save_CFLAGS="$CFLAGS" 6562 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6567 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6568 then : 6569 printf %s "(cached) " >&6 6570 else case e in #( 6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572 /* end confdefs.h. */ 6573 int i; 6574 _ACEOF 6575 if ac_fn_c_try_compile "$LINENO" 6576 then : 6577 xorg_cv_cc_flag_unknown_warning_option=yes 6578 else case e in #( 6579 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6580 esac 6581 fi 6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6583 esac 6584 fi 6585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6586 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6588 CFLAGS="$xorg_testset_save_CFLAGS" 6589 fi 6590 6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 fi 6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6599 then : 6600 printf %s "(cached) " >&6 6601 else case e in #( 6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603 /* end confdefs.h. */ 6604 int i; 6605 _ACEOF 6606 if ac_fn_c_try_compile "$LINENO" 6607 then : 6608 xorg_cv_cc_flag_unused_command_line_argument=yes 6609 else case e in #( 6610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6611 esac 6612 fi 6613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6614 esac 6615 fi 6616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6617 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620 fi 6621 6622 found="no" 6623 6624 if test $found = "no" ; then 6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6631 fi 6632 6633 CFLAGS="$CFLAGS -Wbad-function-cast" 6634 6635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6636 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6637 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6638 if eval test \${$cacheid+y} 6639 then : 6640 printf %s "(cached) " >&6 6641 else case e in #( 6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643 /* end confdefs.h. */ 6644 int i; 6645 int 6646 main (void) 6647 { 6648 6649 ; 6650 return 0; 6651 } 6652 _ACEOF 6653 if ac_fn_c_try_link "$LINENO" 6654 then : 6655 eval $cacheid=yes 6656 else case e in #( 6657 e) eval $cacheid=no ;; 6658 esac 6659 fi 6660 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6661 conftest$ac_exeext conftest.$ac_ext ;; 6662 esac 6663 fi 6664 6665 6666 CFLAGS="$xorg_testset_save_CFLAGS" 6667 6668 eval supported=\$$cacheid 6669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6670 printf '%s\n' "$supported" >&6; } 6671 if test "$supported" = "yes" ; then 6672 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6673 found="yes" 6674 fi 6675 fi 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 xorg_testset_save_CFLAGS="$CFLAGS" 6692 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6697 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6698 then : 6699 printf %s "(cached) " >&6 6700 else case e in #( 6701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702 /* end confdefs.h. */ 6703 int i; 6704 _ACEOF 6705 if ac_fn_c_try_compile "$LINENO" 6706 then : 6707 xorg_cv_cc_flag_unknown_warning_option=yes 6708 else case e in #( 6709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6710 esac 6711 fi 6712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6713 esac 6714 fi 6715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6716 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6718 CFLAGS="$xorg_testset_save_CFLAGS" 6719 fi 6720 6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6729 then : 6730 printf %s "(cached) " >&6 6731 else case e in #( 6732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733 /* end confdefs.h. */ 6734 int i; 6735 _ACEOF 6736 if ac_fn_c_try_compile "$LINENO" 6737 then : 6738 xorg_cv_cc_flag_unused_command_line_argument=yes 6739 else case e in #( 6740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6741 esac 6742 fi 6743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6744 esac 6745 fi 6746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6747 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750 fi 6751 6752 found="no" 6753 6754 if test $found = "no" ; then 6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 fi 6758 6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6761 fi 6762 6763 CFLAGS="$CFLAGS -Wold-style-definition" 6764 6765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6766 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6767 cacheid=xorg_cv_cc_flag__Wold_style_definition 6768 if eval test \${$cacheid+y} 6769 then : 6770 printf %s "(cached) " >&6 6771 else case e in #( 6772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773 /* end confdefs.h. */ 6774 int i; 6775 int 6776 main (void) 6777 { 6778 6779 ; 6780 return 0; 6781 } 6782 _ACEOF 6783 if ac_fn_c_try_link "$LINENO" 6784 then : 6785 eval $cacheid=yes 6786 else case e in #( 6787 e) eval $cacheid=no ;; 6788 esac 6789 fi 6790 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6791 conftest$ac_exeext conftest.$ac_ext ;; 6792 esac 6793 fi 6794 6795 6796 CFLAGS="$xorg_testset_save_CFLAGS" 6797 6798 eval supported=\$$cacheid 6799 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6800 printf '%s\n' "$supported" >&6; } 6801 if test "$supported" = "yes" ; then 6802 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6803 found="yes" 6804 fi 6805 fi 6806 6807 if test $found = "no" ; then 6808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6810 fi 6811 6812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6814 fi 6815 6816 CFLAGS="$CFLAGS -fd" 6817 6818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6819 printf %s "checking if $CC supports -fd... " >&6; } 6820 cacheid=xorg_cv_cc_flag__fd 6821 if eval test \${$cacheid+y} 6822 then : 6823 printf %s "(cached) " >&6 6824 else case e in #( 6825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826 /* end confdefs.h. */ 6827 int i; 6828 int 6829 main (void) 6830 { 6831 6832 ; 6833 return 0; 6834 } 6835 _ACEOF 6836 if ac_fn_c_try_link "$LINENO" 6837 then : 6838 eval $cacheid=yes 6839 else case e in #( 6840 e) eval $cacheid=no ;; 6841 esac 6842 fi 6843 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6844 conftest$ac_exeext conftest.$ac_ext ;; 6845 esac 6846 fi 6847 6848 6849 CFLAGS="$xorg_testset_save_CFLAGS" 6850 6851 eval supported=\$$cacheid 6852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6853 printf '%s\n' "$supported" >&6; } 6854 if test "$supported" = "yes" ; then 6855 BASE_CFLAGS="$BASE_CFLAGS -fd" 6856 found="yes" 6857 fi 6858 fi 6859 6860 6861 6862 6863 6864 # This chunk adds additional warnings that could catch undesired effects. 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 xorg_testset_save_CFLAGS="$CFLAGS" 6879 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6884 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6885 then : 6886 printf %s "(cached) " >&6 6887 else case e in #( 6888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889 /* end confdefs.h. */ 6890 int i; 6891 _ACEOF 6892 if ac_fn_c_try_compile "$LINENO" 6893 then : 6894 xorg_cv_cc_flag_unknown_warning_option=yes 6895 else case e in #( 6896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6897 esac 6898 fi 6899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6900 esac 6901 fi 6902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906 fi 6907 6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6916 then : 6917 printf %s "(cached) " >&6 6918 else case e in #( 6919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 int i; 6922 _ACEOF 6923 if ac_fn_c_try_compile "$LINENO" 6924 then : 6925 xorg_cv_cc_flag_unused_command_line_argument=yes 6926 else case e in #( 6927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6928 esac 6929 fi 6930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6931 esac 6932 fi 6933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6934 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6936 CFLAGS="$xorg_testset_save_CFLAGS" 6937 fi 6938 6939 found="no" 6940 6941 if test $found = "no" ; then 6942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 fi 6945 6946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 fi 6949 6950 CFLAGS="$CFLAGS -Wunused" 6951 6952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6953 printf %s "checking if $CC supports -Wunused... " >&6; } 6954 cacheid=xorg_cv_cc_flag__Wunused 6955 if eval test \${$cacheid+y} 6956 then : 6957 printf %s "(cached) " >&6 6958 else case e in #( 6959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960 /* end confdefs.h. */ 6961 int i; 6962 int 6963 main (void) 6964 { 6965 6966 ; 6967 return 0; 6968 } 6969 _ACEOF 6970 if ac_fn_c_try_link "$LINENO" 6971 then : 6972 eval $cacheid=yes 6973 else case e in #( 6974 e) eval $cacheid=no ;; 6975 esac 6976 fi 6977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6978 conftest$ac_exeext conftest.$ac_ext ;; 6979 esac 6980 fi 6981 6982 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984 6985 eval supported=\$$cacheid 6986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6987 printf '%s\n' "$supported" >&6; } 6988 if test "$supported" = "yes" ; then 6989 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6990 found="yes" 6991 fi 6992 fi 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 xorg_testset_save_CFLAGS="$CFLAGS" 7009 7010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7015 then : 7016 printf %s "(cached) " >&6 7017 else case e in #( 7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019 /* end confdefs.h. */ 7020 int i; 7021 _ACEOF 7022 if ac_fn_c_try_compile "$LINENO" 7023 then : 7024 xorg_cv_cc_flag_unknown_warning_option=yes 7025 else case e in #( 7026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7027 esac 7028 fi 7029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7030 esac 7031 fi 7032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7033 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036 fi 7037 7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7041 fi 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7046 then : 7047 printf %s "(cached) " >&6 7048 else case e in #( 7049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050 /* end confdefs.h. */ 7051 int i; 7052 _ACEOF 7053 if ac_fn_c_try_compile "$LINENO" 7054 then : 7055 xorg_cv_cc_flag_unused_command_line_argument=yes 7056 else case e in #( 7057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7058 esac 7059 fi 7060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7061 esac 7062 fi 7063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7064 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7066 CFLAGS="$xorg_testset_save_CFLAGS" 7067 fi 7068 7069 found="no" 7070 7071 if test $found = "no" ; then 7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7074 fi 7075 7076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7078 fi 7079 7080 CFLAGS="$CFLAGS -Wuninitialized" 7081 7082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7083 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7084 cacheid=xorg_cv_cc_flag__Wuninitialized 7085 if eval test \${$cacheid+y} 7086 then : 7087 printf %s "(cached) " >&6 7088 else case e in #( 7089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090 /* end confdefs.h. */ 7091 int i; 7092 int 7093 main (void) 7094 { 7095 7096 ; 7097 return 0; 7098 } 7099 _ACEOF 7100 if ac_fn_c_try_link "$LINENO" 7101 then : 7102 eval $cacheid=yes 7103 else case e in #( 7104 e) eval $cacheid=no ;; 7105 esac 7106 fi 7107 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7108 conftest$ac_exeext conftest.$ac_ext ;; 7109 esac 7110 fi 7111 7112 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114 7115 eval supported=\$$cacheid 7116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7117 printf '%s\n' "$supported" >&6; } 7118 if test "$supported" = "yes" ; then 7119 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7120 found="yes" 7121 fi 7122 fi 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 xorg_testset_save_CFLAGS="$CFLAGS" 7139 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7145 then : 7146 printf %s "(cached) " >&6 7147 else case e in #( 7148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149 /* end confdefs.h. */ 7150 int i; 7151 _ACEOF 7152 if ac_fn_c_try_compile "$LINENO" 7153 then : 7154 xorg_cv_cc_flag_unknown_warning_option=yes 7155 else case e in #( 7156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7157 esac 7158 fi 7159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7160 esac 7161 fi 7162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7163 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166 fi 7167 7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7176 then : 7177 printf %s "(cached) " >&6 7178 else case e in #( 7179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180 /* end confdefs.h. */ 7181 int i; 7182 _ACEOF 7183 if ac_fn_c_try_compile "$LINENO" 7184 then : 7185 xorg_cv_cc_flag_unused_command_line_argument=yes 7186 else case e in #( 7187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7188 esac 7189 fi 7190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7191 esac 7192 fi 7193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7194 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197 fi 7198 7199 found="no" 7200 7201 if test $found = "no" ; then 7202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7204 fi 7205 7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7208 fi 7209 7210 CFLAGS="$CFLAGS -Wshadow" 7211 7212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7213 printf %s "checking if $CC supports -Wshadow... " >&6; } 7214 cacheid=xorg_cv_cc_flag__Wshadow 7215 if eval test \${$cacheid+y} 7216 then : 7217 printf %s "(cached) " >&6 7218 else case e in #( 7219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220 /* end confdefs.h. */ 7221 int i; 7222 int 7223 main (void) 7224 { 7225 7226 ; 7227 return 0; 7228 } 7229 _ACEOF 7230 if ac_fn_c_try_link "$LINENO" 7231 then : 7232 eval $cacheid=yes 7233 else case e in #( 7234 e) eval $cacheid=no ;; 7235 esac 7236 fi 7237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7238 conftest$ac_exeext conftest.$ac_ext ;; 7239 esac 7240 fi 7241 7242 7243 CFLAGS="$xorg_testset_save_CFLAGS" 7244 7245 eval supported=\$$cacheid 7246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7247 printf '%s\n' "$supported" >&6; } 7248 if test "$supported" = "yes" ; then 7249 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7250 found="yes" 7251 fi 7252 fi 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 xorg_testset_save_CFLAGS="$CFLAGS" 7269 7270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7274 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7275 then : 7276 printf %s "(cached) " >&6 7277 else case e in #( 7278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7279 /* end confdefs.h. */ 7280 int i; 7281 _ACEOF 7282 if ac_fn_c_try_compile "$LINENO" 7283 then : 7284 xorg_cv_cc_flag_unknown_warning_option=yes 7285 else case e in #( 7286 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7287 esac 7288 fi 7289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7290 esac 7291 fi 7292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7293 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296 fi 7297 7298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7301 fi 7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7306 then : 7307 printf %s "(cached) " >&6 7308 else case e in #( 7309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310 /* end confdefs.h. */ 7311 int i; 7312 _ACEOF 7313 if ac_fn_c_try_compile "$LINENO" 7314 then : 7315 xorg_cv_cc_flag_unused_command_line_argument=yes 7316 else case e in #( 7317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7318 esac 7319 fi 7320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7321 esac 7322 fi 7323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7324 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327 fi 7328 7329 found="no" 7330 7331 if test $found = "no" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 7336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7338 fi 7339 7340 CFLAGS="$CFLAGS -Wmissing-noreturn" 7341 7342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7343 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7344 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7345 if eval test \${$cacheid+y} 7346 then : 7347 printf %s "(cached) " >&6 7348 else case e in #( 7349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350 /* end confdefs.h. */ 7351 int i; 7352 int 7353 main (void) 7354 { 7355 7356 ; 7357 return 0; 7358 } 7359 _ACEOF 7360 if ac_fn_c_try_link "$LINENO" 7361 then : 7362 eval $cacheid=yes 7363 else case e in #( 7364 e) eval $cacheid=no ;; 7365 esac 7366 fi 7367 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7368 conftest$ac_exeext conftest.$ac_ext ;; 7369 esac 7370 fi 7371 7372 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374 7375 eval supported=\$$cacheid 7376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7377 printf '%s\n' "$supported" >&6; } 7378 if test "$supported" = "yes" ; then 7379 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7380 found="yes" 7381 fi 7382 fi 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 xorg_testset_save_CFLAGS="$CFLAGS" 7399 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7404 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7405 then : 7406 printf %s "(cached) " >&6 7407 else case e in #( 7408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409 /* end confdefs.h. */ 7410 int i; 7411 _ACEOF 7412 if ac_fn_c_try_compile "$LINENO" 7413 then : 7414 xorg_cv_cc_flag_unknown_warning_option=yes 7415 else case e in #( 7416 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7417 esac 7418 fi 7419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7420 esac 7421 fi 7422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7423 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7425 CFLAGS="$xorg_testset_save_CFLAGS" 7426 fi 7427 7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7431 fi 7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7436 then : 7437 printf %s "(cached) " >&6 7438 else case e in #( 7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440 /* end confdefs.h. */ 7441 int i; 7442 _ACEOF 7443 if ac_fn_c_try_compile "$LINENO" 7444 then : 7445 xorg_cv_cc_flag_unused_command_line_argument=yes 7446 else case e in #( 7447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7448 esac 7449 fi 7450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7451 esac 7452 fi 7453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7454 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457 fi 7458 7459 found="no" 7460 7461 if test $found = "no" ; then 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 fi 7465 7466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7468 fi 7469 7470 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7471 7472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7473 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7474 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7475 if eval test \${$cacheid+y} 7476 then : 7477 printf %s "(cached) " >&6 7478 else case e in #( 7479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480 /* end confdefs.h. */ 7481 int i; 7482 int 7483 main (void) 7484 { 7485 7486 ; 7487 return 0; 7488 } 7489 _ACEOF 7490 if ac_fn_c_try_link "$LINENO" 7491 then : 7492 eval $cacheid=yes 7493 else case e in #( 7494 e) eval $cacheid=no ;; 7495 esac 7496 fi 7497 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7498 conftest$ac_exeext conftest.$ac_ext ;; 7499 esac 7500 fi 7501 7502 7503 CFLAGS="$xorg_testset_save_CFLAGS" 7504 7505 eval supported=\$$cacheid 7506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7507 printf '%s\n' "$supported" >&6; } 7508 if test "$supported" = "yes" ; then 7509 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7510 found="yes" 7511 fi 7512 fi 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 xorg_testset_save_CFLAGS="$CFLAGS" 7529 7530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7534 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7535 then : 7536 printf %s "(cached) " >&6 7537 else case e in #( 7538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539 /* end confdefs.h. */ 7540 int i; 7541 _ACEOF 7542 if ac_fn_c_try_compile "$LINENO" 7543 then : 7544 xorg_cv_cc_flag_unknown_warning_option=yes 7545 else case e in #( 7546 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7547 esac 7548 fi 7549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7550 esac 7551 fi 7552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7553 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556 fi 7557 7558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7561 fi 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7566 then : 7567 printf %s "(cached) " >&6 7568 else case e in #( 7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570 /* end confdefs.h. */ 7571 int i; 7572 _ACEOF 7573 if ac_fn_c_try_compile "$LINENO" 7574 then : 7575 xorg_cv_cc_flag_unused_command_line_argument=yes 7576 else case e in #( 7577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7578 esac 7579 fi 7580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7581 esac 7582 fi 7583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7584 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587 fi 7588 7589 found="no" 7590 7591 if test $found = "no" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7598 fi 7599 7600 CFLAGS="$CFLAGS -Wredundant-decls" 7601 7602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7603 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7604 cacheid=xorg_cv_cc_flag__Wredundant_decls 7605 if eval test \${$cacheid+y} 7606 then : 7607 printf %s "(cached) " >&6 7608 else case e in #( 7609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610 /* end confdefs.h. */ 7611 int i; 7612 int 7613 main (void) 7614 { 7615 7616 ; 7617 return 0; 7618 } 7619 _ACEOF 7620 if ac_fn_c_try_link "$LINENO" 7621 then : 7622 eval $cacheid=yes 7623 else case e in #( 7624 e) eval $cacheid=no ;; 7625 esac 7626 fi 7627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7628 conftest$ac_exeext conftest.$ac_ext ;; 7629 esac 7630 fi 7631 7632 7633 CFLAGS="$xorg_testset_save_CFLAGS" 7634 7635 eval supported=\$$cacheid 7636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7637 printf '%s\n' "$supported" >&6; } 7638 if test "$supported" = "yes" ; then 7639 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7640 found="yes" 7641 fi 7642 fi 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 xorg_testset_save_CFLAGS="$CFLAGS" 7659 7660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7664 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7665 then : 7666 printf %s "(cached) " >&6 7667 else case e in #( 7668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669 /* end confdefs.h. */ 7670 int i; 7671 _ACEOF 7672 if ac_fn_c_try_compile "$LINENO" 7673 then : 7674 xorg_cv_cc_flag_unknown_warning_option=yes 7675 else case e in #( 7676 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7677 esac 7678 fi 7679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7680 esac 7681 fi 7682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7683 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7685 CFLAGS="$xorg_testset_save_CFLAGS" 7686 fi 7687 7688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691 fi 7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7696 then : 7697 printf %s "(cached) " >&6 7698 else case e in #( 7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700 /* end confdefs.h. */ 7701 int i; 7702 _ACEOF 7703 if ac_fn_c_try_compile "$LINENO" 7704 then : 7705 xorg_cv_cc_flag_unused_command_line_argument=yes 7706 else case e in #( 7707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7708 esac 7709 fi 7710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7711 esac 7712 fi 7713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7714 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7716 CFLAGS="$xorg_testset_save_CFLAGS" 7717 fi 7718 7719 found="no" 7720 7721 if test $found = "no" ; then 7722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7724 fi 7725 7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 fi 7729 7730 CFLAGS="$CFLAGS -Wlogical-op" 7731 7732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7733 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7734 cacheid=xorg_cv_cc_flag__Wlogical_op 7735 if eval test \${$cacheid+y} 7736 then : 7737 printf %s "(cached) " >&6 7738 else case e in #( 7739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740 /* end confdefs.h. */ 7741 int i; 7742 int 7743 main (void) 7744 { 7745 7746 ; 7747 return 0; 7748 } 7749 _ACEOF 7750 if ac_fn_c_try_link "$LINENO" 7751 then : 7752 eval $cacheid=yes 7753 else case e in #( 7754 e) eval $cacheid=no ;; 7755 esac 7756 fi 7757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7758 conftest$ac_exeext conftest.$ac_ext ;; 7759 esac 7760 fi 7761 7762 7763 CFLAGS="$xorg_testset_save_CFLAGS" 7764 7765 eval supported=\$$cacheid 7766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7767 printf '%s\n' "$supported" >&6; } 7768 if test "$supported" = "yes" ; then 7769 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7770 found="yes" 7771 fi 7772 fi 7773 7774 7775 7776 # These are currently disabled because they are noisy. They will be enabled 7777 # in the future once the codebase is sufficiently modernized to silence 7778 # them. For now, I don't want them to drown out the other warnings. 7779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7780 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7782 7783 # Turn some warnings into errors, so we don't accidentally get successful builds 7784 # when there are problems that should be fixed. 7785 7786 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 xorg_testset_save_CFLAGS="$CFLAGS" 7801 7802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7806 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7807 then : 7808 printf %s "(cached) " >&6 7809 else case e in #( 7810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811 /* end confdefs.h. */ 7812 int i; 7813 _ACEOF 7814 if ac_fn_c_try_compile "$LINENO" 7815 then : 7816 xorg_cv_cc_flag_unknown_warning_option=yes 7817 else case e in #( 7818 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7819 esac 7820 fi 7821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7822 esac 7823 fi 7824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7825 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7827 CFLAGS="$xorg_testset_save_CFLAGS" 7828 fi 7829 7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7838 then : 7839 printf %s "(cached) " >&6 7840 else case e in #( 7841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842 /* end confdefs.h. */ 7843 int i; 7844 _ACEOF 7845 if ac_fn_c_try_compile "$LINENO" 7846 then : 7847 xorg_cv_cc_flag_unused_command_line_argument=yes 7848 else case e in #( 7849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7850 esac 7851 fi 7852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7853 esac 7854 fi 7855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7856 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 fi 7860 7861 found="no" 7862 7863 if test $found = "no" ; then 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 fi 7867 7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7870 fi 7871 7872 CFLAGS="$CFLAGS -Werror=implicit" 7873 7874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7875 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7876 cacheid=xorg_cv_cc_flag__Werror_implicit 7877 if eval test \${$cacheid+y} 7878 then : 7879 printf %s "(cached) " >&6 7880 else case e in #( 7881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882 /* end confdefs.h. */ 7883 int i; 7884 int 7885 main (void) 7886 { 7887 7888 ; 7889 return 0; 7890 } 7891 _ACEOF 7892 if ac_fn_c_try_link "$LINENO" 7893 then : 7894 eval $cacheid=yes 7895 else case e in #( 7896 e) eval $cacheid=no ;; 7897 esac 7898 fi 7899 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7900 conftest$ac_exeext conftest.$ac_ext ;; 7901 esac 7902 fi 7903 7904 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906 7907 eval supported=\$$cacheid 7908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7909 printf '%s\n' "$supported" >&6; } 7910 if test "$supported" = "yes" ; then 7911 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7912 found="yes" 7913 fi 7914 fi 7915 7916 if test $found = "no" ; then 7917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7919 fi 7920 7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7923 fi 7924 7925 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7926 7927 { 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 7928 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7929 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7930 if eval test \${$cacheid+y} 7931 then : 7932 printf %s "(cached) " >&6 7933 else case e in #( 7934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935 /* end confdefs.h. */ 7936 int i; 7937 int 7938 main (void) 7939 { 7940 7941 ; 7942 return 0; 7943 } 7944 _ACEOF 7945 if ac_fn_c_try_link "$LINENO" 7946 then : 7947 eval $cacheid=yes 7948 else case e in #( 7949 e) eval $cacheid=no ;; 7950 esac 7951 fi 7952 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7953 conftest$ac_exeext conftest.$ac_ext ;; 7954 esac 7955 fi 7956 7957 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959 7960 eval supported=\$$cacheid 7961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7962 printf '%s\n' "$supported" >&6; } 7963 if test "$supported" = "yes" ; then 7964 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7965 found="yes" 7966 fi 7967 fi 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 xorg_testset_save_CFLAGS="$CFLAGS" 7984 7985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7988 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7989 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7990 then : 7991 printf %s "(cached) " >&6 7992 else case e in #( 7993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994 /* end confdefs.h. */ 7995 int i; 7996 _ACEOF 7997 if ac_fn_c_try_compile "$LINENO" 7998 then : 7999 xorg_cv_cc_flag_unknown_warning_option=yes 8000 else case e in #( 8001 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8002 esac 8003 fi 8004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8005 esac 8006 fi 8007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8008 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8010 CFLAGS="$xorg_testset_save_CFLAGS" 8011 fi 8012 8013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8016 fi 8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8021 then : 8022 printf %s "(cached) " >&6 8023 else case e in #( 8024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8025 /* end confdefs.h. */ 8026 int i; 8027 _ACEOF 8028 if ac_fn_c_try_compile "$LINENO" 8029 then : 8030 xorg_cv_cc_flag_unused_command_line_argument=yes 8031 else case e in #( 8032 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8033 esac 8034 fi 8035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8036 esac 8037 fi 8038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8039 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8041 CFLAGS="$xorg_testset_save_CFLAGS" 8042 fi 8043 8044 found="no" 8045 8046 if test $found = "no" ; then 8047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8049 fi 8050 8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8053 fi 8054 8055 CFLAGS="$CFLAGS -Werror=nonnull" 8056 8057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8058 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8059 cacheid=xorg_cv_cc_flag__Werror_nonnull 8060 if eval test \${$cacheid+y} 8061 then : 8062 printf %s "(cached) " >&6 8063 else case e in #( 8064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065 /* end confdefs.h. */ 8066 int i; 8067 int 8068 main (void) 8069 { 8070 8071 ; 8072 return 0; 8073 } 8074 _ACEOF 8075 if ac_fn_c_try_link "$LINENO" 8076 then : 8077 eval $cacheid=yes 8078 else case e in #( 8079 e) eval $cacheid=no ;; 8080 esac 8081 fi 8082 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8083 conftest$ac_exeext conftest.$ac_ext ;; 8084 esac 8085 fi 8086 8087 8088 CFLAGS="$xorg_testset_save_CFLAGS" 8089 8090 eval supported=\$$cacheid 8091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8092 printf '%s\n' "$supported" >&6; } 8093 if test "$supported" = "yes" ; then 8094 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8095 found="yes" 8096 fi 8097 fi 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 xorg_testset_save_CFLAGS="$CFLAGS" 8114 8115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8118 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8119 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8120 then : 8121 printf %s "(cached) " >&6 8122 else case e in #( 8123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124 /* end confdefs.h. */ 8125 int i; 8126 _ACEOF 8127 if ac_fn_c_try_compile "$LINENO" 8128 then : 8129 xorg_cv_cc_flag_unknown_warning_option=yes 8130 else case e in #( 8131 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8132 esac 8133 fi 8134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8135 esac 8136 fi 8137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8138 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8140 CFLAGS="$xorg_testset_save_CFLAGS" 8141 fi 8142 8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8146 fi 8147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8149 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8150 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8151 then : 8152 printf %s "(cached) " >&6 8153 else case e in #( 8154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155 /* end confdefs.h. */ 8156 int i; 8157 _ACEOF 8158 if ac_fn_c_try_compile "$LINENO" 8159 then : 8160 xorg_cv_cc_flag_unused_command_line_argument=yes 8161 else case e in #( 8162 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8163 esac 8164 fi 8165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8166 esac 8167 fi 8168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8169 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8171 CFLAGS="$xorg_testset_save_CFLAGS" 8172 fi 8173 8174 found="no" 8175 8176 if test $found = "no" ; then 8177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8179 fi 8180 8181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8183 fi 8184 8185 CFLAGS="$CFLAGS -Werror=init-self" 8186 8187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8188 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8189 cacheid=xorg_cv_cc_flag__Werror_init_self 8190 if eval test \${$cacheid+y} 8191 then : 8192 printf %s "(cached) " >&6 8193 else case e in #( 8194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195 /* end confdefs.h. */ 8196 int i; 8197 int 8198 main (void) 8199 { 8200 8201 ; 8202 return 0; 8203 } 8204 _ACEOF 8205 if ac_fn_c_try_link "$LINENO" 8206 then : 8207 eval $cacheid=yes 8208 else case e in #( 8209 e) eval $cacheid=no ;; 8210 esac 8211 fi 8212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8213 conftest$ac_exeext conftest.$ac_ext ;; 8214 esac 8215 fi 8216 8217 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219 8220 eval supported=\$$cacheid 8221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8222 printf '%s\n' "$supported" >&6; } 8223 if test "$supported" = "yes" ; then 8224 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8225 found="yes" 8226 fi 8227 fi 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 xorg_testset_save_CFLAGS="$CFLAGS" 8244 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8248 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8249 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8250 then : 8251 printf %s "(cached) " >&6 8252 else case e in #( 8253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254 /* end confdefs.h. */ 8255 int i; 8256 _ACEOF 8257 if ac_fn_c_try_compile "$LINENO" 8258 then : 8259 xorg_cv_cc_flag_unknown_warning_option=yes 8260 else case e in #( 8261 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8262 esac 8263 fi 8264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8265 esac 8266 fi 8267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8268 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271 fi 8272 8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8279 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8280 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8281 then : 8282 printf %s "(cached) " >&6 8283 else case e in #( 8284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285 /* end confdefs.h. */ 8286 int i; 8287 _ACEOF 8288 if ac_fn_c_try_compile "$LINENO" 8289 then : 8290 xorg_cv_cc_flag_unused_command_line_argument=yes 8291 else case e in #( 8292 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8293 esac 8294 fi 8295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8296 esac 8297 fi 8298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8299 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8301 CFLAGS="$xorg_testset_save_CFLAGS" 8302 fi 8303 8304 found="no" 8305 8306 if test $found = "no" ; then 8307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8309 fi 8310 8311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8313 fi 8314 8315 CFLAGS="$CFLAGS -Werror=main" 8316 8317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8318 printf %s "checking if $CC supports -Werror=main... " >&6; } 8319 cacheid=xorg_cv_cc_flag__Werror_main 8320 if eval test \${$cacheid+y} 8321 then : 8322 printf %s "(cached) " >&6 8323 else case e in #( 8324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325 /* end confdefs.h. */ 8326 int i; 8327 int 8328 main (void) 8329 { 8330 8331 ; 8332 return 0; 8333 } 8334 _ACEOF 8335 if ac_fn_c_try_link "$LINENO" 8336 then : 8337 eval $cacheid=yes 8338 else case e in #( 8339 e) eval $cacheid=no ;; 8340 esac 8341 fi 8342 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8343 conftest$ac_exeext conftest.$ac_ext ;; 8344 esac 8345 fi 8346 8347 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349 8350 eval supported=\$$cacheid 8351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8352 printf '%s\n' "$supported" >&6; } 8353 if test "$supported" = "yes" ; then 8354 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8355 found="yes" 8356 fi 8357 fi 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 xorg_testset_save_CFLAGS="$CFLAGS" 8374 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8378 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8379 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8380 then : 8381 printf %s "(cached) " >&6 8382 else case e in #( 8383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8384 /* end confdefs.h. */ 8385 int i; 8386 _ACEOF 8387 if ac_fn_c_try_compile "$LINENO" 8388 then : 8389 xorg_cv_cc_flag_unknown_warning_option=yes 8390 else case e in #( 8391 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8392 esac 8393 fi 8394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8395 esac 8396 fi 8397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8398 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8411 then : 8412 printf %s "(cached) " >&6 8413 else case e in #( 8414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8415 /* end confdefs.h. */ 8416 int i; 8417 _ACEOF 8418 if ac_fn_c_try_compile "$LINENO" 8419 then : 8420 xorg_cv_cc_flag_unused_command_line_argument=yes 8421 else case e in #( 8422 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8423 esac 8424 fi 8425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8426 esac 8427 fi 8428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8429 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 fi 8433 8434 found="no" 8435 8436 if test $found = "no" ; then 8437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8439 fi 8440 8441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8443 fi 8444 8445 CFLAGS="$CFLAGS -Werror=missing-braces" 8446 8447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8448 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8449 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8450 if eval test \${$cacheid+y} 8451 then : 8452 printf %s "(cached) " >&6 8453 else case e in #( 8454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455 /* end confdefs.h. */ 8456 int i; 8457 int 8458 main (void) 8459 { 8460 8461 ; 8462 return 0; 8463 } 8464 _ACEOF 8465 if ac_fn_c_try_link "$LINENO" 8466 then : 8467 eval $cacheid=yes 8468 else case e in #( 8469 e) eval $cacheid=no ;; 8470 esac 8471 fi 8472 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8473 conftest$ac_exeext conftest.$ac_ext ;; 8474 esac 8475 fi 8476 8477 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479 8480 eval supported=\$$cacheid 8481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8482 printf '%s\n' "$supported" >&6; } 8483 if test "$supported" = "yes" ; then 8484 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8485 found="yes" 8486 fi 8487 fi 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 xorg_testset_save_CFLAGS="$CFLAGS" 8504 8505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8508 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8509 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8510 then : 8511 printf %s "(cached) " >&6 8512 else case e in #( 8513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514 /* end confdefs.h. */ 8515 int i; 8516 _ACEOF 8517 if ac_fn_c_try_compile "$LINENO" 8518 then : 8519 xorg_cv_cc_flag_unknown_warning_option=yes 8520 else case e in #( 8521 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8522 esac 8523 fi 8524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8525 esac 8526 fi 8527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8528 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531 fi 8532 8533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 fi 8537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8539 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8540 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8541 then : 8542 printf %s "(cached) " >&6 8543 else case e in #( 8544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8545 /* end confdefs.h. */ 8546 int i; 8547 _ACEOF 8548 if ac_fn_c_try_compile "$LINENO" 8549 then : 8550 xorg_cv_cc_flag_unused_command_line_argument=yes 8551 else case e in #( 8552 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8553 esac 8554 fi 8555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8556 esac 8557 fi 8558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8559 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562 fi 8563 8564 found="no" 8565 8566 if test $found = "no" ; then 8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569 fi 8570 8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 fi 8574 8575 CFLAGS="$CFLAGS -Werror=sequence-point" 8576 8577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8578 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8579 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8580 if eval test \${$cacheid+y} 8581 then : 8582 printf %s "(cached) " >&6 8583 else case e in #( 8584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585 /* end confdefs.h. */ 8586 int i; 8587 int 8588 main (void) 8589 { 8590 8591 ; 8592 return 0; 8593 } 8594 _ACEOF 8595 if ac_fn_c_try_link "$LINENO" 8596 then : 8597 eval $cacheid=yes 8598 else case e in #( 8599 e) eval $cacheid=no ;; 8600 esac 8601 fi 8602 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8603 conftest$ac_exeext conftest.$ac_ext ;; 8604 esac 8605 fi 8606 8607 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609 8610 eval supported=\$$cacheid 8611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8612 printf '%s\n' "$supported" >&6; } 8613 if test "$supported" = "yes" ; then 8614 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8615 found="yes" 8616 fi 8617 fi 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 xorg_testset_save_CFLAGS="$CFLAGS" 8634 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8639 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8640 then : 8641 printf %s "(cached) " >&6 8642 else case e in #( 8643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644 /* end confdefs.h. */ 8645 int i; 8646 _ACEOF 8647 if ac_fn_c_try_compile "$LINENO" 8648 then : 8649 xorg_cv_cc_flag_unknown_warning_option=yes 8650 else case e in #( 8651 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8652 esac 8653 fi 8654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8655 esac 8656 fi 8657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8658 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661 fi 8662 8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8671 then : 8672 printf %s "(cached) " >&6 8673 else case e in #( 8674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8675 /* end confdefs.h. */ 8676 int i; 8677 _ACEOF 8678 if ac_fn_c_try_compile "$LINENO" 8679 then : 8680 xorg_cv_cc_flag_unused_command_line_argument=yes 8681 else case e in #( 8682 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8683 esac 8684 fi 8685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8686 esac 8687 fi 8688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8689 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 fi 8693 8694 found="no" 8695 8696 if test $found = "no" ; then 8697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8699 fi 8700 8701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8703 fi 8704 8705 CFLAGS="$CFLAGS -Werror=return-type" 8706 8707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8708 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8709 cacheid=xorg_cv_cc_flag__Werror_return_type 8710 if eval test \${$cacheid+y} 8711 then : 8712 printf %s "(cached) " >&6 8713 else case e in #( 8714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8715 /* end confdefs.h. */ 8716 int i; 8717 int 8718 main (void) 8719 { 8720 8721 ; 8722 return 0; 8723 } 8724 _ACEOF 8725 if ac_fn_c_try_link "$LINENO" 8726 then : 8727 eval $cacheid=yes 8728 else case e in #( 8729 e) eval $cacheid=no ;; 8730 esac 8731 fi 8732 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8733 conftest$ac_exeext conftest.$ac_ext ;; 8734 esac 8735 fi 8736 8737 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739 8740 eval supported=\$$cacheid 8741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8742 printf '%s\n' "$supported" >&6; } 8743 if test "$supported" = "yes" ; then 8744 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8745 found="yes" 8746 fi 8747 fi 8748 8749 if test $found = "no" ; then 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 fi 8757 8758 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8759 8760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8761 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8762 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8763 if eval test \${$cacheid+y} 8764 then : 8765 printf %s "(cached) " >&6 8766 else case e in #( 8767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768 /* end confdefs.h. */ 8769 int i; 8770 int 8771 main (void) 8772 { 8773 8774 ; 8775 return 0; 8776 } 8777 _ACEOF 8778 if ac_fn_c_try_link "$LINENO" 8779 then : 8780 eval $cacheid=yes 8781 else case e in #( 8782 e) eval $cacheid=no ;; 8783 esac 8784 fi 8785 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8786 conftest$ac_exeext conftest.$ac_ext ;; 8787 esac 8788 fi 8789 8790 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792 8793 eval supported=\$$cacheid 8794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8795 printf '%s\n' "$supported" >&6; } 8796 if test "$supported" = "yes" ; then 8797 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8798 found="yes" 8799 fi 8800 fi 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 xorg_testset_save_CFLAGS="$CFLAGS" 8817 8818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8822 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8823 then : 8824 printf %s "(cached) " >&6 8825 else case e in #( 8826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827 /* end confdefs.h. */ 8828 int i; 8829 _ACEOF 8830 if ac_fn_c_try_compile "$LINENO" 8831 then : 8832 xorg_cv_cc_flag_unknown_warning_option=yes 8833 else case e in #( 8834 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8835 esac 8836 fi 8837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8838 esac 8839 fi 8840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8841 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844 fi 8845 8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8849 fi 8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8854 then : 8855 printf %s "(cached) " >&6 8856 else case e in #( 8857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858 /* end confdefs.h. */ 8859 int i; 8860 _ACEOF 8861 if ac_fn_c_try_compile "$LINENO" 8862 then : 8863 xorg_cv_cc_flag_unused_command_line_argument=yes 8864 else case e in #( 8865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8866 esac 8867 fi 8868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8869 esac 8870 fi 8871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8872 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8874 CFLAGS="$xorg_testset_save_CFLAGS" 8875 fi 8876 8877 found="no" 8878 8879 if test $found = "no" ; then 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 fi 8883 8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 fi 8887 8888 CFLAGS="$CFLAGS -Werror=trigraphs" 8889 8890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8891 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8892 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8893 if eval test \${$cacheid+y} 8894 then : 8895 printf %s "(cached) " >&6 8896 else case e in #( 8897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898 /* end confdefs.h. */ 8899 int i; 8900 int 8901 main (void) 8902 { 8903 8904 ; 8905 return 0; 8906 } 8907 _ACEOF 8908 if ac_fn_c_try_link "$LINENO" 8909 then : 8910 eval $cacheid=yes 8911 else case e in #( 8912 e) eval $cacheid=no ;; 8913 esac 8914 fi 8915 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8916 conftest$ac_exeext conftest.$ac_ext ;; 8917 esac 8918 fi 8919 8920 8921 CFLAGS="$xorg_testset_save_CFLAGS" 8922 8923 eval supported=\$$cacheid 8924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8925 printf '%s\n' "$supported" >&6; } 8926 if test "$supported" = "yes" ; then 8927 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8928 found="yes" 8929 fi 8930 fi 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 xorg_testset_save_CFLAGS="$CFLAGS" 8947 8948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8952 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8953 then : 8954 printf %s "(cached) " >&6 8955 else case e in #( 8956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957 /* end confdefs.h. */ 8958 int i; 8959 _ACEOF 8960 if ac_fn_c_try_compile "$LINENO" 8961 then : 8962 xorg_cv_cc_flag_unknown_warning_option=yes 8963 else case e in #( 8964 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8965 esac 8966 fi 8967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8968 esac 8969 fi 8970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8971 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8973 CFLAGS="$xorg_testset_save_CFLAGS" 8974 fi 8975 8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8984 then : 8985 printf %s "(cached) " >&6 8986 else case e in #( 8987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988 /* end confdefs.h. */ 8989 int i; 8990 _ACEOF 8991 if ac_fn_c_try_compile "$LINENO" 8992 then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994 else case e in #( 8995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8996 esac 8997 fi 8998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8999 esac 9000 fi 9001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9002 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 fi 9006 9007 found="no" 9008 9009 if test $found = "no" ; then 9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9012 fi 9013 9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9016 fi 9017 9018 CFLAGS="$CFLAGS -Werror=array-bounds" 9019 9020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9021 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 9022 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9023 if eval test \${$cacheid+y} 9024 then : 9025 printf %s "(cached) " >&6 9026 else case e in #( 9027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028 /* end confdefs.h. */ 9029 int i; 9030 int 9031 main (void) 9032 { 9033 9034 ; 9035 return 0; 9036 } 9037 _ACEOF 9038 if ac_fn_c_try_link "$LINENO" 9039 then : 9040 eval $cacheid=yes 9041 else case e in #( 9042 e) eval $cacheid=no ;; 9043 esac 9044 fi 9045 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9046 conftest$ac_exeext conftest.$ac_ext ;; 9047 esac 9048 fi 9049 9050 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052 9053 eval supported=\$$cacheid 9054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9055 printf '%s\n' "$supported" >&6; } 9056 if test "$supported" = "yes" ; then 9057 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9058 found="yes" 9059 fi 9060 fi 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 xorg_testset_save_CFLAGS="$CFLAGS" 9077 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9082 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9083 then : 9084 printf %s "(cached) " >&6 9085 else case e in #( 9086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087 /* end confdefs.h. */ 9088 int i; 9089 _ACEOF 9090 if ac_fn_c_try_compile "$LINENO" 9091 then : 9092 xorg_cv_cc_flag_unknown_warning_option=yes 9093 else case e in #( 9094 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9095 esac 9096 fi 9097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9098 esac 9099 fi 9100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9101 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9103 CFLAGS="$xorg_testset_save_CFLAGS" 9104 fi 9105 9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 fi 9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9114 then : 9115 printf %s "(cached) " >&6 9116 else case e in #( 9117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9118 /* end confdefs.h. */ 9119 int i; 9120 _ACEOF 9121 if ac_fn_c_try_compile "$LINENO" 9122 then : 9123 xorg_cv_cc_flag_unused_command_line_argument=yes 9124 else case e in #( 9125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9126 esac 9127 fi 9128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9129 esac 9130 fi 9131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9132 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9134 CFLAGS="$xorg_testset_save_CFLAGS" 9135 fi 9136 9137 found="no" 9138 9139 if test $found = "no" ; then 9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9142 fi 9143 9144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9146 fi 9147 9148 CFLAGS="$CFLAGS -Werror=write-strings" 9149 9150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9151 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9152 cacheid=xorg_cv_cc_flag__Werror_write_strings 9153 if eval test \${$cacheid+y} 9154 then : 9155 printf %s "(cached) " >&6 9156 else case e in #( 9157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158 /* end confdefs.h. */ 9159 int i; 9160 int 9161 main (void) 9162 { 9163 9164 ; 9165 return 0; 9166 } 9167 _ACEOF 9168 if ac_fn_c_try_link "$LINENO" 9169 then : 9170 eval $cacheid=yes 9171 else case e in #( 9172 e) eval $cacheid=no ;; 9173 esac 9174 fi 9175 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9176 conftest$ac_exeext conftest.$ac_ext ;; 9177 esac 9178 fi 9179 9180 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182 9183 eval supported=\$$cacheid 9184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9185 printf '%s\n' "$supported" >&6; } 9186 if test "$supported" = "yes" ; then 9187 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9188 found="yes" 9189 fi 9190 fi 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 xorg_testset_save_CFLAGS="$CFLAGS" 9207 9208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9212 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9213 then : 9214 printf %s "(cached) " >&6 9215 else case e in #( 9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217 /* end confdefs.h. */ 9218 int i; 9219 _ACEOF 9220 if ac_fn_c_try_compile "$LINENO" 9221 then : 9222 xorg_cv_cc_flag_unknown_warning_option=yes 9223 else case e in #( 9224 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9225 esac 9226 fi 9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9228 esac 9229 fi 9230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9231 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9233 CFLAGS="$xorg_testset_save_CFLAGS" 9234 fi 9235 9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9239 fi 9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9244 then : 9245 printf %s "(cached) " >&6 9246 else case e in #( 9247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248 /* end confdefs.h. */ 9249 int i; 9250 _ACEOF 9251 if ac_fn_c_try_compile "$LINENO" 9252 then : 9253 xorg_cv_cc_flag_unused_command_line_argument=yes 9254 else case e in #( 9255 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9256 esac 9257 fi 9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9259 esac 9260 fi 9261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9262 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265 fi 9266 9267 found="no" 9268 9269 if test $found = "no" ; then 9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9276 fi 9277 9278 CFLAGS="$CFLAGS -Werror=address" 9279 9280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9281 printf %s "checking if $CC supports -Werror=address... " >&6; } 9282 cacheid=xorg_cv_cc_flag__Werror_address 9283 if eval test \${$cacheid+y} 9284 then : 9285 printf %s "(cached) " >&6 9286 else case e in #( 9287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288 /* end confdefs.h. */ 9289 int i; 9290 int 9291 main (void) 9292 { 9293 9294 ; 9295 return 0; 9296 } 9297 _ACEOF 9298 if ac_fn_c_try_link "$LINENO" 9299 then : 9300 eval $cacheid=yes 9301 else case e in #( 9302 e) eval $cacheid=no ;; 9303 esac 9304 fi 9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9306 conftest$ac_exeext conftest.$ac_ext ;; 9307 esac 9308 fi 9309 9310 9311 CFLAGS="$xorg_testset_save_CFLAGS" 9312 9313 eval supported=\$$cacheid 9314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9315 printf '%s\n' "$supported" >&6; } 9316 if test "$supported" = "yes" ; then 9317 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9318 found="yes" 9319 fi 9320 fi 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 xorg_testset_save_CFLAGS="$CFLAGS" 9337 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9342 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9343 then : 9344 printf %s "(cached) " >&6 9345 else case e in #( 9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 _ACEOF 9350 if ac_fn_c_try_compile "$LINENO" 9351 then : 9352 xorg_cv_cc_flag_unknown_warning_option=yes 9353 else case e in #( 9354 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9355 esac 9356 fi 9357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9358 esac 9359 fi 9360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9361 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364 fi 9365 9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9369 fi 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9374 then : 9375 printf %s "(cached) " >&6 9376 else case e in #( 9377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378 /* end confdefs.h. */ 9379 int i; 9380 _ACEOF 9381 if ac_fn_c_try_compile "$LINENO" 9382 then : 9383 xorg_cv_cc_flag_unused_command_line_argument=yes 9384 else case e in #( 9385 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9386 esac 9387 fi 9388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9389 esac 9390 fi 9391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9392 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9394 CFLAGS="$xorg_testset_save_CFLAGS" 9395 fi 9396 9397 found="no" 9398 9399 if test $found = "no" ; then 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 fi 9403 9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9406 fi 9407 9408 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9409 9410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9411 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9412 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9413 if eval test \${$cacheid+y} 9414 then : 9415 printf %s "(cached) " >&6 9416 else case e in #( 9417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418 /* end confdefs.h. */ 9419 int i; 9420 int 9421 main (void) 9422 { 9423 9424 ; 9425 return 0; 9426 } 9427 _ACEOF 9428 if ac_fn_c_try_link "$LINENO" 9429 then : 9430 eval $cacheid=yes 9431 else case e in #( 9432 e) eval $cacheid=no ;; 9433 esac 9434 fi 9435 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9436 conftest$ac_exeext conftest.$ac_ext ;; 9437 esac 9438 fi 9439 9440 9441 CFLAGS="$xorg_testset_save_CFLAGS" 9442 9443 eval supported=\$$cacheid 9444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9445 printf '%s\n' "$supported" >&6; } 9446 if test "$supported" = "yes" ; then 9447 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9448 found="yes" 9449 fi 9450 fi 9451 9452 if test $found = "no" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9459 fi 9460 9461 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9462 9463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9464 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9465 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9466 if eval test \${$cacheid+y} 9467 then : 9468 printf %s "(cached) " >&6 9469 else case e in #( 9470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471 /* end confdefs.h. */ 9472 int i; 9473 int 9474 main (void) 9475 { 9476 9477 ; 9478 return 0; 9479 } 9480 _ACEOF 9481 if ac_fn_c_try_link "$LINENO" 9482 then : 9483 eval $cacheid=yes 9484 else case e in #( 9485 e) eval $cacheid=no ;; 9486 esac 9487 fi 9488 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9489 conftest$ac_exeext conftest.$ac_ext ;; 9490 esac 9491 fi 9492 9493 9494 CFLAGS="$xorg_testset_save_CFLAGS" 9495 9496 eval supported=\$$cacheid 9497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9498 printf '%s\n' "$supported" >&6; } 9499 if test "$supported" = "yes" ; then 9500 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9501 found="yes" 9502 fi 9503 fi 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 xorg_testset_save_CFLAGS="$CFLAGS" 9520 9521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9524 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9525 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9526 then : 9527 printf %s "(cached) " >&6 9528 else case e in #( 9529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530 /* end confdefs.h. */ 9531 int i; 9532 _ACEOF 9533 if ac_fn_c_try_compile "$LINENO" 9534 then : 9535 xorg_cv_cc_flag_unknown_warning_option=yes 9536 else case e in #( 9537 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9538 esac 9539 fi 9540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9541 esac 9542 fi 9543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547 fi 9548 9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9557 then : 9558 printf %s "(cached) " >&6 9559 else case e in #( 9560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561 /* end confdefs.h. */ 9562 int i; 9563 _ACEOF 9564 if ac_fn_c_try_compile "$LINENO" 9565 then : 9566 xorg_cv_cc_flag_unused_command_line_argument=yes 9567 else case e in #( 9568 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9569 esac 9570 fi 9571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9572 esac 9573 fi 9574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9575 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9577 CFLAGS="$xorg_testset_save_CFLAGS" 9578 fi 9579 9580 found="no" 9581 9582 if test $found = "no" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 9587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9589 fi 9590 9591 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9592 9593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9594 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9595 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9596 if eval test \${$cacheid+y} 9597 then : 9598 printf %s "(cached) " >&6 9599 else case e in #( 9600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601 /* end confdefs.h. */ 9602 int i; 9603 int 9604 main (void) 9605 { 9606 9607 ; 9608 return 0; 9609 } 9610 _ACEOF 9611 if ac_fn_c_try_link "$LINENO" 9612 then : 9613 eval $cacheid=yes 9614 else case e in #( 9615 e) eval $cacheid=no ;; 9616 esac 9617 fi 9618 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9619 conftest$ac_exeext conftest.$ac_ext ;; 9620 esac 9621 fi 9622 9623 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625 9626 eval supported=\$$cacheid 9627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9628 printf '%s\n' "$supported" >&6; } 9629 if test "$supported" = "yes" ; then 9630 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9631 found="yes" 9632 fi 9633 fi 9634 9635 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9636 else 9637 { 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 9638 printf '%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;} 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 xorg_testset_save_CFLAGS="$CFLAGS" 9653 9654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9658 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9659 then : 9660 printf %s "(cached) " >&6 9661 else case e in #( 9662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663 /* end confdefs.h. */ 9664 int i; 9665 _ACEOF 9666 if ac_fn_c_try_compile "$LINENO" 9667 then : 9668 xorg_cv_cc_flag_unknown_warning_option=yes 9669 else case e in #( 9670 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9671 esac 9672 fi 9673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9674 esac 9675 fi 9676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9677 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9680 fi 9681 9682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9685 fi 9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9690 then : 9691 printf %s "(cached) " >&6 9692 else case e in #( 9693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694 /* end confdefs.h. */ 9695 int i; 9696 _ACEOF 9697 if ac_fn_c_try_compile "$LINENO" 9698 then : 9699 xorg_cv_cc_flag_unused_command_line_argument=yes 9700 else case e in #( 9701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9702 esac 9703 fi 9704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9705 esac 9706 fi 9707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9708 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9710 CFLAGS="$xorg_testset_save_CFLAGS" 9711 fi 9712 9713 found="no" 9714 9715 if test $found = "no" ; then 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 fi 9719 9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9722 fi 9723 9724 CFLAGS="$CFLAGS -Wimplicit" 9725 9726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9727 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9728 cacheid=xorg_cv_cc_flag__Wimplicit 9729 if eval test \${$cacheid+y} 9730 then : 9731 printf %s "(cached) " >&6 9732 else case e in #( 9733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734 /* end confdefs.h. */ 9735 int i; 9736 int 9737 main (void) 9738 { 9739 9740 ; 9741 return 0; 9742 } 9743 _ACEOF 9744 if ac_fn_c_try_link "$LINENO" 9745 then : 9746 eval $cacheid=yes 9747 else case e in #( 9748 e) eval $cacheid=no ;; 9749 esac 9750 fi 9751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9752 conftest$ac_exeext conftest.$ac_ext ;; 9753 esac 9754 fi 9755 9756 9757 CFLAGS="$xorg_testset_save_CFLAGS" 9758 9759 eval supported=\$$cacheid 9760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9761 printf '%s\n' "$supported" >&6; } 9762 if test "$supported" = "yes" ; then 9763 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9764 found="yes" 9765 fi 9766 fi 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 xorg_testset_save_CFLAGS="$CFLAGS" 9783 9784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9788 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9789 then : 9790 printf %s "(cached) " >&6 9791 else case e in #( 9792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793 /* end confdefs.h. */ 9794 int i; 9795 _ACEOF 9796 if ac_fn_c_try_compile "$LINENO" 9797 then : 9798 xorg_cv_cc_flag_unknown_warning_option=yes 9799 else case e in #( 9800 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9801 esac 9802 fi 9803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9804 esac 9805 fi 9806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9807 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 fi 9811 9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 fi 9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9820 then : 9821 printf %s "(cached) " >&6 9822 else case e in #( 9823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824 /* end confdefs.h. */ 9825 int i; 9826 _ACEOF 9827 if ac_fn_c_try_compile "$LINENO" 9828 then : 9829 xorg_cv_cc_flag_unused_command_line_argument=yes 9830 else case e in #( 9831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9832 esac 9833 fi 9834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9835 esac 9836 fi 9837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9838 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841 fi 9842 9843 found="no" 9844 9845 if test $found = "no" ; then 9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 fi 9849 9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9852 fi 9853 9854 CFLAGS="$CFLAGS -Wnonnull" 9855 9856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9857 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9858 cacheid=xorg_cv_cc_flag__Wnonnull 9859 if eval test \${$cacheid+y} 9860 then : 9861 printf %s "(cached) " >&6 9862 else case e in #( 9863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864 /* end confdefs.h. */ 9865 int i; 9866 int 9867 main (void) 9868 { 9869 9870 ; 9871 return 0; 9872 } 9873 _ACEOF 9874 if ac_fn_c_try_link "$LINENO" 9875 then : 9876 eval $cacheid=yes 9877 else case e in #( 9878 e) eval $cacheid=no ;; 9879 esac 9880 fi 9881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9882 conftest$ac_exeext conftest.$ac_ext ;; 9883 esac 9884 fi 9885 9886 9887 CFLAGS="$xorg_testset_save_CFLAGS" 9888 9889 eval supported=\$$cacheid 9890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9891 printf '%s\n' "$supported" >&6; } 9892 if test "$supported" = "yes" ; then 9893 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9894 found="yes" 9895 fi 9896 fi 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 xorg_testset_save_CFLAGS="$CFLAGS" 9913 9914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9918 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9919 then : 9920 printf %s "(cached) " >&6 9921 else case e in #( 9922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923 /* end confdefs.h. */ 9924 int i; 9925 _ACEOF 9926 if ac_fn_c_try_compile "$LINENO" 9927 then : 9928 xorg_cv_cc_flag_unknown_warning_option=yes 9929 else case e in #( 9930 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9931 esac 9932 fi 9933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9934 esac 9935 fi 9936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9937 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940 fi 9941 9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9945 fi 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9950 then : 9951 printf %s "(cached) " >&6 9952 else case e in #( 9953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954 /* end confdefs.h. */ 9955 int i; 9956 _ACEOF 9957 if ac_fn_c_try_compile "$LINENO" 9958 then : 9959 xorg_cv_cc_flag_unused_command_line_argument=yes 9960 else case e in #( 9961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9962 esac 9963 fi 9964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9965 esac 9966 fi 9967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9968 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971 fi 9972 9973 found="no" 9974 9975 if test $found = "no" ; then 9976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9978 fi 9979 9980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9982 fi 9983 9984 CFLAGS="$CFLAGS -Winit-self" 9985 9986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9987 printf %s "checking if $CC supports -Winit-self... " >&6; } 9988 cacheid=xorg_cv_cc_flag__Winit_self 9989 if eval test \${$cacheid+y} 9990 then : 9991 printf %s "(cached) " >&6 9992 else case e in #( 9993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994 /* end confdefs.h. */ 9995 int i; 9996 int 9997 main (void) 9998 { 9999 10000 ; 10001 return 0; 10002 } 10003 _ACEOF 10004 if ac_fn_c_try_link "$LINENO" 10005 then : 10006 eval $cacheid=yes 10007 else case e in #( 10008 e) eval $cacheid=no ;; 10009 esac 10010 fi 10011 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10012 conftest$ac_exeext conftest.$ac_ext ;; 10013 esac 10014 fi 10015 10016 10017 CFLAGS="$xorg_testset_save_CFLAGS" 10018 10019 eval supported=\$$cacheid 10020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10021 printf '%s\n' "$supported" >&6; } 10022 if test "$supported" = "yes" ; then 10023 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10024 found="yes" 10025 fi 10026 fi 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 xorg_testset_save_CFLAGS="$CFLAGS" 10043 10044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10048 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10049 then : 10050 printf %s "(cached) " >&6 10051 else case e in #( 10052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10053 /* end confdefs.h. */ 10054 int i; 10055 _ACEOF 10056 if ac_fn_c_try_compile "$LINENO" 10057 then : 10058 xorg_cv_cc_flag_unknown_warning_option=yes 10059 else case e in #( 10060 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10061 esac 10062 fi 10063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10064 esac 10065 fi 10066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10067 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10069 CFLAGS="$xorg_testset_save_CFLAGS" 10070 fi 10071 10072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10075 fi 10076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10080 then : 10081 printf %s "(cached) " >&6 10082 else case e in #( 10083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084 /* end confdefs.h. */ 10085 int i; 10086 _ACEOF 10087 if ac_fn_c_try_compile "$LINENO" 10088 then : 10089 xorg_cv_cc_flag_unused_command_line_argument=yes 10090 else case e in #( 10091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10092 esac 10093 fi 10094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10095 esac 10096 fi 10097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10098 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101 fi 10102 10103 found="no" 10104 10105 if test $found = "no" ; then 10106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10108 fi 10109 10110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10112 fi 10113 10114 CFLAGS="$CFLAGS -Wmain" 10115 10116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10117 printf %s "checking if $CC supports -Wmain... " >&6; } 10118 cacheid=xorg_cv_cc_flag__Wmain 10119 if eval test \${$cacheid+y} 10120 then : 10121 printf %s "(cached) " >&6 10122 else case e in #( 10123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124 /* end confdefs.h. */ 10125 int i; 10126 int 10127 main (void) 10128 { 10129 10130 ; 10131 return 0; 10132 } 10133 _ACEOF 10134 if ac_fn_c_try_link "$LINENO" 10135 then : 10136 eval $cacheid=yes 10137 else case e in #( 10138 e) eval $cacheid=no ;; 10139 esac 10140 fi 10141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10142 conftest$ac_exeext conftest.$ac_ext ;; 10143 esac 10144 fi 10145 10146 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148 10149 eval supported=\$$cacheid 10150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10151 printf '%s\n' "$supported" >&6; } 10152 if test "$supported" = "yes" ; then 10153 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10154 found="yes" 10155 fi 10156 fi 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 xorg_testset_save_CFLAGS="$CFLAGS" 10173 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10178 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10179 then : 10180 printf %s "(cached) " >&6 10181 else case e in #( 10182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183 /* end confdefs.h. */ 10184 int i; 10185 _ACEOF 10186 if ac_fn_c_try_compile "$LINENO" 10187 then : 10188 xorg_cv_cc_flag_unknown_warning_option=yes 10189 else case e in #( 10190 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10191 esac 10192 fi 10193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10194 esac 10195 fi 10196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10197 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200 fi 10201 10202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10205 fi 10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10210 then : 10211 printf %s "(cached) " >&6 10212 else case e in #( 10213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214 /* end confdefs.h. */ 10215 int i; 10216 _ACEOF 10217 if ac_fn_c_try_compile "$LINENO" 10218 then : 10219 xorg_cv_cc_flag_unused_command_line_argument=yes 10220 else case e in #( 10221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10222 esac 10223 fi 10224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10225 esac 10226 fi 10227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10228 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10230 CFLAGS="$xorg_testset_save_CFLAGS" 10231 fi 10232 10233 found="no" 10234 10235 if test $found = "no" ; then 10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10238 fi 10239 10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10242 fi 10243 10244 CFLAGS="$CFLAGS -Wmissing-braces" 10245 10246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10247 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10248 cacheid=xorg_cv_cc_flag__Wmissing_braces 10249 if eval test \${$cacheid+y} 10250 then : 10251 printf %s "(cached) " >&6 10252 else case e in #( 10253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254 /* end confdefs.h. */ 10255 int i; 10256 int 10257 main (void) 10258 { 10259 10260 ; 10261 return 0; 10262 } 10263 _ACEOF 10264 if ac_fn_c_try_link "$LINENO" 10265 then : 10266 eval $cacheid=yes 10267 else case e in #( 10268 e) eval $cacheid=no ;; 10269 esac 10270 fi 10271 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10272 conftest$ac_exeext conftest.$ac_ext ;; 10273 esac 10274 fi 10275 10276 10277 CFLAGS="$xorg_testset_save_CFLAGS" 10278 10279 eval supported=\$$cacheid 10280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10281 printf '%s\n' "$supported" >&6; } 10282 if test "$supported" = "yes" ; then 10283 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10284 found="yes" 10285 fi 10286 fi 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 xorg_testset_save_CFLAGS="$CFLAGS" 10303 10304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10308 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10309 then : 10310 printf %s "(cached) " >&6 10311 else case e in #( 10312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313 /* end confdefs.h. */ 10314 int i; 10315 _ACEOF 10316 if ac_fn_c_try_compile "$LINENO" 10317 then : 10318 xorg_cv_cc_flag_unknown_warning_option=yes 10319 else case e in #( 10320 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10321 esac 10322 fi 10323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10324 esac 10325 fi 10326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10327 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10329 CFLAGS="$xorg_testset_save_CFLAGS" 10330 fi 10331 10332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10335 fi 10336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10340 then : 10341 printf %s "(cached) " >&6 10342 else case e in #( 10343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344 /* end confdefs.h. */ 10345 int i; 10346 _ACEOF 10347 if ac_fn_c_try_compile "$LINENO" 10348 then : 10349 xorg_cv_cc_flag_unused_command_line_argument=yes 10350 else case e in #( 10351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10352 esac 10353 fi 10354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10355 esac 10356 fi 10357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10358 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10360 CFLAGS="$xorg_testset_save_CFLAGS" 10361 fi 10362 10363 found="no" 10364 10365 if test $found = "no" ; then 10366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10368 fi 10369 10370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10372 fi 10373 10374 CFLAGS="$CFLAGS -Wsequence-point" 10375 10376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10377 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10378 cacheid=xorg_cv_cc_flag__Wsequence_point 10379 if eval test \${$cacheid+y} 10380 then : 10381 printf %s "(cached) " >&6 10382 else case e in #( 10383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384 /* end confdefs.h. */ 10385 int i; 10386 int 10387 main (void) 10388 { 10389 10390 ; 10391 return 0; 10392 } 10393 _ACEOF 10394 if ac_fn_c_try_link "$LINENO" 10395 then : 10396 eval $cacheid=yes 10397 else case e in #( 10398 e) eval $cacheid=no ;; 10399 esac 10400 fi 10401 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10402 conftest$ac_exeext conftest.$ac_ext ;; 10403 esac 10404 fi 10405 10406 10407 CFLAGS="$xorg_testset_save_CFLAGS" 10408 10409 eval supported=\$$cacheid 10410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10411 printf '%s\n' "$supported" >&6; } 10412 if test "$supported" = "yes" ; then 10413 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10414 found="yes" 10415 fi 10416 fi 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 xorg_testset_save_CFLAGS="$CFLAGS" 10433 10434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10438 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10439 then : 10440 printf %s "(cached) " >&6 10441 else case e in #( 10442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443 /* end confdefs.h. */ 10444 int i; 10445 _ACEOF 10446 if ac_fn_c_try_compile "$LINENO" 10447 then : 10448 xorg_cv_cc_flag_unknown_warning_option=yes 10449 else case e in #( 10450 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10451 esac 10452 fi 10453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10454 esac 10455 fi 10456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10457 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460 fi 10461 10462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10465 fi 10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10470 then : 10471 printf %s "(cached) " >&6 10472 else case e in #( 10473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474 /* end confdefs.h. */ 10475 int i; 10476 _ACEOF 10477 if ac_fn_c_try_compile "$LINENO" 10478 then : 10479 xorg_cv_cc_flag_unused_command_line_argument=yes 10480 else case e in #( 10481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10482 esac 10483 fi 10484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10485 esac 10486 fi 10487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10488 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10490 CFLAGS="$xorg_testset_save_CFLAGS" 10491 fi 10492 10493 found="no" 10494 10495 if test $found = "no" ; then 10496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 fi 10499 10500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10502 fi 10503 10504 CFLAGS="$CFLAGS -Wreturn-type" 10505 10506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10507 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10508 cacheid=xorg_cv_cc_flag__Wreturn_type 10509 if eval test \${$cacheid+y} 10510 then : 10511 printf %s "(cached) " >&6 10512 else case e in #( 10513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514 /* end confdefs.h. */ 10515 int i; 10516 int 10517 main (void) 10518 { 10519 10520 ; 10521 return 0; 10522 } 10523 _ACEOF 10524 if ac_fn_c_try_link "$LINENO" 10525 then : 10526 eval $cacheid=yes 10527 else case e in #( 10528 e) eval $cacheid=no ;; 10529 esac 10530 fi 10531 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10532 conftest$ac_exeext conftest.$ac_ext ;; 10533 esac 10534 fi 10535 10536 10537 CFLAGS="$xorg_testset_save_CFLAGS" 10538 10539 eval supported=\$$cacheid 10540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10541 printf '%s\n' "$supported" >&6; } 10542 if test "$supported" = "yes" ; then 10543 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10544 found="yes" 10545 fi 10546 fi 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 xorg_testset_save_CFLAGS="$CFLAGS" 10563 10564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10568 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10569 then : 10570 printf %s "(cached) " >&6 10571 else case e in #( 10572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573 /* end confdefs.h. */ 10574 int i; 10575 _ACEOF 10576 if ac_fn_c_try_compile "$LINENO" 10577 then : 10578 xorg_cv_cc_flag_unknown_warning_option=yes 10579 else case e in #( 10580 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10581 esac 10582 fi 10583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10584 esac 10585 fi 10586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10587 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590 fi 10591 10592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10595 fi 10596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10600 then : 10601 printf %s "(cached) " >&6 10602 else case e in #( 10603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10604 /* end confdefs.h. */ 10605 int i; 10606 _ACEOF 10607 if ac_fn_c_try_compile "$LINENO" 10608 then : 10609 xorg_cv_cc_flag_unused_command_line_argument=yes 10610 else case e in #( 10611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10612 esac 10613 fi 10614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10615 esac 10616 fi 10617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10618 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10620 CFLAGS="$xorg_testset_save_CFLAGS" 10621 fi 10622 10623 found="no" 10624 10625 if test $found = "no" ; then 10626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10628 fi 10629 10630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10632 fi 10633 10634 CFLAGS="$CFLAGS -Wtrigraphs" 10635 10636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10637 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10638 cacheid=xorg_cv_cc_flag__Wtrigraphs 10639 if eval test \${$cacheid+y} 10640 then : 10641 printf %s "(cached) " >&6 10642 else case e in #( 10643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10644 /* end confdefs.h. */ 10645 int i; 10646 int 10647 main (void) 10648 { 10649 10650 ; 10651 return 0; 10652 } 10653 _ACEOF 10654 if ac_fn_c_try_link "$LINENO" 10655 then : 10656 eval $cacheid=yes 10657 else case e in #( 10658 e) eval $cacheid=no ;; 10659 esac 10660 fi 10661 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10662 conftest$ac_exeext conftest.$ac_ext ;; 10663 esac 10664 fi 10665 10666 10667 CFLAGS="$xorg_testset_save_CFLAGS" 10668 10669 eval supported=\$$cacheid 10670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10671 printf '%s\n' "$supported" >&6; } 10672 if test "$supported" = "yes" ; then 10673 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10674 found="yes" 10675 fi 10676 fi 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 xorg_testset_save_CFLAGS="$CFLAGS" 10693 10694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10698 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10699 then : 10700 printf %s "(cached) " >&6 10701 else case e in #( 10702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703 /* end confdefs.h. */ 10704 int i; 10705 _ACEOF 10706 if ac_fn_c_try_compile "$LINENO" 10707 then : 10708 xorg_cv_cc_flag_unknown_warning_option=yes 10709 else case e in #( 10710 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10711 esac 10712 fi 10713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10714 esac 10715 fi 10716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10717 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10719 CFLAGS="$xorg_testset_save_CFLAGS" 10720 fi 10721 10722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10725 fi 10726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10730 then : 10731 printf %s "(cached) " >&6 10732 else case e in #( 10733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10734 /* end confdefs.h. */ 10735 int i; 10736 _ACEOF 10737 if ac_fn_c_try_compile "$LINENO" 10738 then : 10739 xorg_cv_cc_flag_unused_command_line_argument=yes 10740 else case e in #( 10741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10742 esac 10743 fi 10744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10745 esac 10746 fi 10747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10748 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10750 CFLAGS="$xorg_testset_save_CFLAGS" 10751 fi 10752 10753 found="no" 10754 10755 if test $found = "no" ; then 10756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10758 fi 10759 10760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10762 fi 10763 10764 CFLAGS="$CFLAGS -Warray-bounds" 10765 10766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10767 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10768 cacheid=xorg_cv_cc_flag__Warray_bounds 10769 if eval test \${$cacheid+y} 10770 then : 10771 printf %s "(cached) " >&6 10772 else case e in #( 10773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10774 /* end confdefs.h. */ 10775 int i; 10776 int 10777 main (void) 10778 { 10779 10780 ; 10781 return 0; 10782 } 10783 _ACEOF 10784 if ac_fn_c_try_link "$LINENO" 10785 then : 10786 eval $cacheid=yes 10787 else case e in #( 10788 e) eval $cacheid=no ;; 10789 esac 10790 fi 10791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10792 conftest$ac_exeext conftest.$ac_ext ;; 10793 esac 10794 fi 10795 10796 10797 CFLAGS="$xorg_testset_save_CFLAGS" 10798 10799 eval supported=\$$cacheid 10800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10801 printf '%s\n' "$supported" >&6; } 10802 if test "$supported" = "yes" ; then 10803 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10804 found="yes" 10805 fi 10806 fi 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 xorg_testset_save_CFLAGS="$CFLAGS" 10823 10824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10828 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10829 then : 10830 printf %s "(cached) " >&6 10831 else case e in #( 10832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10833 /* end confdefs.h. */ 10834 int i; 10835 _ACEOF 10836 if ac_fn_c_try_compile "$LINENO" 10837 then : 10838 xorg_cv_cc_flag_unknown_warning_option=yes 10839 else case e in #( 10840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10841 esac 10842 fi 10843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10844 esac 10845 fi 10846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10847 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10849 CFLAGS="$xorg_testset_save_CFLAGS" 10850 fi 10851 10852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10855 fi 10856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10860 then : 10861 printf %s "(cached) " >&6 10862 else case e in #( 10863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10864 /* end confdefs.h. */ 10865 int i; 10866 _ACEOF 10867 if ac_fn_c_try_compile "$LINENO" 10868 then : 10869 xorg_cv_cc_flag_unused_command_line_argument=yes 10870 else case e in #( 10871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10872 esac 10873 fi 10874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10875 esac 10876 fi 10877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10878 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10880 CFLAGS="$xorg_testset_save_CFLAGS" 10881 fi 10882 10883 found="no" 10884 10885 if test $found = "no" ; then 10886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10888 fi 10889 10890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10892 fi 10893 10894 CFLAGS="$CFLAGS -Wwrite-strings" 10895 10896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10897 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10898 cacheid=xorg_cv_cc_flag__Wwrite_strings 10899 if eval test \${$cacheid+y} 10900 then : 10901 printf %s "(cached) " >&6 10902 else case e in #( 10903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904 /* end confdefs.h. */ 10905 int i; 10906 int 10907 main (void) 10908 { 10909 10910 ; 10911 return 0; 10912 } 10913 _ACEOF 10914 if ac_fn_c_try_link "$LINENO" 10915 then : 10916 eval $cacheid=yes 10917 else case e in #( 10918 e) eval $cacheid=no ;; 10919 esac 10920 fi 10921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10922 conftest$ac_exeext conftest.$ac_ext ;; 10923 esac 10924 fi 10925 10926 10927 CFLAGS="$xorg_testset_save_CFLAGS" 10928 10929 eval supported=\$$cacheid 10930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10931 printf '%s\n' "$supported" >&6; } 10932 if test "$supported" = "yes" ; then 10933 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10934 found="yes" 10935 fi 10936 fi 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 xorg_testset_save_CFLAGS="$CFLAGS" 10953 10954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10959 then : 10960 printf %s "(cached) " >&6 10961 else case e in #( 10962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10963 /* end confdefs.h. */ 10964 int i; 10965 _ACEOF 10966 if ac_fn_c_try_compile "$LINENO" 10967 then : 10968 xorg_cv_cc_flag_unknown_warning_option=yes 10969 else case e in #( 10970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10971 esac 10972 fi 10973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10974 esac 10975 fi 10976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10977 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10979 CFLAGS="$xorg_testset_save_CFLAGS" 10980 fi 10981 10982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10985 fi 10986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10990 then : 10991 printf %s "(cached) " >&6 10992 else case e in #( 10993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10994 /* end confdefs.h. */ 10995 int i; 10996 _ACEOF 10997 if ac_fn_c_try_compile "$LINENO" 10998 then : 10999 xorg_cv_cc_flag_unused_command_line_argument=yes 11000 else case e in #( 11001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11002 esac 11003 fi 11004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11005 esac 11006 fi 11007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11008 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11010 CFLAGS="$xorg_testset_save_CFLAGS" 11011 fi 11012 11013 found="no" 11014 11015 if test $found = "no" ; then 11016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11018 fi 11019 11020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11022 fi 11023 11024 CFLAGS="$CFLAGS -Waddress" 11025 11026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11027 printf %s "checking if $CC supports -Waddress... " >&6; } 11028 cacheid=xorg_cv_cc_flag__Waddress 11029 if eval test \${$cacheid+y} 11030 then : 11031 printf %s "(cached) " >&6 11032 else case e in #( 11033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034 /* end confdefs.h. */ 11035 int i; 11036 int 11037 main (void) 11038 { 11039 11040 ; 11041 return 0; 11042 } 11043 _ACEOF 11044 if ac_fn_c_try_link "$LINENO" 11045 then : 11046 eval $cacheid=yes 11047 else case e in #( 11048 e) eval $cacheid=no ;; 11049 esac 11050 fi 11051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11052 conftest$ac_exeext conftest.$ac_ext ;; 11053 esac 11054 fi 11055 11056 11057 CFLAGS="$xorg_testset_save_CFLAGS" 11058 11059 eval supported=\$$cacheid 11060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11061 printf '%s\n' "$supported" >&6; } 11062 if test "$supported" = "yes" ; then 11063 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11064 found="yes" 11065 fi 11066 fi 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 xorg_testset_save_CFLAGS="$CFLAGS" 11083 11084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11088 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11089 then : 11090 printf %s "(cached) " >&6 11091 else case e in #( 11092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11093 /* end confdefs.h. */ 11094 int i; 11095 _ACEOF 11096 if ac_fn_c_try_compile "$LINENO" 11097 then : 11098 xorg_cv_cc_flag_unknown_warning_option=yes 11099 else case e in #( 11100 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11101 esac 11102 fi 11103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11104 esac 11105 fi 11106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11107 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11109 CFLAGS="$xorg_testset_save_CFLAGS" 11110 fi 11111 11112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11115 fi 11116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11120 then : 11121 printf %s "(cached) " >&6 11122 else case e in #( 11123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124 /* end confdefs.h. */ 11125 int i; 11126 _ACEOF 11127 if ac_fn_c_try_compile "$LINENO" 11128 then : 11129 xorg_cv_cc_flag_unused_command_line_argument=yes 11130 else case e in #( 11131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11132 esac 11133 fi 11134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11135 esac 11136 fi 11137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11138 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11140 CFLAGS="$xorg_testset_save_CFLAGS" 11141 fi 11142 11143 found="no" 11144 11145 if test $found = "no" ; then 11146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11148 fi 11149 11150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11152 fi 11153 11154 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11155 11156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11157 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11158 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11159 if eval test \${$cacheid+y} 11160 then : 11161 printf %s "(cached) " >&6 11162 else case e in #( 11163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11164 /* end confdefs.h. */ 11165 int i; 11166 int 11167 main (void) 11168 { 11169 11170 ; 11171 return 0; 11172 } 11173 _ACEOF 11174 if ac_fn_c_try_link "$LINENO" 11175 then : 11176 eval $cacheid=yes 11177 else case e in #( 11178 e) eval $cacheid=no ;; 11179 esac 11180 fi 11181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11182 conftest$ac_exeext conftest.$ac_ext ;; 11183 esac 11184 fi 11185 11186 11187 CFLAGS="$xorg_testset_save_CFLAGS" 11188 11189 eval supported=\$$cacheid 11190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11191 printf '%s\n' "$supported" >&6; } 11192 if test "$supported" = "yes" ; then 11193 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11194 found="yes" 11195 fi 11196 fi 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 xorg_testset_save_CFLAGS="$CFLAGS" 11213 11214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11218 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11219 then : 11220 printf %s "(cached) " >&6 11221 else case e in #( 11222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11223 /* end confdefs.h. */ 11224 int i; 11225 _ACEOF 11226 if ac_fn_c_try_compile "$LINENO" 11227 then : 11228 xorg_cv_cc_flag_unknown_warning_option=yes 11229 else case e in #( 11230 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11231 esac 11232 fi 11233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11234 esac 11235 fi 11236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11237 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11239 CFLAGS="$xorg_testset_save_CFLAGS" 11240 fi 11241 11242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11245 fi 11246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11250 then : 11251 printf %s "(cached) " >&6 11252 else case e in #( 11253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11254 /* end confdefs.h. */ 11255 int i; 11256 _ACEOF 11257 if ac_fn_c_try_compile "$LINENO" 11258 then : 11259 xorg_cv_cc_flag_unused_command_line_argument=yes 11260 else case e in #( 11261 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11262 esac 11263 fi 11264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11265 esac 11266 fi 11267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11268 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11270 CFLAGS="$xorg_testset_save_CFLAGS" 11271 fi 11272 11273 found="no" 11274 11275 if test $found = "no" ; then 11276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11278 fi 11279 11280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11282 fi 11283 11284 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11285 11286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11287 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11288 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11289 if eval test \${$cacheid+y} 11290 then : 11291 printf %s "(cached) " >&6 11292 else case e in #( 11293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11294 /* end confdefs.h. */ 11295 int i; 11296 int 11297 main (void) 11298 { 11299 11300 ; 11301 return 0; 11302 } 11303 _ACEOF 11304 if ac_fn_c_try_link "$LINENO" 11305 then : 11306 eval $cacheid=yes 11307 else case e in #( 11308 e) eval $cacheid=no ;; 11309 esac 11310 fi 11311 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11312 conftest$ac_exeext conftest.$ac_ext ;; 11313 esac 11314 fi 11315 11316 11317 CFLAGS="$xorg_testset_save_CFLAGS" 11318 11319 eval supported=\$$cacheid 11320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11321 printf '%s\n' "$supported" >&6; } 11322 if test "$supported" = "yes" ; then 11323 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11324 found="yes" 11325 fi 11326 fi 11327 11328 11329 fi 11330 11331 11332 11333 11334 11335 11336 11337 CWARNFLAGS="$BASE_CFLAGS" 11338 if test "x$GCC" = xyes ; then 11339 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11340 fi 11341 11342 11343 11344 11345 11346 11347 11348 11349 # Check whether --enable-strict-compilation was given. 11350 if test ${enable_strict_compilation+y} 11351 then : 11352 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11353 else case e in #( 11354 e) STRICT_COMPILE=no ;; 11355 esac 11356 fi 11357 11358 11359 11360 11361 11362 11363 STRICT_CFLAGS="" 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 xorg_testset_save_CFLAGS="$CFLAGS" 11378 11379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11383 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11384 then : 11385 printf %s "(cached) " >&6 11386 else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388 /* end confdefs.h. */ 11389 int i; 11390 _ACEOF 11391 if ac_fn_c_try_compile "$LINENO" 11392 then : 11393 xorg_cv_cc_flag_unknown_warning_option=yes 11394 else case e in #( 11395 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11396 esac 11397 fi 11398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11399 esac 11400 fi 11401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11402 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11404 CFLAGS="$xorg_testset_save_CFLAGS" 11405 fi 11406 11407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11410 fi 11411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11415 then : 11416 printf %s "(cached) " >&6 11417 else case e in #( 11418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11419 /* end confdefs.h. */ 11420 int i; 11421 _ACEOF 11422 if ac_fn_c_try_compile "$LINENO" 11423 then : 11424 xorg_cv_cc_flag_unused_command_line_argument=yes 11425 else case e in #( 11426 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11427 esac 11428 fi 11429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11430 esac 11431 fi 11432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11433 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11435 CFLAGS="$xorg_testset_save_CFLAGS" 11436 fi 11437 11438 found="no" 11439 11440 if test $found = "no" ; then 11441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11443 fi 11444 11445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11447 fi 11448 11449 CFLAGS="$CFLAGS -pedantic" 11450 11451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11452 printf %s "checking if $CC supports -pedantic... " >&6; } 11453 cacheid=xorg_cv_cc_flag__pedantic 11454 if eval test \${$cacheid+y} 11455 then : 11456 printf %s "(cached) " >&6 11457 else case e in #( 11458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11459 /* end confdefs.h. */ 11460 int i; 11461 int 11462 main (void) 11463 { 11464 11465 ; 11466 return 0; 11467 } 11468 _ACEOF 11469 if ac_fn_c_try_link "$LINENO" 11470 then : 11471 eval $cacheid=yes 11472 else case e in #( 11473 e) eval $cacheid=no ;; 11474 esac 11475 fi 11476 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11477 conftest$ac_exeext conftest.$ac_ext ;; 11478 esac 11479 fi 11480 11481 11482 CFLAGS="$xorg_testset_save_CFLAGS" 11483 11484 eval supported=\$$cacheid 11485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11486 printf '%s\n' "$supported" >&6; } 11487 if test "$supported" = "yes" ; then 11488 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11489 found="yes" 11490 fi 11491 fi 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 xorg_testset_save_CFLAGS="$CFLAGS" 11508 11509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11512 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11513 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11514 then : 11515 printf %s "(cached) " >&6 11516 else case e in #( 11517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518 /* end confdefs.h. */ 11519 int i; 11520 _ACEOF 11521 if ac_fn_c_try_compile "$LINENO" 11522 then : 11523 xorg_cv_cc_flag_unknown_warning_option=yes 11524 else case e in #( 11525 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11526 esac 11527 fi 11528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11529 esac 11530 fi 11531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11532 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11534 CFLAGS="$xorg_testset_save_CFLAGS" 11535 fi 11536 11537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11540 fi 11541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11545 then : 11546 printf %s "(cached) " >&6 11547 else case e in #( 11548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11549 /* end confdefs.h. */ 11550 int i; 11551 _ACEOF 11552 if ac_fn_c_try_compile "$LINENO" 11553 then : 11554 xorg_cv_cc_flag_unused_command_line_argument=yes 11555 else case e in #( 11556 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11557 esac 11558 fi 11559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11560 esac 11561 fi 11562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11563 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11565 CFLAGS="$xorg_testset_save_CFLAGS" 11566 fi 11567 11568 found="no" 11569 11570 if test $found = "no" ; then 11571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11573 fi 11574 11575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11577 fi 11578 11579 CFLAGS="$CFLAGS -Werror" 11580 11581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11582 printf %s "checking if $CC supports -Werror... " >&6; } 11583 cacheid=xorg_cv_cc_flag__Werror 11584 if eval test \${$cacheid+y} 11585 then : 11586 printf %s "(cached) " >&6 11587 else case e in #( 11588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11589 /* end confdefs.h. */ 11590 int i; 11591 int 11592 main (void) 11593 { 11594 11595 ; 11596 return 0; 11597 } 11598 _ACEOF 11599 if ac_fn_c_try_link "$LINENO" 11600 then : 11601 eval $cacheid=yes 11602 else case e in #( 11603 e) eval $cacheid=no ;; 11604 esac 11605 fi 11606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11607 conftest$ac_exeext conftest.$ac_ext ;; 11608 esac 11609 fi 11610 11611 11612 CFLAGS="$xorg_testset_save_CFLAGS" 11613 11614 eval supported=\$$cacheid 11615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11616 printf '%s\n' "$supported" >&6; } 11617 if test "$supported" = "yes" ; then 11618 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11619 found="yes" 11620 fi 11621 fi 11622 11623 if test $found = "no" ; then 11624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11626 fi 11627 11628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11630 fi 11631 11632 CFLAGS="$CFLAGS -errwarn" 11633 11634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11635 printf %s "checking if $CC supports -errwarn... " >&6; } 11636 cacheid=xorg_cv_cc_flag__errwarn 11637 if eval test \${$cacheid+y} 11638 then : 11639 printf %s "(cached) " >&6 11640 else case e in #( 11641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11642 /* end confdefs.h. */ 11643 int i; 11644 int 11645 main (void) 11646 { 11647 11648 ; 11649 return 0; 11650 } 11651 _ACEOF 11652 if ac_fn_c_try_link "$LINENO" 11653 then : 11654 eval $cacheid=yes 11655 else case e in #( 11656 e) eval $cacheid=no ;; 11657 esac 11658 fi 11659 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11660 conftest$ac_exeext conftest.$ac_ext ;; 11661 esac 11662 fi 11663 11664 11665 CFLAGS="$xorg_testset_save_CFLAGS" 11666 11667 eval supported=\$$cacheid 11668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11669 printf '%s\n' "$supported" >&6; } 11670 if test "$supported" = "yes" ; then 11671 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11672 found="yes" 11673 fi 11674 fi 11675 11676 11677 11678 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11679 # activate it with -Werror, so we add it here explicitly. 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 xorg_testset_save_CFLAGS="$CFLAGS" 11694 11695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11699 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11700 then : 11701 printf %s "(cached) " >&6 11702 else case e in #( 11703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11704 /* end confdefs.h. */ 11705 int i; 11706 _ACEOF 11707 if ac_fn_c_try_compile "$LINENO" 11708 then : 11709 xorg_cv_cc_flag_unknown_warning_option=yes 11710 else case e in #( 11711 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11712 esac 11713 fi 11714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11715 esac 11716 fi 11717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11718 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11720 CFLAGS="$xorg_testset_save_CFLAGS" 11721 fi 11722 11723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11726 fi 11727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11731 then : 11732 printf %s "(cached) " >&6 11733 else case e in #( 11734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11735 /* end confdefs.h. */ 11736 int i; 11737 _ACEOF 11738 if ac_fn_c_try_compile "$LINENO" 11739 then : 11740 xorg_cv_cc_flag_unused_command_line_argument=yes 11741 else case e in #( 11742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11743 esac 11744 fi 11745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11746 esac 11747 fi 11748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11749 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11751 CFLAGS="$xorg_testset_save_CFLAGS" 11752 fi 11753 11754 found="no" 11755 11756 if test $found = "no" ; then 11757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11759 fi 11760 11761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11763 fi 11764 11765 CFLAGS="$CFLAGS -Werror=attributes" 11766 11767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11768 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11769 cacheid=xorg_cv_cc_flag__Werror_attributes 11770 if eval test \${$cacheid+y} 11771 then : 11772 printf %s "(cached) " >&6 11773 else case e in #( 11774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11775 /* end confdefs.h. */ 11776 int i; 11777 int 11778 main (void) 11779 { 11780 11781 ; 11782 return 0; 11783 } 11784 _ACEOF 11785 if ac_fn_c_try_link "$LINENO" 11786 then : 11787 eval $cacheid=yes 11788 else case e in #( 11789 e) eval $cacheid=no ;; 11790 esac 11791 fi 11792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11793 conftest$ac_exeext conftest.$ac_ext ;; 11794 esac 11795 fi 11796 11797 11798 CFLAGS="$xorg_testset_save_CFLAGS" 11799 11800 eval supported=\$$cacheid 11801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11802 printf '%s\n' "$supported" >&6; } 11803 if test "$supported" = "yes" ; then 11804 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11805 found="yes" 11806 fi 11807 fi 11808 11809 11810 11811 if test "x$STRICT_COMPILE" = "xyes"; then 11812 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11813 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11814 fi 11815 11816 11817 11818 11819 11820 11821 11822 11823 cat >>confdefs.h <<_ACEOF 11824 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11825 _ACEOF 11826 11827 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11828 if test "x$PVM" = "x"; then 11829 PVM="0" 11830 fi 11831 11832 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11833 11834 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11835 if test "x$PVP" = "x"; then 11836 PVP="0" 11837 fi 11838 11839 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11840 11841 11842 11843 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11844 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11845 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11846 touch \$(top_srcdir)/ChangeLog; \ 11847 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11848 11849 11850 11851 11852 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11853 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11854 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11855 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11856 touch \$(top_srcdir)/INSTALL; \ 11857 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11858 11859 11860 11861 11862 11863 11864 case $host_os in 11865 solaris*) 11866 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11867 # check for a man page file found in later versions that use 11868 # traditional section numbers instead 11869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11870 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11871 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11872 then : 11873 printf %s "(cached) " >&6 11874 else case e in #( 11875 e) test "$cross_compiling" = yes && 11876 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11877 if test -r "/usr/share/man/man7/attributes.7"; then 11878 ac_cv_file__usr_share_man_man7_attributes_7=yes 11879 else 11880 ac_cv_file__usr_share_man_man7_attributes_7=no 11881 fi ;; 11882 esac 11883 fi 11884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11885 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11886 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11887 then : 11888 SYSV_MAN_SECTIONS=false 11889 else case e in #( 11890 e) SYSV_MAN_SECTIONS=true ;; 11891 esac 11892 fi 11893 11894 ;; 11895 *) SYSV_MAN_SECTIONS=false ;; 11896 esac 11897 11898 if test x$APP_MAN_SUFFIX = x ; then 11899 APP_MAN_SUFFIX=1 11900 fi 11901 if test x$APP_MAN_DIR = x ; then 11902 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11903 fi 11904 11905 if test x$LIB_MAN_SUFFIX = x ; then 11906 LIB_MAN_SUFFIX=3 11907 fi 11908 if test x$LIB_MAN_DIR = x ; then 11909 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11910 fi 11911 11912 if test x$FILE_MAN_SUFFIX = x ; then 11913 case $SYSV_MAN_SECTIONS in 11914 true) FILE_MAN_SUFFIX=4 ;; 11915 *) FILE_MAN_SUFFIX=5 ;; 11916 esac 11917 fi 11918 if test x$FILE_MAN_DIR = x ; then 11919 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11920 fi 11921 11922 if test x$MISC_MAN_SUFFIX = x ; then 11923 case $SYSV_MAN_SECTIONS in 11924 true) MISC_MAN_SUFFIX=5 ;; 11925 *) MISC_MAN_SUFFIX=7 ;; 11926 esac 11927 fi 11928 if test x$MISC_MAN_DIR = x ; then 11929 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11930 fi 11931 11932 if test x$DRIVER_MAN_SUFFIX = x ; then 11933 case $SYSV_MAN_SECTIONS in 11934 true) DRIVER_MAN_SUFFIX=7 ;; 11935 *) DRIVER_MAN_SUFFIX=4 ;; 11936 esac 11937 fi 11938 if test x$DRIVER_MAN_DIR = x ; then 11939 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11940 fi 11941 11942 if test x$ADMIN_MAN_SUFFIX = x ; then 11943 case $SYSV_MAN_SECTIONS in 11944 true) ADMIN_MAN_SUFFIX=1m ;; 11945 *) ADMIN_MAN_SUFFIX=8 ;; 11946 esac 11947 fi 11948 if test x$ADMIN_MAN_DIR = x ; then 11949 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11950 fi 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 XORG_MAN_PAGE="X Version 11" 11967 11968 MAN_SUBSTS="\ 11969 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11970 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11971 -e 's|__xservername__|Xorg|g' \ 11972 -e 's|__xconfigfile__|xorg.conf|g' \ 11973 -e 's|__projectroot__|\$(prefix)|g' \ 11974 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11975 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11976 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11977 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11978 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11979 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11980 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11981 11982 11983 11984 11985 AM_DEFAULT_VERBOSITY=0 11986 11987 11988 11989 11990 11991 # Checks for pkg-config packages 11992 11993 pkg_failed=no 11994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XLSFONTS" >&5 11995 printf %s "checking for XLSFONTS... " >&6; } 11996 11997 if test -n "$XLSFONTS_CFLAGS"; then 11998 pkg_cv_XLSFONTS_CFLAGS="$XLSFONTS_CFLAGS" 11999 elif test -n "$PKG_CONFIG"; then 12000 if test -n "$PKG_CONFIG" && \ 12001 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5 12002 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5 12003 ac_status=$? 12004 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12005 test $ac_status = 0; }; then 12006 pkg_cv_XLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.22" 2>/dev/null` 12007 test "x$?" != "x0" && pkg_failed=yes 12008 else 12009 pkg_failed=yes 12010 fi 12011 else 12012 pkg_failed=untried 12013 fi 12014 if test -n "$XLSFONTS_LIBS"; then 12015 pkg_cv_XLSFONTS_LIBS="$XLSFONTS_LIBS" 12016 elif test -n "$PKG_CONFIG"; then 12017 if test -n "$PKG_CONFIG" && \ 12018 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5 12019 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5 12020 ac_status=$? 12021 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12022 test $ac_status = 0; }; then 12023 pkg_cv_XLSFONTS_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.22" 2>/dev/null` 12024 test "x$?" != "x0" && pkg_failed=yes 12025 else 12026 pkg_failed=yes 12027 fi 12028 else 12029 pkg_failed=untried 12030 fi 12031 12032 12033 12034 if test $pkg_failed = yes; then 12035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12036 printf '%s\n' "no" >&6; } 12037 12038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12039 _pkg_short_errors_supported=yes 12040 else 12041 _pkg_short_errors_supported=no 12042 fi 12043 if test $_pkg_short_errors_supported = yes; then 12044 XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1` 12045 else 12046 XLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1` 12047 fi 12048 # Put the nasty error message in config.log where it belongs 12049 echo "$XLSFONTS_PKG_ERRORS" >&5 12050 12051 as_fn_error $? "Package requirements (x11 xproto >= 7.0.22) were not met: 12052 12053 $XLSFONTS_PKG_ERRORS 12054 12055 Consider adjusting the PKG_CONFIG_PATH environment variable if you 12056 installed software in a non-standard prefix. 12057 12058 Alternatively, you may set the environment variables XLSFONTS_CFLAGS 12059 and XLSFONTS_LIBS to avoid the need to call pkg-config. 12060 See the pkg-config man page for more details." "$LINENO" 5 12061 elif test $pkg_failed = untried; then 12062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12063 printf '%s\n' "no" >&6; } 12064 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12065 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 12066 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12067 is in your PATH or set the PKG_CONFIG environment variable to the full 12068 path to pkg-config. 12069 12070 Alternatively, you may set the environment variables XLSFONTS_CFLAGS 12071 and XLSFONTS_LIBS to avoid the need to call pkg-config. 12072 See the pkg-config man page for more details. 12073 12074 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12075 See 'config.log' for more details" "$LINENO" 5; } 12076 else 12077 XLSFONTS_CFLAGS=$pkg_cv_XLSFONTS_CFLAGS 12078 XLSFONTS_LIBS=$pkg_cv_XLSFONTS_LIBS 12079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12080 printf '%s\n' "yes" >&6; } 12081 12082 fi 12083 12084 # Checks for library functions 12085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing reallocarray" >&5 12086 printf %s "checking for library containing reallocarray... " >&6; } 12087 if test ${ac_cv_search_reallocarray+y} 12088 then : 12089 printf %s "(cached) " >&6 12090 else case e in #( 12091 e) ac_func_search_save_LIBS=$LIBS 12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093 /* end confdefs.h. */ 12094 12095 /* Override any GCC internal prototype to avoid an error. 12096 Use char because int might match the return type of a GCC 12097 builtin and then its argument prototype would still apply. 12098 The 'extern "C"' is for builds by C++ compilers; 12099 although this is not generally supported in C code supporting it here 12100 has little cost and some practical benefit (sr 110532). */ 12101 #ifdef __cplusplus 12102 extern "C" 12103 #endif 12104 char reallocarray (void); 12105 int 12106 main (void) 12107 { 12108 return reallocarray (); 12109 ; 12110 return 0; 12111 } 12112 _ACEOF 12113 for ac_lib in '' bsd 12114 do 12115 if test -z "$ac_lib"; then 12116 ac_res="none required" 12117 else 12118 ac_res=-l$ac_lib 12119 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12120 fi 12121 if ac_fn_c_try_link "$LINENO" 12122 then : 12123 ac_cv_search_reallocarray=$ac_res 12124 fi 12125 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12126 conftest$ac_exeext 12127 if test ${ac_cv_search_reallocarray+y} 12128 then : 12129 break 12130 fi 12131 done 12132 if test ${ac_cv_search_reallocarray+y} 12133 then : 12134 12135 else case e in #( 12136 e) ac_cv_search_reallocarray=no ;; 12137 esac 12138 fi 12139 rm conftest.$ac_ext 12140 LIBS=$ac_func_search_save_LIBS ;; 12141 esac 12142 fi 12143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_reallocarray" >&5 12144 printf '%s\n' "$ac_cv_search_reallocarray" >&6; } 12145 ac_res=$ac_cv_search_reallocarray 12146 if test "$ac_res" != no 12147 then : 12148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12149 12150 fi 12151 12152 if test "x$ac_cv_search_reallocarray" = "x-lbsd" 12153 then : 12154 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default" 12155 if test "x$ac_cv_header_bsd_stdlib_h" = xyes 12156 then : 12157 printf '%s\n' "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 12158 12159 fi 12160 12161 fi 12162 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 12163 if test "x$ac_cv_func_reallocarray" = xyes 12164 then : 12165 printf '%s\n' "#define HAVE_REALLOCARRAY 1" >>confdefs.h 12166 12167 fi 12168 12169 12170 ac_config_files="$ac_config_files Makefile man/Makefile" 12171 12172 cat >confcache <<\_ACEOF 12173 # This file is a shell script that caches the results of configure 12174 # tests run on this system so they can be shared between configure 12175 # scripts and configure runs, see configure's option --config-cache. 12176 # It is not useful on other systems. If it contains results you don't 12177 # want to keep, you may remove or edit it. 12178 # 12179 # config.status only pays attention to the cache file if you give it 12180 # the --recheck option to rerun configure. 12181 # 12182 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12183 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12184 # following values. 12185 12186 _ACEOF 12187 12188 ac_cache_dump | 12189 sed ' 12190 /^ac_cv_env_/b end 12191 t clear 12192 :clear 12193 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12194 t end 12195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12196 :end' >>confcache 12197 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12198 if test -w "$cache_file"; then 12199 if test "x$cache_file" != "x/dev/null"; then 12200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12201 printf '%s\n' "$as_me: updating cache $cache_file" >&6;} 12202 if test ! -f "$cache_file" || test -h "$cache_file"; then 12203 cat confcache >"$cache_file" 12204 else 12205 case $cache_file in #( 12206 */* | ?:*) 12207 mv -f confcache "$cache_file"$$ && 12208 mv -f "$cache_file"$$ "$cache_file" ;; #( 12209 *) 12210 mv -f confcache "$cache_file" ;; 12211 esac 12212 fi 12213 fi 12214 else 12215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12216 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;} 12217 fi 12218 fi 12219 rm -f confcache 12220 12221 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12222 # Let make expand exec_prefix. 12223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12224 12225 DEFS=-DHAVE_CONFIG_H 12226 12227 ac_libobjs= 12228 ac_ltlibobjs= 12229 U= 12230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12231 # 1. Remove the extension, and $U if already installed. 12232 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12233 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"` 12234 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12235 # will be set to the directory where LIBOBJS objects are built. 12236 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12237 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12238 done 12239 LIBOBJS=$ac_libobjs 12240 12241 LTLIBOBJS=$ac_ltlibobjs 12242 12243 12244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12245 printf %s "checking that generated files are newer than configure... " >&6; } 12246 if test -n "$am_sleep_pid"; then 12247 # Hide warnings about reused PIDs. 12248 wait $am_sleep_pid 2>/dev/null 12249 fi 12250 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5 12251 printf '%s\n' "done" >&6; } 12252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12253 as_fn_error $? "conditional \"AMDEP\" was never defined. 12254 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12255 fi 12256 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12257 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12258 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12259 fi 12260 case $enable_silent_rules in # ((( 12261 yes) AM_DEFAULT_VERBOSITY=0;; 12262 no) AM_DEFAULT_VERBOSITY=1;; 12263 esac 12264 if test $am_cv_make_support_nested_variables = yes; then 12265 AM_V='$(V)' 12266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12267 else 12268 AM_V=$AM_DEFAULT_VERBOSITY 12269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12270 fi 12271 12272 if test -n "$EXEEXT"; then 12273 am__EXEEXT_TRUE= 12274 am__EXEEXT_FALSE='#' 12275 else 12276 am__EXEEXT_TRUE='#' 12277 am__EXEEXT_FALSE= 12278 fi 12279 12280 12281 : "${CONFIG_STATUS=./config.status}" 12282 case $CONFIG_STATUS in #( 12283 -*) : 12284 CONFIG_STATUS=./$CONFIG_STATUS ;; #( 12285 */*) : 12286 ;; #( 12287 *) : 12288 CONFIG_STATUS=./$CONFIG_STATUS ;; 12289 esac 12290 12291 ac_write_fail=0 12292 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"' 12293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12294 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;} 12295 as_write_fail=0 12296 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1 12297 #! $SHELL 12298 # Generated by $as_me. 12299 # Run this file to recreate the current configuration. 12300 # Compiler output produced by configure, useful for debugging 12301 # configure, is in config.log if it exists. 12302 12303 debug=false 12304 ac_cs_recheck=false 12305 ac_cs_silent=false 12306 12307 SHELL=\${CONFIG_SHELL-$SHELL} 12308 export SHELL 12309 _ASEOF 12310 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1 12311 ## -------------------- ## 12312 ## M4sh Initialization. ## 12313 ## -------------------- ## 12314 12315 # Be more Bourne compatible 12316 DUALCASE=1; export DUALCASE # for MKS sh 12317 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12318 then : 12319 emulate sh 12320 NULLCMD=: 12321 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12322 # contradicts POSIX and common usage. Disable this. 12323 alias -g '${1+"$@"}'='"$@"' 12324 setopt NO_GLOB_SUBST 12325 else case e in #( 12326 e) case `(set -o) 2>/dev/null` in #( 12327 *posix*) : 12328 set -o posix ;; #( 12329 *) : 12330 ;; 12331 esac ;; 12332 esac 12333 fi 12334 12335 12336 12337 # Reset variables that may have inherited troublesome values from 12338 # the environment. 12339 12340 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12341 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12342 # side effect of setting IFS to empty, thus disabling word splitting.) 12343 # Quoting is to prevent editors from complaining about space-tab. 12344 as_nl=' 12345 ' 12346 export as_nl 12347 IFS=" "" $as_nl" 12348 12349 PS1='$ ' 12350 PS2='> ' 12351 PS4='+ ' 12352 12353 # Ensure predictable behavior from utilities with locale-dependent output. 12354 LC_ALL=C 12355 export LC_ALL 12356 LANGUAGE=C 12357 export LANGUAGE 12358 12359 # We cannot yet rely on "unset" to work, but we need these variables 12360 # to be unset--not just set to an empty or harmless value--now, to 12361 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12362 # also avoids known problems related to "unset" and subshell syntax 12363 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12364 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12365 do eval test \${$as_var+y} \ 12366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12367 done 12368 12369 # Ensure that fds 0, 1, and 2 are open. 12370 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12371 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12372 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12373 12374 # The user is always right. 12375 if ${PATH_SEPARATOR+false} :; then 12376 PATH_SEPARATOR=: 12377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12379 PATH_SEPARATOR=';' 12380 } 12381 fi 12382 12383 12384 # Find who we are. Look in the path if we contain no directory separator. 12385 as_myself= 12386 case $0 in #(( 12387 *[\\/]* ) as_myself=$0 ;; 12388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12389 for as_dir in $PATH 12390 do 12391 IFS=$as_save_IFS 12392 case $as_dir in #((( 12393 '') as_dir=./ ;; 12394 */) ;; 12395 *) as_dir=$as_dir/ ;; 12396 esac 12397 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12398 done 12399 IFS=$as_save_IFS 12400 12401 ;; 12402 esac 12403 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12404 # in which case we are not to be found in the path. 12405 if test "x$as_myself" = x; then 12406 as_myself=$0 12407 fi 12408 if test ! -f "$as_myself"; then 12409 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12410 exit 1 12411 fi 12412 12413 12414 12415 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12416 # ---------------------------------------- 12417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12419 # script with STATUS, using 1 if that was 0. 12420 as_fn_error () 12421 { 12422 as_status=$1; test $as_status -eq 0 && as_status=1 12423 if test "$4"; then 12424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12425 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12426 fi 12427 printf '%s\n' "$as_me: error: $2" >&2 12428 as_fn_exit $as_status 12429 } # as_fn_error 12430 12431 12432 # as_fn_set_status STATUS 12433 # ----------------------- 12434 # Set $? to STATUS, without forking. 12435 as_fn_set_status () 12436 { 12437 return $1 12438 } # as_fn_set_status 12439 12440 # as_fn_exit STATUS 12441 # ----------------- 12442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12443 as_fn_exit () 12444 { 12445 set +e 12446 as_fn_set_status $1 12447 exit $1 12448 } # as_fn_exit 12449 12450 # as_fn_unset VAR 12451 # --------------- 12452 # Portably unset VAR. 12453 as_fn_unset () 12454 { 12455 { eval $1=; unset $1;} 12456 } 12457 as_unset=as_fn_unset 12458 12459 # as_fn_append VAR VALUE 12460 # ---------------------- 12461 # Append the text in VALUE to the end of the definition contained in VAR. Take 12462 # advantage of any shell optimizations that allow amortized linear growth over 12463 # repeated appends, instead of the typical quadratic growth present in naive 12464 # implementations. 12465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12466 then : 12467 eval 'as_fn_append () 12468 { 12469 eval $1+=\$2 12470 }' 12471 else case e in #( 12472 e) as_fn_append () 12473 { 12474 eval $1=\$$1\$2 12475 } ;; 12476 esac 12477 fi # as_fn_append 12478 12479 # as_fn_arith ARG... 12480 # ------------------ 12481 # Perform arithmetic evaluation on the ARGs, and store the result in the 12482 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12483 # must be portable across $(()) and expr. 12484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12485 then : 12486 eval 'as_fn_arith () 12487 { 12488 as_val=$(( $* )) 12489 }' 12490 else case e in #( 12491 e) as_fn_arith () 12492 { 12493 as_val=`expr "$@" || test $? -eq 1` 12494 } ;; 12495 esac 12496 fi # as_fn_arith 12497 12498 12499 if expr a : '\(a\)' >/dev/null 2>&1 && 12500 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12501 as_expr=expr 12502 else 12503 as_expr=false 12504 fi 12505 12506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12507 as_basename=basename 12508 else 12509 as_basename=false 12510 fi 12511 12512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12513 as_dirname=dirname 12514 else 12515 as_dirname=false 12516 fi 12517 12518 as_me=`$as_basename -- "$0" || 12519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12520 X"$0" : 'X\(//\)$' \| \ 12521 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12522 printf '%s\n' X/"$0" | 12523 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12524 s//\1/ 12525 q 12526 } 12527 /^X\/\(\/\/\)$/{ 12528 s//\1/ 12529 q 12530 } 12531 /^X\/\(\/\).*/{ 12532 s//\1/ 12533 q 12534 } 12535 s/.*/./; q'` 12536 12537 # Avoid depending upon Character Ranges. 12538 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12541 as_cr_digits='0123456789' 12542 as_cr_alnum=$as_cr_Letters$as_cr_digits 12543 12544 rm -f conf$$ conf$$.exe conf$$.file 12545 if test -d conf$$.dir; then 12546 rm -f conf$$.dir/conf$$.file 12547 else 12548 rm -f conf$$.dir 12549 mkdir conf$$.dir 2>/dev/null 12550 fi 12551 if (echo >conf$$.file) 2>/dev/null; then 12552 if ln -s conf$$.file conf$$ 2>/dev/null; then 12553 as_ln_s='ln -s' 12554 # ... but there are two gotchas: 12555 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12556 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12557 # In both cases, we have to default to 'cp -pR'. 12558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12559 as_ln_s='cp -pR' 12560 elif ln conf$$.file conf$$ 2>/dev/null; then 12561 as_ln_s=ln 12562 else 12563 as_ln_s='cp -pR' 12564 fi 12565 else 12566 as_ln_s='cp -pR' 12567 fi 12568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12569 rmdir conf$$.dir 2>/dev/null 12570 12571 12572 # as_fn_mkdir_p 12573 # ------------- 12574 # Create "$as_dir" as a directory, including parents if necessary. 12575 as_fn_mkdir_p () 12576 { 12577 12578 case $as_dir in #( 12579 -*) as_dir=./$as_dir;; 12580 esac 12581 test -d "$as_dir" || eval $as_mkdir_p || { 12582 as_dirs= 12583 while :; do 12584 case $as_dir in #( 12585 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12586 *) as_qdir=$as_dir;; 12587 esac 12588 as_dirs="'$as_qdir' $as_dirs" 12589 as_dir=`$as_dirname -- "$as_dir" || 12590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12591 X"$as_dir" : 'X\(//\)[^/]' \| \ 12592 X"$as_dir" : 'X\(//\)$' \| \ 12593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12594 printf '%s\n' X"$as_dir" | 12595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12596 s//\1/ 12597 q 12598 } 12599 /^X\(\/\/\)[^/].*/{ 12600 s//\1/ 12601 q 12602 } 12603 /^X\(\/\/\)$/{ 12604 s//\1/ 12605 q 12606 } 12607 /^X\(\/\).*/{ 12608 s//\1/ 12609 q 12610 } 12611 s/.*/./; q'` 12612 test -d "$as_dir" && break 12613 done 12614 test -z "$as_dirs" || eval "mkdir $as_dirs" 12615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12616 12617 12618 } # as_fn_mkdir_p 12619 if mkdir -p . 2>/dev/null; then 12620 as_mkdir_p='mkdir -p "$as_dir"' 12621 else 12622 test -d ./-p && rmdir ./-p 12623 as_mkdir_p=false 12624 fi 12625 12626 12627 # as_fn_executable_p FILE 12628 # ----------------------- 12629 # Test if FILE is an executable regular file. 12630 as_fn_executable_p () 12631 { 12632 test -f "$1" && test -x "$1" 12633 } # as_fn_executable_p 12634 as_test_x='test -x' 12635 as_executable_p=as_fn_executable_p 12636 12637 # Sed expression to map a string onto a valid CPP name. 12638 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12639 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12640 12641 # Sed expression to map a string onto a valid variable name. 12642 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12643 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12644 12645 12646 exec 6>&1 12647 ## ------------------------------------- ## 12648 ## Main body of "$CONFIG_STATUS" script. ## 12649 ## ------------------------------------- ## 12650 _ASEOF 12651 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1 12652 12653 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12654 # Save the log message, to keep $0 and so on meaningful, and to 12655 # report actual input values of CONFIG_FILES etc. instead of their 12656 # values after options handling. 12657 ac_log=" 12658 This file was extended by xlsfonts $as_me 1.0.9, which was 12659 generated by GNU Autoconf 2.73. Invocation command line was 12660 12661 CONFIG_FILES = $CONFIG_FILES 12662 CONFIG_HEADERS = $CONFIG_HEADERS 12663 CONFIG_LINKS = $CONFIG_LINKS 12664 CONFIG_COMMANDS = $CONFIG_COMMANDS 12665 $ $0 $@ 12666 12667 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12668 " 12669 12670 _ACEOF 12671 12672 case $ac_config_files in *" 12673 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12674 esac 12675 12676 case $ac_config_headers in *" 12677 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12678 esac 12679 12680 12681 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12682 # Files that config.status was made for. 12683 config_files="$ac_config_files" 12684 config_headers="$ac_config_headers" 12685 config_commands="$ac_config_commands" 12686 12687 _ACEOF 12688 12689 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12690 ac_cs_usage="\ 12691 '$as_me' instantiates files and other configuration actions 12692 from templates according to the current configuration. Unless the files 12693 and actions are specified as TAGs, all are instantiated by default. 12694 12695 Usage: $0 [OPTION]... [TAG]... 12696 12697 -h, --help print this help, then exit 12698 -V, --version print version number and configuration settings, then exit 12699 --config print configuration, then exit 12700 -q, --quiet, --silent 12701 do not print progress messages 12702 -d, --debug don't remove temporary files 12703 --recheck update $as_me by reconfiguring in the same conditions 12704 --file=FILE[:TEMPLATE] 12705 instantiate the configuration file FILE 12706 --header=FILE[:TEMPLATE] 12707 instantiate the configuration header FILE 12708 12709 Configuration files: 12710 $config_files 12711 12712 Configuration headers: 12713 $config_headers 12714 12715 Configuration commands: 12716 $config_commands 12717 12718 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/issues>." 12719 12720 _ACEOF 12721 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"` 12722 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12723 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12724 ac_cs_config='$ac_cs_config_escaped' 12725 ac_cs_version="\\ 12726 xlsfonts config.status 1.0.9 12727 configured by $0, generated by GNU Autoconf 2.73, 12728 with options \\"\$ac_cs_config\\" 12729 12730 Copyright (C) 2026 Free Software Foundation, Inc. 12731 This config.status script is free software; the Free Software Foundation 12732 gives unlimited permission to copy, distribute and modify it." 12733 12734 ac_pwd='$ac_pwd' 12735 srcdir='$srcdir' 12736 INSTALL='$INSTALL' 12737 MKDIR_P='$MKDIR_P' 12738 AWK='$AWK' 12739 test -n "\$AWK" || { 12740 awk '' </dev/null || 12741 as_fn_error \$? "try installing gawk" 12742 AWK=awk 12743 } 12744 _ACEOF 12745 12746 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12747 # The default lists apply if the user does not specify any file. 12748 ac_need_defaults=: 12749 while test $# != 0 12750 do 12751 case $1 in 12752 --*=?*) 12753 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12755 ac_shift=: 12756 ;; 12757 --*=) 12758 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12759 ac_optarg= 12760 ac_shift=: 12761 ;; 12762 *) 12763 ac_option=$1 12764 ac_optarg=$2 12765 ac_shift=shift 12766 ;; 12767 esac 12768 12769 case $ac_option in 12770 # Handling of the options. 12771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12772 ac_cs_recheck=: ;; 12773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12774 printf '%s\n' "$ac_cs_version"; exit ;; 12775 --config | --confi | --conf | --con | --co | --c ) 12776 printf '%s\n' "$ac_cs_config"; exit ;; 12777 --debug | --debu | --deb | --de | --d | -d ) 12778 debug=: ;; 12779 --file | --fil | --fi | --f ) 12780 $ac_shift 12781 case $ac_optarg in 12782 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12783 '') as_fn_error $? "missing file argument" ;; 12784 esac 12785 as_fn_append CONFIG_FILES " '$ac_optarg'" 12786 ac_need_defaults=false;; 12787 --header | --heade | --head | --hea ) 12788 $ac_shift 12789 case $ac_optarg in 12790 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12791 esac 12792 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12793 ac_need_defaults=false;; 12794 --he | --h) 12795 # Conflict between --help and --header 12796 as_fn_error $? "ambiguous option: '$1' 12797 Try '$0 --help' for more information.";; 12798 --help | --hel | -h ) 12799 printf '%s\n' "$ac_cs_usage"; exit ;; 12800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12801 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12802 ac_cs_silent=: ;; 12803 12804 # This is an error. 12805 -*) as_fn_error $? "unrecognized option: '$1' 12806 Try '$0 --help' for more information." ;; 12807 12808 *) as_fn_append ac_config_targets " $1" 12809 ac_need_defaults=false ;; 12810 12811 esac 12812 shift 12813 done 12814 12815 ac_configure_extra_args= 12816 12817 if $ac_cs_silent; then 12818 exec 6>/dev/null 12819 ac_configure_extra_args="$ac_configure_extra_args --silent" 12820 fi 12821 12822 _ACEOF 12823 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12824 if \$ac_cs_recheck; then 12825 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12826 shift 12827 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6 12828 CONFIG_SHELL='$SHELL' 12829 export CONFIG_SHELL 12830 exec "\$@" 12831 fi 12832 12833 _ACEOF 12834 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12835 exec 5>>config.log 12836 { 12837 echo 12838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12839 ## Running $as_me. ## 12840 _ASBOX 12841 printf '%s\n' "$ac_log" 12842 } >&5 12843 12844 _ACEOF 12845 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12846 # 12847 # INIT-COMMANDS 12848 # 12849 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12850 12851 _ACEOF 12852 12853 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12854 12855 # Handling of arguments. 12856 for ac_config_target in $ac_config_targets 12857 do 12858 case $ac_config_target in 12859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12860 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12862 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12863 12864 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12865 esac 12866 done 12867 12868 12869 # If the user did not use the arguments to specify the items to instantiate, 12870 # then the envvar interface is used. Set only those that are not. 12871 # We use the long form for the default assignment because of an extremely 12872 # bizarre bug on SunOS 4.1.3. 12873 if $ac_need_defaults; then 12874 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12875 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12876 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12877 fi 12878 12879 # Have a temporary directory for convenience. Make it in the build tree 12880 # simply because there is no reason against having it here, and in addition, 12881 # creating and moving files from /tmp can sometimes cause problems. 12882 # Hook for its removal unless debugging. 12883 # Note that there is a small window in which the directory will not be cleaned: 12884 # after its creation but before its name has been assigned to '$tmp'. 12885 $debug || 12886 { 12887 tmp= ac_tmp= 12888 trap 'exit_status=$? 12889 : "${ac_tmp:=$tmp}" 12890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12891 ' 0 12892 trap 'as_fn_exit 1' 1 2 13 15 12893 } 12894 # Create a (secure) tmp directory for tmp files. 12895 12896 { 12897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12898 test -d "$tmp" 12899 } || 12900 { 12901 tmp=./conf$$-$RANDOM 12902 (umask 077 && mkdir "$tmp") 12903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12904 ac_tmp=$tmp 12905 12906 # Set up the scripts for CONFIG_FILES section. 12907 # No need to generate them if there are no CONFIG_FILES. 12908 # This happens for instance with './config.status config.h'. 12909 if test -n "$CONFIG_FILES"; then 12910 12911 12912 ac_cr=`echo X | tr X '\015'` 12913 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12914 # But we know of no other shell where ac_cr would be empty at this 12915 # point, so we can use a bashism as a fallback. 12916 if test "x$ac_cr" = x; then 12917 eval ac_cr=\$\'\\r\' 12918 fi 12919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12921 ac_cs_awk_cr='\\r' 12922 else 12923 ac_cs_awk_cr=$ac_cr 12924 fi 12925 12926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12927 _ACEOF 12928 12929 12930 { 12931 echo "cat >conf$$subs.awk <<_ACEOF" && 12932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12933 echo "_ACEOF" 12934 } >conf$$subs.sh || 12935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12936 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='` 12937 ac_delim='%!_!# ' 12938 for ac_last_try in false false false false false :; do 12939 . ./conf$$subs.sh || 12940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12941 12942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='` 12943 if test $ac_delim_n = $ac_delim_num; then 12944 break 12945 elif $ac_last_try; then 12946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12947 else 12948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12949 fi 12950 done 12951 rm -f conf$$subs.sh 12952 12953 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12955 _ACEOF 12956 sed -n ' 12957 h 12958 s/^/S["/; s/!.*/"]=/ 12959 p 12960 g 12961 s/^[^!]*!// 12962 :repl 12963 t repl 12964 s/'"$ac_delim"'$// 12965 t delim 12966 :nl 12967 h 12968 s/\(.\{148\}\)..*/\1/ 12969 t more1 12970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12971 p 12972 n 12973 b repl 12974 :more1 12975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12976 p 12977 g 12978 s/.\{148\}// 12979 t nl 12980 :delim 12981 h 12982 s/\(.\{148\}\)..*/\1/ 12983 t more2 12984 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12985 p 12986 b 12987 :more2 12988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12989 p 12990 g 12991 s/.\{148\}// 12992 t delim 12993 ' <conf$$subs.awk | sed ' 12994 /^[^""]/{ 12995 N 12996 s/\n// 12997 } 12998 ' >>"$CONFIG_STATUS" || ac_write_fail=1 12999 rm -f conf$$subs.awk 13000 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13001 _ACAWK 13002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13003 for (key in S) S_is_set[key] = 1 13004 FS = "" 13005 13006 } 13007 { 13008 line = $ 0 13009 nfields = split(line, field, "@") 13010 substed = 0 13011 len = length(field[1]) 13012 for (i = 2; i < nfields; i++) { 13013 key = field[i] 13014 keylen = length(key) 13015 if (S_is_set[key]) { 13016 value = S[key] 13017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13018 len += length(value) + length(field[++i]) 13019 substed = 1 13020 } else 13021 len += 1 + keylen 13022 } 13023 13024 print line 13025 } 13026 13027 _ACAWK 13028 _ACEOF 13029 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13032 else 13033 cat 13034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13036 _ACEOF 13037 13038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13040 # trailing colons and then remove the whole line if VPATH becomes empty 13041 # (actually we leave an empty line to preserve line numbers). 13042 if test "x$srcdir" = x.; then 13043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13044 h 13045 s/// 13046 s/^/:/ 13047 s/[ ]*$/:/ 13048 s/:\$(srcdir):/:/g 13049 s/:\${srcdir}:/:/g 13050 s/:@srcdir@:/:/g 13051 s/^:*// 13052 s/:*$// 13053 x 13054 s/\(=[ ]*\).*/\1/ 13055 G 13056 s/\n// 13057 s/^[^=]*=[ ]*$// 13058 }' 13059 fi 13060 13061 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13062 fi # test -n "$CONFIG_FILES" 13063 13064 # Set up the scripts for CONFIG_HEADERS section. 13065 # No need to generate them if there are no CONFIG_HEADERS. 13066 # This happens for instance with './config.status Makefile'. 13067 if test -n "$CONFIG_HEADERS"; then 13068 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13069 BEGIN { 13070 _ACEOF 13071 13072 # Transform confdefs.h into an awk script 'defines.awk', embedded as 13073 # here-document in config.status, that substitutes the proper values into 13074 # config.h.in to produce config.h. 13075 13076 # Create a delimiter string that does not exist in confdefs.h, to ease 13077 # handling of long lines. 13078 ac_delim='%!_!# ' 13079 for ac_last_try in false false :; do 13080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13081 if test -z "$ac_tt"; then 13082 break 13083 elif $ac_last_try; then 13084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13085 else 13086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13087 fi 13088 done 13089 13090 # For the awk script, D is an array of macro values keyed by name, 13091 # likewise P contains macro parameters if any. Preserve backslash 13092 # newline sequences. 13093 13094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13095 sed -n ' 13096 s/.\{148\}/&'"$ac_delim"'/g 13097 t rset 13098 :rset 13099 s/^[ ]*#[ ]*define[ ][ ]*/ / 13100 t def 13101 d 13102 :def 13103 s/\\$// 13104 t bsnl 13105 s/["\\]/\\&/g 13106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13107 D["\1"]=" \3"/p 13108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13109 d 13110 :bsnl 13111 s/["\\]/\\&/g 13112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13113 D["\1"]=" \3\\\\\\n"\\/p 13114 t cont 13115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13116 t cont 13117 d 13118 :cont 13119 n 13120 s/.\{148\}/&'"$ac_delim"'/g 13121 t clear 13122 :clear 13123 s/\\$// 13124 t bsnlc 13125 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13126 d 13127 :bsnlc 13128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13129 b cont 13130 ' <confdefs.h | sed ' 13131 s/'"$ac_delim"'/"\\\ 13132 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1 13133 13134 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13135 for (key in D) D_is_set[key] = 1 13136 FS = "" 13137 } 13138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13139 line = \$ 0 13140 split(line, arg, " ") 13141 if (arg[1] == "#") { 13142 defundef = arg[2] 13143 mac1 = arg[3] 13144 } else { 13145 defundef = substr(arg[1], 2) 13146 mac1 = arg[2] 13147 } 13148 split(mac1, mac2, "(") #) 13149 macro = mac2[1] 13150 prefix = substr(line, 1, index(line, defundef) - 1) 13151 if (D_is_set[macro]) { 13152 suffix = P[macro] D[macro] 13153 while (suffix ~ /[\t ]$/) { 13154 suffix = substr(suffix, 1, length(suffix) - 1) 13155 } 13156 # Preserve the white space surrounding the "#". 13157 print prefix "define", macro suffix 13158 next 13159 } else { 13160 # Replace #undef with comments. This is necessary, for example, 13161 # in the case of _POSIX_SOURCE, which is predefined and required 13162 # on some systems where configure will not decide to define it. 13163 if (defundef == "undef") { 13164 print "/*", prefix defundef, macro, "*/" 13165 next 13166 } 13167 } 13168 } 13169 { print } 13170 _ACAWK 13171 _ACEOF 13172 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13173 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13174 fi # test -n "$CONFIG_HEADERS" 13175 13176 13177 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13178 shift 13179 for ac_tag 13180 do 13181 case $ac_tag in 13182 :[FHLC]) ac_mode=$ac_tag; continue;; 13183 esac 13184 case $ac_mode$ac_tag in 13185 :[FHL]*:*);; 13186 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13187 :[FH]-) ac_tag=-:-;; 13188 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13189 esac 13190 ac_save_IFS=$IFS 13191 IFS=: 13192 set x $ac_tag 13193 IFS=$ac_save_IFS 13194 shift 13195 ac_file=$1 13196 shift 13197 13198 case $ac_mode in 13199 :L) ac_source=$1;; 13200 :[FH]) 13201 ac_file_inputs= 13202 for ac_f 13203 do 13204 case $ac_f in 13205 -) ac_f="$ac_tmp/stdin";; 13206 *) # Look for the file first in the build tree, then in the source tree 13207 # (if the path is not absolute). The absolute path cannot be DOS-style, 13208 # because $ac_f cannot contain ':'. 13209 test -f "$ac_f" || 13210 case $ac_f in 13211 [\\/$]*) false;; 13212 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13213 esac || 13214 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13215 esac 13216 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13217 as_fn_append ac_file_inputs " '$ac_f'" 13218 done 13219 13220 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13221 # use $as_me), people would be surprised to read: 13222 # /* config.h. Generated by config.status. */ 13223 configure_input='Generated from '` 13224 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13225 `' by configure.' 13226 if test x"$ac_file" != x-; then 13227 configure_input="$ac_file. $configure_input" 13228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13229 printf '%s\n' "$as_me: creating $ac_file" >&6;} 13230 fi 13231 # Neutralize special characters interpreted by sed in replacement strings. 13232 case $configure_input in #( 13233 *\&* | *\|* | *\\* ) 13234 ac_sed_conf_input=`printf '%s\n' "$configure_input" | 13235 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13236 *) ac_sed_conf_input=$configure_input;; 13237 esac 13238 13239 case $ac_tag in 13240 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13242 esac 13243 ;; 13244 esac 13245 13246 ac_dir=`$as_dirname -- "$ac_file" || 13247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13248 X"$ac_file" : 'X\(//\)[^/]' \| \ 13249 X"$ac_file" : 'X\(//\)$' \| \ 13250 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13251 printf '%s\n' X"$ac_file" | 13252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13253 s//\1/ 13254 q 13255 } 13256 /^X\(\/\/\)[^/].*/{ 13257 s//\1/ 13258 q 13259 } 13260 /^X\(\/\/\)$/{ 13261 s//\1/ 13262 q 13263 } 13264 /^X\(\/\).*/{ 13265 s//\1/ 13266 q 13267 } 13268 s/.*/./; q'` 13269 as_dir="$ac_dir"; as_fn_mkdir_p 13270 ac_builddir=. 13271 13272 case "$ac_dir" in 13273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13274 *) 13275 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 13276 # A ".." for each directory in $ac_dir_suffix. 13277 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13278 case $ac_top_builddir_sub in 13279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13281 esac ;; 13282 esac 13283 ac_abs_top_builddir=$ac_pwd 13284 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13285 # for backward compatibility: 13286 ac_top_builddir=$ac_top_build_prefix 13287 13288 case $srcdir in 13289 .) # We are building in place. 13290 ac_srcdir=. 13291 ac_top_srcdir=$ac_top_builddir_sub 13292 ac_abs_top_srcdir=$ac_pwd ;; 13293 [\\/]* | ?:[\\/]* ) # Absolute name. 13294 ac_srcdir=$srcdir$ac_dir_suffix; 13295 ac_top_srcdir=$srcdir 13296 ac_abs_top_srcdir=$srcdir ;; 13297 *) # Relative name. 13298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13299 ac_top_srcdir=$ac_top_build_prefix$srcdir 13300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13301 esac 13302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13303 13304 13305 case $ac_mode in 13306 :F) 13307 # 13308 # CONFIG_FILE 13309 # 13310 13311 case $INSTALL in 13312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13313 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13314 esac 13315 ac_MKDIR_P=$MKDIR_P 13316 case $MKDIR_P in 13317 [\\/$]* | ?:[\\/]* ) ;; 13318 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13319 esac 13320 _ACEOF 13321 13322 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13323 # If the template does not know about datarootdir, expand it. 13324 # FIXME: This hack should be removed a few years after 2.60. 13325 ac_datarootdir_hack=; ac_datarootdir_seen= 13326 ac_sed_dataroot=' 13327 /datarootdir/ { 13328 p 13329 q 13330 } 13331 /@datadir@/p 13332 /@docdir@/p 13333 /@infodir@/p 13334 /@localedir@/p 13335 /@mandir@/p' 13336 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13337 *datarootdir*) ac_datarootdir_seen=yes;; 13338 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13340 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13341 _ACEOF 13342 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13343 ac_datarootdir_hack=' 13344 s&@datadir@&$datadir&g 13345 s&@docdir@&$docdir&g 13346 s&@infodir@&$infodir&g 13347 s&@localedir@&$localedir&g 13348 s&@mandir@&$mandir&g 13349 s&\\\${datarootdir}&$datarootdir&g' ;; 13350 esac 13351 _ACEOF 13352 13353 # Neutralize VPATH when '$srcdir' = '.'. 13354 # Shell code in configure.ac might set extrasub. 13355 # FIXME: do we really want to maintain this feature? 13356 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13357 ac_sed_extra="$ac_vpsub 13358 $extrasub 13359 _ACEOF 13360 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13361 :t 13362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13363 s|@configure_input@|$ac_sed_conf_input|;t t 13364 s&@top_builddir@&$ac_top_builddir_sub&;t t 13365 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13366 s&@srcdir@&$ac_srcdir&;t t 13367 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13368 s&@top_srcdir@&$ac_top_srcdir&;t t 13369 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13370 s&@builddir@&$ac_builddir&;t t 13371 s&@abs_builddir@&$ac_abs_builddir&;t t 13372 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13373 s&@INSTALL@&$ac_INSTALL&;t t 13374 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13375 $ac_datarootdir_hack 13376 " 13377 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13378 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13379 13380 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13381 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13382 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13383 "$ac_tmp/out"`; test -z "$ac_out"; } && 13384 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13385 which seems to be undefined. Please make sure it is defined" >&5 13386 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13387 which seems to be undefined. Please make sure it is defined" >&2;} 13388 13389 rm -f "$ac_tmp/stdin" 13390 case $ac_file in 13391 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13392 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13393 esac \ 13394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13395 ;; 13396 :H) 13397 # 13398 # CONFIG_HEADER 13399 # 13400 if test x"$ac_file" != x-; then 13401 { 13402 printf '%s\n' "/* $configure_input */" >&1 \ 13403 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13404 } >"$ac_tmp/config.h" \ 13405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13406 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13408 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;} 13409 else 13410 rm -f "$ac_file" 13411 mv "$ac_tmp/config.h" "$ac_file" \ 13412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13413 fi 13414 else 13415 printf '%s\n' "/* $configure_input */" >&1 \ 13416 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13417 || as_fn_error $? "could not create -" "$LINENO" 5 13418 fi 13419 # Compute "$ac_file"'s index in $config_headers. 13420 _am_arg="$ac_file" 13421 _am_stamp_count=1 13422 for _am_header in $config_headers :; do 13423 case $_am_header in 13424 $_am_arg | $_am_arg:* ) 13425 break ;; 13426 * ) 13427 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13428 esac 13429 done 13430 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13431 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13432 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13433 X"$_am_arg" : 'X\(//\)$' \| \ 13434 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13435 printf '%s\n' X"$_am_arg" | 13436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13437 s//\1/ 13438 q 13439 } 13440 /^X\(\/\/\)[^/].*/{ 13441 s//\1/ 13442 q 13443 } 13444 /^X\(\/\/\)$/{ 13445 s//\1/ 13446 q 13447 } 13448 /^X\(\/\).*/{ 13449 s//\1/ 13450 q 13451 } 13452 s/.*/./; q'`/stamp-h$_am_stamp_count 13453 ;; 13454 13455 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13456 printf '%s\n' "$as_me: executing $ac_file commands" >&6;} 13457 ;; 13458 esac 13459 13460 13461 case $ac_file$ac_mode in 13462 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13463 # Older Autoconf quotes --file arguments for eval, but not when files 13464 # are listed without --file. Let's play safe and only enable the eval 13465 # if we detect the quoting. 13466 # TODO: see whether this extra hack can be removed once we start 13467 # requiring Autoconf 2.70 or later. 13468 case $CONFIG_FILES in #( 13469 *\'*) : 13470 eval set x "$CONFIG_FILES" ;; #( 13471 *) : 13472 set x $CONFIG_FILES ;; #( 13473 *) : 13474 ;; 13475 esac 13476 shift 13477 # Used to flag and report bootstrapping failures. 13478 am_rc=0 13479 for am_mf 13480 do 13481 # Strip MF so we end up with the name of the file. 13482 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'` 13483 # Check whether this is an Automake generated Makefile which includes 13484 # dependency-tracking related rules and includes. 13485 # Grep'ing the whole file directly is not great: AIX grep has a line 13486 # limit of 2048, but all sed's we know have understand at least 4000. 13487 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13488 || continue 13489 am_dirpart=`$as_dirname -- "$am_mf" || 13490 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13491 X"$am_mf" : 'X\(//\)[^/]' \| \ 13492 X"$am_mf" : 'X\(//\)$' \| \ 13493 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13494 printf '%s\n' X"$am_mf" | 13495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13496 s//\1/ 13497 q 13498 } 13499 /^X\(\/\/\)[^/].*/{ 13500 s//\1/ 13501 q 13502 } 13503 /^X\(\/\/\)$/{ 13504 s//\1/ 13505 q 13506 } 13507 /^X\(\/\).*/{ 13508 s//\1/ 13509 q 13510 } 13511 s/.*/./; q'` 13512 am_filepart=`$as_basename -- "$am_mf" || 13513 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13514 X"$am_mf" : 'X\(//\)$' \| \ 13515 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13516 printf '%s\n' X/"$am_mf" | 13517 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13518 s//\1/ 13519 q 13520 } 13521 /^X\/\(\/\/\)$/{ 13522 s//\1/ 13523 q 13524 } 13525 /^X\/\(\/\).*/{ 13526 s//\1/ 13527 q 13528 } 13529 s/.*/./; q'` 13530 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13531 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13532 | $MAKE -f - am--depfiles" >&5 13533 (cd "$am_dirpart" \ 13534 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13535 | $MAKE -f - am--depfiles) >&5 2>&5 13536 ac_status=$? 13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13538 (exit $ac_status); } || am_rc=$? 13539 done 13540 if test $am_rc -ne 0; then 13541 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13542 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 13543 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13544 for automatic dependency tracking. If GNU make was not used, consider 13545 re-running the configure script with MAKE=\"gmake\" (or whatever is 13546 necessary). You can also try re-running configure with the 13547 '--disable-dependency-tracking' option to at least be able to build 13548 the package (albeit without support for automatic dependency tracking). 13549 See 'config.log' for more details" "$LINENO" 5; } 13550 fi 13551 { am_dirpart=; unset am_dirpart;} 13552 { am_filepart=; unset am_filepart;} 13553 { am_mf=; unset am_mf;} 13554 { am_rc=; unset am_rc;} 13555 rm -f conftest-deps.mk 13556 } 13557 ;; 13558 13559 esac 13560 done # for ac_tag 13561 13562 13563 as_fn_exit 0 13564 _ACEOF 13565 ac_clean_CONFIG_STATUS= 13566 13567 test $ac_write_fail = 0 || 13568 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13569 13570 13571 # configure is writing to config.log, and then calls config.status. 13572 # config.status does its own redirection, appending to config.log. 13573 # Unfortunately, on DOS this fails, as config.log is still kept open 13574 # by configure, so config.status won't be able to write to it; its 13575 # output is simply discarded. So we exec the FD to /dev/null, 13576 # effectively closing config.log, so it can be properly (re)opened and 13577 # appended to by config.status. When coming back to configure, we 13578 # need to make the FD available again. 13579 if test "$no_create" != yes; then 13580 ac_cs_success=: 13581 case $CONFIG_STATUS in #( 13582 -*) : 13583 ac_no_opts=-- ;; #( 13584 *) : 13585 ac_no_opts= ;; 13586 esac 13587 ac_config_status_args= 13588 test "$silent" = yes && 13589 ac_config_status_args="$ac_config_status_args --quiet" 13590 exec 5>/dev/null 13591 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args || 13592 ac_cs_success=false 13593 exec 5>>config.log 13594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13595 # would make configure fail if this is the last instruction. 13596 $ac_cs_success || as_fn_exit 1 13597 fi 13598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13600 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13601 fi 13602 13603 13604