1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xlogo 1.0.7. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 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 # is contrary to our usage. Disable this feature. 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 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 $0: https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues 275 $0: about your system, including any error possibly output 276 $0: before this message. Then install a modern shell, or 277 $0: manually run the script under such a shell if you do 278 $0: have one." 279 fi 280 exit 1 281 fi ;; 282 esac 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 304 # as_fn_set_status STATUS 305 # ----------------------- 306 # Set $? to STATUS, without forking. 307 as_fn_set_status () 308 { 309 return $1 310 } # as_fn_set_status 311 312 # as_fn_exit STATUS 313 # ----------------- 314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 as_fn_exit () 316 { 317 set +e 318 as_fn_set_status $1 319 exit $1 320 } # as_fn_exit 321 322 # as_fn_mkdir_p 323 # ------------- 324 # Create "$as_dir" as a directory, including parents if necessary. 325 as_fn_mkdir_p () 326 { 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344 printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368 } # as_fn_mkdir_p 369 370 # as_fn_executable_p FILE 371 # ----------------------- 372 # Test if FILE is an executable regular file. 373 as_fn_executable_p () 374 { 375 test -f "$1" && test -x "$1" 376 } # as_fn_executable_p 377 # as_fn_append VAR VALUE 378 # ---------------------- 379 # Append the text in VALUE to the end of the definition contained in VAR. Take 380 # advantage of any shell optimizations that allow amortized linear growth over 381 # repeated appends, instead of the typical quadratic growth present in naive 382 # implementations. 383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394 esac 395 fi # as_fn_append 396 397 # as_fn_arith ARG... 398 # ------------------ 399 # Perform arithmetic evaluation on the ARGs, and store the result in the 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 # must be portable across $(()) and expr. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403 then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408 else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413 esac 414 fi # as_fn_arith 415 416 417 # as_fn_error STATUS ERROR [LINENO LOG_FD] 418 # ---------------------------------------- 419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421 # script with STATUS, using 1 if that was 0. 422 as_fn_error () 423 { 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431 } # as_fn_error 432 433 if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436 else 437 as_expr=false 438 fi 439 440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442 else 443 as_basename=false 444 fi 445 446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448 else 449 as_dirname=false 450 fi 451 452 as_me=`$as_basename -- "$0" || 453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456 printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471 # Avoid depending upon Character Ranges. 472 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475 as_cr_digits='0123456789' 476 as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514 } 515 516 517 # Determine whether it's possible to make 'echo' print without a newline. 518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519 # for compatibility with existing Makefiles. 520 ECHO_C= ECHO_N= ECHO_T= 521 case `echo -n x` in #((((( 522 -n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529 *) 530 ECHO_N='-n';; 531 esac 532 533 # For backward compatibility with old third-party macros, we provide 534 # the shell variables $as_echo and $as_echo_n. New code should use 535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536 as_echo='printf %s\n' 537 as_echo_n='printf %s' 538 539 rm -f conf$$ conf$$.exe conf$$.file 540 if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542 else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545 fi 546 if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560 else 561 as_ln_s='cp -pR' 562 fi 563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564 rmdir conf$$.dir 2>/dev/null 565 566 if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568 else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571 fi 572 573 as_test_x='test -x' 574 as_executable_p=as_fn_executable_p 575 576 # Sed expression to map a string onto a valid CPP name. 577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580 # Sed expression to map a string onto a valid variable name. 581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585 test -n "$DJDIR" || exec 7<&0 </dev/null 586 exec 6>&1 587 588 # Name of the host. 589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590 # so uname gets run too. 591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593 # 594 # Initializations. 595 # 596 ac_default_prefix=/usr/local 597 ac_clean_files= 598 ac_config_libobj_dir=. 599 LIBOBJS= 600 cross_compiling=no 601 subdirs= 602 MFLAGS= 603 MAKEFLAGS= 604 605 # Identity of this package. 606 PACKAGE_NAME='xlogo' 607 PACKAGE_TARNAME='xlogo' 608 PACKAGE_VERSION='1.0.7' 609 PACKAGE_STRING='xlogo 1.0.7' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 appdefaultdir 651 APPDEFS_LIBS 652 APPDEFS_CFLAGS 653 XLOGO_LIBS 654 XLOGO_CFLAGS 655 USE_RENDER_FALSE 656 USE_RENDER_TRUE 657 MAN_SUBSTS 658 XORG_MAN_PAGE 659 ADMIN_MAN_DIR 660 DRIVER_MAN_DIR 661 MISC_MAN_DIR 662 FILE_MAN_DIR 663 LIB_MAN_DIR 664 APP_MAN_DIR 665 ADMIN_MAN_SUFFIX 666 DRIVER_MAN_SUFFIX 667 MISC_MAN_SUFFIX 668 FILE_MAN_SUFFIX 669 LIB_MAN_SUFFIX 670 APP_MAN_SUFFIX 671 SED 672 host_os 673 host_vendor 674 host_cpu 675 host 676 build_os 677 build_vendor 678 build_cpu 679 build 680 INSTALL_CMD 681 PKG_CONFIG_LIBDIR 682 PKG_CONFIG_PATH 683 PKG_CONFIG 684 CHANGELOG_CMD 685 STRICT_CFLAGS 686 CWARNFLAGS 687 BASE_CFLAGS 688 am__fastdepCC_FALSE 689 am__fastdepCC_TRUE 690 CCDEPMODE 691 am__nodep 692 AMDEPBACKSLASH 693 AMDEP_FALSE 694 AMDEP_TRUE 695 am__include 696 DEPDIR 697 OBJEXT 698 EXEEXT 699 ac_ct_CC 700 CPPFLAGS 701 LDFLAGS 702 CFLAGS 703 CC 704 am__xargs_n 705 am__rm_f_notfound 706 AM_BACKSLASH 707 AM_DEFAULT_VERBOSITY 708 AM_DEFAULT_V 709 AM_V 710 CSCOPE 711 ETAGS 712 CTAGS 713 am__untar 714 am__tar 715 AMTAR 716 am__leading_dot 717 SET_MAKE 718 AWK 719 mkdir_p 720 MKDIR_P 721 INSTALL_STRIP_PROGRAM 722 STRIP 723 install_sh 724 MAKEINFO 725 AUTOHEADER 726 AUTOMAKE 727 AUTOCONF 728 ACLOCAL 729 VERSION 730 PACKAGE 731 CYGPATH_W 732 am__isrc 733 INSTALL_DATA 734 INSTALL_SCRIPT 735 INSTALL_PROGRAM 736 target_alias 737 host_alias 738 build_alias 739 LIBS 740 ECHO_T 741 ECHO_N 742 ECHO_C 743 DEFS 744 mandir 745 localedir 746 libdir 747 psdir 748 pdfdir 749 dvidir 750 htmldir 751 infodir 752 docdir 753 oldincludedir 754 includedir 755 runstatedir 756 localstatedir 757 sharedstatedir 758 sysconfdir 759 datadir 760 datarootdir 761 libexecdir 762 sbindir 763 bindir 764 program_transform_name 765 prefix 766 exec_prefix 767 PACKAGE_URL 768 PACKAGE_BUGREPORT 769 PACKAGE_STRING 770 PACKAGE_VERSION 771 PACKAGE_TARNAME 772 PACKAGE_NAME 773 PATH_SEPARATOR 774 SHELL 775 am__quote' 776 ac_subst_files='' 777 ac_user_opts=' 778 enable_option_checking 779 enable_silent_rules 780 enable_dependency_tracking 781 enable_selective_werror 782 enable_strict_compilation 783 with_render 784 with_xkb 785 with_appdefaultdir 786 ' 787 ac_precious_vars='build_alias 788 host_alias 789 target_alias 790 CC 791 CFLAGS 792 LDFLAGS 793 LIBS 794 CPPFLAGS 795 PKG_CONFIG 796 PKG_CONFIG_PATH 797 PKG_CONFIG_LIBDIR 798 XLOGO_CFLAGS 799 XLOGO_LIBS 800 APPDEFS_CFLAGS 801 APPDEFS_LIBS' 802 803 804 # Initialize some variables set by options. 805 ac_init_help= 806 ac_init_version=false 807 ac_unrecognized_opts= 808 ac_unrecognized_sep= 809 # The variables have the same names as the options, with 810 # dashes changed to underlines. 811 cache_file=/dev/null 812 exec_prefix=NONE 813 no_create= 814 no_recursion= 815 prefix=NONE 816 program_prefix=NONE 817 program_suffix=NONE 818 program_transform_name=s,x,x, 819 silent= 820 site= 821 srcdir= 822 verbose= 823 x_includes=NONE 824 x_libraries=NONE 825 826 # Installation directory options. 827 # These are left unexpanded so users can "make install exec_prefix=/foo" 828 # and all the variables that are supposed to be based on exec_prefix 829 # by default will actually change. 830 # Use braces instead of parens because sh, perl, etc. also accept them. 831 # (The list follows the same order as the GNU Coding Standards.) 832 bindir='${exec_prefix}/bin' 833 sbindir='${exec_prefix}/sbin' 834 libexecdir='${exec_prefix}/libexec' 835 datarootdir='${prefix}/share' 836 datadir='${datarootdir}' 837 sysconfdir='${prefix}/etc' 838 sharedstatedir='${prefix}/com' 839 localstatedir='${prefix}/var' 840 runstatedir='${localstatedir}/run' 841 includedir='${prefix}/include' 842 oldincludedir='/usr/include' 843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844 infodir='${datarootdir}/info' 845 htmldir='${docdir}' 846 dvidir='${docdir}' 847 pdfdir='${docdir}' 848 psdir='${docdir}' 849 libdir='${exec_prefix}/lib' 850 localedir='${datarootdir}/locale' 851 mandir='${datarootdir}/man' 852 853 ac_prev= 854 ac_dashdash= 855 for ac_option 856 do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 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--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: '$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941 "enable_$ac_useropt" 942 "*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: '$ac_useropt'" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154 "with_$ac_useropt" 1155 "*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: '$ac_useropt'" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170 "with_$ac_useropt" 1171 "*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: '$ac_option' 1196 Try '$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218 done 1219 1220 if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223 fi 1224 1225 if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231 fi 1232 1233 # Check all directory arguments for consistency. 1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238 do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252 done 1253 1254 # There might be people who depend on the old broken behavior: '$host' 1255 # used to hold the argument of --host etc. 1256 # FIXME: To remove some day. 1257 build=$build_alias 1258 host=$host_alias 1259 target=$target_alias 1260 1261 # FIXME: To remove some day. 1262 if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268 fi 1269 1270 ac_tool_prefix= 1271 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273 test "$silent" = yes && exec 6>/dev/null 1274 1275 1276 ac_pwd=`pwd` && test -n "$ac_pwd" && 1277 ac_ls_di=`ls -di .` && 1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284 # Find the source files, if location was not specified. 1285 if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293 printf "%s\n" X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315 else 1316 ac_srcdir_defaulted=no 1317 fi 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321 fi 1322 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1323 ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326 # When building in place, set srcdir=. 1327 if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329 fi 1330 # Remove unnecessary trailing slashes from srcdir. 1331 # Double slashes in file names in object file debugging info 1332 # mess up M-x gdb in Emacs. 1333 case $srcdir in 1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335 esac 1336 for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341 done 1342 1343 # 1344 # Report the --help message. 1345 # 1346 if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350 'configure' configures xlogo 1.0.7 to adapt to many kinds of systems. 1351 1352 Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355 VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357 Defaults for the options are specified in brackets. 1358 1359 Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print 'checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for '--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1369 1370 Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376 By default, 'make install' will install all the files in 1377 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1378 an installation prefix other than '$ac_default_prefix' using '--prefix', 1379 for instance '--prefix=\$HOME'. 1380 1381 For better control, use the options below. 1382 1383 Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/xlogo] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404 _ACEOF 1405 1406 cat <<\_ACEOF 1407 1408 Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413 System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416 _ACEOF 1417 fi 1418 1419 if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of xlogo 1.0.7:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425 Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --enable-silent-rules less verbose build output (undo: "make V=1") 1430 --disable-silent-rules verbose build output (undo: "make V=0") 1431 --enable-dependency-tracking 1432 do not reject slow dependency extractors 1433 --disable-dependency-tracking 1434 speeds up one-time build 1435 --disable-selective-werror 1436 Turn off selective compiler errors. (default: 1437 enabled) 1438 --enable-strict-compilation 1439 Enable all warnings from compiler and make them 1440 errors (default: disabled) 1441 1442 Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-render Use Xrender & Xft2 to draw logo 1446 --with-xkb Use XKB to sound bells 1447 --with-appdefaultdir=<pathname> 1448 specify directory for app-defaults files (default is 1449 autodetected) 1450 1451 Some influential environment variables: 1452 CC C compiler command 1453 CFLAGS C compiler flags 1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1455 nonstandard directory <lib dir> 1456 LIBS libraries to pass to the linker, e.g. -l<library> 1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1458 you have headers in a nonstandard directory <include dir> 1459 PKG_CONFIG path to pkg-config utility 1460 PKG_CONFIG_PATH 1461 directories to add to pkg-config's search path 1462 PKG_CONFIG_LIBDIR 1463 path overriding pkg-config's built-in search path 1464 XLOGO_CFLAGS 1465 C compiler flags for XLOGO, overriding pkg-config 1466 XLOGO_LIBS linker flags for XLOGO, overriding pkg-config 1467 APPDEFS_CFLAGS 1468 C compiler flags for APPDEFS, overriding pkg-config 1469 APPDEFS_LIBS 1470 linker flags for APPDEFS, overriding pkg-config 1471 1472 Use these variables to override the choices made by 'configure' or to help 1473 it to find libraries and programs with nonstandard names/locations. 1474 1475 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>. 1476 _ACEOF 1477 ac_status=$? 1478 fi 1479 1480 if test "$ac_init_help" = "recursive"; then 1481 # If there are subdirs, report their specific --help. 1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1483 test -d "$ac_dir" || 1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1485 continue 1486 ac_builddir=. 1487 1488 case "$ac_dir" in 1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490 *) 1491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1492 # A ".." for each directory in $ac_dir_suffix. 1493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1494 case $ac_top_builddir_sub in 1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1497 esac ;; 1498 esac 1499 ac_abs_top_builddir=$ac_pwd 1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1501 # for backward compatibility: 1502 ac_top_builddir=$ac_top_build_prefix 1503 1504 case $srcdir in 1505 .) # We are building in place. 1506 ac_srcdir=. 1507 ac_top_srcdir=$ac_top_builddir_sub 1508 ac_abs_top_srcdir=$ac_pwd ;; 1509 [\\/]* | ?:[\\/]* ) # Absolute name. 1510 ac_srcdir=$srcdir$ac_dir_suffix; 1511 ac_top_srcdir=$srcdir 1512 ac_abs_top_srcdir=$srcdir ;; 1513 *) # Relative name. 1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1515 ac_top_srcdir=$ac_top_build_prefix$srcdir 1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1517 esac 1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1519 1520 cd "$ac_dir" || { ac_status=$?; continue; } 1521 # Check for configure.gnu first; this name is used for a wrapper for 1522 # Metaconfig's "Configure" on case-insensitive file systems. 1523 if test -f "$ac_srcdir/configure.gnu"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1526 elif test -f "$ac_srcdir/configure"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure" --help=recursive 1529 else 1530 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1531 fi || ac_status=$? 1532 cd "$ac_pwd" || { ac_status=$?; break; } 1533 done 1534 fi 1535 1536 test -n "$ac_init_help" && exit $ac_status 1537 if $ac_init_version; then 1538 cat <<\_ACEOF 1539 xlogo configure 1.0.7 1540 generated by GNU Autoconf 2.72 1541 1542 Copyright (C) 2023 Free Software Foundation, Inc. 1543 This configure script is free software; the Free Software Foundation 1544 gives unlimited permission to copy, distribute and modify it. 1545 _ACEOF 1546 exit 1547 fi 1548 1549 ## ------------------------ ## 1550 ## Autoconf initialization. ## 1551 ## ------------------------ ## 1552 1553 # ac_fn_c_try_compile LINENO 1554 # -------------------------- 1555 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1556 ac_fn_c_try_compile () 1557 { 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext conftest.beam 1560 if { { ac_try="$ac_compile" 1561 case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564 esac 1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566 printf "%s\n" "$ac_try_echo"; } >&5 1567 (eval "$ac_compile") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest.$ac_objext 1579 then : 1580 ac_retval=0 1581 else case e in #( 1582 e) printf "%s\n" "$as_me: failed program was:" >&5 1583 sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 ;; 1586 esac 1587 fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591 } # ac_fn_c_try_compile 1592 1593 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1594 # ------------------------------------------------------------------ 1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1596 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1597 ac_fn_check_decl () 1598 { 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 as_decl_name=`echo $2|sed 's/ *(.*//'` 1601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1602 printf %s "checking whether $as_decl_name is declared... " >&6; } 1603 if eval test \${$3+y} 1604 then : 1605 printf %s "(cached) " >&6 1606 else case e in #( 1607 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1608 eval ac_save_FLAGS=\$$6 1609 as_fn_append $6 " $5" 1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611 /* end confdefs.h. */ 1612 $4 1613 int 1614 main (void) 1615 { 1616 #ifndef $as_decl_name 1617 #ifdef __cplusplus 1618 (void) $as_decl_use; 1619 #else 1620 (void) $as_decl_name; 1621 #endif 1622 #endif 1623 1624 ; 1625 return 0; 1626 } 1627 _ACEOF 1628 if ac_fn_c_try_compile "$LINENO" 1629 then : 1630 eval "$3=yes" 1631 else case e in #( 1632 e) eval "$3=no" ;; 1633 esac 1634 fi 1635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1636 eval $6=\$ac_save_FLAGS 1637 ;; 1638 esac 1639 fi 1640 eval ac_res=\$$3 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1642 printf "%s\n" "$ac_res" >&6; } 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645 } # ac_fn_check_decl 1646 1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648 # ------------------------------------------------------- 1649 # Tests whether HEADER exists and can be compiled using the include files in 1650 # INCLUDES, setting the cache variable VAR accordingly. 1651 ac_fn_c_check_header_compile () 1652 { 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655 printf %s "checking for $2... " >&6; } 1656 if eval test \${$3+y} 1657 then : 1658 printf %s "(cached) " >&6 1659 else case e in #( 1660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661 /* end confdefs.h. */ 1662 $4 1663 #include <$2> 1664 _ACEOF 1665 if ac_fn_c_try_compile "$LINENO" 1666 then : 1667 eval "$3=yes" 1668 else case e in #( 1669 e) eval "$3=no" ;; 1670 esac 1671 fi 1672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1673 esac 1674 fi 1675 eval ac_res=\$$3 1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677 printf "%s\n" "$ac_res" >&6; } 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 1680 } # ac_fn_c_check_header_compile 1681 1682 # ac_fn_c_try_link LINENO 1683 # ----------------------- 1684 # Try to link conftest.$ac_ext, and return whether this succeeded. 1685 ac_fn_c_try_link () 1686 { 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1689 if { { ac_try="$ac_link" 1690 case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693 esac 1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695 printf "%s\n" "$ac_try_echo"; } >&5 1696 (eval "$ac_link") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { 1705 test -z "$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 } && test -s conftest$ac_exeext && { 1708 test "$cross_compiling" = yes || 1709 test -x conftest$ac_exeext 1710 } 1711 then : 1712 ac_retval=0 1713 else case e in #( 1714 e) printf "%s\n" "$as_me: failed program was:" >&5 1715 sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 ;; 1718 esac 1719 fi 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722 # interfere with the next link command; also delete a directory that is 1723 # left behind by Apple's compiler. We do this before executing the actions. 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728 } # ac_fn_c_try_link 1729 1730 # ac_fn_c_check_func LINENO FUNC VAR 1731 # ---------------------------------- 1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1733 ac_fn_c_check_func () 1734 { 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737 printf %s "checking for $2... " >&6; } 1738 if eval test \${$3+y} 1739 then : 1740 printf %s "(cached) " >&6 1741 else case e in #( 1742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743 /* end confdefs.h. */ 1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1746 #define $2 innocuous_$2 1747 1748 /* System header to define __stub macros and hopefully few prototypes, 1749 which can conflict with char $2 (void); below. */ 1750 1751 #include <limits.h> 1752 #undef $2 1753 1754 /* Override any GCC internal prototype to avoid an error. 1755 Use char because int might match the return type of a GCC 1756 builtin and then its argument prototype would still apply. */ 1757 #ifdef __cplusplus 1758 extern "C" 1759 #endif 1760 char $2 (void); 1761 /* The GNU C library defines this for functions which it implements 1762 to always fail with ENOSYS. Some functions are actually named 1763 something starting with __ and the normal name is an alias. */ 1764 #if defined __stub_$2 || defined __stub___$2 1765 choke me 1766 #endif 1767 1768 int 1769 main (void) 1770 { 1771 return $2 (); 1772 ; 1773 return 0; 1774 } 1775 _ACEOF 1776 if ac_fn_c_try_link "$LINENO" 1777 then : 1778 eval "$3=yes" 1779 else case e in #( 1780 e) eval "$3=no" ;; 1781 esac 1782 fi 1783 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1784 conftest$ac_exeext conftest.$ac_ext ;; 1785 esac 1786 fi 1787 eval ac_res=\$$3 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789 printf "%s\n" "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792 } # ac_fn_c_check_func 1793 ac_configure_args_raw= 1794 for ac_arg 1795 do 1796 case $ac_arg in 1797 *\'*) 1798 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1799 esac 1800 as_fn_append ac_configure_args_raw " '$ac_arg'" 1801 done 1802 1803 case $ac_configure_args_raw in 1804 *$as_nl*) 1805 ac_safe_unquote= ;; 1806 *) 1807 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1808 ac_unsafe_a="$ac_unsafe_z#~" 1809 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1810 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1811 esac 1812 1813 cat >config.log <<_ACEOF 1814 This file contains any messages produced by compilers while 1815 running configure, to aid debugging if configure makes a mistake. 1816 1817 It was created by xlogo $as_me 1.0.7, which was 1818 generated by GNU Autoconf 2.72. Invocation command line was 1819 1820 $ $0$ac_configure_args_raw 1821 1822 _ACEOF 1823 exec 5>>config.log 1824 { 1825 cat <<_ASUNAME 1826 ## --------- ## 1827 ## Platform. ## 1828 ## --------- ## 1829 1830 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1831 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1832 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1833 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1834 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1835 1836 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1837 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1838 1839 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1840 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1841 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1842 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1843 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1844 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1845 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1846 1847 _ASUNAME 1848 1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1850 for as_dir in $PATH 1851 do 1852 IFS=$as_save_IFS 1853 case $as_dir in #((( 1854 '') as_dir=./ ;; 1855 */) ;; 1856 *) as_dir=$as_dir/ ;; 1857 esac 1858 printf "%s\n" "PATH: $as_dir" 1859 done 1860 IFS=$as_save_IFS 1861 1862 } >&5 1863 1864 cat >&5 <<_ACEOF 1865 1866 1867 ## ----------- ## 1868 ## Core tests. ## 1869 ## ----------- ## 1870 1871 _ACEOF 1872 1873 1874 # Keep a trace of the command line. 1875 # Strip out --no-create and --no-recursion so they do not pile up. 1876 # Strip out --silent because we don't want to record it for future runs. 1877 # Also quote any args containing shell meta-characters. 1878 # Make two passes to allow for proper duplicate-argument suppression. 1879 ac_configure_args= 1880 ac_configure_args0= 1881 ac_configure_args1= 1882 ac_must_keep_next=false 1883 for ac_pass in 1 2 1884 do 1885 for ac_arg 1886 do 1887 case $ac_arg in 1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1890 | -silent | --silent | --silen | --sile | --sil) 1891 continue ;; 1892 *\'*) 1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 esac 1895 case $ac_pass in 1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1897 2) 1898 as_fn_append ac_configure_args1 " '$ac_arg'" 1899 if test $ac_must_keep_next = true; then 1900 ac_must_keep_next=false # Got value, back to normal. 1901 else 1902 case $ac_arg in 1903 *=* | --config-cache | -C | -disable-* | --disable-* \ 1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1906 | -with-* | --with-* | -without-* | --without-* | --x) 1907 case "$ac_configure_args0 " in 1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1909 esac 1910 ;; 1911 -* ) ac_must_keep_next=true ;; 1912 esac 1913 fi 1914 as_fn_append ac_configure_args " '$ac_arg'" 1915 ;; 1916 esac 1917 done 1918 done 1919 { ac_configure_args0=; unset ac_configure_args0;} 1920 { ac_configure_args1=; unset ac_configure_args1;} 1921 1922 # When interrupted or exit'd, cleanup temporary files, and complete 1923 # config.log. We remove comments because anyway the quotes in there 1924 # would cause problems or look ugly. 1925 # WARNING: Use '\'' to represent an apostrophe within the trap. 1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1927 trap 'exit_status=$? 1928 # Sanitize IFS. 1929 IFS=" "" $as_nl" 1930 # Save into config.log some information that might help in debugging. 1931 { 1932 echo 1933 1934 printf "%s\n" "## ---------------- ## 1935 ## Cache variables. ## 1936 ## ---------------- ##" 1937 echo 1938 # The following way of writing the cache mishandles newlines in values, 1939 ( 1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1941 eval ac_val=\$$ac_var 1942 case $ac_val in #( 1943 *${as_nl}*) 1944 case $ac_var in #( 1945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1946 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1947 esac 1948 case $ac_var in #( 1949 _ | IFS | as_nl) ;; #( 1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1951 *) { eval $ac_var=; unset $ac_var;} ;; 1952 esac ;; 1953 esac 1954 done 1955 (set) 2>&1 | 1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1957 *${as_nl}ac_space=\ *) 1958 sed -n \ 1959 "s/'\''/'\''\\\\'\'''\''/g; 1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1961 ;; #( 1962 *) 1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1964 ;; 1965 esac | 1966 sort 1967 ) 1968 echo 1969 1970 printf "%s\n" "## ----------------- ## 1971 ## Output variables. ## 1972 ## ----------------- ##" 1973 echo 1974 for ac_var in $ac_subst_vars 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 1984 if test -n "$ac_subst_files"; then 1985 printf "%s\n" "## ------------------- ## 1986 ## File substitutions. ## 1987 ## ------------------- ##" 1988 echo 1989 for ac_var in $ac_subst_files 1990 do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in 1993 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1994 esac 1995 printf "%s\n" "$ac_var='\''$ac_val'\''" 1996 done | sort 1997 echo 1998 fi 1999 2000 if test -s confdefs.h; then 2001 printf "%s\n" "## ----------- ## 2002 ## confdefs.h. ## 2003 ## ----------- ##" 2004 echo 2005 cat confdefs.h 2006 echo 2007 fi 2008 test "$ac_signal" != 0 && 2009 printf "%s\n" "$as_me: caught signal $ac_signal" 2010 printf "%s\n" "$as_me: exit $exit_status" 2011 } >&5 2012 rm -f core *.core core.conftest.* && 2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2014 exit $exit_status 2015 ' 0 2016 for ac_signal in 1 2 13 15; do 2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2018 done 2019 ac_signal=0 2020 2021 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2022 rm -f -r conftest* confdefs.h 2023 2024 printf "%s\n" "/* confdefs.h */" > confdefs.h 2025 2026 # Predefined preprocessor variables. 2027 2028 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2029 2030 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2031 2032 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2033 2034 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2035 2036 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2037 2038 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2039 2040 2041 # Let the site file select an alternate cache file if it wants to. 2042 # Prefer an explicitly selected file to automatically selected ones. 2043 if test -n "$CONFIG_SITE"; then 2044 ac_site_files="$CONFIG_SITE" 2045 elif test "x$prefix" != xNONE; then 2046 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2047 else 2048 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2049 fi 2050 2051 for ac_site_file in $ac_site_files 2052 do 2053 case $ac_site_file in #( 2054 */*) : 2055 ;; #( 2056 *) : 2057 ac_site_file=./$ac_site_file ;; 2058 esac 2059 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2066 as_fn_error $? "failed to load site script $ac_site_file 2067 See 'config.log' for more details" "$LINENO" 5; } 2068 fi 2069 done 2070 2071 if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082 else 2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086 fi 2087 2088 # Test code for whether the C compiler supports C89 (global declarations) 2089 ac_c_conftest_c89_globals=' 2090 /* Does the compiler advertise C89 conformance? 2091 Do not test the value of __STDC__, because some compilers set it to 0 2092 while being otherwise adequately conformant. */ 2093 #if !defined __STDC__ 2094 # error "Compiler does not advertise C89 conformance" 2095 #endif 2096 2097 #include <stddef.h> 2098 #include <stdarg.h> 2099 struct stat; 2100 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2101 struct buf { int x; }; 2102 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2103 static char *e (char **p, int i) 2104 { 2105 return p[i]; 2106 } 2107 static char *f (char * (*g) (char **, int), char **p, ...) 2108 { 2109 char *s; 2110 va_list v; 2111 va_start (v,p); 2112 s = g (p, va_arg (v,int)); 2113 va_end (v); 2114 return s; 2115 } 2116 2117 /* C89 style stringification. */ 2118 #define noexpand_stringify(a) #a 2119 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2120 2121 /* C89 style token pasting. Exercises some of the corner cases that 2122 e.g. old MSVC gets wrong, but not very hard. */ 2123 #define noexpand_concat(a,b) a##b 2124 #define expand_concat(a,b) noexpand_concat(a,b) 2125 extern int vA; 2126 extern int vbee; 2127 #define aye A 2128 #define bee B 2129 int *pvA = &expand_concat(v,aye); 2130 int *pvbee = &noexpand_concat(v,bee); 2131 2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2133 function prototypes and stuff, but not \xHH hex character constants. 2134 These do not provoke an error unfortunately, instead are silently treated 2135 as an "x". The following induces an error, until -std is added to get 2136 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2137 array size at least. It is necessary to write \x00 == 0 to get something 2138 that is true only with -std. */ 2139 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2140 2141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2142 inside strings and character constants. */ 2143 #define FOO(x) '\''x'\'' 2144 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2145 2146 int test (int i, double x); 2147 struct s1 {int (*f) (int a);}; 2148 struct s2 {int (*f) (double a);}; 2149 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2150 int, int);' 2151 2152 # Test code for whether the C compiler supports C89 (body of main). 2153 ac_c_conftest_c89_main=' 2154 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2155 ' 2156 2157 # Test code for whether the C compiler supports C99 (global declarations) 2158 ac_c_conftest_c99_globals=' 2159 /* Does the compiler advertise C99 conformance? */ 2160 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2161 # error "Compiler does not advertise C99 conformance" 2162 #endif 2163 2164 // See if C++-style comments work. 2165 2166 #include <stdbool.h> 2167 extern int puts (const char *); 2168 extern int printf (const char *, ...); 2169 extern int dprintf (int, const char *, ...); 2170 extern void *malloc (size_t); 2171 extern void free (void *); 2172 2173 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2174 // dprintf is used instead of fprintf to avoid needing to declare 2175 // FILE and stderr. 2176 #define debug(...) dprintf (2, __VA_ARGS__) 2177 #define showlist(...) puts (#__VA_ARGS__) 2178 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2179 static void 2180 test_varargs_macros (void) 2181 { 2182 int x = 1234; 2183 int y = 5678; 2184 debug ("Flag"); 2185 debug ("X = %d\n", x); 2186 showlist (The first, second, and third items.); 2187 report (x>y, "x is %d but y is %d", x, y); 2188 } 2189 2190 // Check long long types. 2191 #define BIG64 18446744073709551615ull 2192 #define BIG32 4294967295ul 2193 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2194 #if !BIG_OK 2195 #error "your preprocessor is broken" 2196 #endif 2197 #if BIG_OK 2198 #else 2199 #error "your preprocessor is broken" 2200 #endif 2201 static long long int bignum = -9223372036854775807LL; 2202 static unsigned long long int ubignum = BIG64; 2203 2204 struct incomplete_array 2205 { 2206 int datasize; 2207 double data[]; 2208 }; 2209 2210 struct named_init { 2211 int number; 2212 const wchar_t *name; 2213 double average; 2214 }; 2215 2216 typedef const char *ccp; 2217 2218 static inline int 2219 test_restrict (ccp restrict text) 2220 { 2221 // Iterate through items via the restricted pointer. 2222 // Also check for declarations in for loops. 2223 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2224 continue; 2225 return 0; 2226 } 2227 2228 // Check varargs and va_copy. 2229 static bool 2230 test_varargs (const char *format, ...) 2231 { 2232 va_list args; 2233 va_start (args, format); 2234 va_list args_copy; 2235 va_copy (args_copy, args); 2236 2237 const char *str = ""; 2238 int number = 0; 2239 float fnumber = 0; 2240 2241 while (*format) 2242 { 2243 switch (*format++) 2244 { 2245 case '\''s'\'': // string 2246 str = va_arg (args_copy, const char *); 2247 break; 2248 case '\''d'\'': // int 2249 number = va_arg (args_copy, int); 2250 break; 2251 case '\''f'\'': // float 2252 fnumber = va_arg (args_copy, double); 2253 break; 2254 default: 2255 break; 2256 } 2257 } 2258 va_end (args_copy); 2259 va_end (args); 2260 2261 return *str && number && fnumber; 2262 } 2263 ' 2264 2265 # Test code for whether the C compiler supports C99 (body of main). 2266 ac_c_conftest_c99_main=' 2267 // Check bool. 2268 _Bool success = false; 2269 success |= (argc != 0); 2270 2271 // Check restrict. 2272 if (test_restrict ("String literal") == 0) 2273 success = true; 2274 char *restrict newvar = "Another string"; 2275 2276 // Check varargs. 2277 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2278 test_varargs_macros (); 2279 2280 // Check flexible array members. 2281 struct incomplete_array *ia = 2282 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2283 ia->datasize = 10; 2284 for (int i = 0; i < ia->datasize; ++i) 2285 ia->data[i] = i * 1.234; 2286 // Work around memory leak warnings. 2287 free (ia); 2288 2289 // Check named initializers. 2290 struct named_init ni = { 2291 .number = 34, 2292 .name = L"Test wide string", 2293 .average = 543.34343, 2294 }; 2295 2296 ni.number = 58; 2297 2298 int dynamic_array[ni.number]; 2299 dynamic_array[0] = argv[0][0]; 2300 dynamic_array[ni.number - 1] = 543; 2301 2302 // work around unused variable warnings 2303 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2304 || dynamic_array[ni.number - 1] != 543); 2305 ' 2306 2307 # Test code for whether the C compiler supports C11 (global declarations) 2308 ac_c_conftest_c11_globals=' 2309 /* Does the compiler advertise C11 conformance? */ 2310 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2311 # error "Compiler does not advertise C11 conformance" 2312 #endif 2313 2314 // Check _Alignas. 2315 char _Alignas (double) aligned_as_double; 2316 char _Alignas (0) no_special_alignment; 2317 extern char aligned_as_int; 2318 char _Alignas (0) _Alignas (int) aligned_as_int; 2319 2320 // Check _Alignof. 2321 enum 2322 { 2323 int_alignment = _Alignof (int), 2324 int_array_alignment = _Alignof (int[100]), 2325 char_alignment = _Alignof (char) 2326 }; 2327 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2328 2329 // Check _Noreturn. 2330 int _Noreturn does_not_return (void) { for (;;) continue; } 2331 2332 // Check _Static_assert. 2333 struct test_static_assert 2334 { 2335 int x; 2336 _Static_assert (sizeof (int) <= sizeof (long int), 2337 "_Static_assert does not work in struct"); 2338 long int y; 2339 }; 2340 2341 // Check UTF-8 literals. 2342 #define u8 syntax error! 2343 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2344 2345 // Check duplicate typedefs. 2346 typedef long *long_ptr; 2347 typedef long int *long_ptr; 2348 typedef long_ptr long_ptr; 2349 2350 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2351 struct anonymous 2352 { 2353 union { 2354 struct { int i; int j; }; 2355 struct { int k; long int l; } w; 2356 }; 2357 int m; 2358 } v1; 2359 ' 2360 2361 # Test code for whether the C compiler supports C11 (body of main). 2362 ac_c_conftest_c11_main=' 2363 _Static_assert ((offsetof (struct anonymous, i) 2364 == offsetof (struct anonymous, w.k)), 2365 "Anonymous union alignment botch"); 2366 v1.i = 2; 2367 v1.w.k = 5; 2368 ok |= v1.i != 5; 2369 ' 2370 2371 # Test code for whether the C compiler supports C11 (complete). 2372 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2373 ${ac_c_conftest_c99_globals} 2374 ${ac_c_conftest_c11_globals} 2375 2376 int 2377 main (int argc, char **argv) 2378 { 2379 int ok = 0; 2380 ${ac_c_conftest_c89_main} 2381 ${ac_c_conftest_c99_main} 2382 ${ac_c_conftest_c11_main} 2383 return ok; 2384 } 2385 " 2386 2387 # Test code for whether the C compiler supports C99 (complete). 2388 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2389 ${ac_c_conftest_c99_globals} 2390 2391 int 2392 main (int argc, char **argv) 2393 { 2394 int ok = 0; 2395 ${ac_c_conftest_c89_main} 2396 ${ac_c_conftest_c99_main} 2397 return ok; 2398 } 2399 " 2400 2401 # Test code for whether the C compiler supports C89 (complete). 2402 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2403 2404 int 2405 main (int argc, char **argv) 2406 { 2407 int ok = 0; 2408 ${ac_c_conftest_c89_main} 2409 return ok; 2410 } 2411 " 2412 2413 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2414 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2415 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2416 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2417 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2418 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2419 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2420 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2421 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2422 2423 # Auxiliary files required by this configure script. 2424 ac_aux_files="config.guess config.sub compile missing install-sh" 2425 2426 # Locations in which to look for auxiliary files. 2427 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2428 2429 # Search for a directory containing all of the required auxiliary files, 2430 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2431 # If we don't find one directory that contains all the files we need, 2432 # we report the set of missing files from the *first* directory in 2433 # $ac_aux_dir_candidates and give up. 2434 ac_missing_aux_files="" 2435 ac_first_candidate=: 2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438 as_found=false 2439 for as_dir in $ac_aux_dir_candidates 2440 do 2441 IFS=$as_save_IFS 2442 case $as_dir in #((( 2443 '') as_dir=./ ;; 2444 */) ;; 2445 *) as_dir=$as_dir/ ;; 2446 esac 2447 as_found=: 2448 2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2450 ac_aux_dir_found=yes 2451 ac_install_sh= 2452 for ac_aux in $ac_aux_files 2453 do 2454 # As a special case, if "install-sh" is required, that requirement 2455 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2456 # and $ac_install_sh is set appropriately for whichever one is found. 2457 if test x"$ac_aux" = x"install-sh" 2458 then 2459 if test -f "${as_dir}install-sh"; then 2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2461 ac_install_sh="${as_dir}install-sh -c" 2462 elif test -f "${as_dir}install.sh"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2464 ac_install_sh="${as_dir}install.sh -c" 2465 elif test -f "${as_dir}shtool"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2467 ac_install_sh="${as_dir}shtool install -c" 2468 else 2469 ac_aux_dir_found=no 2470 if $ac_first_candidate; then 2471 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2472 else 2473 break 2474 fi 2475 fi 2476 else 2477 if test -f "${as_dir}${ac_aux}"; then 2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2479 else 2480 ac_aux_dir_found=no 2481 if $ac_first_candidate; then 2482 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2483 else 2484 break 2485 fi 2486 fi 2487 fi 2488 done 2489 if test "$ac_aux_dir_found" = yes; then 2490 ac_aux_dir="$as_dir" 2491 break 2492 fi 2493 ac_first_candidate=false 2494 2495 as_found=false 2496 done 2497 IFS=$as_save_IFS 2498 if $as_found 2499 then : 2500 2501 else case e in #( 2502 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2503 esac 2504 fi 2505 2506 2507 # These three variables are undocumented and unsupported, 2508 # and are intended to be withdrawn in a future Autoconf release. 2509 # They can cause serious problems if a builder's source tree is in a directory 2510 # whose full name contains unusual characters. 2511 if test -f "${ac_aux_dir}config.guess"; then 2512 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2513 fi 2514 if test -f "${ac_aux_dir}config.sub"; then 2515 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2516 fi 2517 if test -f "$ac_aux_dir/configure"; then 2518 ac_configure="$SHELL ${ac_aux_dir}configure" 2519 fi 2520 2521 # Check that the precious variables saved in the cache have kept the same 2522 # value. 2523 ac_cache_corrupted=false 2524 for ac_var in $ac_precious_vars; do 2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2526 eval ac_new_set=\$ac_env_${ac_var}_set 2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2528 eval ac_new_val=\$ac_env_${ac_var}_value 2529 case $ac_old_set,$ac_new_set in 2530 set,) 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2532 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2533 ac_cache_corrupted=: ;; 2534 ,set) 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2536 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2537 ac_cache_corrupted=: ;; 2538 ,);; 2539 *) 2540 if test "x$ac_old_val" != "x$ac_new_val"; then 2541 # differences in whitespace do not lead to failure. 2542 ac_old_val_w=`echo x $ac_old_val` 2543 ac_new_val_w=`echo x $ac_new_val` 2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2546 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2547 ac_cache_corrupted=: 2548 else 2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2550 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2551 eval $ac_var=\$ac_old_val 2552 fi 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2554 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2556 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2557 fi;; 2558 esac 2559 # Pass precious variables to config.status. 2560 if test "$ac_new_set" = set; then 2561 case $ac_new_val in 2562 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2563 *) ac_arg=$ac_var=$ac_new_val ;; 2564 esac 2565 case " $ac_configure_args " in 2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2568 esac 2569 fi 2570 done 2571 if $ac_cache_corrupted; then 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2573 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2575 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2576 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2577 and start over" "$LINENO" 5 2578 fi 2579 ## -------------------- ## 2580 ## Main body of script. ## 2581 ## -------------------- ## 2582 2583 ac_ext=c 2584 ac_cpp='$CPP $CPPFLAGS' 2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2588 2589 2590 2591 ac_config_headers="$ac_config_headers config.h" 2592 2593 2594 # Initialize Automake 2595 am__api_version='1.17' 2596 2597 2598 2599 # Find a good install program. We prefer a C program (faster), 2600 # so one script is as good as another. But avoid the broken or 2601 # incompatible versions: 2602 # SysV /etc/install, /usr/sbin/install 2603 # SunOS /usr/etc/install 2604 # IRIX /sbin/install 2605 # AIX /bin/install 2606 # AmigaOS /C/install, which installs bootblocks on floppy discs 2607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2610 # OS/2's system install, which has a completely different semantic 2611 # ./install, which can be erroneously created by make from ./install.sh. 2612 # Reject install programs that cannot install multiple files. 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2614 printf %s "checking for a BSD-compatible install... " >&6; } 2615 if test -z "$INSTALL"; then 2616 if test ${ac_cv_path_install+y} 2617 then : 2618 printf %s "(cached) " >&6 2619 else case e in #( 2620 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621 for as_dir in $PATH 2622 do 2623 IFS=$as_save_IFS 2624 case $as_dir in #((( 2625 '') as_dir=./ ;; 2626 */) ;; 2627 *) as_dir=$as_dir/ ;; 2628 esac 2629 # Account for fact that we put trailing slashes in our PATH walk. 2630 case $as_dir in #(( 2631 ./ | /[cC]/* | \ 2632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2634 /usr/ucb/* ) ;; 2635 *) 2636 # OSF1 and SCO ODT 3.0 have their own names for install. 2637 # Don't use installbsd from OSF since it installs stuff as root 2638 # by default. 2639 for ac_prog in ginstall scoinst install; do 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2642 if test $ac_prog = install && 2643 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2644 # AIX install. It has an incompatible calling convention. 2645 : 2646 elif test $ac_prog = install && 2647 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2648 # program-specific install script used by HP pwplus--don't use. 2649 : 2650 else 2651 rm -rf conftest.one conftest.two conftest.dir 2652 echo one > conftest.one 2653 echo two > conftest.two 2654 mkdir conftest.dir 2655 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2656 test -s conftest.one && test -s conftest.two && 2657 test -s conftest.dir/conftest.one && 2658 test -s conftest.dir/conftest.two 2659 then 2660 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2661 break 3 2662 fi 2663 fi 2664 fi 2665 done 2666 done 2667 ;; 2668 esac 2669 2670 done 2671 IFS=$as_save_IFS 2672 2673 rm -rf conftest.one conftest.two conftest.dir 2674 ;; 2675 esac 2676 fi 2677 if test ${ac_cv_path_install+y}; then 2678 INSTALL=$ac_cv_path_install 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for INSTALL within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 INSTALL=$ac_install_sh 2685 fi 2686 fi 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2688 printf "%s\n" "$INSTALL" >&6; } 2689 2690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2691 # It thinks the first close brace ends the variable substitution. 2692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2693 2694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2695 2696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2697 2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2699 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2700 if test ${am_cv_sleep_fractional_seconds+y} 2701 then : 2702 printf %s "(cached) " >&6 2703 else case e in #( 2704 e) if sleep 0.001 2>/dev/null 2705 then : 2706 am_cv_sleep_fractional_seconds=yes 2707 else case e in #( 2708 e) am_cv_sleep_fractional_seconds=no ;; 2709 esac 2710 fi 2711 ;; 2712 esac 2713 fi 2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2715 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2716 2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2718 printf %s "checking filesystem timestamp resolution... " >&6; } 2719 if test ${am_cv_filesystem_timestamp_resolution+y} 2720 then : 2721 printf %s "(cached) " >&6 2722 else case e in #( 2723 e) # Default to the worst case. 2724 am_cv_filesystem_timestamp_resolution=2 2725 2726 # Only try to go finer than 1 sec if sleep can do it. 2727 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2728 # - 1 sec is not much of a win compared to 2 sec, and 2729 # - it takes 2 seconds to perform the test whether 1 sec works. 2730 # 2731 # Instead, just use the default 2s on platforms that have 1s resolution, 2732 # accept the extra 1s delay when using $sleep in the Automake tests, in 2733 # exchange for not incurring the 2s delay for running the test for all 2734 # packages. 2735 # 2736 am_try_resolutions= 2737 if test "$am_cv_sleep_fractional_seconds" = yes; then 2738 # Even a millisecond often causes a bunch of false positives, 2739 # so just try a hundredth of a second. The time saved between .001 and 2740 # .01 is not terribly consequential. 2741 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2742 fi 2743 2744 # In order to catch current-generation FAT out, we must *modify* files 2745 # that already exist; the *creation* timestamp is finer. Use names 2746 # that make ls -t sort them differently when they have equal 2747 # timestamps than when they have distinct timestamps, keeping 2748 # in mind that ls -t prints the *newest* file first. 2749 rm -f conftest.ts? 2750 : > conftest.ts1 2751 : > conftest.ts2 2752 : > conftest.ts3 2753 2754 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2755 # clobber the current shell's arguments. (Outer-level square brackets 2756 # are removed by m4; they're present so that m4 does not expand 2757 # <dollar><star>; be careful, easy to get confused.) 2758 if ( 2759 set X `ls -t conftest.ts[12]` && 2760 { 2761 test "$*" != "X conftest.ts1 conftest.ts2" || 2762 test "$*" != "X conftest.ts2 conftest.ts1"; 2763 } 2764 ); then :; else 2765 # If neither matched, then we have a broken ls. This can happen 2766 # if, for instance, CONFIG_SHELL is bash and it inherits a 2767 # broken ls alias from the environment. This has actually 2768 # happened. Such a system could not be considered "sane". 2769 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2771 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2772 as_fn_error $? "ls -t produces unexpected output. 2773 Make sure there is not a broken ls alias in your environment. 2774 See 'config.log' for more details" "$LINENO" 5; } 2775 fi 2776 2777 for am_try_res in $am_try_resolutions; do 2778 # Any one fine-grained sleep might happen to cross the boundary 2779 # between two values of a coarser actual resolution, but if we do 2780 # two fine-grained sleeps in a row, at least one of them will fall 2781 # entirely within a coarse interval. 2782 echo alpha > conftest.ts1 2783 sleep $am_try_res 2784 echo beta > conftest.ts2 2785 sleep $am_try_res 2786 echo gamma > conftest.ts3 2787 2788 # We assume that 'ls -t' will make use of high-resolution 2789 # timestamps if the operating system supports them at all. 2790 if (set X `ls -t conftest.ts?` && 2791 test "$2" = conftest.ts3 && 2792 test "$3" = conftest.ts2 && 2793 test "$4" = conftest.ts1); then 2794 # 2795 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2796 # because we don't need to test make. 2797 make_ok=true 2798 if test $am_try_res != 1; then 2799 # But if we've succeeded so far with a subsecond resolution, we 2800 # have one more thing to check: make. It can happen that 2801 # everything else supports the subsecond mtimes, but make doesn't; 2802 # notably on macOS, which ships make 3.81 from 2006 (the last one 2803 # released under GPLv2). https://bugs.gnu.org/68808 2804 # 2805 # We test $MAKE if it is defined in the environment, else "make". 2806 # It might get overridden later, but our hope is that in practice 2807 # it does not matter: it is the system "make" which is (by far) 2808 # the most likely to be broken, whereas if the user overrides it, 2809 # probably they did so with a better, or at least not worse, make. 2810 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2811 # 2812 # Create a Makefile (real tab character here): 2813 rm -f conftest.mk 2814 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2815 echo ' touch conftest.ts2' >>conftest.mk 2816 # 2817 # Now, running 2818 # touch conftest.ts1; touch conftest.ts2; make 2819 # should touch ts1 because ts2 is newer. This could happen by luck, 2820 # but most often, it will fail if make's support is insufficient. So 2821 # test for several consecutive successes. 2822 # 2823 # (We reuse conftest.ts[12] because we still want to modify existing 2824 # files, not create new ones, per above.) 2825 n=0 2826 make=${MAKE-make} 2827 until test $n -eq 3; do 2828 echo one > conftest.ts1 2829 sleep $am_try_res 2830 echo two > conftest.ts2 # ts2 should now be newer than ts1 2831 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2832 make_ok=false 2833 break # out of $n loop 2834 fi 2835 n=`expr $n + 1` 2836 done 2837 fi 2838 # 2839 if $make_ok; then 2840 # Everything we know to check worked out, so call this resolution good. 2841 am_cv_filesystem_timestamp_resolution=$am_try_res 2842 break # out of $am_try_res loop 2843 fi 2844 # Otherwise, we'll go on to check the next resolution. 2845 fi 2846 done 2847 rm -f conftest.ts? 2848 # (end _am_filesystem_timestamp_resolution) 2849 ;; 2850 esac 2851 fi 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2853 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2854 2855 # This check should not be cached, as it may vary across builds of 2856 # different projects. 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2858 printf %s "checking whether build environment is sane... " >&6; } 2859 # Reject unsafe characters in $srcdir or the absolute working directory 2860 # name. Accept space and tab only in the latter. 2861 am_lf=' 2862 ' 2863 case `pwd` in 2864 *[\\\"\#\$\&\'\`$am_lf]*) 2865 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2866 esac 2867 case $srcdir in 2868 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2869 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2870 esac 2871 2872 # Do 'set' in a subshell so we don't clobber the current shell's 2873 # arguments. Must try -L first in case configure is actually a 2874 # symlink; some systems play weird games with the mod time of symlinks 2875 # (eg FreeBSD returns the mod time of the symlink's containing 2876 # directory). 2877 am_build_env_is_sane=no 2878 am_has_slept=no 2879 rm -f conftest.file 2880 for am_try in 1 2; do 2881 echo "timestamp, slept: $am_has_slept" > conftest.file 2882 if ( 2883 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2884 if test "$*" = "X"; then 2885 # -L didn't work. 2886 set X `ls -t "$srcdir/configure" conftest.file` 2887 fi 2888 test "$2" = conftest.file 2889 ); then 2890 am_build_env_is_sane=yes 2891 break 2892 fi 2893 # Just in case. 2894 sleep "$am_cv_filesystem_timestamp_resolution" 2895 am_has_slept=yes 2896 done 2897 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2899 printf "%s\n" "$am_build_env_is_sane" >&6; } 2900 if test "$am_build_env_is_sane" = no; then 2901 as_fn_error $? "newly created file is older than distributed files! 2902 Check your system clock" "$LINENO" 5 2903 fi 2904 2905 # If we didn't sleep, we still need to ensure time stamps of config.status and 2906 # generated files are strictly newer. 2907 am_sleep_pid= 2908 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2909 then : 2910 2911 else case e in #( 2912 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2913 am_sleep_pid=$! 2914 ;; 2915 esac 2916 fi 2917 2918 rm -f conftest.file 2919 2920 test "$program_prefix" != NONE && 2921 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2922 # Use a double $ so make ignores it. 2923 test "$program_suffix" != NONE && 2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2925 # Double any \ or $. 2926 # By default was 's,x,x', remove it if useless. 2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2928 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2929 2930 2931 # Expand $ac_aux_dir to an absolute path. 2932 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2933 2934 2935 if test x"${MISSING+set}" != xset; then 2936 MISSING="\${SHELL} '$am_aux_dir/missing'" 2937 fi 2938 # Use eval to expand $SHELL 2939 if eval "$MISSING --is-lightweight"; then 2940 am_missing_run="$MISSING " 2941 else 2942 am_missing_run= 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2944 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2945 fi 2946 2947 if test x"${install_sh+set}" != xset; then 2948 case $am_aux_dir in 2949 *\ * | *\ *) 2950 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2951 *) 2952 install_sh="\${SHELL} $am_aux_dir/install-sh" 2953 esac 2954 fi 2955 2956 # Installed binaries are usually stripped using 'strip' when the user 2957 # run "make install-strip". However 'strip' might not be the right 2958 # tool to use in cross-compilation environments, therefore Automake 2959 # will honor the 'STRIP' environment variable to overrule this program. 2960 if test "$cross_compiling" != no; then 2961 if test -n "$ac_tool_prefix"; then 2962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2963 set dummy ${ac_tool_prefix}strip; ac_word=$2 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965 printf %s "checking for $ac_word... " >&6; } 2966 if test ${ac_cv_prog_STRIP+y} 2967 then : 2968 printf %s "(cached) " >&6 2969 else case e in #( 2970 e) if test -n "$STRIP"; then 2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2972 else 2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974 for as_dir in $PATH 2975 do 2976 IFS=$as_save_IFS 2977 case $as_dir in #((( 2978 '') as_dir=./ ;; 2979 */) ;; 2980 *) as_dir=$as_dir/ ;; 2981 esac 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988 done 2989 done 2990 IFS=$as_save_IFS 2991 2992 fi ;; 2993 esac 2994 fi 2995 STRIP=$ac_cv_prog_STRIP 2996 if test -n "$STRIP"; then 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2998 printf "%s\n" "$STRIP" >&6; } 2999 else 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001 printf "%s\n" "no" >&6; } 3002 fi 3003 3004 3005 fi 3006 if test -z "$ac_cv_prog_STRIP"; then 3007 ac_ct_STRIP=$STRIP 3008 # Extract the first word of "strip", so it can be a program name with args. 3009 set dummy strip; ac_word=$2 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011 printf %s "checking for $ac_word... " >&6; } 3012 if test ${ac_cv_prog_ac_ct_STRIP+y} 3013 then : 3014 printf %s "(cached) " >&6 3015 else case e in #( 3016 e) if test -n "$ac_ct_STRIP"; then 3017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3018 else 3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020 for as_dir in $PATH 3021 do 3022 IFS=$as_save_IFS 3023 case $as_dir in #((( 3024 '') as_dir=./ ;; 3025 */) ;; 3026 *) as_dir=$as_dir/ ;; 3027 esac 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3030 ac_cv_prog_ac_ct_STRIP="strip" 3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034 done 3035 done 3036 IFS=$as_save_IFS 3037 3038 fi ;; 3039 esac 3040 fi 3041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3042 if test -n "$ac_ct_STRIP"; then 3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3044 printf "%s\n" "$ac_ct_STRIP" >&6; } 3045 else 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047 printf "%s\n" "no" >&6; } 3048 fi 3049 3050 if test "x$ac_ct_STRIP" = x; then 3051 STRIP=":" 3052 else 3053 case $cross_compiling:$ac_tool_warned in 3054 yes:) 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3057 ac_tool_warned=yes ;; 3058 esac 3059 STRIP=$ac_ct_STRIP 3060 fi 3061 else 3062 STRIP="$ac_cv_prog_STRIP" 3063 fi 3064 3065 fi 3066 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3067 3068 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3070 printf %s "checking for a race-free mkdir -p... " >&6; } 3071 if test -z "$MKDIR_P"; then 3072 if test ${ac_cv_path_mkdir+y} 3073 then : 3074 printf %s "(cached) " >&6 3075 else case e in #( 3076 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3078 do 3079 IFS=$as_save_IFS 3080 case $as_dir in #((( 3081 '') as_dir=./ ;; 3082 */) ;; 3083 *) as_dir=$as_dir/ ;; 3084 esac 3085 for ac_prog in mkdir gmkdir; do 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3088 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3089 'mkdir ('*'coreutils) '* | \ 3090 *'BusyBox '* | \ 3091 'mkdir (fileutils) '4.1*) 3092 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3093 break 3;; 3094 esac 3095 done 3096 done 3097 done 3098 IFS=$as_save_IFS 3099 ;; 3100 esac 3101 fi 3102 3103 test -d ./--version && rmdir ./--version 3104 if test ${ac_cv_path_mkdir+y}; then 3105 MKDIR_P="$ac_cv_path_mkdir -p" 3106 else 3107 # As a last resort, use plain mkdir -p, 3108 # in the hope it doesn't have the bugs of ancient mkdir. 3109 MKDIR_P='mkdir -p' 3110 fi 3111 fi 3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3113 printf "%s\n" "$MKDIR_P" >&6; } 3114 3115 for ac_prog in gawk mawk nawk awk 3116 do 3117 # Extract the first word of "$ac_prog", so it can be a program name with args. 3118 set dummy $ac_prog; ac_word=$2 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120 printf %s "checking for $ac_word... " >&6; } 3121 if test ${ac_cv_prog_AWK+y} 3122 then : 3123 printf %s "(cached) " >&6 3124 else case e in #( 3125 e) if test -n "$AWK"; then 3126 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3127 else 3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129 for as_dir in $PATH 3130 do 3131 IFS=$as_save_IFS 3132 case $as_dir in #((( 3133 '') as_dir=./ ;; 3134 */) ;; 3135 *) as_dir=$as_dir/ ;; 3136 esac 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3139 ac_cv_prog_AWK="$ac_prog" 3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3141 break 2 3142 fi 3143 done 3144 done 3145 IFS=$as_save_IFS 3146 3147 fi ;; 3148 esac 3149 fi 3150 AWK=$ac_cv_prog_AWK 3151 if test -n "$AWK"; then 3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3153 printf "%s\n" "$AWK" >&6; } 3154 else 3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3156 printf "%s\n" "no" >&6; } 3157 fi 3158 3159 3160 test -n "$AWK" && break 3161 done 3162 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3164 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3165 set x ${MAKE-make} 3166 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3167 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3168 then : 3169 printf %s "(cached) " >&6 3170 else case e in #( 3171 e) cat >conftest.make <<\_ACEOF 3172 SHELL = /bin/sh 3173 all: 3174 @echo '@@@%%%=$(MAKE)=@@@%%%' 3175 _ACEOF 3176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3177 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3178 *@@@%%%=?*=@@@%%%*) 3179 eval ac_cv_prog_make_${ac_make}_set=yes;; 3180 *) 3181 eval ac_cv_prog_make_${ac_make}_set=no;; 3182 esac 3183 rm -f conftest.make ;; 3184 esac 3185 fi 3186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3188 printf "%s\n" "yes" >&6; } 3189 SET_MAKE= 3190 else 3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192 printf "%s\n" "no" >&6; } 3193 SET_MAKE="MAKE=${MAKE-make}" 3194 fi 3195 3196 rm -rf .tst 2>/dev/null 3197 mkdir .tst 2>/dev/null 3198 if test -d .tst; then 3199 am__leading_dot=. 3200 else 3201 am__leading_dot=_ 3202 fi 3203 rmdir .tst 2>/dev/null 3204 3205 AM_DEFAULT_VERBOSITY=1 3206 # Check whether --enable-silent-rules was given. 3207 if test ${enable_silent_rules+y} 3208 then : 3209 enableval=$enable_silent_rules; 3210 fi 3211 3212 am_make=${MAKE-make} 3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3214 printf %s "checking whether $am_make supports nested variables... " >&6; } 3215 if test ${am_cv_make_support_nested_variables+y} 3216 then : 3217 printf %s "(cached) " >&6 3218 else case e in #( 3219 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3220 BAR0=false 3221 BAR1=true 3222 V=1 3223 am__doit: 3224 @$(TRUE) 3225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3226 am_cv_make_support_nested_variables=yes 3227 else 3228 am_cv_make_support_nested_variables=no 3229 fi ;; 3230 esac 3231 fi 3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3233 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3234 AM_BACKSLASH='\' 3235 3236 am__rm_f_notfound= 3237 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3238 then : 3239 3240 else case e in #( 3241 e) am__rm_f_notfound='""' ;; 3242 esac 3243 fi 3244 3245 3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3247 printf %s "checking xargs -n works... " >&6; } 3248 if test ${am_cv_xargs_n_works+y} 3249 then : 3250 printf %s "(cached) " >&6 3251 else case e in #( 3252 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3253 3" 3254 then : 3255 am_cv_xargs_n_works=yes 3256 else case e in #( 3257 e) am_cv_xargs_n_works=no ;; 3258 esac 3259 fi ;; 3260 esac 3261 fi 3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3263 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3264 if test "$am_cv_xargs_n_works" = yes 3265 then : 3266 am__xargs_n='xargs -n' 3267 else case e in #( 3268 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3269 ;; 3270 esac 3271 fi 3272 3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3275 # is not polluted with repeated "-I." 3276 am__isrc=' -I$(srcdir)' 3277 # test to see if srcdir already configured 3278 if test -f $srcdir/config.status; then 3279 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3280 fi 3281 fi 3282 3283 # test whether we have cygpath 3284 if test -z "$CYGPATH_W"; then 3285 if (cygpath --version) >/dev/null 2>/dev/null; then 3286 CYGPATH_W='cygpath -w' 3287 else 3288 CYGPATH_W=echo 3289 fi 3290 fi 3291 3292 3293 # Define the identity of the package. 3294 PACKAGE='xlogo' 3295 VERSION='1.0.7' 3296 3297 3298 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3299 3300 3301 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3302 3303 # Some tools Automake needs. 3304 3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3306 3307 3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3309 3310 3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3312 3313 3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3315 3316 3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3318 3319 # For better backward compatibility. To be removed once Automake 1.9.x 3320 # dies out for good. For more background, see: 3321 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3322 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3323 mkdir_p='$(MKDIR_P)' 3324 3325 # We need awk for the "check" target (and possibly the TAP driver). The 3326 # system "awk" is bad on some platforms. 3327 # Always define AMTAR for backward compatibility. Yes, it's still used 3328 # in the wild :-( We should find a proper way to deprecate it ... 3329 AMTAR='$${TAR-tar}' 3330 3331 3332 # We'll loop over all known methods to create a tar archive until one works. 3333 _am_tools='gnutar pax cpio none' 3334 3335 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3336 3337 3338 3339 3340 3341 # Variables for tags utilities; see am/tags.am 3342 if test -z "$CTAGS"; then 3343 CTAGS=ctags 3344 fi 3345 3346 if test -z "$ETAGS"; then 3347 ETAGS=etags 3348 fi 3349 3350 if test -z "$CSCOPE"; then 3351 CSCOPE=cscope 3352 fi 3353 3354 3355 3356 3357 3358 3359 3360 3361 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 DEPDIR="${am__leading_dot}deps" 3383 3384 ac_config_commands="$ac_config_commands depfiles" 3385 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3387 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3388 cat > confinc.mk << 'END' 3389 am__doit: 3390 @echo this is the am__doit target >confinc.out 3391 .PHONY: am__doit 3392 END 3393 am__include="#" 3394 am__quote= 3395 # BSD make does it like this. 3396 echo '.include "confinc.mk" # ignored' > confmf.BSD 3397 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3398 echo 'include confinc.mk # ignored' > confmf.GNU 3399 _am_result=no 3400 for s in GNU BSD; do 3401 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3402 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3403 ac_status=$? 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } 3406 case $?:`cat confinc.out 2>/dev/null` in #( 3407 '0:this is the am__doit target') : 3408 case $s in #( 3409 BSD) : 3410 am__include='.include' am__quote='"' ;; #( 3411 *) : 3412 am__include='include' am__quote='' ;; 3413 esac ;; #( 3414 *) : 3415 ;; 3416 esac 3417 if test "$am__include" != "#"; then 3418 _am_result="yes ($s style)" 3419 break 3420 fi 3421 done 3422 rm -f confinc.* confmf.* 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3424 printf "%s\n" "${_am_result}" >&6; } 3425 3426 # Check whether --enable-dependency-tracking was given. 3427 if test ${enable_dependency_tracking+y} 3428 then : 3429 enableval=$enable_dependency_tracking; 3430 fi 3431 3432 if test "x$enable_dependency_tracking" != xno; then 3433 am_depcomp="$ac_aux_dir/depcomp" 3434 AMDEPBACKSLASH='\' 3435 am__nodep='_no' 3436 fi 3437 if test "x$enable_dependency_tracking" != xno; then 3438 AMDEP_TRUE= 3439 AMDEP_FALSE='#' 3440 else 3441 AMDEP_TRUE='#' 3442 AMDEP_FALSE= 3443 fi 3444 3445 3446 ac_ext=c 3447 ac_cpp='$CPP $CPPFLAGS' 3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3451 if test -n "$ac_tool_prefix"; then 3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3455 printf %s "checking for $ac_word... " >&6; } 3456 if test ${ac_cv_prog_CC+y} 3457 then : 3458 printf %s "(cached) " >&6 3459 else case e in #( 3460 e) if test -n "$CC"; then 3461 ac_cv_prog_CC="$CC" # Let the user override the test. 3462 else 3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464 for as_dir in $PATH 3465 do 3466 IFS=$as_save_IFS 3467 case $as_dir in #((( 3468 '') as_dir=./ ;; 3469 */) ;; 3470 *) as_dir=$as_dir/ ;; 3471 esac 3472 for ac_exec_ext in '' $ac_executable_extensions; do 3473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3474 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3476 break 2 3477 fi 3478 done 3479 done 3480 IFS=$as_save_IFS 3481 3482 fi ;; 3483 esac 3484 fi 3485 CC=$ac_cv_prog_CC 3486 if test -n "$CC"; then 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3488 printf "%s\n" "$CC" >&6; } 3489 else 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491 printf "%s\n" "no" >&6; } 3492 fi 3493 3494 3495 fi 3496 if test -z "$ac_cv_prog_CC"; then 3497 ac_ct_CC=$CC 3498 # Extract the first word of "gcc", so it can be a program name with args. 3499 set dummy gcc; ac_word=$2 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 printf %s "checking for $ac_word... " >&6; } 3502 if test ${ac_cv_prog_ac_ct_CC+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else case e in #( 3506 e) if test -n "$ac_ct_CC"; then 3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3508 else 3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510 for as_dir in $PATH 3511 do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_ac_ct_CC="gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524 done 3525 done 3526 IFS=$as_save_IFS 3527 3528 fi ;; 3529 esac 3530 fi 3531 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3532 if test -n "$ac_ct_CC"; then 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3534 printf "%s\n" "$ac_ct_CC" >&6; } 3535 else 3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537 printf "%s\n" "no" >&6; } 3538 fi 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544 yes:) 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547 ac_tool_warned=yes ;; 3548 esac 3549 CC=$ac_ct_CC 3550 fi 3551 else 3552 CC="$ac_cv_prog_CC" 3553 fi 3554 3555 if test -z "$CC"; then 3556 if test -n "$ac_tool_prefix"; then 3557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3558 set dummy ${ac_tool_prefix}cc; ac_word=$2 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560 printf %s "checking for $ac_word... " >&6; } 3561 if test ${ac_cv_prog_CC+y} 3562 then : 3563 printf %s "(cached) " >&6 3564 else case e in #( 3565 e) if test -n "$CC"; then 3566 ac_cv_prog_CC="$CC" # Let the user override the test. 3567 else 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569 for as_dir in $PATH 3570 do 3571 IFS=$as_save_IFS 3572 case $as_dir in #((( 3573 '') as_dir=./ ;; 3574 */) ;; 3575 *) as_dir=$as_dir/ ;; 3576 esac 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="${ac_tool_prefix}cc" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583 done 3584 done 3585 IFS=$as_save_IFS 3586 3587 fi ;; 3588 esac 3589 fi 3590 CC=$ac_cv_prog_CC 3591 if test -n "$CC"; then 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593 printf "%s\n" "$CC" >&6; } 3594 else 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596 printf "%s\n" "no" >&6; } 3597 fi 3598 3599 3600 fi 3601 fi 3602 if test -z "$CC"; then 3603 # Extract the first word of "cc", so it can be a program name with args. 3604 set dummy cc; ac_word=$2 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606 printf %s "checking for $ac_word... " >&6; } 3607 if test ${ac_cv_prog_CC+y} 3608 then : 3609 printf %s "(cached) " >&6 3610 else case e in #( 3611 e) if test -n "$CC"; then 3612 ac_cv_prog_CC="$CC" # Let the user override the test. 3613 else 3614 ac_prog_rejected=no 3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616 for as_dir in $PATH 3617 do 3618 IFS=$as_save_IFS 3619 case $as_dir in #((( 3620 '') as_dir=./ ;; 3621 */) ;; 3622 *) as_dir=$as_dir/ ;; 3623 esac 3624 for ac_exec_ext in '' $ac_executable_extensions; do 3625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3626 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3627 ac_prog_rejected=yes 3628 continue 3629 fi 3630 ac_cv_prog_CC="cc" 3631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3632 break 2 3633 fi 3634 done 3635 done 3636 IFS=$as_save_IFS 3637 3638 if test $ac_prog_rejected = yes; then 3639 # We found a bogon in the path, so make sure we never use it. 3640 set dummy $ac_cv_prog_CC 3641 shift 3642 if test $# != 0; then 3643 # We chose a different compiler from the bogus one. 3644 # However, it has the same basename, so the bogon will be chosen 3645 # first if we set CC to just the basename; use the full file name. 3646 shift 3647 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3648 fi 3649 fi 3650 fi ;; 3651 esac 3652 fi 3653 CC=$ac_cv_prog_CC 3654 if test -n "$CC"; then 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3656 printf "%s\n" "$CC" >&6; } 3657 else 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3659 printf "%s\n" "no" >&6; } 3660 fi 3661 3662 3663 fi 3664 if test -z "$CC"; then 3665 if test -n "$ac_tool_prefix"; then 3666 for ac_prog in cl.exe 3667 do 3668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3671 printf %s "checking for $ac_word... " >&6; } 3672 if test ${ac_cv_prog_CC+y} 3673 then : 3674 printf %s "(cached) " >&6 3675 else case e in #( 3676 e) if test -n "$CC"; then 3677 ac_cv_prog_CC="$CC" # Let the user override the test. 3678 else 3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680 for as_dir in $PATH 3681 do 3682 IFS=$as_save_IFS 3683 case $as_dir in #((( 3684 '') as_dir=./ ;; 3685 */) ;; 3686 *) as_dir=$as_dir/ ;; 3687 esac 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3692 break 2 3693 fi 3694 done 3695 done 3696 IFS=$as_save_IFS 3697 3698 fi ;; 3699 esac 3700 fi 3701 CC=$ac_cv_prog_CC 3702 if test -n "$CC"; then 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3704 printf "%s\n" "$CC" >&6; } 3705 else 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707 printf "%s\n" "no" >&6; } 3708 fi 3709 3710 3711 test -n "$CC" && break 3712 done 3713 fi 3714 if test -z "$CC"; then 3715 ac_ct_CC=$CC 3716 for ac_prog in cl.exe 3717 do 3718 # Extract the first word of "$ac_prog", so it can be a program name with args. 3719 set dummy $ac_prog; ac_word=$2 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721 printf %s "checking for $ac_word... " >&6; } 3722 if test ${ac_cv_prog_ac_ct_CC+y} 3723 then : 3724 printf %s "(cached) " >&6 3725 else case e in #( 3726 e) if test -n "$ac_ct_CC"; then 3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3728 else 3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3730 for as_dir in $PATH 3731 do 3732 IFS=$as_save_IFS 3733 case $as_dir in #((( 3734 '') as_dir=./ ;; 3735 */) ;; 3736 *) as_dir=$as_dir/ ;; 3737 esac 3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3740 ac_cv_prog_ac_ct_CC="$ac_prog" 3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3742 break 2 3743 fi 3744 done 3745 done 3746 IFS=$as_save_IFS 3747 3748 fi ;; 3749 esac 3750 fi 3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3752 if test -n "$ac_ct_CC"; then 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3754 printf "%s\n" "$ac_ct_CC" >&6; } 3755 else 3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3757 printf "%s\n" "no" >&6; } 3758 fi 3759 3760 3761 test -n "$ac_ct_CC" && break 3762 done 3763 3764 if test "x$ac_ct_CC" = x; then 3765 CC="" 3766 else 3767 case $cross_compiling:$ac_tool_warned in 3768 yes:) 3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3771 ac_tool_warned=yes ;; 3772 esac 3773 CC=$ac_ct_CC 3774 fi 3775 fi 3776 3777 fi 3778 if test -z "$CC"; then 3779 if test -n "$ac_tool_prefix"; then 3780 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3781 set dummy ${ac_tool_prefix}clang; ac_word=$2 3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783 printf %s "checking for $ac_word... " >&6; } 3784 if test ${ac_cv_prog_CC+y} 3785 then : 3786 printf %s "(cached) " >&6 3787 else case e in #( 3788 e) if test -n "$CC"; then 3789 ac_cv_prog_CC="$CC" # Let the user override the test. 3790 else 3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792 for as_dir in $PATH 3793 do 3794 IFS=$as_save_IFS 3795 case $as_dir in #((( 3796 '') as_dir=./ ;; 3797 */) ;; 3798 *) as_dir=$as_dir/ ;; 3799 esac 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3802 ac_cv_prog_CC="${ac_tool_prefix}clang" 3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3804 break 2 3805 fi 3806 done 3807 done 3808 IFS=$as_save_IFS 3809 3810 fi ;; 3811 esac 3812 fi 3813 CC=$ac_cv_prog_CC 3814 if test -n "$CC"; then 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3816 printf "%s\n" "$CC" >&6; } 3817 else 3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3819 printf "%s\n" "no" >&6; } 3820 fi 3821 3822 3823 fi 3824 if test -z "$ac_cv_prog_CC"; then 3825 ac_ct_CC=$CC 3826 # Extract the first word of "clang", so it can be a program name with args. 3827 set dummy clang; ac_word=$2 3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3829 printf %s "checking for $ac_word... " >&6; } 3830 if test ${ac_cv_prog_ac_ct_CC+y} 3831 then : 3832 printf %s "(cached) " >&6 3833 else case e in #( 3834 e) if test -n "$ac_ct_CC"; then 3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3836 else 3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838 for as_dir in $PATH 3839 do 3840 IFS=$as_save_IFS 3841 case $as_dir in #((( 3842 '') as_dir=./ ;; 3843 */) ;; 3844 *) as_dir=$as_dir/ ;; 3845 esac 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3848 ac_cv_prog_ac_ct_CC="clang" 3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3850 break 2 3851 fi 3852 done 3853 done 3854 IFS=$as_save_IFS 3855 3856 fi ;; 3857 esac 3858 fi 3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3860 if test -n "$ac_ct_CC"; then 3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3862 printf "%s\n" "$ac_ct_CC" >&6; } 3863 else 3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3865 printf "%s\n" "no" >&6; } 3866 fi 3867 3868 if test "x$ac_ct_CC" = x; then 3869 CC="" 3870 else 3871 case $cross_compiling:$ac_tool_warned in 3872 yes:) 3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3875 ac_tool_warned=yes ;; 3876 esac 3877 CC=$ac_ct_CC 3878 fi 3879 else 3880 CC="$ac_cv_prog_CC" 3881 fi 3882 3883 fi 3884 3885 3886 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3887 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3888 as_fn_error $? "no acceptable C compiler found in \$PATH 3889 See 'config.log' for more details" "$LINENO" 5; } 3890 3891 # Provide some information about the compiler. 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3893 set X $ac_compile 3894 ac_compiler=$2 3895 for ac_option in --version -v -V -qversion -version; do 3896 { { ac_try="$ac_compiler $ac_option >&5" 3897 case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900 esac 3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902 printf "%s\n" "$ac_try_echo"; } >&5 3903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3904 ac_status=$? 3905 if test -s conftest.err; then 3906 sed '10a\ 3907 ... rest of stderr output deleted ... 3908 10q' conftest.err >conftest.er1 3909 cat conftest.er1 >&5 3910 fi 3911 rm -f conftest.er1 conftest.err 3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; } 3914 done 3915 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917 /* end confdefs.h. */ 3918 3919 int 3920 main (void) 3921 { 3922 3923 ; 3924 return 0; 3925 } 3926 _ACEOF 3927 ac_clean_files_save=$ac_clean_files 3928 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3929 # Try to create an executable without -o first, disregard a.out. 3930 # It will help us diagnose broken compilers, and finding out an intuition 3931 # of exeext. 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3933 printf %s "checking whether the C compiler works... " >&6; } 3934 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3935 3936 # The possible output files: 3937 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3938 3939 ac_rmfiles= 3940 for ac_file in $ac_files 3941 do 3942 case $ac_file in 3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3944 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3945 esac 3946 done 3947 rm -f $ac_rmfiles 3948 3949 if { { ac_try="$ac_link_default" 3950 case "(($ac_try" in 3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3952 *) ac_try_echo=$ac_try;; 3953 esac 3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3955 printf "%s\n" "$ac_try_echo"; } >&5 3956 (eval "$ac_link_default") 2>&5 3957 ac_status=$? 3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3959 test $ac_status = 0; } 3960 then : 3961 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3962 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3963 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3964 # so that the user can short-circuit this test for compilers unknown to 3965 # Autoconf. 3966 for ac_file in $ac_files '' 3967 do 3968 test -f "$ac_file" || continue 3969 case $ac_file in 3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3971 ;; 3972 [ab].out ) 3973 # We found the default executable, but exeext='' is most 3974 # certainly right. 3975 break;; 3976 *.* ) 3977 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3978 then :; else 3979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3980 fi 3981 # We set ac_cv_exeext here because the later test for it is not 3982 # safe: cross compilers may not add the suffix if given an '-o' 3983 # argument, so we may need to know it at that point already. 3984 # Even if this section looks crufty: it has the advantage of 3985 # actually working. 3986 break;; 3987 * ) 3988 break;; 3989 esac 3990 done 3991 test "$ac_cv_exeext" = no && ac_cv_exeext= 3992 3993 else case e in #( 3994 e) ac_file='' ;; 3995 esac 3996 fi 3997 if test -z "$ac_file" 3998 then : 3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4000 printf "%s\n" "no" >&6; } 4001 printf "%s\n" "$as_me: failed program was:" >&5 4002 sed 's/^/| /' conftest.$ac_ext >&5 4003 4004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4005 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4006 as_fn_error 77 "C compiler cannot create executables 4007 See 'config.log' for more details" "$LINENO" 5; } 4008 else case e in #( 4009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4010 printf "%s\n" "yes" >&6; } ;; 4011 esac 4012 fi 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4014 printf %s "checking for C compiler default output file name... " >&6; } 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4016 printf "%s\n" "$ac_file" >&6; } 4017 ac_exeext=$ac_cv_exeext 4018 4019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4020 ac_clean_files=$ac_clean_files_save 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4022 printf %s "checking for suffix of executables... " >&6; } 4023 if { { ac_try="$ac_link" 4024 case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027 esac 4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029 printf "%s\n" "$ac_try_echo"; } >&5 4030 (eval "$ac_link") 2>&5 4031 ac_status=$? 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; } 4034 then : 4035 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4036 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4037 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4038 # 'rm'. 4039 for ac_file in conftest.exe conftest conftest.*; do 4040 test -f "$ac_file" || continue 4041 case $ac_file in 4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4044 break;; 4045 * ) break;; 4046 esac 4047 done 4048 else case e in #( 4049 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4051 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4052 See 'config.log' for more details" "$LINENO" 5; } ;; 4053 esac 4054 fi 4055 rm -f conftest conftest$ac_cv_exeext 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4057 printf "%s\n" "$ac_cv_exeext" >&6; } 4058 4059 rm -f conftest.$ac_ext 4060 EXEEXT=$ac_cv_exeext 4061 ac_exeext=$EXEEXT 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063 /* end confdefs.h. */ 4064 #include <stdio.h> 4065 int 4066 main (void) 4067 { 4068 FILE *f = fopen ("conftest.out", "w"); 4069 if (!f) 4070 return 1; 4071 return ferror (f) || fclose (f) != 0; 4072 4073 ; 4074 return 0; 4075 } 4076 _ACEOF 4077 ac_clean_files="$ac_clean_files conftest.out" 4078 # Check that the compiler produces executables we can run. If not, either 4079 # the compiler is broken, or we cross compile. 4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4081 printf %s "checking whether we are cross compiling... " >&6; } 4082 if test "$cross_compiling" != yes; then 4083 { { ac_try="$ac_link" 4084 case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087 esac 4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089 printf "%s\n" "$ac_try_echo"; } >&5 4090 (eval "$ac_link") 2>&5 4091 ac_status=$? 4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; } 4094 if { ac_try='./conftest$ac_cv_exeext' 4095 { { case "(($ac_try" in 4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4097 *) ac_try_echo=$ac_try;; 4098 esac 4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4100 printf "%s\n" "$ac_try_echo"; } >&5 4101 (eval "$ac_try") 2>&5 4102 ac_status=$? 4103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4104 test $ac_status = 0; }; }; then 4105 cross_compiling=no 4106 else 4107 if test "$cross_compiling" = maybe; then 4108 cross_compiling=yes 4109 else 4110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4112 as_fn_error 77 "cannot run C compiled programs. 4113 If you meant to cross compile, use '--host'. 4114 See 'config.log' for more details" "$LINENO" 5; } 4115 fi 4116 fi 4117 fi 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4119 printf "%s\n" "$cross_compiling" >&6; } 4120 4121 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4122 conftest.o conftest.obj conftest.out 4123 ac_clean_files=$ac_clean_files_save 4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4125 printf %s "checking for suffix of object files... " >&6; } 4126 if test ${ac_cv_objext+y} 4127 then : 4128 printf %s "(cached) " >&6 4129 else case e in #( 4130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131 /* end confdefs.h. */ 4132 4133 int 4134 main (void) 4135 { 4136 4137 ; 4138 return 0; 4139 } 4140 _ACEOF 4141 rm -f conftest.o conftest.obj 4142 if { { ac_try="$ac_compile" 4143 case "(($ac_try" in 4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4145 *) ac_try_echo=$ac_try;; 4146 esac 4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4148 printf "%s\n" "$ac_try_echo"; } >&5 4149 (eval "$ac_compile") 2>&5 4150 ac_status=$? 4151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4152 test $ac_status = 0; } 4153 then : 4154 for ac_file in conftest.o conftest.obj conftest.*; do 4155 test -f "$ac_file" || continue; 4156 case $ac_file in 4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4159 break;; 4160 esac 4161 done 4162 else case e in #( 4163 e) printf "%s\n" "$as_me: failed program was:" >&5 4164 sed 's/^/| /' conftest.$ac_ext >&5 4165 4166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4167 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4168 as_fn_error $? "cannot compute suffix of object files: cannot compile 4169 See 'config.log' for more details" "$LINENO" 5; } ;; 4170 esac 4171 fi 4172 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4173 esac 4174 fi 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4176 printf "%s\n" "$ac_cv_objext" >&6; } 4177 OBJEXT=$ac_cv_objext 4178 ac_objext=$OBJEXT 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4180 printf %s "checking whether the compiler supports GNU C... " >&6; } 4181 if test ${ac_cv_c_compiler_gnu+y} 4182 then : 4183 printf %s "(cached) " >&6 4184 else case e in #( 4185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186 /* end confdefs.h. */ 4187 4188 int 4189 main (void) 4190 { 4191 #ifndef __GNUC__ 4192 choke me 4193 #endif 4194 4195 ; 4196 return 0; 4197 } 4198 _ACEOF 4199 if ac_fn_c_try_compile "$LINENO" 4200 then : 4201 ac_compiler_gnu=yes 4202 else case e in #( 4203 e) ac_compiler_gnu=no ;; 4204 esac 4205 fi 4206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4207 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4208 ;; 4209 esac 4210 fi 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4212 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4214 4215 if test $ac_compiler_gnu = yes; then 4216 GCC=yes 4217 else 4218 GCC= 4219 fi 4220 ac_test_CFLAGS=${CFLAGS+y} 4221 ac_save_CFLAGS=$CFLAGS 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4223 printf %s "checking whether $CC accepts -g... " >&6; } 4224 if test ${ac_cv_prog_cc_g+y} 4225 then : 4226 printf %s "(cached) " >&6 4227 else case e in #( 4228 e) ac_save_c_werror_flag=$ac_c_werror_flag 4229 ac_c_werror_flag=yes 4230 ac_cv_prog_cc_g=no 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 4235 int 4236 main (void) 4237 { 4238 4239 ; 4240 return 0; 4241 } 4242 _ACEOF 4243 if ac_fn_c_try_compile "$LINENO" 4244 then : 4245 ac_cv_prog_cc_g=yes 4246 else case e in #( 4247 e) CFLAGS="" 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249 /* end confdefs.h. */ 4250 4251 int 4252 main (void) 4253 { 4254 4255 ; 4256 return 0; 4257 } 4258 _ACEOF 4259 if ac_fn_c_try_compile "$LINENO" 4260 then : 4261 4262 else case e in #( 4263 e) ac_c_werror_flag=$ac_save_c_werror_flag 4264 CFLAGS="-g" 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266 /* end confdefs.h. */ 4267 4268 int 4269 main (void) 4270 { 4271 4272 ; 4273 return 0; 4274 } 4275 _ACEOF 4276 if ac_fn_c_try_compile "$LINENO" 4277 then : 4278 ac_cv_prog_cc_g=yes 4279 fi 4280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4281 esac 4282 fi 4283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4284 esac 4285 fi 4286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4287 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4288 esac 4289 fi 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4291 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4292 if test $ac_test_CFLAGS; then 4293 CFLAGS=$ac_save_CFLAGS 4294 elif test $ac_cv_prog_cc_g = yes; then 4295 if test "$GCC" = yes; then 4296 CFLAGS="-g -O2" 4297 else 4298 CFLAGS="-g" 4299 fi 4300 else 4301 if test "$GCC" = yes; then 4302 CFLAGS="-O2" 4303 else 4304 CFLAGS= 4305 fi 4306 fi 4307 ac_prog_cc_stdc=no 4308 if test x$ac_prog_cc_stdc = xno 4309 then : 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4311 printf %s "checking for $CC option to enable C11 features... " >&6; } 4312 if test ${ac_cv_prog_cc_c11+y} 4313 then : 4314 printf %s "(cached) " >&6 4315 else case e in #( 4316 e) ac_cv_prog_cc_c11=no 4317 ac_save_CC=$CC 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319 /* end confdefs.h. */ 4320 $ac_c_conftest_c11_program 4321 _ACEOF 4322 for ac_arg in '' -std=gnu11 4323 do 4324 CC="$ac_save_CC $ac_arg" 4325 if ac_fn_c_try_compile "$LINENO" 4326 then : 4327 ac_cv_prog_cc_c11=$ac_arg 4328 fi 4329 rm -f core conftest.err conftest.$ac_objext conftest.beam 4330 test "x$ac_cv_prog_cc_c11" != "xno" && break 4331 done 4332 rm -f conftest.$ac_ext 4333 CC=$ac_save_CC ;; 4334 esac 4335 fi 4336 4337 if test "x$ac_cv_prog_cc_c11" = xno 4338 then : 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4340 printf "%s\n" "unsupported" >&6; } 4341 else case e in #( 4342 e) if test "x$ac_cv_prog_cc_c11" = x 4343 then : 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4345 printf "%s\n" "none needed" >&6; } 4346 else case e in #( 4347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4348 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4349 CC="$CC $ac_cv_prog_cc_c11" ;; 4350 esac 4351 fi 4352 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4353 ac_prog_cc_stdc=c11 ;; 4354 esac 4355 fi 4356 fi 4357 if test x$ac_prog_cc_stdc = xno 4358 then : 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4360 printf %s "checking for $CC option to enable C99 features... " >&6; } 4361 if test ${ac_cv_prog_cc_c99+y} 4362 then : 4363 printf %s "(cached) " >&6 4364 else case e in #( 4365 e) ac_cv_prog_cc_c99=no 4366 ac_save_CC=$CC 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368 /* end confdefs.h. */ 4369 $ac_c_conftest_c99_program 4370 _ACEOF 4371 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4372 do 4373 CC="$ac_save_CC $ac_arg" 4374 if ac_fn_c_try_compile "$LINENO" 4375 then : 4376 ac_cv_prog_cc_c99=$ac_arg 4377 fi 4378 rm -f core conftest.err conftest.$ac_objext conftest.beam 4379 test "x$ac_cv_prog_cc_c99" != "xno" && break 4380 done 4381 rm -f conftest.$ac_ext 4382 CC=$ac_save_CC ;; 4383 esac 4384 fi 4385 4386 if test "x$ac_cv_prog_cc_c99" = xno 4387 then : 4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4389 printf "%s\n" "unsupported" >&6; } 4390 else case e in #( 4391 e) if test "x$ac_cv_prog_cc_c99" = x 4392 then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4394 printf "%s\n" "none needed" >&6; } 4395 else case e in #( 4396 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4397 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4398 CC="$CC $ac_cv_prog_cc_c99" ;; 4399 esac 4400 fi 4401 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4402 ac_prog_cc_stdc=c99 ;; 4403 esac 4404 fi 4405 fi 4406 if test x$ac_prog_cc_stdc = xno 4407 then : 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4409 printf %s "checking for $CC option to enable C89 features... " >&6; } 4410 if test ${ac_cv_prog_cc_c89+y} 4411 then : 4412 printf %s "(cached) " >&6 4413 else case e in #( 4414 e) ac_cv_prog_cc_c89=no 4415 ac_save_CC=$CC 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417 /* end confdefs.h. */ 4418 $ac_c_conftest_c89_program 4419 _ACEOF 4420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4421 do 4422 CC="$ac_save_CC $ac_arg" 4423 if ac_fn_c_try_compile "$LINENO" 4424 then : 4425 ac_cv_prog_cc_c89=$ac_arg 4426 fi 4427 rm -f core conftest.err conftest.$ac_objext conftest.beam 4428 test "x$ac_cv_prog_cc_c89" != "xno" && break 4429 done 4430 rm -f conftest.$ac_ext 4431 CC=$ac_save_CC ;; 4432 esac 4433 fi 4434 4435 if test "x$ac_cv_prog_cc_c89" = xno 4436 then : 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4438 printf "%s\n" "unsupported" >&6; } 4439 else case e in #( 4440 e) if test "x$ac_cv_prog_cc_c89" = x 4441 then : 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4443 printf "%s\n" "none needed" >&6; } 4444 else case e in #( 4445 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4446 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4447 CC="$CC $ac_cv_prog_cc_c89" ;; 4448 esac 4449 fi 4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4451 ac_prog_cc_stdc=c89 ;; 4452 esac 4453 fi 4454 fi 4455 4456 ac_ext=c 4457 ac_cpp='$CPP $CPPFLAGS' 4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4461 4462 4463 ac_ext=c 4464 ac_cpp='$CPP $CPPFLAGS' 4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4469 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4470 if test ${am_cv_prog_cc_c_o+y} 4471 then : 4472 printf %s "(cached) " >&6 4473 else case e in #( 4474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475 /* end confdefs.h. */ 4476 4477 int 4478 main (void) 4479 { 4480 4481 ; 4482 return 0; 4483 } 4484 _ACEOF 4485 # Make sure it works both with $CC and with simple cc. 4486 # Following AC_PROG_CC_C_O, we do the test twice because some 4487 # compilers refuse to overwrite an existing .o file with -o, 4488 # though they will create one. 4489 am_cv_prog_cc_c_o=yes 4490 for am_i in 1 2; do 4491 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4492 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4493 ac_status=$? 4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4495 (exit $ac_status); } \ 4496 && test -f conftest2.$ac_objext; then 4497 : OK 4498 else 4499 am_cv_prog_cc_c_o=no 4500 break 4501 fi 4502 done 4503 rm -f core conftest* 4504 unset am_i ;; 4505 esac 4506 fi 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4508 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4509 if test "$am_cv_prog_cc_c_o" != yes; then 4510 # Losing compiler, so override with the script. 4511 # FIXME: It is wrong to rewrite CC. 4512 # But if we don't then we get into trouble of one sort or another. 4513 # A longer-term fix would be to have automake use am__CC in this case, 4514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4515 CC="$am_aux_dir/compile $CC" 4516 fi 4517 ac_ext=c 4518 ac_cpp='$CPP $CPPFLAGS' 4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4522 4523 4524 depcc="$CC" am_compiler_list= 4525 4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4527 printf %s "checking dependency style of $depcc... " >&6; } 4528 if test ${am_cv_CC_dependencies_compiler_type+y} 4529 then : 4530 printf %s "(cached) " >&6 4531 else case e in #( 4532 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4533 # We make a subdir and do the tests there. Otherwise we can end up 4534 # making bogus files that we don't know about and never remove. For 4535 # instance it was reported that on HP-UX the gcc test will end up 4536 # making a dummy file named 'D' -- because '-MD' means "put the output 4537 # in D". 4538 rm -rf conftest.dir 4539 mkdir conftest.dir 4540 # Copy depcomp to subdir because otherwise we won't find it if we're 4541 # using a relative directory. 4542 cp "$am_depcomp" conftest.dir 4543 cd conftest.dir 4544 # We will build objects and dependencies in a subdirectory because 4545 # it helps to detect inapplicable dependency modes. For instance 4546 # both Tru64's cc and ICC support -MD to output dependencies as a 4547 # side effect of compilation, but ICC will put the dependencies in 4548 # the current directory while Tru64 will put them in the object 4549 # directory. 4550 mkdir sub 4551 4552 am_cv_CC_dependencies_compiler_type=none 4553 if test "$am_compiler_list" = ""; then 4554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4555 fi 4556 am__universal=false 4557 case " $depcc " in #( 4558 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4559 esac 4560 4561 for depmode in $am_compiler_list; do 4562 # Setup a source with many dependencies, because some compilers 4563 # like to wrap large dependency lists on column 80 (with \), and 4564 # we should not choose a depcomp mode which is confused by this. 4565 # 4566 # We need to recreate these files for each test, as the compiler may 4567 # overwrite some of them when testing with obscure command lines. 4568 # This happens at least with the AIX C compiler. 4569 : > sub/conftest.c 4570 for i in 1 2 3 4 5 6; do 4571 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4573 # Solaris 10 /bin/sh. 4574 echo '/* dummy */' > sub/conftst$i.h 4575 done 4576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4577 4578 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4579 # mode. It turns out that the SunPro C++ compiler does not properly 4580 # handle '-M -o', and we need to detect this. Also, some Intel 4581 # versions had trouble with output in subdirs. 4582 am__obj=sub/conftest.${OBJEXT-o} 4583 am__minus_obj="-o $am__obj" 4584 case $depmode in 4585 gcc) 4586 # This depmode causes a compiler race in universal mode. 4587 test "$am__universal" = false || continue 4588 ;; 4589 nosideeffect) 4590 # After this tag, mechanisms are not by side-effect, so they'll 4591 # only be used when explicitly requested. 4592 if test "x$enable_dependency_tracking" = xyes; then 4593 continue 4594 else 4595 break 4596 fi 4597 ;; 4598 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4599 # This compiler won't grok '-c -o', but also, the minuso test has 4600 # not run yet. These depmodes are late enough in the game, and 4601 # so weak that their functioning should not be impacted. 4602 am__obj=conftest.${OBJEXT-o} 4603 am__minus_obj= 4604 ;; 4605 none) break ;; 4606 esac 4607 if depmode=$depmode \ 4608 source=sub/conftest.c object=$am__obj \ 4609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4611 >/dev/null 2>conftest.err && 4612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4616 # icc doesn't choke on unknown options, it will just issue warnings 4617 # or remarks (even with -Werror). So we grep stderr for any message 4618 # that says an option was ignored or not supported. 4619 # When given -MP, icc 7.0 and 7.1 complain thus: 4620 # icc: Command line warning: ignoring option '-M'; no argument required 4621 # The diagnosis changed in icc 8.0: 4622 # icc: Command line remark: option '-MP' not supported 4623 if (grep 'ignoring option' conftest.err || 4624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4625 am_cv_CC_dependencies_compiler_type=$depmode 4626 break 4627 fi 4628 fi 4629 done 4630 4631 cd .. 4632 rm -rf conftest.dir 4633 else 4634 am_cv_CC_dependencies_compiler_type=none 4635 fi 4636 ;; 4637 esac 4638 fi 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4640 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4642 4643 if 4644 test "x$enable_dependency_tracking" != xno \ 4645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4646 am__fastdepCC_TRUE= 4647 am__fastdepCC_FALSE='#' 4648 else 4649 am__fastdepCC_TRUE='#' 4650 am__fastdepCC_FALSE= 4651 fi 4652 4653 4654 4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4656 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4657 if test ${ac_cv_c_undeclared_builtin_options+y} 4658 then : 4659 printf %s "(cached) " >&6 4660 else case e in #( 4661 e) ac_save_CFLAGS=$CFLAGS 4662 ac_cv_c_undeclared_builtin_options='cannot detect' 4663 for ac_arg in '' -fno-builtin; do 4664 CFLAGS="$ac_save_CFLAGS $ac_arg" 4665 # This test program should *not* compile successfully. 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667 /* end confdefs.h. */ 4668 4669 int 4670 main (void) 4671 { 4672 (void) strchr; 4673 ; 4674 return 0; 4675 } 4676 _ACEOF 4677 if ac_fn_c_try_compile "$LINENO" 4678 then : 4679 4680 else case e in #( 4681 e) # This test program should compile successfully. 4682 # No library function is consistently available on 4683 # freestanding implementations, so test against a dummy 4684 # declaration. Include always-available headers on the 4685 # off chance that they somehow elicit warnings. 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687 /* end confdefs.h. */ 4688 #include <float.h> 4689 #include <limits.h> 4690 #include <stdarg.h> 4691 #include <stddef.h> 4692 extern void ac_decl (int, char *); 4693 4694 int 4695 main (void) 4696 { 4697 (void) ac_decl (0, (char *) 0); 4698 (void) ac_decl; 4699 4700 ; 4701 return 0; 4702 } 4703 _ACEOF 4704 if ac_fn_c_try_compile "$LINENO" 4705 then : 4706 if test x"$ac_arg" = x 4707 then : 4708 ac_cv_c_undeclared_builtin_options='none needed' 4709 else case e in #( 4710 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4711 esac 4712 fi 4713 break 4714 fi 4715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4716 esac 4717 fi 4718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4719 done 4720 CFLAGS=$ac_save_CFLAGS 4721 ;; 4722 esac 4723 fi 4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4725 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4726 case $ac_cv_c_undeclared_builtin_options in #( 4727 'cannot detect') : 4728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4729 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4730 as_fn_error $? "cannot make $CC report undeclared builtins 4731 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4732 'none needed') : 4733 ac_c_undeclared_builtin_options='' ;; #( 4734 *) : 4735 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4736 esac 4737 4738 ac_header= ac_cache= 4739 for ac_item in $ac_header_c_list 4740 do 4741 if test $ac_cache; then 4742 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4743 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4744 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4745 fi 4746 ac_header= ac_cache= 4747 elif test $ac_header; then 4748 ac_cache=$ac_item 4749 else 4750 ac_header=$ac_item 4751 fi 4752 done 4753 4754 4755 4756 4757 4758 4759 4760 4761 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4762 then : 4763 4764 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4765 4766 fi 4767 4768 4769 4770 4771 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4772 if test "x$ac_cv_have_decl___clang__" = xyes 4773 then : 4774 CLANGCC="yes" 4775 else case e in #( 4776 e) CLANGCC="no" ;; 4777 esac 4778 fi 4779 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4780 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4781 then : 4782 INTELCC="yes" 4783 else case e in #( 4784 e) INTELCC="no" ;; 4785 esac 4786 fi 4787 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4788 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4789 then : 4790 SUNCC="yes" 4791 else case e in #( 4792 e) SUNCC="no" ;; 4793 esac 4794 fi 4795 4796 4797 4798 4799 4800 4801 4802 4803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4804 if test -n "$ac_tool_prefix"; then 4805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808 printf %s "checking for $ac_word... " >&6; } 4809 if test ${ac_cv_path_PKG_CONFIG+y} 4810 then : 4811 printf %s "(cached) " >&6 4812 else case e in #( 4813 e) case $PKG_CONFIG in 4814 [\\/]* | ?:[\\/]*) 4815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4816 ;; 4817 *) 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819 for as_dir in $PATH 4820 do 4821 IFS=$as_save_IFS 4822 case $as_dir in #((( 4823 '') as_dir=./ ;; 4824 */) ;; 4825 *) as_dir=$as_dir/ ;; 4826 esac 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4829 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 4837 ;; 4838 esac ;; 4839 esac 4840 fi 4841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4842 if test -n "$PKG_CONFIG"; then 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4844 printf "%s\n" "$PKG_CONFIG" >&6; } 4845 else 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4847 printf "%s\n" "no" >&6; } 4848 fi 4849 4850 4851 fi 4852 if test -z "$ac_cv_path_PKG_CONFIG"; then 4853 ac_pt_PKG_CONFIG=$PKG_CONFIG 4854 # Extract the first word of "pkg-config", so it can be a program name with args. 4855 set dummy pkg-config; ac_word=$2 4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4857 printf %s "checking for $ac_word... " >&6; } 4858 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4859 then : 4860 printf %s "(cached) " >&6 4861 else case e in #( 4862 e) case $ac_pt_PKG_CONFIG in 4863 [\\/]* | ?:[\\/]*) 4864 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4865 ;; 4866 *) 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868 for as_dir in $PATH 4869 do 4870 IFS=$as_save_IFS 4871 case $as_dir in #((( 4872 '') as_dir=./ ;; 4873 */) ;; 4874 *) as_dir=$as_dir/ ;; 4875 esac 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4878 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4880 break 2 4881 fi 4882 done 4883 done 4884 IFS=$as_save_IFS 4885 4886 ;; 4887 esac ;; 4888 esac 4889 fi 4890 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4891 if test -n "$ac_pt_PKG_CONFIG"; then 4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4893 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4894 else 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4896 printf "%s\n" "no" >&6; } 4897 fi 4898 4899 if test "x$ac_pt_PKG_CONFIG" = x; then 4900 PKG_CONFIG="" 4901 else 4902 case $cross_compiling:$ac_tool_warned in 4903 yes:) 4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4906 ac_tool_warned=yes ;; 4907 esac 4908 PKG_CONFIG=$ac_pt_PKG_CONFIG 4909 fi 4910 else 4911 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4912 fi 4913 4914 fi 4915 if test -n "$PKG_CONFIG"; then 4916 _pkg_min_version=0.9.0 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4918 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4919 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4921 printf "%s\n" "yes" >&6; } 4922 else 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4924 printf "%s\n" "no" >&6; } 4925 PKG_CONFIG="" 4926 fi 4927 fi 4928 4929 4930 # Make sure we can run config.sub. 4931 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4932 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4933 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4935 printf %s "checking build system type... " >&6; } 4936 if test ${ac_cv_build+y} 4937 then : 4938 printf %s "(cached) " >&6 4939 else case e in #( 4940 e) ac_build_alias=$build_alias 4941 test "x$ac_build_alias" = x && 4942 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4943 test "x$ac_build_alias" = x && 4944 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4945 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4946 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4947 ;; 4948 esac 4949 fi 4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4951 printf "%s\n" "$ac_cv_build" >&6; } 4952 case $ac_cv_build in 4953 *-*-*) ;; 4954 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4955 esac 4956 build=$ac_cv_build 4957 ac_save_IFS=$IFS; IFS='-' 4958 set x $ac_cv_build 4959 shift 4960 build_cpu=$1 4961 build_vendor=$2 4962 shift; shift 4963 # Remember, the first character of IFS is used to create $*, 4964 # except with old shells: 4965 build_os=$* 4966 IFS=$ac_save_IFS 4967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4968 4969 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4971 printf %s "checking host system type... " >&6; } 4972 if test ${ac_cv_host+y} 4973 then : 4974 printf %s "(cached) " >&6 4975 else case e in #( 4976 e) if test "x$host_alias" = x; then 4977 ac_cv_host=$ac_cv_build 4978 else 4979 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4980 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4981 fi 4982 ;; 4983 esac 4984 fi 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4986 printf "%s\n" "$ac_cv_host" >&6; } 4987 case $ac_cv_host in 4988 *-*-*) ;; 4989 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4990 esac 4991 host=$ac_cv_host 4992 ac_save_IFS=$IFS; IFS='-' 4993 set x $ac_cv_host 4994 shift 4995 host_cpu=$1 4996 host_vendor=$2 4997 shift; shift 4998 # Remember, the first character of IFS is used to create $*, 4999 # except with old shells: 5000 host_os=$* 5001 IFS=$ac_save_IFS 5002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5003 5004 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5006 printf %s "checking for a sed that does not truncate output... " >&6; } 5007 if test ${ac_cv_path_SED+y} 5008 then : 5009 printf %s "(cached) " >&6 5010 else case e in #( 5011 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5012 for ac_i in 1 2 3 4 5 6 7; do 5013 ac_script="$ac_script$as_nl$ac_script" 5014 done 5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5016 { ac_script=; unset ac_script;} 5017 if test -z "$SED"; then 5018 ac_path_SED_found=false 5019 # Loop through the user's path and test for each of PROGNAME-LIST 5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5021 for as_dir in $PATH 5022 do 5023 IFS=$as_save_IFS 5024 case $as_dir in #((( 5025 '') as_dir=./ ;; 5026 */) ;; 5027 *) as_dir=$as_dir/ ;; 5028 esac 5029 for ac_prog in sed gsed 5030 do 5031 for ac_exec_ext in '' $ac_executable_extensions; do 5032 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5033 as_fn_executable_p "$ac_path_SED" || continue 5034 # Check for GNU ac_path_SED and select it if it is found. 5035 # Check for GNU $ac_path_SED 5036 case `"$ac_path_SED" --version 2>&1` in #( 5037 *GNU*) 5038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5039 #( 5040 *) 5041 ac_count=0 5042 printf %s 0123456789 >"conftest.in" 5043 while : 5044 do 5045 cat "conftest.in" "conftest.in" >"conftest.tmp" 5046 mv "conftest.tmp" "conftest.in" 5047 cp "conftest.in" "conftest.nl" 5048 printf "%s\n" '' >> "conftest.nl" 5049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5051 as_fn_arith $ac_count + 1 && ac_count=$as_val 5052 if test $ac_count -gt ${ac_path_SED_max-0}; then 5053 # Best one so far, save it but keep looking for a better one 5054 ac_cv_path_SED="$ac_path_SED" 5055 ac_path_SED_max=$ac_count 5056 fi 5057 # 10*(2^10) chars as input seems more than enough 5058 test $ac_count -gt 10 && break 5059 done 5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5061 esac 5062 5063 $ac_path_SED_found && break 3 5064 done 5065 done 5066 done 5067 IFS=$as_save_IFS 5068 if test -z "$ac_cv_path_SED"; then 5069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5070 fi 5071 else 5072 ac_cv_path_SED=$SED 5073 fi 5074 ;; 5075 esac 5076 fi 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5078 printf "%s\n" "$ac_cv_path_SED" >&6; } 5079 SED="$ac_cv_path_SED" 5080 rm -f conftest.sed 5081 5082 5083 5084 5085 5086 5087 # Check whether --enable-selective-werror was given. 5088 if test ${enable_selective_werror+y} 5089 then : 5090 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5091 else case e in #( 5092 e) SELECTIVE_WERROR=yes ;; 5093 esac 5094 fi 5095 5096 5097 5098 5099 5100 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5101 if test "x$SUNCC" = "xyes"; then 5102 BASE_CFLAGS="-v" 5103 else 5104 BASE_CFLAGS="" 5105 fi 5106 5107 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 xorg_testset_save_CFLAGS="$CFLAGS" 5122 5123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5127 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5128 then : 5129 printf %s "(cached) " >&6 5130 else case e in #( 5131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132 /* end confdefs.h. */ 5133 int i; 5134 _ACEOF 5135 if ac_fn_c_try_compile "$LINENO" 5136 then : 5137 xorg_cv_cc_flag_unknown_warning_option=yes 5138 else case e in #( 5139 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5140 esac 5141 fi 5142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5143 esac 5144 fi 5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 fi 5150 5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5159 then : 5160 printf %s "(cached) " >&6 5161 else case e in #( 5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163 /* end confdefs.h. */ 5164 int i; 5165 _ACEOF 5166 if ac_fn_c_try_compile "$LINENO" 5167 then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169 else case e in #( 5170 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5171 esac 5172 fi 5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5174 esac 5175 fi 5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180 fi 5181 5182 found="no" 5183 5184 if test $found = "no" ; then 5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 fi 5188 5189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 fi 5192 5193 CFLAGS="$CFLAGS -Wall" 5194 5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5196 printf %s "checking if $CC supports -Wall... " >&6; } 5197 cacheid=xorg_cv_cc_flag__Wall 5198 if eval test \${$cacheid+y} 5199 then : 5200 printf %s "(cached) " >&6 5201 else case e in #( 5202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203 /* end confdefs.h. */ 5204 int i; 5205 int 5206 main (void) 5207 { 5208 5209 ; 5210 return 0; 5211 } 5212 _ACEOF 5213 if ac_fn_c_try_link "$LINENO" 5214 then : 5215 eval $cacheid=yes 5216 else case e in #( 5217 e) eval $cacheid=no ;; 5218 esac 5219 fi 5220 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5221 conftest$ac_exeext conftest.$ac_ext ;; 5222 esac 5223 fi 5224 5225 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227 5228 eval supported=\$$cacheid 5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5230 printf "%s\n" "$supported" >&6; } 5231 if test "$supported" = "yes" ; then 5232 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5233 found="yes" 5234 fi 5235 fi 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 xorg_testset_save_CFLAGS="$CFLAGS" 5252 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5257 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5258 then : 5259 printf %s "(cached) " >&6 5260 else case e in #( 5261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262 /* end confdefs.h. */ 5263 int i; 5264 _ACEOF 5265 if ac_fn_c_try_compile "$LINENO" 5266 then : 5267 xorg_cv_cc_flag_unknown_warning_option=yes 5268 else case e in #( 5269 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5270 esac 5271 fi 5272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5273 esac 5274 fi 5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5278 CFLAGS="$xorg_testset_save_CFLAGS" 5279 fi 5280 5281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5284 fi 5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5289 then : 5290 printf %s "(cached) " >&6 5291 else case e in #( 5292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293 /* end confdefs.h. */ 5294 int i; 5295 _ACEOF 5296 if ac_fn_c_try_compile "$LINENO" 5297 then : 5298 xorg_cv_cc_flag_unused_command_line_argument=yes 5299 else case e in #( 5300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5301 esac 5302 fi 5303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5304 esac 5305 fi 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310 fi 5311 5312 found="no" 5313 5314 if test $found = "no" ; then 5315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5317 fi 5318 5319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5321 fi 5322 5323 CFLAGS="$CFLAGS -Wpointer-arith" 5324 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5326 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5327 cacheid=xorg_cv_cc_flag__Wpointer_arith 5328 if eval test \${$cacheid+y} 5329 then : 5330 printf %s "(cached) " >&6 5331 else case e in #( 5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333 /* end confdefs.h. */ 5334 int i; 5335 int 5336 main (void) 5337 { 5338 5339 ; 5340 return 0; 5341 } 5342 _ACEOF 5343 if ac_fn_c_try_link "$LINENO" 5344 then : 5345 eval $cacheid=yes 5346 else case e in #( 5347 e) eval $cacheid=no ;; 5348 esac 5349 fi 5350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5351 conftest$ac_exeext conftest.$ac_ext ;; 5352 esac 5353 fi 5354 5355 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357 5358 eval supported=\$$cacheid 5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5360 printf "%s\n" "$supported" >&6; } 5361 if test "$supported" = "yes" ; then 5362 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5363 found="yes" 5364 fi 5365 fi 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 xorg_testset_save_CFLAGS="$CFLAGS" 5382 5383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5387 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5388 then : 5389 printf %s "(cached) " >&6 5390 else case e in #( 5391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392 /* end confdefs.h. */ 5393 int i; 5394 _ACEOF 5395 if ac_fn_c_try_compile "$LINENO" 5396 then : 5397 xorg_cv_cc_flag_unknown_warning_option=yes 5398 else case e in #( 5399 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5400 esac 5401 fi 5402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5403 esac 5404 fi 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 fi 5410 5411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5414 fi 5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5418 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5419 then : 5420 printf %s "(cached) " >&6 5421 else case e in #( 5422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423 /* end confdefs.h. */ 5424 int i; 5425 _ACEOF 5426 if ac_fn_c_try_compile "$LINENO" 5427 then : 5428 xorg_cv_cc_flag_unused_command_line_argument=yes 5429 else case e in #( 5430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5431 esac 5432 fi 5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5434 esac 5435 fi 5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440 fi 5441 5442 found="no" 5443 5444 if test $found = "no" ; then 5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 fi 5448 5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 fi 5452 5453 CFLAGS="$CFLAGS -Wmissing-declarations" 5454 5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5456 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5457 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5458 if eval test \${$cacheid+y} 5459 then : 5460 printf %s "(cached) " >&6 5461 else case e in #( 5462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463 /* end confdefs.h. */ 5464 int i; 5465 int 5466 main (void) 5467 { 5468 5469 ; 5470 return 0; 5471 } 5472 _ACEOF 5473 if ac_fn_c_try_link "$LINENO" 5474 then : 5475 eval $cacheid=yes 5476 else case e in #( 5477 e) eval $cacheid=no ;; 5478 esac 5479 fi 5480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5481 conftest$ac_exeext conftest.$ac_ext ;; 5482 esac 5483 fi 5484 5485 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487 5488 eval supported=\$$cacheid 5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5490 printf "%s\n" "$supported" >&6; } 5491 if test "$supported" = "yes" ; then 5492 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5493 found="yes" 5494 fi 5495 fi 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 xorg_testset_save_CFLAGS="$CFLAGS" 5512 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5517 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5518 then : 5519 printf %s "(cached) " >&6 5520 else case e in #( 5521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522 /* end confdefs.h. */ 5523 int i; 5524 _ACEOF 5525 if ac_fn_c_try_compile "$LINENO" 5526 then : 5527 xorg_cv_cc_flag_unknown_warning_option=yes 5528 else case e in #( 5529 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5530 esac 5531 fi 5532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5533 esac 5534 fi 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 fi 5540 5541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5544 fi 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5549 then : 5550 printf %s "(cached) " >&6 5551 else case e in #( 5552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553 /* end confdefs.h. */ 5554 int i; 5555 _ACEOF 5556 if ac_fn_c_try_compile "$LINENO" 5557 then : 5558 xorg_cv_cc_flag_unused_command_line_argument=yes 5559 else case e in #( 5560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5561 esac 5562 fi 5563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5564 esac 5565 fi 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570 fi 5571 5572 found="no" 5573 5574 if test $found = "no" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 fi 5582 5583 CFLAGS="$CFLAGS -Wformat=2" 5584 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5586 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5587 cacheid=xorg_cv_cc_flag__Wformat_2 5588 if eval test \${$cacheid+y} 5589 then : 5590 printf %s "(cached) " >&6 5591 else case e in #( 5592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593 /* end confdefs.h. */ 5594 int i; 5595 int 5596 main (void) 5597 { 5598 5599 ; 5600 return 0; 5601 } 5602 _ACEOF 5603 if ac_fn_c_try_link "$LINENO" 5604 then : 5605 eval $cacheid=yes 5606 else case e in #( 5607 e) eval $cacheid=no ;; 5608 esac 5609 fi 5610 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5611 conftest$ac_exeext conftest.$ac_ext ;; 5612 esac 5613 fi 5614 5615 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617 5618 eval supported=\$$cacheid 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5620 printf "%s\n" "$supported" >&6; } 5621 if test "$supported" = "yes" ; then 5622 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5623 found="yes" 5624 fi 5625 fi 5626 5627 if test $found = "no" ; then 5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 fi 5631 5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5634 fi 5635 5636 CFLAGS="$CFLAGS -Wformat" 5637 5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5639 printf %s "checking if $CC supports -Wformat... " >&6; } 5640 cacheid=xorg_cv_cc_flag__Wformat 5641 if eval test \${$cacheid+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else case e in #( 5645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646 /* end confdefs.h. */ 5647 int i; 5648 int 5649 main (void) 5650 { 5651 5652 ; 5653 return 0; 5654 } 5655 _ACEOF 5656 if ac_fn_c_try_link "$LINENO" 5657 then : 5658 eval $cacheid=yes 5659 else case e in #( 5660 e) eval $cacheid=no ;; 5661 esac 5662 fi 5663 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5664 conftest$ac_exeext conftest.$ac_ext ;; 5665 esac 5666 fi 5667 5668 5669 CFLAGS="$xorg_testset_save_CFLAGS" 5670 5671 eval supported=\$$cacheid 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5673 printf "%s\n" "$supported" >&6; } 5674 if test "$supported" = "yes" ; then 5675 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5676 found="yes" 5677 fi 5678 fi 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 xorg_testset_save_CFLAGS="$CFLAGS" 5697 5698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5702 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5703 then : 5704 printf %s "(cached) " >&6 5705 else case e in #( 5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707 /* end confdefs.h. */ 5708 int i; 5709 _ACEOF 5710 if ac_fn_c_try_compile "$LINENO" 5711 then : 5712 xorg_cv_cc_flag_unknown_warning_option=yes 5713 else case e in #( 5714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5715 esac 5716 fi 5717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5718 esac 5719 fi 5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724 fi 5725 5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 fi 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5734 then : 5735 printf %s "(cached) " >&6 5736 else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738 /* end confdefs.h. */ 5739 int i; 5740 _ACEOF 5741 if ac_fn_c_try_compile "$LINENO" 5742 then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744 else case e in #( 5745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5746 esac 5747 fi 5748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5749 esac 5750 fi 5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755 fi 5756 5757 found="no" 5758 5759 if test $found = "no" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 fi 5767 5768 CFLAGS="$CFLAGS -Wstrict-prototypes" 5769 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5771 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5772 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5773 if eval test \${$cacheid+y} 5774 then : 5775 printf %s "(cached) " >&6 5776 else case e in #( 5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778 /* end confdefs.h. */ 5779 int i; 5780 int 5781 main (void) 5782 { 5783 5784 ; 5785 return 0; 5786 } 5787 _ACEOF 5788 if ac_fn_c_try_link "$LINENO" 5789 then : 5790 eval $cacheid=yes 5791 else case e in #( 5792 e) eval $cacheid=no ;; 5793 esac 5794 fi 5795 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5796 conftest$ac_exeext conftest.$ac_ext ;; 5797 esac 5798 fi 5799 5800 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 5803 eval supported=\$$cacheid 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5805 printf "%s\n" "$supported" >&6; } 5806 if test "$supported" = "yes" ; then 5807 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5808 found="yes" 5809 fi 5810 fi 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 xorg_testset_save_CFLAGS="$CFLAGS" 5827 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5832 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5833 then : 5834 printf %s "(cached) " >&6 5835 else case e in #( 5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837 /* end confdefs.h. */ 5838 int i; 5839 _ACEOF 5840 if ac_fn_c_try_compile "$LINENO" 5841 then : 5842 xorg_cv_cc_flag_unknown_warning_option=yes 5843 else case e in #( 5844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5845 esac 5846 fi 5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5848 esac 5849 fi 5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854 fi 5855 5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5864 then : 5865 printf %s "(cached) " >&6 5866 else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868 /* end confdefs.h. */ 5869 int i; 5870 _ACEOF 5871 if ac_fn_c_try_compile "$LINENO" 5872 then : 5873 xorg_cv_cc_flag_unused_command_line_argument=yes 5874 else case e in #( 5875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5876 esac 5877 fi 5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5879 esac 5880 fi 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885 fi 5886 5887 found="no" 5888 5889 if test $found = "no" ; then 5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 fi 5893 5894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5896 fi 5897 5898 CFLAGS="$CFLAGS -Wmissing-prototypes" 5899 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5901 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5902 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5903 if eval test \${$cacheid+y} 5904 then : 5905 printf %s "(cached) " >&6 5906 else case e in #( 5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908 /* end confdefs.h. */ 5909 int i; 5910 int 5911 main (void) 5912 { 5913 5914 ; 5915 return 0; 5916 } 5917 _ACEOF 5918 if ac_fn_c_try_link "$LINENO" 5919 then : 5920 eval $cacheid=yes 5921 else case e in #( 5922 e) eval $cacheid=no ;; 5923 esac 5924 fi 5925 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5926 conftest$ac_exeext conftest.$ac_ext ;; 5927 esac 5928 fi 5929 5930 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932 5933 eval supported=\$$cacheid 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5935 printf "%s\n" "$supported" >&6; } 5936 if test "$supported" = "yes" ; then 5937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5938 found="yes" 5939 fi 5940 fi 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 xorg_testset_save_CFLAGS="$CFLAGS" 5957 5958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5962 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5963 then : 5964 printf %s "(cached) " >&6 5965 else case e in #( 5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967 /* end confdefs.h. */ 5968 int i; 5969 _ACEOF 5970 if ac_fn_c_try_compile "$LINENO" 5971 then : 5972 xorg_cv_cc_flag_unknown_warning_option=yes 5973 else case e in #( 5974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5975 esac 5976 fi 5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5978 esac 5979 fi 5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984 fi 5985 5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5994 then : 5995 printf %s "(cached) " >&6 5996 else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998 /* end confdefs.h. */ 5999 int i; 6000 _ACEOF 6001 if ac_fn_c_try_compile "$LINENO" 6002 then : 6003 xorg_cv_cc_flag_unused_command_line_argument=yes 6004 else case e in #( 6005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6006 esac 6007 fi 6008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6009 esac 6010 fi 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015 fi 6016 6017 found="no" 6018 6019 if test $found = "no" ; then 6020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6022 fi 6023 6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6026 fi 6027 6028 CFLAGS="$CFLAGS -Wnested-externs" 6029 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6031 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6032 cacheid=xorg_cv_cc_flag__Wnested_externs 6033 if eval test \${$cacheid+y} 6034 then : 6035 printf %s "(cached) " >&6 6036 else case e in #( 6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038 /* end confdefs.h. */ 6039 int i; 6040 int 6041 main (void) 6042 { 6043 6044 ; 6045 return 0; 6046 } 6047 _ACEOF 6048 if ac_fn_c_try_link "$LINENO" 6049 then : 6050 eval $cacheid=yes 6051 else case e in #( 6052 e) eval $cacheid=no ;; 6053 esac 6054 fi 6055 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6056 conftest$ac_exeext conftest.$ac_ext ;; 6057 esac 6058 fi 6059 6060 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062 6063 eval supported=\$$cacheid 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6065 printf "%s\n" "$supported" >&6; } 6066 if test "$supported" = "yes" ; then 6067 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6068 found="yes" 6069 fi 6070 fi 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 xorg_testset_save_CFLAGS="$CFLAGS" 6087 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6092 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6093 then : 6094 printf %s "(cached) " >&6 6095 else case e in #( 6096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097 /* end confdefs.h. */ 6098 int i; 6099 _ACEOF 6100 if ac_fn_c_try_compile "$LINENO" 6101 then : 6102 xorg_cv_cc_flag_unknown_warning_option=yes 6103 else case e in #( 6104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6105 esac 6106 fi 6107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6108 esac 6109 fi 6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114 fi 6115 6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6119 fi 6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6124 then : 6125 printf %s "(cached) " >&6 6126 else case e in #( 6127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128 /* end confdefs.h. */ 6129 int i; 6130 _ACEOF 6131 if ac_fn_c_try_compile "$LINENO" 6132 then : 6133 xorg_cv_cc_flag_unused_command_line_argument=yes 6134 else case e in #( 6135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6136 esac 6137 fi 6138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6139 esac 6140 fi 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 fi 6146 6147 found="no" 6148 6149 if test $found = "no" ; then 6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 fi 6153 6154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156 fi 6157 6158 CFLAGS="$CFLAGS -Wbad-function-cast" 6159 6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6161 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6162 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6163 if eval test \${$cacheid+y} 6164 then : 6165 printf %s "(cached) " >&6 6166 else case e in #( 6167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168 /* end confdefs.h. */ 6169 int i; 6170 int 6171 main (void) 6172 { 6173 6174 ; 6175 return 0; 6176 } 6177 _ACEOF 6178 if ac_fn_c_try_link "$LINENO" 6179 then : 6180 eval $cacheid=yes 6181 else case e in #( 6182 e) eval $cacheid=no ;; 6183 esac 6184 fi 6185 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6186 conftest$ac_exeext conftest.$ac_ext ;; 6187 esac 6188 fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=\$$cacheid 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195 printf "%s\n" "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 xorg_testset_save_CFLAGS="$CFLAGS" 6217 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6223 then : 6224 printf %s "(cached) " >&6 6225 else case e in #( 6226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227 /* end confdefs.h. */ 6228 int i; 6229 _ACEOF 6230 if ac_fn_c_try_compile "$LINENO" 6231 then : 6232 xorg_cv_cc_flag_unknown_warning_option=yes 6233 else case e in #( 6234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6235 esac 6236 fi 6237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6238 esac 6239 fi 6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244 fi 6245 6246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6254 then : 6255 printf %s "(cached) " >&6 6256 else case e in #( 6257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6258 /* end confdefs.h. */ 6259 int i; 6260 _ACEOF 6261 if ac_fn_c_try_compile "$LINENO" 6262 then : 6263 xorg_cv_cc_flag_unused_command_line_argument=yes 6264 else case e in #( 6265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6266 esac 6267 fi 6268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6269 esac 6270 fi 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275 fi 6276 6277 found="no" 6278 6279 if test $found = "no" ; then 6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6282 fi 6283 6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286 fi 6287 6288 CFLAGS="$CFLAGS -Wold-style-definition" 6289 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6291 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6292 cacheid=xorg_cv_cc_flag__Wold_style_definition 6293 if eval test \${$cacheid+y} 6294 then : 6295 printf %s "(cached) " >&6 6296 else case e in #( 6297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298 /* end confdefs.h. */ 6299 int i; 6300 int 6301 main (void) 6302 { 6303 6304 ; 6305 return 0; 6306 } 6307 _ACEOF 6308 if ac_fn_c_try_link "$LINENO" 6309 then : 6310 eval $cacheid=yes 6311 else case e in #( 6312 e) eval $cacheid=no ;; 6313 esac 6314 fi 6315 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6316 conftest$ac_exeext conftest.$ac_ext ;; 6317 esac 6318 fi 6319 6320 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322 6323 eval supported=\$$cacheid 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6325 printf "%s\n" "$supported" >&6; } 6326 if test "$supported" = "yes" ; then 6327 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6328 found="yes" 6329 fi 6330 fi 6331 6332 if test $found = "no" ; then 6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 fi 6336 6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 fi 6340 6341 CFLAGS="$CFLAGS -fd" 6342 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6344 printf %s "checking if $CC supports -fd... " >&6; } 6345 cacheid=xorg_cv_cc_flag__fd 6346 if eval test \${$cacheid+y} 6347 then : 6348 printf %s "(cached) " >&6 6349 else case e in #( 6350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351 /* end confdefs.h. */ 6352 int i; 6353 int 6354 main (void) 6355 { 6356 6357 ; 6358 return 0; 6359 } 6360 _ACEOF 6361 if ac_fn_c_try_link "$LINENO" 6362 then : 6363 eval $cacheid=yes 6364 else case e in #( 6365 e) eval $cacheid=no ;; 6366 esac 6367 fi 6368 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6369 conftest$ac_exeext conftest.$ac_ext ;; 6370 esac 6371 fi 6372 6373 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375 6376 eval supported=\$$cacheid 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6378 printf "%s\n" "$supported" >&6; } 6379 if test "$supported" = "yes" ; then 6380 BASE_CFLAGS="$BASE_CFLAGS -fd" 6381 found="yes" 6382 fi 6383 fi 6384 6385 6386 6387 6388 6389 # This chunk adds additional warnings that could catch undesired effects. 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 xorg_testset_save_CFLAGS="$CFLAGS" 6404 6405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6409 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6410 then : 6411 printf %s "(cached) " >&6 6412 else case e in #( 6413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414 /* end confdefs.h. */ 6415 int i; 6416 _ACEOF 6417 if ac_fn_c_try_compile "$LINENO" 6418 then : 6419 xorg_cv_cc_flag_unknown_warning_option=yes 6420 else case e in #( 6421 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6422 esac 6423 fi 6424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6425 esac 6426 fi 6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6430 CFLAGS="$xorg_testset_save_CFLAGS" 6431 fi 6432 6433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6436 fi 6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6441 then : 6442 printf %s "(cached) " >&6 6443 else case e in #( 6444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445 /* end confdefs.h. */ 6446 int i; 6447 _ACEOF 6448 if ac_fn_c_try_compile "$LINENO" 6449 then : 6450 xorg_cv_cc_flag_unused_command_line_argument=yes 6451 else case e in #( 6452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6453 esac 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6456 esac 6457 fi 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 fi 6463 6464 found="no" 6465 6466 if test $found = "no" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 fi 6474 6475 CFLAGS="$CFLAGS -Wunused" 6476 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6478 printf %s "checking if $CC supports -Wunused... " >&6; } 6479 cacheid=xorg_cv_cc_flag__Wunused 6480 if eval test \${$cacheid+y} 6481 then : 6482 printf %s "(cached) " >&6 6483 else case e in #( 6484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485 /* end confdefs.h. */ 6486 int i; 6487 int 6488 main (void) 6489 { 6490 6491 ; 6492 return 0; 6493 } 6494 _ACEOF 6495 if ac_fn_c_try_link "$LINENO" 6496 then : 6497 eval $cacheid=yes 6498 else case e in #( 6499 e) eval $cacheid=no ;; 6500 esac 6501 fi 6502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6503 conftest$ac_exeext conftest.$ac_ext ;; 6504 esac 6505 fi 6506 6507 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509 6510 eval supported=\$$cacheid 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6512 printf "%s\n" "$supported" >&6; } 6513 if test "$supported" = "yes" ; then 6514 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6515 found="yes" 6516 fi 6517 fi 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 xorg_testset_save_CFLAGS="$CFLAGS" 6534 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6539 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6540 then : 6541 printf %s "(cached) " >&6 6542 else case e in #( 6543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544 /* end confdefs.h. */ 6545 int i; 6546 _ACEOF 6547 if ac_fn_c_try_compile "$LINENO" 6548 then : 6549 xorg_cv_cc_flag_unknown_warning_option=yes 6550 else case e in #( 6551 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6552 esac 6553 fi 6554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6555 esac 6556 fi 6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561 fi 6562 6563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 fi 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6571 then : 6572 printf %s "(cached) " >&6 6573 else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 _ACEOF 6578 if ac_fn_c_try_compile "$LINENO" 6579 then : 6580 xorg_cv_cc_flag_unused_command_line_argument=yes 6581 else case e in #( 6582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6583 esac 6584 fi 6585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6586 esac 6587 fi 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592 fi 6593 6594 found="no" 6595 6596 if test $found = "no" ; then 6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 fi 6600 6601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6603 fi 6604 6605 CFLAGS="$CFLAGS -Wuninitialized" 6606 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6608 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6609 cacheid=xorg_cv_cc_flag__Wuninitialized 6610 if eval test \${$cacheid+y} 6611 then : 6612 printf %s "(cached) " >&6 6613 else case e in #( 6614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615 /* end confdefs.h. */ 6616 int i; 6617 int 6618 main (void) 6619 { 6620 6621 ; 6622 return 0; 6623 } 6624 _ACEOF 6625 if ac_fn_c_try_link "$LINENO" 6626 then : 6627 eval $cacheid=yes 6628 else case e in #( 6629 e) eval $cacheid=no ;; 6630 esac 6631 fi 6632 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6633 conftest$ac_exeext conftest.$ac_ext ;; 6634 esac 6635 fi 6636 6637 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 6640 eval supported=\$$cacheid 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6642 printf "%s\n" "$supported" >&6; } 6643 if test "$supported" = "yes" ; then 6644 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6645 found="yes" 6646 fi 6647 fi 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 xorg_testset_save_CFLAGS="$CFLAGS" 6664 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6669 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6670 then : 6671 printf %s "(cached) " >&6 6672 else case e in #( 6673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 int i; 6676 _ACEOF 6677 if ac_fn_c_try_compile "$LINENO" 6678 then : 6679 xorg_cv_cc_flag_unknown_warning_option=yes 6680 else case e in #( 6681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6682 esac 6683 fi 6684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6685 esac 6686 fi 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691 fi 6692 6693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 fi 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6701 then : 6702 printf %s "(cached) " >&6 6703 else case e in #( 6704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705 /* end confdefs.h. */ 6706 int i; 6707 _ACEOF 6708 if ac_fn_c_try_compile "$LINENO" 6709 then : 6710 xorg_cv_cc_flag_unused_command_line_argument=yes 6711 else case e in #( 6712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6713 esac 6714 fi 6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6716 esac 6717 fi 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 fi 6723 6724 found="no" 6725 6726 if test $found = "no" ; then 6727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 fi 6730 6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 fi 6734 6735 CFLAGS="$CFLAGS -Wshadow" 6736 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6738 printf %s "checking if $CC supports -Wshadow... " >&6; } 6739 cacheid=xorg_cv_cc_flag__Wshadow 6740 if eval test \${$cacheid+y} 6741 then : 6742 printf %s "(cached) " >&6 6743 else case e in #( 6744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745 /* end confdefs.h. */ 6746 int i; 6747 int 6748 main (void) 6749 { 6750 6751 ; 6752 return 0; 6753 } 6754 _ACEOF 6755 if ac_fn_c_try_link "$LINENO" 6756 then : 6757 eval $cacheid=yes 6758 else case e in #( 6759 e) eval $cacheid=no ;; 6760 esac 6761 fi 6762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6763 conftest$ac_exeext conftest.$ac_ext ;; 6764 esac 6765 fi 6766 6767 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 6770 eval supported=\$$cacheid 6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6772 printf "%s\n" "$supported" >&6; } 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6775 found="yes" 6776 fi 6777 fi 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 xorg_testset_save_CFLAGS="$CFLAGS" 6794 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6799 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6800 then : 6801 printf %s "(cached) " >&6 6802 else case e in #( 6803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6804 /* end confdefs.h. */ 6805 int i; 6806 _ACEOF 6807 if ac_fn_c_try_compile "$LINENO" 6808 then : 6809 xorg_cv_cc_flag_unknown_warning_option=yes 6810 else case e in #( 6811 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6812 esac 6813 fi 6814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6815 esac 6816 fi 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 fi 6822 6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 fi 6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6831 then : 6832 printf %s "(cached) " >&6 6833 else case e in #( 6834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835 /* end confdefs.h. */ 6836 int i; 6837 _ACEOF 6838 if ac_fn_c_try_compile "$LINENO" 6839 then : 6840 xorg_cv_cc_flag_unused_command_line_argument=yes 6841 else case e in #( 6842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6843 esac 6844 fi 6845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6846 esac 6847 fi 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852 fi 6853 6854 found="no" 6855 6856 if test $found = "no" ; then 6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 fi 6860 6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 fi 6864 6865 CFLAGS="$CFLAGS -Wmissing-noreturn" 6866 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6868 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6869 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6870 if eval test \${$cacheid+y} 6871 then : 6872 printf %s "(cached) " >&6 6873 else case e in #( 6874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875 /* end confdefs.h. */ 6876 int i; 6877 int 6878 main (void) 6879 { 6880 6881 ; 6882 return 0; 6883 } 6884 _ACEOF 6885 if ac_fn_c_try_link "$LINENO" 6886 then : 6887 eval $cacheid=yes 6888 else case e in #( 6889 e) eval $cacheid=no ;; 6890 esac 6891 fi 6892 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6893 conftest$ac_exeext conftest.$ac_ext ;; 6894 esac 6895 fi 6896 6897 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 6900 eval supported=\$$cacheid 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6902 printf "%s\n" "$supported" >&6; } 6903 if test "$supported" = "yes" ; then 6904 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6905 found="yes" 6906 fi 6907 fi 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 xorg_testset_save_CFLAGS="$CFLAGS" 6924 6925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6928 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6929 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6930 then : 6931 printf %s "(cached) " >&6 6932 else case e in #( 6933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934 /* end confdefs.h. */ 6935 int i; 6936 _ACEOF 6937 if ac_fn_c_try_compile "$LINENO" 6938 then : 6939 xorg_cv_cc_flag_unknown_warning_option=yes 6940 else case e in #( 6941 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6942 esac 6943 fi 6944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6945 esac 6946 fi 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6950 CFLAGS="$xorg_testset_save_CFLAGS" 6951 fi 6952 6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6956 fi 6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6961 then : 6962 printf %s "(cached) " >&6 6963 else case e in #( 6964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965 /* end confdefs.h. */ 6966 int i; 6967 _ACEOF 6968 if ac_fn_c_try_compile "$LINENO" 6969 then : 6970 xorg_cv_cc_flag_unused_command_line_argument=yes 6971 else case e in #( 6972 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6973 esac 6974 fi 6975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6976 esac 6977 fi 6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6979 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 fi 6983 6984 found="no" 6985 6986 if test $found = "no" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 fi 6994 6995 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6996 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6998 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6999 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7000 if eval test \${$cacheid+y} 7001 then : 7002 printf %s "(cached) " >&6 7003 else case e in #( 7004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005 /* end confdefs.h. */ 7006 int i; 7007 int 7008 main (void) 7009 { 7010 7011 ; 7012 return 0; 7013 } 7014 _ACEOF 7015 if ac_fn_c_try_link "$LINENO" 7016 then : 7017 eval $cacheid=yes 7018 else case e in #( 7019 e) eval $cacheid=no ;; 7020 esac 7021 fi 7022 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7023 conftest$ac_exeext conftest.$ac_ext ;; 7024 esac 7025 fi 7026 7027 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029 7030 eval supported=\$$cacheid 7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7032 printf "%s\n" "$supported" >&6; } 7033 if test "$supported" = "yes" ; then 7034 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7035 found="yes" 7036 fi 7037 fi 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 xorg_testset_save_CFLAGS="$CFLAGS" 7054 7055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7059 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7060 then : 7061 printf %s "(cached) " >&6 7062 else case e in #( 7063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064 /* end confdefs.h. */ 7065 int i; 7066 _ACEOF 7067 if ac_fn_c_try_compile "$LINENO" 7068 then : 7069 xorg_cv_cc_flag_unknown_warning_option=yes 7070 else case e in #( 7071 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7072 esac 7073 fi 7074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7075 esac 7076 fi 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7080 CFLAGS="$xorg_testset_save_CFLAGS" 7081 fi 7082 7083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7086 fi 7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7091 then : 7092 printf %s "(cached) " >&6 7093 else case e in #( 7094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095 /* end confdefs.h. */ 7096 int i; 7097 _ACEOF 7098 if ac_fn_c_try_compile "$LINENO" 7099 then : 7100 xorg_cv_cc_flag_unused_command_line_argument=yes 7101 else case e in #( 7102 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7103 esac 7104 fi 7105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7106 esac 7107 fi 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 fi 7113 7114 found="no" 7115 7116 if test $found = "no" ; then 7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 fi 7120 7121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7123 fi 7124 7125 CFLAGS="$CFLAGS -Wredundant-decls" 7126 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7128 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7129 cacheid=xorg_cv_cc_flag__Wredundant_decls 7130 if eval test \${$cacheid+y} 7131 then : 7132 printf %s "(cached) " >&6 7133 else case e in #( 7134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 int i; 7137 int 7138 main (void) 7139 { 7140 7141 ; 7142 return 0; 7143 } 7144 _ACEOF 7145 if ac_fn_c_try_link "$LINENO" 7146 then : 7147 eval $cacheid=yes 7148 else case e in #( 7149 e) eval $cacheid=no ;; 7150 esac 7151 fi 7152 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7153 conftest$ac_exeext conftest.$ac_ext ;; 7154 esac 7155 fi 7156 7157 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159 7160 eval supported=\$$cacheid 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7162 printf "%s\n" "$supported" >&6; } 7163 if test "$supported" = "yes" ; then 7164 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7165 found="yes" 7166 fi 7167 fi 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 xorg_testset_save_CFLAGS="$CFLAGS" 7184 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7189 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7190 then : 7191 printf %s "(cached) " >&6 7192 else case e in #( 7193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194 /* end confdefs.h. */ 7195 int i; 7196 _ACEOF 7197 if ac_fn_c_try_compile "$LINENO" 7198 then : 7199 xorg_cv_cc_flag_unknown_warning_option=yes 7200 else case e in #( 7201 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7202 esac 7203 fi 7204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7205 esac 7206 fi 7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211 fi 7212 7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7221 then : 7222 printf %s "(cached) " >&6 7223 else case e in #( 7224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225 /* end confdefs.h. */ 7226 int i; 7227 _ACEOF 7228 if ac_fn_c_try_compile "$LINENO" 7229 then : 7230 xorg_cv_cc_flag_unused_command_line_argument=yes 7231 else case e in #( 7232 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7233 esac 7234 fi 7235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7236 esac 7237 fi 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7241 CFLAGS="$xorg_testset_save_CFLAGS" 7242 fi 7243 7244 found="no" 7245 7246 if test $found = "no" ; then 7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 fi 7250 7251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7253 fi 7254 7255 CFLAGS="$CFLAGS -Wlogical-op" 7256 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7258 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7259 cacheid=xorg_cv_cc_flag__Wlogical_op 7260 if eval test \${$cacheid+y} 7261 then : 7262 printf %s "(cached) " >&6 7263 else case e in #( 7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265 /* end confdefs.h. */ 7266 int i; 7267 int 7268 main (void) 7269 { 7270 7271 ; 7272 return 0; 7273 } 7274 _ACEOF 7275 if ac_fn_c_try_link "$LINENO" 7276 then : 7277 eval $cacheid=yes 7278 else case e in #( 7279 e) eval $cacheid=no ;; 7280 esac 7281 fi 7282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7283 conftest$ac_exeext conftest.$ac_ext ;; 7284 esac 7285 fi 7286 7287 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289 7290 eval supported=\$$cacheid 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7292 printf "%s\n" "$supported" >&6; } 7293 if test "$supported" = "yes" ; then 7294 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7295 found="yes" 7296 fi 7297 fi 7298 7299 7300 7301 # These are currently disabled because they are noisy. They will be enabled 7302 # in the future once the codebase is sufficiently modernized to silence 7303 # them. For now, I don't want them to drown out the other warnings. 7304 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7305 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7306 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7307 7308 # Turn some warnings into errors, so we don't accidentally get successful builds 7309 # when there are problems that should be fixed. 7310 7311 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 xorg_testset_save_CFLAGS="$CFLAGS" 7326 7327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7330 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7331 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7332 then : 7333 printf %s "(cached) " >&6 7334 else case e in #( 7335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336 /* end confdefs.h. */ 7337 int i; 7338 _ACEOF 7339 if ac_fn_c_try_compile "$LINENO" 7340 then : 7341 xorg_cv_cc_flag_unknown_warning_option=yes 7342 else case e in #( 7343 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7344 esac 7345 fi 7346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7347 esac 7348 fi 7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7352 CFLAGS="$xorg_testset_save_CFLAGS" 7353 fi 7354 7355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358 fi 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7363 then : 7364 printf %s "(cached) " >&6 7365 else case e in #( 7366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367 /* end confdefs.h. */ 7368 int i; 7369 _ACEOF 7370 if ac_fn_c_try_compile "$LINENO" 7371 then : 7372 xorg_cv_cc_flag_unused_command_line_argument=yes 7373 else case e in #( 7374 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7375 esac 7376 fi 7377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7378 esac 7379 fi 7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7381 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7383 CFLAGS="$xorg_testset_save_CFLAGS" 7384 fi 7385 7386 found="no" 7387 7388 if test $found = "no" ; then 7389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7391 fi 7392 7393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7395 fi 7396 7397 CFLAGS="$CFLAGS -Werror=implicit" 7398 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7400 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7401 cacheid=xorg_cv_cc_flag__Werror_implicit 7402 if eval test \${$cacheid+y} 7403 then : 7404 printf %s "(cached) " >&6 7405 else case e in #( 7406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407 /* end confdefs.h. */ 7408 int i; 7409 int 7410 main (void) 7411 { 7412 7413 ; 7414 return 0; 7415 } 7416 _ACEOF 7417 if ac_fn_c_try_link "$LINENO" 7418 then : 7419 eval $cacheid=yes 7420 else case e in #( 7421 e) eval $cacheid=no ;; 7422 esac 7423 fi 7424 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7425 conftest$ac_exeext conftest.$ac_ext ;; 7426 esac 7427 fi 7428 7429 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431 7432 eval supported=\$$cacheid 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7434 printf "%s\n" "$supported" >&6; } 7435 if test "$supported" = "yes" ; then 7436 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7437 found="yes" 7438 fi 7439 fi 7440 7441 if test $found = "no" ; then 7442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7444 fi 7445 7446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7448 fi 7449 7450 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7451 7452 { 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 7453 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7454 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7455 if eval test \${$cacheid+y} 7456 then : 7457 printf %s "(cached) " >&6 7458 else case e in #( 7459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460 /* end confdefs.h. */ 7461 int i; 7462 int 7463 main (void) 7464 { 7465 7466 ; 7467 return 0; 7468 } 7469 _ACEOF 7470 if ac_fn_c_try_link "$LINENO" 7471 then : 7472 eval $cacheid=yes 7473 else case e in #( 7474 e) eval $cacheid=no ;; 7475 esac 7476 fi 7477 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7478 conftest$ac_exeext conftest.$ac_ext ;; 7479 esac 7480 fi 7481 7482 7483 CFLAGS="$xorg_testset_save_CFLAGS" 7484 7485 eval supported=\$$cacheid 7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7487 printf "%s\n" "$supported" >&6; } 7488 if test "$supported" = "yes" ; then 7489 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7490 found="yes" 7491 fi 7492 fi 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 xorg_testset_save_CFLAGS="$CFLAGS" 7509 7510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7514 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7515 then : 7516 printf %s "(cached) " >&6 7517 else case e in #( 7518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519 /* end confdefs.h. */ 7520 int i; 7521 _ACEOF 7522 if ac_fn_c_try_compile "$LINENO" 7523 then : 7524 xorg_cv_cc_flag_unknown_warning_option=yes 7525 else case e in #( 7526 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7527 esac 7528 fi 7529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7530 esac 7531 fi 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536 fi 7537 7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7546 then : 7547 printf %s "(cached) " >&6 7548 else case e in #( 7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550 /* end confdefs.h. */ 7551 int i; 7552 _ACEOF 7553 if ac_fn_c_try_compile "$LINENO" 7554 then : 7555 xorg_cv_cc_flag_unused_command_line_argument=yes 7556 else case e in #( 7557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7558 esac 7559 fi 7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7561 esac 7562 fi 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567 fi 7568 7569 found="no" 7570 7571 if test $found = "no" ; then 7572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7574 fi 7575 7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7578 fi 7579 7580 CFLAGS="$CFLAGS -Werror=nonnull" 7581 7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7583 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7584 cacheid=xorg_cv_cc_flag__Werror_nonnull 7585 if eval test \${$cacheid+y} 7586 then : 7587 printf %s "(cached) " >&6 7588 else case e in #( 7589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590 /* end confdefs.h. */ 7591 int i; 7592 int 7593 main (void) 7594 { 7595 7596 ; 7597 return 0; 7598 } 7599 _ACEOF 7600 if ac_fn_c_try_link "$LINENO" 7601 then : 7602 eval $cacheid=yes 7603 else case e in #( 7604 e) eval $cacheid=no ;; 7605 esac 7606 fi 7607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7608 conftest$ac_exeext conftest.$ac_ext ;; 7609 esac 7610 fi 7611 7612 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614 7615 eval supported=\$$cacheid 7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7617 printf "%s\n" "$supported" >&6; } 7618 if test "$supported" = "yes" ; then 7619 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7620 found="yes" 7621 fi 7622 fi 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 xorg_testset_save_CFLAGS="$CFLAGS" 7639 7640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7644 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7645 then : 7646 printf %s "(cached) " >&6 7647 else case e in #( 7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649 /* end confdefs.h. */ 7650 int i; 7651 _ACEOF 7652 if ac_fn_c_try_compile "$LINENO" 7653 then : 7654 xorg_cv_cc_flag_unknown_warning_option=yes 7655 else case e in #( 7656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7657 esac 7658 fi 7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7660 esac 7661 fi 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7665 CFLAGS="$xorg_testset_save_CFLAGS" 7666 fi 7667 7668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7671 fi 7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7676 then : 7677 printf %s "(cached) " >&6 7678 else case e in #( 7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680 /* end confdefs.h. */ 7681 int i; 7682 _ACEOF 7683 if ac_fn_c_try_compile "$LINENO" 7684 then : 7685 xorg_cv_cc_flag_unused_command_line_argument=yes 7686 else case e in #( 7687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7688 esac 7689 fi 7690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7691 esac 7692 fi 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697 fi 7698 7699 found="no" 7700 7701 if test $found = "no" ; then 7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7704 fi 7705 7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7708 fi 7709 7710 CFLAGS="$CFLAGS -Werror=init-self" 7711 7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7713 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7714 cacheid=xorg_cv_cc_flag__Werror_init_self 7715 if eval test \${$cacheid+y} 7716 then : 7717 printf %s "(cached) " >&6 7718 else case e in #( 7719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720 /* end confdefs.h. */ 7721 int i; 7722 int 7723 main (void) 7724 { 7725 7726 ; 7727 return 0; 7728 } 7729 _ACEOF 7730 if ac_fn_c_try_link "$LINENO" 7731 then : 7732 eval $cacheid=yes 7733 else case e in #( 7734 e) eval $cacheid=no ;; 7735 esac 7736 fi 7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7738 conftest$ac_exeext conftest.$ac_ext ;; 7739 esac 7740 fi 7741 7742 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744 7745 eval supported=\$$cacheid 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7747 printf "%s\n" "$supported" >&6; } 7748 if test "$supported" = "yes" ; then 7749 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7750 found="yes" 7751 fi 7752 fi 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 xorg_testset_save_CFLAGS="$CFLAGS" 7769 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7773 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7774 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7775 then : 7776 printf %s "(cached) " >&6 7777 else case e in #( 7778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779 /* end confdefs.h. */ 7780 int i; 7781 _ACEOF 7782 if ac_fn_c_try_compile "$LINENO" 7783 then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785 else case e in #( 7786 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7787 esac 7788 fi 7789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7790 esac 7791 fi 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7793 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796 fi 7797 7798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 fi 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7804 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7805 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7806 then : 7807 printf %s "(cached) " >&6 7808 else case e in #( 7809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810 /* end confdefs.h. */ 7811 int i; 7812 _ACEOF 7813 if ac_fn_c_try_compile "$LINENO" 7814 then : 7815 xorg_cv_cc_flag_unused_command_line_argument=yes 7816 else case e in #( 7817 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7818 esac 7819 fi 7820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7821 esac 7822 fi 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827 fi 7828 7829 found="no" 7830 7831 if test $found = "no" ; then 7832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7834 fi 7835 7836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 fi 7839 7840 CFLAGS="$CFLAGS -Werror=main" 7841 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7843 printf %s "checking if $CC supports -Werror=main... " >&6; } 7844 cacheid=xorg_cv_cc_flag__Werror_main 7845 if eval test \${$cacheid+y} 7846 then : 7847 printf %s "(cached) " >&6 7848 else case e in #( 7849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850 /* end confdefs.h. */ 7851 int i; 7852 int 7853 main (void) 7854 { 7855 7856 ; 7857 return 0; 7858 } 7859 _ACEOF 7860 if ac_fn_c_try_link "$LINENO" 7861 then : 7862 eval $cacheid=yes 7863 else case e in #( 7864 e) eval $cacheid=no ;; 7865 esac 7866 fi 7867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7868 conftest$ac_exeext conftest.$ac_ext ;; 7869 esac 7870 fi 7871 7872 7873 CFLAGS="$xorg_testset_save_CFLAGS" 7874 7875 eval supported=\$$cacheid 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7877 printf "%s\n" "$supported" >&6; } 7878 if test "$supported" = "yes" ; then 7879 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7880 found="yes" 7881 fi 7882 fi 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 xorg_testset_save_CFLAGS="$CFLAGS" 7899 7900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7904 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7905 then : 7906 printf %s "(cached) " >&6 7907 else case e in #( 7908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909 /* end confdefs.h. */ 7910 int i; 7911 _ACEOF 7912 if ac_fn_c_try_compile "$LINENO" 7913 then : 7914 xorg_cv_cc_flag_unknown_warning_option=yes 7915 else case e in #( 7916 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7917 esac 7918 fi 7919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7920 esac 7921 fi 7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7923 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926 fi 7927 7928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7931 fi 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7934 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7935 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else case e in #( 7939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 /* end confdefs.h. */ 7941 int i; 7942 _ACEOF 7943 if ac_fn_c_try_compile "$LINENO" 7944 then : 7945 xorg_cv_cc_flag_unused_command_line_argument=yes 7946 else case e in #( 7947 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7948 esac 7949 fi 7950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7951 esac 7952 fi 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7954 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957 fi 7958 7959 found="no" 7960 7961 if test $found = "no" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 fi 7969 7970 CFLAGS="$CFLAGS -Werror=missing-braces" 7971 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7973 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7974 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7975 if eval test \${$cacheid+y} 7976 then : 7977 printf %s "(cached) " >&6 7978 else case e in #( 7979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980 /* end confdefs.h. */ 7981 int i; 7982 int 7983 main (void) 7984 { 7985 7986 ; 7987 return 0; 7988 } 7989 _ACEOF 7990 if ac_fn_c_try_link "$LINENO" 7991 then : 7992 eval $cacheid=yes 7993 else case e in #( 7994 e) eval $cacheid=no ;; 7995 esac 7996 fi 7997 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7998 conftest$ac_exeext conftest.$ac_ext ;; 7999 esac 8000 fi 8001 8002 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 8005 eval supported=\$$cacheid 8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8007 printf "%s\n" "$supported" >&6; } 8008 if test "$supported" = "yes" ; then 8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8010 found="yes" 8011 fi 8012 fi 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 xorg_testset_save_CFLAGS="$CFLAGS" 8029 8030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8034 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8035 then : 8036 printf %s "(cached) " >&6 8037 else case e in #( 8038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039 /* end confdefs.h. */ 8040 int i; 8041 _ACEOF 8042 if ac_fn_c_try_compile "$LINENO" 8043 then : 8044 xorg_cv_cc_flag_unknown_warning_option=yes 8045 else case e in #( 8046 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8047 esac 8048 fi 8049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8050 esac 8051 fi 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056 fi 8057 8058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 fi 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8066 then : 8067 printf %s "(cached) " >&6 8068 else case e in #( 8069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070 /* end confdefs.h. */ 8071 int i; 8072 _ACEOF 8073 if ac_fn_c_try_compile "$LINENO" 8074 then : 8075 xorg_cv_cc_flag_unused_command_line_argument=yes 8076 else case e in #( 8077 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8078 esac 8079 fi 8080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8081 esac 8082 fi 8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087 fi 8088 8089 found="no" 8090 8091 if test $found = "no" ; then 8092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8094 fi 8095 8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8098 fi 8099 8100 CFLAGS="$CFLAGS -Werror=sequence-point" 8101 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8103 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8104 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8105 if eval test \${$cacheid+y} 8106 then : 8107 printf %s "(cached) " >&6 8108 else case e in #( 8109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110 /* end confdefs.h. */ 8111 int i; 8112 int 8113 main (void) 8114 { 8115 8116 ; 8117 return 0; 8118 } 8119 _ACEOF 8120 if ac_fn_c_try_link "$LINENO" 8121 then : 8122 eval $cacheid=yes 8123 else case e in #( 8124 e) eval $cacheid=no ;; 8125 esac 8126 fi 8127 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8128 conftest$ac_exeext conftest.$ac_ext ;; 8129 esac 8130 fi 8131 8132 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134 8135 eval supported=\$$cacheid 8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8137 printf "%s\n" "$supported" >&6; } 8138 if test "$supported" = "yes" ; then 8139 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8140 found="yes" 8141 fi 8142 fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 xorg_testset_save_CFLAGS="$CFLAGS" 8159 8160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8164 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8165 then : 8166 printf %s "(cached) " >&6 8167 else case e in #( 8168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169 /* end confdefs.h. */ 8170 int i; 8171 _ACEOF 8172 if ac_fn_c_try_compile "$LINENO" 8173 then : 8174 xorg_cv_cc_flag_unknown_warning_option=yes 8175 else case e in #( 8176 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8177 esac 8178 fi 8179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8180 esac 8181 fi 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8185 CFLAGS="$xorg_testset_save_CFLAGS" 8186 fi 8187 8188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8191 fi 8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8196 then : 8197 printf %s "(cached) " >&6 8198 else case e in #( 8199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200 /* end confdefs.h. */ 8201 int i; 8202 _ACEOF 8203 if ac_fn_c_try_compile "$LINENO" 8204 then : 8205 xorg_cv_cc_flag_unused_command_line_argument=yes 8206 else case e in #( 8207 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8208 esac 8209 fi 8210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8211 esac 8212 fi 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8216 CFLAGS="$xorg_testset_save_CFLAGS" 8217 fi 8218 8219 found="no" 8220 8221 if test $found = "no" ; then 8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8224 fi 8225 8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8228 fi 8229 8230 CFLAGS="$CFLAGS -Werror=return-type" 8231 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8233 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8234 cacheid=xorg_cv_cc_flag__Werror_return_type 8235 if eval test \${$cacheid+y} 8236 then : 8237 printf %s "(cached) " >&6 8238 else case e in #( 8239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240 /* end confdefs.h. */ 8241 int i; 8242 int 8243 main (void) 8244 { 8245 8246 ; 8247 return 0; 8248 } 8249 _ACEOF 8250 if ac_fn_c_try_link "$LINENO" 8251 then : 8252 eval $cacheid=yes 8253 else case e in #( 8254 e) eval $cacheid=no ;; 8255 esac 8256 fi 8257 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8258 conftest$ac_exeext conftest.$ac_ext ;; 8259 esac 8260 fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267 printf "%s\n" "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8270 found="yes" 8271 fi 8272 fi 8273 8274 if test $found = "no" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8281 fi 8282 8283 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8284 8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8286 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8287 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8288 if eval test \${$cacheid+y} 8289 then : 8290 printf %s "(cached) " >&6 8291 else case e in #( 8292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8293 /* end confdefs.h. */ 8294 int i; 8295 int 8296 main (void) 8297 { 8298 8299 ; 8300 return 0; 8301 } 8302 _ACEOF 8303 if ac_fn_c_try_link "$LINENO" 8304 then : 8305 eval $cacheid=yes 8306 else case e in #( 8307 e) eval $cacheid=no ;; 8308 esac 8309 fi 8310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8311 conftest$ac_exeext conftest.$ac_ext ;; 8312 esac 8313 fi 8314 8315 8316 CFLAGS="$xorg_testset_save_CFLAGS" 8317 8318 eval supported=\$$cacheid 8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8320 printf "%s\n" "$supported" >&6; } 8321 if test "$supported" = "yes" ; then 8322 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8323 found="yes" 8324 fi 8325 fi 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 xorg_testset_save_CFLAGS="$CFLAGS" 8342 8343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8346 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8347 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8348 then : 8349 printf %s "(cached) " >&6 8350 else case e in #( 8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352 /* end confdefs.h. */ 8353 int i; 8354 _ACEOF 8355 if ac_fn_c_try_compile "$LINENO" 8356 then : 8357 xorg_cv_cc_flag_unknown_warning_option=yes 8358 else case e in #( 8359 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8360 esac 8361 fi 8362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8363 esac 8364 fi 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8366 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 fi 8370 8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8374 fi 8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8377 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8378 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8379 then : 8380 printf %s "(cached) " >&6 8381 else case e in #( 8382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383 /* end confdefs.h. */ 8384 int i; 8385 _ACEOF 8386 if ac_fn_c_try_compile "$LINENO" 8387 then : 8388 xorg_cv_cc_flag_unused_command_line_argument=yes 8389 else case e in #( 8390 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8391 esac 8392 fi 8393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8394 esac 8395 fi 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8397 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8399 CFLAGS="$xorg_testset_save_CFLAGS" 8400 fi 8401 8402 found="no" 8403 8404 if test $found = "no" ; then 8405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407 fi 8408 8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8411 fi 8412 8413 CFLAGS="$CFLAGS -Werror=trigraphs" 8414 8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8416 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8417 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8418 if eval test \${$cacheid+y} 8419 then : 8420 printf %s "(cached) " >&6 8421 else case e in #( 8422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423 /* end confdefs.h. */ 8424 int i; 8425 int 8426 main (void) 8427 { 8428 8429 ; 8430 return 0; 8431 } 8432 _ACEOF 8433 if ac_fn_c_try_link "$LINENO" 8434 then : 8435 eval $cacheid=yes 8436 else case e in #( 8437 e) eval $cacheid=no ;; 8438 esac 8439 fi 8440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8441 conftest$ac_exeext conftest.$ac_ext ;; 8442 esac 8443 fi 8444 8445 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447 8448 eval supported=\$$cacheid 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8450 printf "%s\n" "$supported" >&6; } 8451 if test "$supported" = "yes" ; then 8452 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8453 found="yes" 8454 fi 8455 fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 xorg_testset_save_CFLAGS="$CFLAGS" 8472 8473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8476 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8477 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8478 then : 8479 printf %s "(cached) " >&6 8480 else case e in #( 8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482 /* end confdefs.h. */ 8483 int i; 8484 _ACEOF 8485 if ac_fn_c_try_compile "$LINENO" 8486 then : 8487 xorg_cv_cc_flag_unknown_warning_option=yes 8488 else case e in #( 8489 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8490 esac 8491 fi 8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8493 esac 8494 fi 8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499 fi 8500 8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504 fi 8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8509 then : 8510 printf %s "(cached) " >&6 8511 else case e in #( 8512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513 /* end confdefs.h. */ 8514 int i; 8515 _ACEOF 8516 if ac_fn_c_try_compile "$LINENO" 8517 then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519 else case e in #( 8520 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8521 esac 8522 fi 8523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8524 esac 8525 fi 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 fi 8531 8532 found="no" 8533 8534 if test $found = "no" ; then 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 fi 8538 8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 fi 8542 8543 CFLAGS="$CFLAGS -Werror=array-bounds" 8544 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8546 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8547 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8548 if eval test \${$cacheid+y} 8549 then : 8550 printf %s "(cached) " >&6 8551 else case e in #( 8552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553 /* end confdefs.h. */ 8554 int i; 8555 int 8556 main (void) 8557 { 8558 8559 ; 8560 return 0; 8561 } 8562 _ACEOF 8563 if ac_fn_c_try_link "$LINENO" 8564 then : 8565 eval $cacheid=yes 8566 else case e in #( 8567 e) eval $cacheid=no ;; 8568 esac 8569 fi 8570 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8571 conftest$ac_exeext conftest.$ac_ext ;; 8572 esac 8573 fi 8574 8575 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577 8578 eval supported=\$$cacheid 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8580 printf "%s\n" "$supported" >&6; } 8581 if test "$supported" = "yes" ; then 8582 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8583 found="yes" 8584 fi 8585 fi 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 xorg_testset_save_CFLAGS="$CFLAGS" 8602 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8607 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8608 then : 8609 printf %s "(cached) " >&6 8610 else case e in #( 8611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612 /* end confdefs.h. */ 8613 int i; 8614 _ACEOF 8615 if ac_fn_c_try_compile "$LINENO" 8616 then : 8617 xorg_cv_cc_flag_unknown_warning_option=yes 8618 else case e in #( 8619 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8620 esac 8621 fi 8622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8623 esac 8624 fi 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8628 CFLAGS="$xorg_testset_save_CFLAGS" 8629 fi 8630 8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8639 then : 8640 printf %s "(cached) " >&6 8641 else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643 /* end confdefs.h. */ 8644 int i; 8645 _ACEOF 8646 if ac_fn_c_try_compile "$LINENO" 8647 then : 8648 xorg_cv_cc_flag_unused_command_line_argument=yes 8649 else case e in #( 8650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8651 esac 8652 fi 8653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8654 esac 8655 fi 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 fi 8661 8662 found="no" 8663 8664 if test $found = "no" ; then 8665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8667 fi 8668 8669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8671 fi 8672 8673 CFLAGS="$CFLAGS -Werror=write-strings" 8674 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8676 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8677 cacheid=xorg_cv_cc_flag__Werror_write_strings 8678 if eval test \${$cacheid+y} 8679 then : 8680 printf %s "(cached) " >&6 8681 else case e in #( 8682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683 /* end confdefs.h. */ 8684 int i; 8685 int 8686 main (void) 8687 { 8688 8689 ; 8690 return 0; 8691 } 8692 _ACEOF 8693 if ac_fn_c_try_link "$LINENO" 8694 then : 8695 eval $cacheid=yes 8696 else case e in #( 8697 e) eval $cacheid=no ;; 8698 esac 8699 fi 8700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8701 conftest$ac_exeext conftest.$ac_ext ;; 8702 esac 8703 fi 8704 8705 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707 8708 eval supported=\$$cacheid 8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8710 printf "%s\n" "$supported" >&6; } 8711 if test "$supported" = "yes" ; then 8712 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8713 found="yes" 8714 fi 8715 fi 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 xorg_testset_save_CFLAGS="$CFLAGS" 8732 8733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8737 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8738 then : 8739 printf %s "(cached) " >&6 8740 else case e in #( 8741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742 /* end confdefs.h. */ 8743 int i; 8744 _ACEOF 8745 if ac_fn_c_try_compile "$LINENO" 8746 then : 8747 xorg_cv_cc_flag_unknown_warning_option=yes 8748 else case e in #( 8749 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8750 esac 8751 fi 8752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8753 esac 8754 fi 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8758 CFLAGS="$xorg_testset_save_CFLAGS" 8759 fi 8760 8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8764 fi 8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8769 then : 8770 printf %s "(cached) " >&6 8771 else case e in #( 8772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773 /* end confdefs.h. */ 8774 int i; 8775 _ACEOF 8776 if ac_fn_c_try_compile "$LINENO" 8777 then : 8778 xorg_cv_cc_flag_unused_command_line_argument=yes 8779 else case e in #( 8780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8781 esac 8782 fi 8783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8784 esac 8785 fi 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790 fi 8791 8792 found="no" 8793 8794 if test $found = "no" ; then 8795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 fi 8798 8799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 fi 8802 8803 CFLAGS="$CFLAGS -Werror=address" 8804 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8806 printf %s "checking if $CC supports -Werror=address... " >&6; } 8807 cacheid=xorg_cv_cc_flag__Werror_address 8808 if eval test \${$cacheid+y} 8809 then : 8810 printf %s "(cached) " >&6 8811 else case e in #( 8812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813 /* end confdefs.h. */ 8814 int i; 8815 int 8816 main (void) 8817 { 8818 8819 ; 8820 return 0; 8821 } 8822 _ACEOF 8823 if ac_fn_c_try_link "$LINENO" 8824 then : 8825 eval $cacheid=yes 8826 else case e in #( 8827 e) eval $cacheid=no ;; 8828 esac 8829 fi 8830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8831 conftest$ac_exeext conftest.$ac_ext ;; 8832 esac 8833 fi 8834 8835 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837 8838 eval supported=\$$cacheid 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8840 printf "%s\n" "$supported" >&6; } 8841 if test "$supported" = "yes" ; then 8842 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8843 found="yes" 8844 fi 8845 fi 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 xorg_testset_save_CFLAGS="$CFLAGS" 8862 8863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else case e in #( 8871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872 /* end confdefs.h. */ 8873 int i; 8874 _ACEOF 8875 if ac_fn_c_try_compile "$LINENO" 8876 then : 8877 xorg_cv_cc_flag_unknown_warning_option=yes 8878 else case e in #( 8879 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8880 esac 8881 fi 8882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8883 esac 8884 fi 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8888 CFLAGS="$xorg_testset_save_CFLAGS" 8889 fi 8890 8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8894 fi 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8899 then : 8900 printf %s "(cached) " >&6 8901 else case e in #( 8902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903 /* end confdefs.h. */ 8904 int i; 8905 _ACEOF 8906 if ac_fn_c_try_compile "$LINENO" 8907 then : 8908 xorg_cv_cc_flag_unused_command_line_argument=yes 8909 else case e in #( 8910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8911 esac 8912 fi 8913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8914 esac 8915 fi 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920 fi 8921 8922 found="no" 8923 8924 if test $found = "no" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 fi 8932 8933 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8934 8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8936 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8937 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8938 if eval test \${$cacheid+y} 8939 then : 8940 printf %s "(cached) " >&6 8941 else case e in #( 8942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943 /* end confdefs.h. */ 8944 int i; 8945 int 8946 main (void) 8947 { 8948 8949 ; 8950 return 0; 8951 } 8952 _ACEOF 8953 if ac_fn_c_try_link "$LINENO" 8954 then : 8955 eval $cacheid=yes 8956 else case e in #( 8957 e) eval $cacheid=no ;; 8958 esac 8959 fi 8960 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8961 conftest$ac_exeext conftest.$ac_ext ;; 8962 esac 8963 fi 8964 8965 8966 CFLAGS="$xorg_testset_save_CFLAGS" 8967 8968 eval supported=\$$cacheid 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8970 printf "%s\n" "$supported" >&6; } 8971 if test "$supported" = "yes" ; then 8972 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8973 found="yes" 8974 fi 8975 fi 8976 8977 if test $found = "no" ; then 8978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8980 fi 8981 8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8984 fi 8985 8986 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8987 8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8989 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8990 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8991 if eval test \${$cacheid+y} 8992 then : 8993 printf %s "(cached) " >&6 8994 else case e in #( 8995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996 /* end confdefs.h. */ 8997 int i; 8998 int 8999 main (void) 9000 { 9001 9002 ; 9003 return 0; 9004 } 9005 _ACEOF 9006 if ac_fn_c_try_link "$LINENO" 9007 then : 9008 eval $cacheid=yes 9009 else case e in #( 9010 e) eval $cacheid=no ;; 9011 esac 9012 fi 9013 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9014 conftest$ac_exeext conftest.$ac_ext ;; 9015 esac 9016 fi 9017 9018 9019 CFLAGS="$xorg_testset_save_CFLAGS" 9020 9021 eval supported=\$$cacheid 9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9023 printf "%s\n" "$supported" >&6; } 9024 if test "$supported" = "yes" ; then 9025 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9026 found="yes" 9027 fi 9028 fi 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 xorg_testset_save_CFLAGS="$CFLAGS" 9045 9046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9049 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9050 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9051 then : 9052 printf %s "(cached) " >&6 9053 else case e in #( 9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055 /* end confdefs.h. */ 9056 int i; 9057 _ACEOF 9058 if ac_fn_c_try_compile "$LINENO" 9059 then : 9060 xorg_cv_cc_flag_unknown_warning_option=yes 9061 else case e in #( 9062 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9063 esac 9064 fi 9065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9066 esac 9067 fi 9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9069 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072 fi 9073 9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9077 fi 9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9080 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9081 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9082 then : 9083 printf %s "(cached) " >&6 9084 else case e in #( 9085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086 /* end confdefs.h. */ 9087 int i; 9088 _ACEOF 9089 if ac_fn_c_try_compile "$LINENO" 9090 then : 9091 xorg_cv_cc_flag_unused_command_line_argument=yes 9092 else case e in #( 9093 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9094 esac 9095 fi 9096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9097 esac 9098 fi 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9100 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103 fi 9104 9105 found="no" 9106 9107 if test $found = "no" ; then 9108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 fi 9111 9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9114 fi 9115 9116 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9117 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9119 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9120 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9121 if eval test \${$cacheid+y} 9122 then : 9123 printf %s "(cached) " >&6 9124 else case e in #( 9125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9126 /* end confdefs.h. */ 9127 int i; 9128 int 9129 main (void) 9130 { 9131 9132 ; 9133 return 0; 9134 } 9135 _ACEOF 9136 if ac_fn_c_try_link "$LINENO" 9137 then : 9138 eval $cacheid=yes 9139 else case e in #( 9140 e) eval $cacheid=no ;; 9141 esac 9142 fi 9143 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9144 conftest$ac_exeext conftest.$ac_ext ;; 9145 esac 9146 fi 9147 9148 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150 9151 eval supported=\$$cacheid 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9153 printf "%s\n" "$supported" >&6; } 9154 if test "$supported" = "yes" ; then 9155 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9156 found="yes" 9157 fi 9158 fi 9159 9160 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9161 else 9162 { 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 9163 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;} 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 xorg_testset_save_CFLAGS="$CFLAGS" 9178 9179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9183 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9184 then : 9185 printf %s "(cached) " >&6 9186 else case e in #( 9187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188 /* end confdefs.h. */ 9189 int i; 9190 _ACEOF 9191 if ac_fn_c_try_compile "$LINENO" 9192 then : 9193 xorg_cv_cc_flag_unknown_warning_option=yes 9194 else case e in #( 9195 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9196 esac 9197 fi 9198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9199 esac 9200 fi 9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9204 CFLAGS="$xorg_testset_save_CFLAGS" 9205 fi 9206 9207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 fi 9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9215 then : 9216 printf %s "(cached) " >&6 9217 else case e in #( 9218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219 /* end confdefs.h. */ 9220 int i; 9221 _ACEOF 9222 if ac_fn_c_try_compile "$LINENO" 9223 then : 9224 xorg_cv_cc_flag_unused_command_line_argument=yes 9225 else case e in #( 9226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9227 esac 9228 fi 9229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9230 esac 9231 fi 9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236 fi 9237 9238 found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Wimplicit" 9250 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9252 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Wimplicit 9254 if eval test \${$cacheid+y} 9255 then : 9256 printf %s "(cached) " >&6 9257 else case e in #( 9258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259 /* end confdefs.h. */ 9260 int i; 9261 int 9262 main (void) 9263 { 9264 9265 ; 9266 return 0; 9267 } 9268 _ACEOF 9269 if ac_fn_c_try_link "$LINENO" 9270 then : 9271 eval $cacheid=yes 9272 else case e in #( 9273 e) eval $cacheid=no ;; 9274 esac 9275 fi 9276 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9277 conftest$ac_exeext conftest.$ac_ext ;; 9278 esac 9279 fi 9280 9281 9282 CFLAGS="$xorg_testset_save_CFLAGS" 9283 9284 eval supported=\$$cacheid 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9286 printf "%s\n" "$supported" >&6; } 9287 if test "$supported" = "yes" ; then 9288 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9289 found="yes" 9290 fi 9291 fi 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 xorg_testset_save_CFLAGS="$CFLAGS" 9308 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9313 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9314 then : 9315 printf %s "(cached) " >&6 9316 else case e in #( 9317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318 /* end confdefs.h. */ 9319 int i; 9320 _ACEOF 9321 if ac_fn_c_try_compile "$LINENO" 9322 then : 9323 xorg_cv_cc_flag_unknown_warning_option=yes 9324 else case e in #( 9325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9326 esac 9327 fi 9328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9329 esac 9330 fi 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335 fi 9336 9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9345 then : 9346 printf %s "(cached) " >&6 9347 else case e in #( 9348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349 /* end confdefs.h. */ 9350 int i; 9351 _ACEOF 9352 if ac_fn_c_try_compile "$LINENO" 9353 then : 9354 xorg_cv_cc_flag_unused_command_line_argument=yes 9355 else case e in #( 9356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9357 esac 9358 fi 9359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9360 esac 9361 fi 9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366 fi 9367 9368 found="no" 9369 9370 if test $found = "no" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 9375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9377 fi 9378 9379 CFLAGS="$CFLAGS -Wnonnull" 9380 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9382 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9383 cacheid=xorg_cv_cc_flag__Wnonnull 9384 if eval test \${$cacheid+y} 9385 then : 9386 printf %s "(cached) " >&6 9387 else case e in #( 9388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389 /* end confdefs.h. */ 9390 int i; 9391 int 9392 main (void) 9393 { 9394 9395 ; 9396 return 0; 9397 } 9398 _ACEOF 9399 if ac_fn_c_try_link "$LINENO" 9400 then : 9401 eval $cacheid=yes 9402 else case e in #( 9403 e) eval $cacheid=no ;; 9404 esac 9405 fi 9406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9407 conftest$ac_exeext conftest.$ac_ext ;; 9408 esac 9409 fi 9410 9411 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413 9414 eval supported=\$$cacheid 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9416 printf "%s\n" "$supported" >&6; } 9417 if test "$supported" = "yes" ; then 9418 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9419 found="yes" 9420 fi 9421 fi 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 xorg_testset_save_CFLAGS="$CFLAGS" 9438 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9443 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9444 then : 9445 printf %s "(cached) " >&6 9446 else case e in #( 9447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448 /* end confdefs.h. */ 9449 int i; 9450 _ACEOF 9451 if ac_fn_c_try_compile "$LINENO" 9452 then : 9453 xorg_cv_cc_flag_unknown_warning_option=yes 9454 else case e in #( 9455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9456 esac 9457 fi 9458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9459 esac 9460 fi 9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465 fi 9466 9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 fi 9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9475 then : 9476 printf %s "(cached) " >&6 9477 else case e in #( 9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479 /* end confdefs.h. */ 9480 int i; 9481 _ACEOF 9482 if ac_fn_c_try_compile "$LINENO" 9483 then : 9484 xorg_cv_cc_flag_unused_command_line_argument=yes 9485 else case e in #( 9486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9487 esac 9488 fi 9489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9490 esac 9491 fi 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 fi 9497 9498 found="no" 9499 9500 if test $found = "no" ; then 9501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 fi 9504 9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9507 fi 9508 9509 CFLAGS="$CFLAGS -Winit-self" 9510 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9512 printf %s "checking if $CC supports -Winit-self... " >&6; } 9513 cacheid=xorg_cv_cc_flag__Winit_self 9514 if eval test \${$cacheid+y} 9515 then : 9516 printf %s "(cached) " >&6 9517 else case e in #( 9518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519 /* end confdefs.h. */ 9520 int i; 9521 int 9522 main (void) 9523 { 9524 9525 ; 9526 return 0; 9527 } 9528 _ACEOF 9529 if ac_fn_c_try_link "$LINENO" 9530 then : 9531 eval $cacheid=yes 9532 else case e in #( 9533 e) eval $cacheid=no ;; 9534 esac 9535 fi 9536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9537 conftest$ac_exeext conftest.$ac_ext ;; 9538 esac 9539 fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546 printf "%s\n" "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 xorg_testset_save_CFLAGS="$CFLAGS" 9568 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9573 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9574 then : 9575 printf %s "(cached) " >&6 9576 else case e in #( 9577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 _ACEOF 9581 if ac_fn_c_try_compile "$LINENO" 9582 then : 9583 xorg_cv_cc_flag_unknown_warning_option=yes 9584 else case e in #( 9585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9586 esac 9587 fi 9588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9589 esac 9590 fi 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595 fi 9596 9597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9605 then : 9606 printf %s "(cached) " >&6 9607 else case e in #( 9608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609 /* end confdefs.h. */ 9610 int i; 9611 _ACEOF 9612 if ac_fn_c_try_compile "$LINENO" 9613 then : 9614 xorg_cv_cc_flag_unused_command_line_argument=yes 9615 else case e in #( 9616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9617 esac 9618 fi 9619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9620 esac 9621 fi 9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 fi 9627 9628 found="no" 9629 9630 if test $found = "no" ; then 9631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 fi 9634 9635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 fi 9638 9639 CFLAGS="$CFLAGS -Wmain" 9640 9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9642 printf %s "checking if $CC supports -Wmain... " >&6; } 9643 cacheid=xorg_cv_cc_flag__Wmain 9644 if eval test \${$cacheid+y} 9645 then : 9646 printf %s "(cached) " >&6 9647 else case e in #( 9648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649 /* end confdefs.h. */ 9650 int i; 9651 int 9652 main (void) 9653 { 9654 9655 ; 9656 return 0; 9657 } 9658 _ACEOF 9659 if ac_fn_c_try_link "$LINENO" 9660 then : 9661 eval $cacheid=yes 9662 else case e in #( 9663 e) eval $cacheid=no ;; 9664 esac 9665 fi 9666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9667 conftest$ac_exeext conftest.$ac_ext ;; 9668 esac 9669 fi 9670 9671 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673 9674 eval supported=\$$cacheid 9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9676 printf "%s\n" "$supported" >&6; } 9677 if test "$supported" = "yes" ; then 9678 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9679 found="yes" 9680 fi 9681 fi 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 xorg_testset_save_CFLAGS="$CFLAGS" 9698 9699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9703 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9704 then : 9705 printf %s "(cached) " >&6 9706 else case e in #( 9707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708 /* end confdefs.h. */ 9709 int i; 9710 _ACEOF 9711 if ac_fn_c_try_compile "$LINENO" 9712 then : 9713 xorg_cv_cc_flag_unknown_warning_option=yes 9714 else case e in #( 9715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9716 esac 9717 fi 9718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9719 esac 9720 fi 9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9724 CFLAGS="$xorg_testset_save_CFLAGS" 9725 fi 9726 9727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9730 fi 9731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9735 then : 9736 printf %s "(cached) " >&6 9737 else case e in #( 9738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739 /* end confdefs.h. */ 9740 int i; 9741 _ACEOF 9742 if ac_fn_c_try_compile "$LINENO" 9743 then : 9744 xorg_cv_cc_flag_unused_command_line_argument=yes 9745 else case e in #( 9746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9747 esac 9748 fi 9749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9750 esac 9751 fi 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9756 fi 9757 9758 found="no" 9759 9760 if test $found = "no" ; then 9761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 fi 9764 9765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9767 fi 9768 9769 CFLAGS="$CFLAGS -Wmissing-braces" 9770 9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9772 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9773 cacheid=xorg_cv_cc_flag__Wmissing_braces 9774 if eval test \${$cacheid+y} 9775 then : 9776 printf %s "(cached) " >&6 9777 else case e in #( 9778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779 /* end confdefs.h. */ 9780 int i; 9781 int 9782 main (void) 9783 { 9784 9785 ; 9786 return 0; 9787 } 9788 _ACEOF 9789 if ac_fn_c_try_link "$LINENO" 9790 then : 9791 eval $cacheid=yes 9792 else case e in #( 9793 e) eval $cacheid=no ;; 9794 esac 9795 fi 9796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9797 conftest$ac_exeext conftest.$ac_ext ;; 9798 esac 9799 fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806 printf "%s\n" "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9834 then : 9835 printf %s "(cached) " >&6 9836 else case e in #( 9837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838 /* end confdefs.h. */ 9839 int i; 9840 _ACEOF 9841 if ac_fn_c_try_compile "$LINENO" 9842 then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844 else case e in #( 9845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9846 esac 9847 fi 9848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9849 esac 9850 fi 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9854 CFLAGS="$xorg_testset_save_CFLAGS" 9855 fi 9856 9857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9860 fi 9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9865 then : 9866 printf %s "(cached) " >&6 9867 else case e in #( 9868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869 /* end confdefs.h. */ 9870 int i; 9871 _ACEOF 9872 if ac_fn_c_try_compile "$LINENO" 9873 then : 9874 xorg_cv_cc_flag_unused_command_line_argument=yes 9875 else case e in #( 9876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9877 esac 9878 fi 9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9880 esac 9881 fi 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886 fi 9887 9888 found="no" 9889 9890 if test $found = "no" ; then 9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 fi 9894 9895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9897 fi 9898 9899 CFLAGS="$CFLAGS -Wsequence-point" 9900 9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9902 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9903 cacheid=xorg_cv_cc_flag__Wsequence_point 9904 if eval test \${$cacheid+y} 9905 then : 9906 printf %s "(cached) " >&6 9907 else case e in #( 9908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909 /* end confdefs.h. */ 9910 int i; 9911 int 9912 main (void) 9913 { 9914 9915 ; 9916 return 0; 9917 } 9918 _ACEOF 9919 if ac_fn_c_try_link "$LINENO" 9920 then : 9921 eval $cacheid=yes 9922 else case e in #( 9923 e) eval $cacheid=no ;; 9924 esac 9925 fi 9926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9927 conftest$ac_exeext conftest.$ac_ext ;; 9928 esac 9929 fi 9930 9931 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933 9934 eval supported=\$$cacheid 9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9936 printf "%s\n" "$supported" >&6; } 9937 if test "$supported" = "yes" ; then 9938 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9939 found="yes" 9940 fi 9941 fi 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 xorg_testset_save_CFLAGS="$CFLAGS" 9958 9959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9964 then : 9965 printf %s "(cached) " >&6 9966 else case e in #( 9967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968 /* end confdefs.h. */ 9969 int i; 9970 _ACEOF 9971 if ac_fn_c_try_compile "$LINENO" 9972 then : 9973 xorg_cv_cc_flag_unknown_warning_option=yes 9974 else case e in #( 9975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9976 esac 9977 fi 9978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9979 esac 9980 fi 9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9984 CFLAGS="$xorg_testset_save_CFLAGS" 9985 fi 9986 9987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9990 fi 9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9995 then : 9996 printf %s "(cached) " >&6 9997 else case e in #( 9998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999 /* end confdefs.h. */ 10000 int i; 10001 _ACEOF 10002 if ac_fn_c_try_compile "$LINENO" 10003 then : 10004 xorg_cv_cc_flag_unused_command_line_argument=yes 10005 else case e in #( 10006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10007 esac 10008 fi 10009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10010 esac 10011 fi 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016 fi 10017 10018 found="no" 10019 10020 if test $found = "no" ; then 10021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10023 fi 10024 10025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10027 fi 10028 10029 CFLAGS="$CFLAGS -Wreturn-type" 10030 10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10032 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10033 cacheid=xorg_cv_cc_flag__Wreturn_type 10034 if eval test \${$cacheid+y} 10035 then : 10036 printf %s "(cached) " >&6 10037 else case e in #( 10038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039 /* end confdefs.h. */ 10040 int i; 10041 int 10042 main (void) 10043 { 10044 10045 ; 10046 return 0; 10047 } 10048 _ACEOF 10049 if ac_fn_c_try_link "$LINENO" 10050 then : 10051 eval $cacheid=yes 10052 else case e in #( 10053 e) eval $cacheid=no ;; 10054 esac 10055 fi 10056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10057 conftest$ac_exeext conftest.$ac_ext ;; 10058 esac 10059 fi 10060 10061 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063 10064 eval supported=\$$cacheid 10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10066 printf "%s\n" "$supported" >&6; } 10067 if test "$supported" = "yes" ; then 10068 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10069 found="yes" 10070 fi 10071 fi 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 xorg_testset_save_CFLAGS="$CFLAGS" 10088 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10094 then : 10095 printf %s "(cached) " >&6 10096 else case e in #( 10097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098 /* end confdefs.h. */ 10099 int i; 10100 _ACEOF 10101 if ac_fn_c_try_compile "$LINENO" 10102 then : 10103 xorg_cv_cc_flag_unknown_warning_option=yes 10104 else case e in #( 10105 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10106 esac 10107 fi 10108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10109 esac 10110 fi 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10114 CFLAGS="$xorg_testset_save_CFLAGS" 10115 fi 10116 10117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10120 fi 10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10125 then : 10126 printf %s "(cached) " >&6 10127 else case e in #( 10128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129 /* end confdefs.h. */ 10130 int i; 10131 _ACEOF 10132 if ac_fn_c_try_compile "$LINENO" 10133 then : 10134 xorg_cv_cc_flag_unused_command_line_argument=yes 10135 else case e in #( 10136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10137 esac 10138 fi 10139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10140 esac 10141 fi 10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 fi 10147 10148 found="no" 10149 10150 if test $found = "no" ; then 10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 fi 10154 10155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10157 fi 10158 10159 CFLAGS="$CFLAGS -Wtrigraphs" 10160 10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10162 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10163 cacheid=xorg_cv_cc_flag__Wtrigraphs 10164 if eval test \${$cacheid+y} 10165 then : 10166 printf %s "(cached) " >&6 10167 else case e in #( 10168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169 /* end confdefs.h. */ 10170 int i; 10171 int 10172 main (void) 10173 { 10174 10175 ; 10176 return 0; 10177 } 10178 _ACEOF 10179 if ac_fn_c_try_link "$LINENO" 10180 then : 10181 eval $cacheid=yes 10182 else case e in #( 10183 e) eval $cacheid=no ;; 10184 esac 10185 fi 10186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10187 conftest$ac_exeext conftest.$ac_ext ;; 10188 esac 10189 fi 10190 10191 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193 10194 eval supported=\$$cacheid 10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10196 printf "%s\n" "$supported" >&6; } 10197 if test "$supported" = "yes" ; then 10198 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10199 found="yes" 10200 fi 10201 fi 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 xorg_testset_save_CFLAGS="$CFLAGS" 10218 10219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10223 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10224 then : 10225 printf %s "(cached) " >&6 10226 else case e in #( 10227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228 /* end confdefs.h. */ 10229 int i; 10230 _ACEOF 10231 if ac_fn_c_try_compile "$LINENO" 10232 then : 10233 xorg_cv_cc_flag_unknown_warning_option=yes 10234 else case e in #( 10235 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10236 esac 10237 fi 10238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10239 esac 10240 fi 10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10242 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245 fi 10246 10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10255 then : 10256 printf %s "(cached) " >&6 10257 else case e in #( 10258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259 /* end confdefs.h. */ 10260 int i; 10261 _ACEOF 10262 if ac_fn_c_try_compile "$LINENO" 10263 then : 10264 xorg_cv_cc_flag_unused_command_line_argument=yes 10265 else case e in #( 10266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10267 esac 10268 fi 10269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10270 esac 10271 fi 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10273 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276 fi 10277 10278 found="no" 10279 10280 if test $found = "no" ; then 10281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10283 fi 10284 10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10287 fi 10288 10289 CFLAGS="$CFLAGS -Warray-bounds" 10290 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10292 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10293 cacheid=xorg_cv_cc_flag__Warray_bounds 10294 if eval test \${$cacheid+y} 10295 then : 10296 printf %s "(cached) " >&6 10297 else case e in #( 10298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299 /* end confdefs.h. */ 10300 int i; 10301 int 10302 main (void) 10303 { 10304 10305 ; 10306 return 0; 10307 } 10308 _ACEOF 10309 if ac_fn_c_try_link "$LINENO" 10310 then : 10311 eval $cacheid=yes 10312 else case e in #( 10313 e) eval $cacheid=no ;; 10314 esac 10315 fi 10316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10317 conftest$ac_exeext conftest.$ac_ext ;; 10318 esac 10319 fi 10320 10321 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323 10324 eval supported=\$$cacheid 10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10326 printf "%s\n" "$supported" >&6; } 10327 if test "$supported" = "yes" ; then 10328 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10329 found="yes" 10330 fi 10331 fi 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 xorg_testset_save_CFLAGS="$CFLAGS" 10348 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10353 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10354 then : 10355 printf %s "(cached) " >&6 10356 else case e in #( 10357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358 /* end confdefs.h. */ 10359 int i; 10360 _ACEOF 10361 if ac_fn_c_try_compile "$LINENO" 10362 then : 10363 xorg_cv_cc_flag_unknown_warning_option=yes 10364 else case e in #( 10365 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10366 esac 10367 fi 10368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10369 esac 10370 fi 10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10374 CFLAGS="$xorg_testset_save_CFLAGS" 10375 fi 10376 10377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10380 fi 10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10385 then : 10386 printf %s "(cached) " >&6 10387 else case e in #( 10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 int i; 10391 _ACEOF 10392 if ac_fn_c_try_compile "$LINENO" 10393 then : 10394 xorg_cv_cc_flag_unused_command_line_argument=yes 10395 else case e in #( 10396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10397 esac 10398 fi 10399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10400 esac 10401 fi 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406 fi 10407 10408 found="no" 10409 10410 if test $found = "no" ; then 10411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10413 fi 10414 10415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10417 fi 10418 10419 CFLAGS="$CFLAGS -Wwrite-strings" 10420 10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10422 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10423 cacheid=xorg_cv_cc_flag__Wwrite_strings 10424 if eval test \${$cacheid+y} 10425 then : 10426 printf %s "(cached) " >&6 10427 else case e in #( 10428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429 /* end confdefs.h. */ 10430 int i; 10431 int 10432 main (void) 10433 { 10434 10435 ; 10436 return 0; 10437 } 10438 _ACEOF 10439 if ac_fn_c_try_link "$LINENO" 10440 then : 10441 eval $cacheid=yes 10442 else case e in #( 10443 e) eval $cacheid=no ;; 10444 esac 10445 fi 10446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10447 conftest$ac_exeext conftest.$ac_ext ;; 10448 esac 10449 fi 10450 10451 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453 10454 eval supported=\$$cacheid 10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10456 printf "%s\n" "$supported" >&6; } 10457 if test "$supported" = "yes" ; then 10458 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10459 found="yes" 10460 fi 10461 fi 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 xorg_testset_save_CFLAGS="$CFLAGS" 10478 10479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10483 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10484 then : 10485 printf %s "(cached) " >&6 10486 else case e in #( 10487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488 /* end confdefs.h. */ 10489 int i; 10490 _ACEOF 10491 if ac_fn_c_try_compile "$LINENO" 10492 then : 10493 xorg_cv_cc_flag_unknown_warning_option=yes 10494 else case e in #( 10495 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10496 esac 10497 fi 10498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10499 esac 10500 fi 10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10504 CFLAGS="$xorg_testset_save_CFLAGS" 10505 fi 10506 10507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10510 fi 10511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10515 then : 10516 printf %s "(cached) " >&6 10517 else case e in #( 10518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519 /* end confdefs.h. */ 10520 int i; 10521 _ACEOF 10522 if ac_fn_c_try_compile "$LINENO" 10523 then : 10524 xorg_cv_cc_flag_unused_command_line_argument=yes 10525 else case e in #( 10526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10527 esac 10528 fi 10529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10530 esac 10531 fi 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536 fi 10537 10538 found="no" 10539 10540 if test $found = "no" ; then 10541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 fi 10544 10545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10547 fi 10548 10549 CFLAGS="$CFLAGS -Waddress" 10550 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10552 printf %s "checking if $CC supports -Waddress... " >&6; } 10553 cacheid=xorg_cv_cc_flag__Waddress 10554 if eval test \${$cacheid+y} 10555 then : 10556 printf %s "(cached) " >&6 10557 else case e in #( 10558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559 /* end confdefs.h. */ 10560 int i; 10561 int 10562 main (void) 10563 { 10564 10565 ; 10566 return 0; 10567 } 10568 _ACEOF 10569 if ac_fn_c_try_link "$LINENO" 10570 then : 10571 eval $cacheid=yes 10572 else case e in #( 10573 e) eval $cacheid=no ;; 10574 esac 10575 fi 10576 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10577 conftest$ac_exeext conftest.$ac_ext ;; 10578 esac 10579 fi 10580 10581 10582 CFLAGS="$xorg_testset_save_CFLAGS" 10583 10584 eval supported=\$$cacheid 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10586 printf "%s\n" "$supported" >&6; } 10587 if test "$supported" = "yes" ; then 10588 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10589 found="yes" 10590 fi 10591 fi 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 xorg_testset_save_CFLAGS="$CFLAGS" 10608 10609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10613 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10614 then : 10615 printf %s "(cached) " >&6 10616 else case e in #( 10617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618 /* end confdefs.h. */ 10619 int i; 10620 _ACEOF 10621 if ac_fn_c_try_compile "$LINENO" 10622 then : 10623 xorg_cv_cc_flag_unknown_warning_option=yes 10624 else case e in #( 10625 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10626 esac 10627 fi 10628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10629 esac 10630 fi 10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10634 CFLAGS="$xorg_testset_save_CFLAGS" 10635 fi 10636 10637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10640 fi 10641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10645 then : 10646 printf %s "(cached) " >&6 10647 else case e in #( 10648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649 /* end confdefs.h. */ 10650 int i; 10651 _ACEOF 10652 if ac_fn_c_try_compile "$LINENO" 10653 then : 10654 xorg_cv_cc_flag_unused_command_line_argument=yes 10655 else case e in #( 10656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10657 esac 10658 fi 10659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10660 esac 10661 fi 10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10665 CFLAGS="$xorg_testset_save_CFLAGS" 10666 fi 10667 10668 found="no" 10669 10670 if test $found = "no" ; then 10671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10673 fi 10674 10675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10677 fi 10678 10679 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10680 10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10682 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10683 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10684 if eval test \${$cacheid+y} 10685 then : 10686 printf %s "(cached) " >&6 10687 else case e in #( 10688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689 /* end confdefs.h. */ 10690 int i; 10691 int 10692 main (void) 10693 { 10694 10695 ; 10696 return 0; 10697 } 10698 _ACEOF 10699 if ac_fn_c_try_link "$LINENO" 10700 then : 10701 eval $cacheid=yes 10702 else case e in #( 10703 e) eval $cacheid=no ;; 10704 esac 10705 fi 10706 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10707 conftest$ac_exeext conftest.$ac_ext ;; 10708 esac 10709 fi 10710 10711 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713 10714 eval supported=\$$cacheid 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10716 printf "%s\n" "$supported" >&6; } 10717 if test "$supported" = "yes" ; then 10718 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10719 found="yes" 10720 fi 10721 fi 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 xorg_testset_save_CFLAGS="$CFLAGS" 10738 10739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10743 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10744 then : 10745 printf %s "(cached) " >&6 10746 else case e in #( 10747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748 /* end confdefs.h. */ 10749 int i; 10750 _ACEOF 10751 if ac_fn_c_try_compile "$LINENO" 10752 then : 10753 xorg_cv_cc_flag_unknown_warning_option=yes 10754 else case e in #( 10755 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10756 esac 10757 fi 10758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10759 esac 10760 fi 10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10762 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10764 CFLAGS="$xorg_testset_save_CFLAGS" 10765 fi 10766 10767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10770 fi 10771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10775 then : 10776 printf %s "(cached) " >&6 10777 else case e in #( 10778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779 /* end confdefs.h. */ 10780 int i; 10781 _ACEOF 10782 if ac_fn_c_try_compile "$LINENO" 10783 then : 10784 xorg_cv_cc_flag_unused_command_line_argument=yes 10785 else case e in #( 10786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10787 esac 10788 fi 10789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10790 esac 10791 fi 10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10793 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10795 CFLAGS="$xorg_testset_save_CFLAGS" 10796 fi 10797 10798 found="no" 10799 10800 if test $found = "no" ; then 10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 fi 10804 10805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10807 fi 10808 10809 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10810 10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10812 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10813 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10814 if eval test \${$cacheid+y} 10815 then : 10816 printf %s "(cached) " >&6 10817 else case e in #( 10818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10819 /* end confdefs.h. */ 10820 int i; 10821 int 10822 main (void) 10823 { 10824 10825 ; 10826 return 0; 10827 } 10828 _ACEOF 10829 if ac_fn_c_try_link "$LINENO" 10830 then : 10831 eval $cacheid=yes 10832 else case e in #( 10833 e) eval $cacheid=no ;; 10834 esac 10835 fi 10836 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10837 conftest$ac_exeext conftest.$ac_ext ;; 10838 esac 10839 fi 10840 10841 10842 CFLAGS="$xorg_testset_save_CFLAGS" 10843 10844 eval supported=\$$cacheid 10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10846 printf "%s\n" "$supported" >&6; } 10847 if test "$supported" = "yes" ; then 10848 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10849 found="yes" 10850 fi 10851 fi 10852 10853 10854 fi 10855 10856 10857 10858 10859 10860 10861 10862 CWARNFLAGS="$BASE_CFLAGS" 10863 if test "x$GCC" = xyes ; then 10864 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10865 fi 10866 10867 10868 10869 10870 10871 10872 10873 10874 # Check whether --enable-strict-compilation was given. 10875 if test ${enable_strict_compilation+y} 10876 then : 10877 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10878 else case e in #( 10879 e) STRICT_COMPILE=no ;; 10880 esac 10881 fi 10882 10883 10884 10885 10886 10887 10888 STRICT_CFLAGS="" 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 xorg_testset_save_CFLAGS="$CFLAGS" 10903 10904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10907 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10908 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10909 then : 10910 printf %s "(cached) " >&6 10911 else case e in #( 10912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913 /* end confdefs.h. */ 10914 int i; 10915 _ACEOF 10916 if ac_fn_c_try_compile "$LINENO" 10917 then : 10918 xorg_cv_cc_flag_unknown_warning_option=yes 10919 else case e in #( 10920 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10921 esac 10922 fi 10923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10924 esac 10925 fi 10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10929 CFLAGS="$xorg_testset_save_CFLAGS" 10930 fi 10931 10932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10935 fi 10936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10940 then : 10941 printf %s "(cached) " >&6 10942 else case e in #( 10943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944 /* end confdefs.h. */ 10945 int i; 10946 _ACEOF 10947 if ac_fn_c_try_compile "$LINENO" 10948 then : 10949 xorg_cv_cc_flag_unused_command_line_argument=yes 10950 else case e in #( 10951 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10952 esac 10953 fi 10954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10955 esac 10956 fi 10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10960 CFLAGS="$xorg_testset_save_CFLAGS" 10961 fi 10962 10963 found="no" 10964 10965 if test $found = "no" ; then 10966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10968 fi 10969 10970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10972 fi 10973 10974 CFLAGS="$CFLAGS -pedantic" 10975 10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10977 printf %s "checking if $CC supports -pedantic... " >&6; } 10978 cacheid=xorg_cv_cc_flag__pedantic 10979 if eval test \${$cacheid+y} 10980 then : 10981 printf %s "(cached) " >&6 10982 else case e in #( 10983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10984 /* end confdefs.h. */ 10985 int i; 10986 int 10987 main (void) 10988 { 10989 10990 ; 10991 return 0; 10992 } 10993 _ACEOF 10994 if ac_fn_c_try_link "$LINENO" 10995 then : 10996 eval $cacheid=yes 10997 else case e in #( 10998 e) eval $cacheid=no ;; 10999 esac 11000 fi 11001 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11002 conftest$ac_exeext conftest.$ac_ext ;; 11003 esac 11004 fi 11005 11006 11007 CFLAGS="$xorg_testset_save_CFLAGS" 11008 11009 eval supported=\$$cacheid 11010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11011 printf "%s\n" "$supported" >&6; } 11012 if test "$supported" = "yes" ; then 11013 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11014 found="yes" 11015 fi 11016 fi 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 xorg_testset_save_CFLAGS="$CFLAGS" 11033 11034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11038 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11039 then : 11040 printf %s "(cached) " >&6 11041 else case e in #( 11042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043 /* end confdefs.h. */ 11044 int i; 11045 _ACEOF 11046 if ac_fn_c_try_compile "$LINENO" 11047 then : 11048 xorg_cv_cc_flag_unknown_warning_option=yes 11049 else case e in #( 11050 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11051 esac 11052 fi 11053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11054 esac 11055 fi 11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11059 CFLAGS="$xorg_testset_save_CFLAGS" 11060 fi 11061 11062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11065 fi 11066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11070 then : 11071 printf %s "(cached) " >&6 11072 else case e in #( 11073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11074 /* end confdefs.h. */ 11075 int i; 11076 _ACEOF 11077 if ac_fn_c_try_compile "$LINENO" 11078 then : 11079 xorg_cv_cc_flag_unused_command_line_argument=yes 11080 else case e in #( 11081 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11082 esac 11083 fi 11084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11085 esac 11086 fi 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11090 CFLAGS="$xorg_testset_save_CFLAGS" 11091 fi 11092 11093 found="no" 11094 11095 if test $found = "no" ; then 11096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11098 fi 11099 11100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11102 fi 11103 11104 CFLAGS="$CFLAGS -Werror" 11105 11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11107 printf %s "checking if $CC supports -Werror... " >&6; } 11108 cacheid=xorg_cv_cc_flag__Werror 11109 if eval test \${$cacheid+y} 11110 then : 11111 printf %s "(cached) " >&6 11112 else case e in #( 11113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11114 /* end confdefs.h. */ 11115 int i; 11116 int 11117 main (void) 11118 { 11119 11120 ; 11121 return 0; 11122 } 11123 _ACEOF 11124 if ac_fn_c_try_link "$LINENO" 11125 then : 11126 eval $cacheid=yes 11127 else case e in #( 11128 e) eval $cacheid=no ;; 11129 esac 11130 fi 11131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11132 conftest$ac_exeext conftest.$ac_ext ;; 11133 esac 11134 fi 11135 11136 11137 CFLAGS="$xorg_testset_save_CFLAGS" 11138 11139 eval supported=\$$cacheid 11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11141 printf "%s\n" "$supported" >&6; } 11142 if test "$supported" = "yes" ; then 11143 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11144 found="yes" 11145 fi 11146 fi 11147 11148 if test $found = "no" ; then 11149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11151 fi 11152 11153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11155 fi 11156 11157 CFLAGS="$CFLAGS -errwarn" 11158 11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11160 printf %s "checking if $CC supports -errwarn... " >&6; } 11161 cacheid=xorg_cv_cc_flag__errwarn 11162 if eval test \${$cacheid+y} 11163 then : 11164 printf %s "(cached) " >&6 11165 else case e in #( 11166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167 /* end confdefs.h. */ 11168 int i; 11169 int 11170 main (void) 11171 { 11172 11173 ; 11174 return 0; 11175 } 11176 _ACEOF 11177 if ac_fn_c_try_link "$LINENO" 11178 then : 11179 eval $cacheid=yes 11180 else case e in #( 11181 e) eval $cacheid=no ;; 11182 esac 11183 fi 11184 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11185 conftest$ac_exeext conftest.$ac_ext ;; 11186 esac 11187 fi 11188 11189 11190 CFLAGS="$xorg_testset_save_CFLAGS" 11191 11192 eval supported=\$$cacheid 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11194 printf "%s\n" "$supported" >&6; } 11195 if test "$supported" = "yes" ; then 11196 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11197 found="yes" 11198 fi 11199 fi 11200 11201 11202 11203 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11204 # activate it with -Werror, so we add it here explicitly. 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 xorg_testset_save_CFLAGS="$CFLAGS" 11219 11220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11224 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11225 then : 11226 printf %s "(cached) " >&6 11227 else case e in #( 11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229 /* end confdefs.h. */ 11230 int i; 11231 _ACEOF 11232 if ac_fn_c_try_compile "$LINENO" 11233 then : 11234 xorg_cv_cc_flag_unknown_warning_option=yes 11235 else case e in #( 11236 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11237 esac 11238 fi 11239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11240 esac 11241 fi 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11245 CFLAGS="$xorg_testset_save_CFLAGS" 11246 fi 11247 11248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11251 fi 11252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11256 then : 11257 printf %s "(cached) " >&6 11258 else case e in #( 11259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11260 /* end confdefs.h. */ 11261 int i; 11262 _ACEOF 11263 if ac_fn_c_try_compile "$LINENO" 11264 then : 11265 xorg_cv_cc_flag_unused_command_line_argument=yes 11266 else case e in #( 11267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11268 esac 11269 fi 11270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11271 esac 11272 fi 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11276 CFLAGS="$xorg_testset_save_CFLAGS" 11277 fi 11278 11279 found="no" 11280 11281 if test $found = "no" ; then 11282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11284 fi 11285 11286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11288 fi 11289 11290 CFLAGS="$CFLAGS -Werror=attributes" 11291 11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11293 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11294 cacheid=xorg_cv_cc_flag__Werror_attributes 11295 if eval test \${$cacheid+y} 11296 then : 11297 printf %s "(cached) " >&6 11298 else case e in #( 11299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300 /* end confdefs.h. */ 11301 int i; 11302 int 11303 main (void) 11304 { 11305 11306 ; 11307 return 0; 11308 } 11309 _ACEOF 11310 if ac_fn_c_try_link "$LINENO" 11311 then : 11312 eval $cacheid=yes 11313 else case e in #( 11314 e) eval $cacheid=no ;; 11315 esac 11316 fi 11317 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11318 conftest$ac_exeext conftest.$ac_ext ;; 11319 esac 11320 fi 11321 11322 11323 CFLAGS="$xorg_testset_save_CFLAGS" 11324 11325 eval supported=\$$cacheid 11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11327 printf "%s\n" "$supported" >&6; } 11328 if test "$supported" = "yes" ; then 11329 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11330 found="yes" 11331 fi 11332 fi 11333 11334 11335 11336 if test "x$STRICT_COMPILE" = "xyes"; then 11337 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11338 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11339 fi 11340 11341 11342 11343 11344 11345 11346 11347 11348 cat >>confdefs.h <<_ACEOF 11349 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11350 _ACEOF 11351 11352 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11353 if test "x$PVM" = "x"; then 11354 PVM="0" 11355 fi 11356 11357 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11358 11359 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11360 if test "x$PVP" = "x"; then 11361 PVP="0" 11362 fi 11363 11364 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11365 11366 11367 11368 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11369 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11370 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11371 touch \$(top_srcdir)/ChangeLog; \ 11372 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11373 11374 11375 11376 11377 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11378 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11379 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11380 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11381 touch \$(top_srcdir)/INSTALL; \ 11382 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11383 11384 11385 11386 11387 11388 11389 case $host_os in 11390 solaris*) 11391 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11392 # check for a man page file found in later versions that use 11393 # traditional section numbers instead 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11395 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11396 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11397 then : 11398 printf %s "(cached) " >&6 11399 else case e in #( 11400 e) test "$cross_compiling" = yes && 11401 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11402 if test -r "/usr/share/man/man7/attributes.7"; then 11403 ac_cv_file__usr_share_man_man7_attributes_7=yes 11404 else 11405 ac_cv_file__usr_share_man_man7_attributes_7=no 11406 fi ;; 11407 esac 11408 fi 11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11410 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11411 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11412 then : 11413 SYSV_MAN_SECTIONS=false 11414 else case e in #( 11415 e) SYSV_MAN_SECTIONS=true ;; 11416 esac 11417 fi 11418 11419 ;; 11420 *) SYSV_MAN_SECTIONS=false ;; 11421 esac 11422 11423 if test x$APP_MAN_SUFFIX = x ; then 11424 APP_MAN_SUFFIX=1 11425 fi 11426 if test x$APP_MAN_DIR = x ; then 11427 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11428 fi 11429 11430 if test x$LIB_MAN_SUFFIX = x ; then 11431 LIB_MAN_SUFFIX=3 11432 fi 11433 if test x$LIB_MAN_DIR = x ; then 11434 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11435 fi 11436 11437 if test x$FILE_MAN_SUFFIX = x ; then 11438 case $SYSV_MAN_SECTIONS in 11439 true) FILE_MAN_SUFFIX=4 ;; 11440 *) FILE_MAN_SUFFIX=5 ;; 11441 esac 11442 fi 11443 if test x$FILE_MAN_DIR = x ; then 11444 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11445 fi 11446 11447 if test x$MISC_MAN_SUFFIX = x ; then 11448 case $SYSV_MAN_SECTIONS in 11449 true) MISC_MAN_SUFFIX=5 ;; 11450 *) MISC_MAN_SUFFIX=7 ;; 11451 esac 11452 fi 11453 if test x$MISC_MAN_DIR = x ; then 11454 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11455 fi 11456 11457 if test x$DRIVER_MAN_SUFFIX = x ; then 11458 case $SYSV_MAN_SECTIONS in 11459 true) DRIVER_MAN_SUFFIX=7 ;; 11460 *) DRIVER_MAN_SUFFIX=4 ;; 11461 esac 11462 fi 11463 if test x$DRIVER_MAN_DIR = x ; then 11464 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11465 fi 11466 11467 if test x$ADMIN_MAN_SUFFIX = x ; then 11468 case $SYSV_MAN_SECTIONS in 11469 true) ADMIN_MAN_SUFFIX=1m ;; 11470 *) ADMIN_MAN_SUFFIX=8 ;; 11471 esac 11472 fi 11473 if test x$ADMIN_MAN_DIR = x ; then 11474 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11475 fi 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 XORG_MAN_PAGE="X Version 11" 11492 11493 MAN_SUBSTS="\ 11494 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11495 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11496 -e 's|__xservername__|Xorg|g' \ 11497 -e 's|__xconfigfile__|xorg.conf|g' \ 11498 -e 's|__projectroot__|\$(prefix)|g' \ 11499 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11500 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11501 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11502 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11503 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11504 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11505 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11506 11507 11508 11509 11510 AM_DEFAULT_VERBOSITY=0 11511 11512 11513 11514 # Checks for library functions. 11515 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 11516 if test "x$ac_cv_func_strlcat" = xyes 11517 then : 11518 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 11519 11520 fi 11521 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 11522 if test "x$ac_cv_func_strlcpy" = xyes 11523 then : 11524 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 11525 11526 fi 11527 11528 11529 # Base set of required pkg-config packages 11530 XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11 xproto >= 7.0.22" 11531 11532 # Ensure pkg-config is initialized, since first call to macros is conditional 11533 11534 11535 11536 11537 11538 11539 11540 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11541 if test -n "$ac_tool_prefix"; then 11542 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11543 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11545 printf %s "checking for $ac_word... " >&6; } 11546 if test ${ac_cv_path_PKG_CONFIG+y} 11547 then : 11548 printf %s "(cached) " >&6 11549 else case e in #( 11550 e) case $PKG_CONFIG in 11551 [\\/]* | ?:[\\/]*) 11552 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11553 ;; 11554 *) 11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11556 for as_dir in $PATH 11557 do 11558 IFS=$as_save_IFS 11559 case $as_dir in #((( 11560 '') as_dir=./ ;; 11561 */) ;; 11562 *) as_dir=$as_dir/ ;; 11563 esac 11564 for ac_exec_ext in '' $ac_executable_extensions; do 11565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11566 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11568 break 2 11569 fi 11570 done 11571 done 11572 IFS=$as_save_IFS 11573 11574 ;; 11575 esac ;; 11576 esac 11577 fi 11578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11579 if test -n "$PKG_CONFIG"; then 11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11581 printf "%s\n" "$PKG_CONFIG" >&6; } 11582 else 11583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584 printf "%s\n" "no" >&6; } 11585 fi 11586 11587 11588 fi 11589 if test -z "$ac_cv_path_PKG_CONFIG"; then 11590 ac_pt_PKG_CONFIG=$PKG_CONFIG 11591 # Extract the first word of "pkg-config", so it can be a program name with args. 11592 set dummy pkg-config; ac_word=$2 11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11594 printf %s "checking for $ac_word... " >&6; } 11595 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 11596 then : 11597 printf %s "(cached) " >&6 11598 else case e in #( 11599 e) case $ac_pt_PKG_CONFIG in 11600 [\\/]* | ?:[\\/]*) 11601 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11602 ;; 11603 *) 11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11605 for as_dir in $PATH 11606 do 11607 IFS=$as_save_IFS 11608 case $as_dir in #((( 11609 '') as_dir=./ ;; 11610 */) ;; 11611 *) as_dir=$as_dir/ ;; 11612 esac 11613 for ac_exec_ext in '' $ac_executable_extensions; do 11614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11615 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 11616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11617 break 2 11618 fi 11619 done 11620 done 11621 IFS=$as_save_IFS 11622 11623 ;; 11624 esac ;; 11625 esac 11626 fi 11627 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11628 if test -n "$ac_pt_PKG_CONFIG"; then 11629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11630 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 11631 else 11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11633 printf "%s\n" "no" >&6; } 11634 fi 11635 11636 if test "x$ac_pt_PKG_CONFIG" = x; then 11637 PKG_CONFIG="" 11638 else 11639 case $cross_compiling:$ac_tool_warned in 11640 yes:) 11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11643 ac_tool_warned=yes ;; 11644 esac 11645 PKG_CONFIG=$ac_pt_PKG_CONFIG 11646 fi 11647 else 11648 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11649 fi 11650 11651 fi 11652 if test -n "$PKG_CONFIG"; then 11653 _pkg_min_version=0.9.0 11654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11655 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11656 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11658 printf "%s\n" "yes" >&6; } 11659 else 11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661 printf "%s\n" "no" >&6; } 11662 PKG_CONFIG="" 11663 fi 11664 fi 11665 11666 # Use render & xft2 to draw logo? 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use render & xft2 to draw logo" >&5 11668 printf %s "checking whether to use render & xft2 to draw logo... " >&6; } 11669 11670 # Check whether --with-render was given. 11671 if test ${with_render+y} 11672 then : 11673 withval=$with_render; USE_RENDER="$withval" 11674 else case e in #( 11675 e) USE_RENDER="try" ;; 11676 esac 11677 fi 11678 11679 11680 if test "x$USE_RENDER" = "xtry" ; then 11681 if test -n "$PKG_CONFIG" && \ 11682 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5 11683 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5 11684 ac_status=$? 11685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11686 test $ac_status = 0; }; then 11687 USE_RENDER="yes" 11688 else 11689 USE_RENDER="no" 11690 fi 11691 fi 11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_RENDER" >&5 11693 printf "%s\n" "$USE_RENDER" >&6; } 11694 11695 if test "x$USE_RENDER" = "xyes" ; then 11696 XLOGO_DEPS="xft xrender $XLOGO_DEPS" 11697 11698 11699 printf "%s\n" "#define XRENDER 1" >>confdefs.h 11700 11701 fi 11702 if test "x$USE_RENDER" = "xyes"; then 11703 USE_RENDER_TRUE= 11704 USE_RENDER_FALSE='#' 11705 else 11706 USE_RENDER_TRUE='#' 11707 USE_RENDER_FALSE= 11708 fi 11709 11710 11711 # Use XKB to ring the bell? 11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use XkbStdBell" >&5 11713 printf %s "checking whether to use XkbStdBell... " >&6; } 11714 11715 # Check whether --with-xkb was given. 11716 if test ${with_xkb+y} 11717 then : 11718 withval=$with_xkb; USE_XKB="$withval" 11719 else case e in #( 11720 e) USE_XKB="try" ;; 11721 esac 11722 fi 11723 11724 11725 if test "x$USE_XKB" = "xtry" ; then 11726 if test -n "$PKG_CONFIG" && \ 11727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5 11728 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5 11729 ac_status=$? 11730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11731 test $ac_status = 0; }; then 11732 USE_XKB="yes" 11733 else 11734 USE_XKB="no" 11735 fi 11736 fi 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_XKB" >&5 11738 printf "%s\n" "$USE_XKB" >&6; } 11739 11740 if test "x$USE_XKB" = "xyes" ; then 11741 XLOGO_DEPS="xkbfile $XLOGO_DEPS" 11742 11743 11744 printf "%s\n" "#define XKB 1" >>confdefs.h 11745 11746 fi 11747 11748 11749 pkg_failed=no 11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5 11751 printf %s "checking for XLOGO... " >&6; } 11752 11753 if test -n "$XLOGO_CFLAGS"; then 11754 pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS" 11755 elif test -n "$PKG_CONFIG"; then 11756 if test -n "$PKG_CONFIG" && \ 11757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 11758 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 11759 ac_status=$? 11760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11761 test $ac_status = 0; }; then 11762 pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null` 11763 test "x$?" != "x0" && pkg_failed=yes 11764 else 11765 pkg_failed=yes 11766 fi 11767 else 11768 pkg_failed=untried 11769 fi 11770 if test -n "$XLOGO_LIBS"; then 11771 pkg_cv_XLOGO_LIBS="$XLOGO_LIBS" 11772 elif test -n "$PKG_CONFIG"; then 11773 if test -n "$PKG_CONFIG" && \ 11774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5 11775 ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5 11776 ac_status=$? 11777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11778 test $ac_status = 0; }; then 11779 pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null` 11780 test "x$?" != "x0" && pkg_failed=yes 11781 else 11782 pkg_failed=yes 11783 fi 11784 else 11785 pkg_failed=untried 11786 fi 11787 11788 11789 11790 if test $pkg_failed = yes; then 11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11792 printf "%s\n" "no" >&6; } 11793 11794 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11795 _pkg_short_errors_supported=yes 11796 else 11797 _pkg_short_errors_supported=no 11798 fi 11799 if test $_pkg_short_errors_supported = yes; then 11800 XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 11801 else 11802 XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1` 11803 fi 11804 # Put the nasty error message in config.log where it belongs 11805 echo "$XLOGO_PKG_ERRORS" >&5 11806 11807 as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met: 11808 11809 $XLOGO_PKG_ERRORS 11810 11811 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11812 installed software in a non-standard prefix. 11813 11814 Alternatively, you may set the environment variables XLOGO_CFLAGS 11815 and XLOGO_LIBS to avoid the need to call pkg-config. 11816 See the pkg-config man page for more details." "$LINENO" 5 11817 elif test $pkg_failed = untried; then 11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819 printf "%s\n" "no" >&6; } 11820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11821 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11822 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11823 is in your PATH or set the PKG_CONFIG environment variable to the full 11824 path to pkg-config. 11825 11826 Alternatively, you may set the environment variables XLOGO_CFLAGS 11827 and XLOGO_LIBS to avoid the need to call pkg-config. 11828 See the pkg-config man page for more details. 11829 11830 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11831 See 'config.log' for more details" "$LINENO" 5; } 11832 else 11833 XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS 11834 XLOGO_LIBS=$pkg_cv_XLOGO_LIBS 11835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11836 printf "%s\n" "yes" >&6; } 11837 11838 fi 11839 11840 11841 pkg_failed=no 11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11843 printf %s "checking for APPDEFS... " >&6; } 11844 11845 if test -n "$APPDEFS_CFLAGS"; then 11846 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11847 elif test -n "$PKG_CONFIG"; then 11848 if test -n "$PKG_CONFIG" && \ 11849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11850 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11851 ac_status=$? 11852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11853 test $ac_status = 0; }; then 11854 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11855 test "x$?" != "x0" && pkg_failed=yes 11856 else 11857 pkg_failed=yes 11858 fi 11859 else 11860 pkg_failed=untried 11861 fi 11862 if test -n "$APPDEFS_LIBS"; then 11863 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11864 elif test -n "$PKG_CONFIG"; then 11865 if test -n "$PKG_CONFIG" && \ 11866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11867 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11868 ac_status=$? 11869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11870 test $ac_status = 0; }; then 11871 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11872 test "x$?" != "x0" && pkg_failed=yes 11873 else 11874 pkg_failed=yes 11875 fi 11876 else 11877 pkg_failed=untried 11878 fi 11879 11880 11881 11882 if test $pkg_failed = yes; then 11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11884 printf "%s\n" "no" >&6; } 11885 11886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11887 _pkg_short_errors_supported=yes 11888 else 11889 _pkg_short_errors_supported=no 11890 fi 11891 if test $_pkg_short_errors_supported = yes; then 11892 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11893 else 11894 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11895 fi 11896 # Put the nasty error message in config.log where it belongs 11897 echo "$APPDEFS_PKG_ERRORS" >&5 11898 11899 as_fn_error $? "Package requirements (xt) were not met: 11900 11901 $APPDEFS_PKG_ERRORS 11902 11903 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11904 installed software in a non-standard prefix. 11905 11906 Alternatively, you may set the environment variables APPDEFS_CFLAGS 11907 and APPDEFS_LIBS to avoid the need to call pkg-config. 11908 See the pkg-config man page for more details." "$LINENO" 5 11909 elif test $pkg_failed = untried; then 11910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11911 printf "%s\n" "no" >&6; } 11912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11914 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11915 is in your PATH or set the PKG_CONFIG environment variable to the full 11916 path to pkg-config. 11917 11918 Alternatively, you may set the environment variables APPDEFS_CFLAGS 11919 and APPDEFS_LIBS to avoid the need to call pkg-config. 11920 See the pkg-config man page for more details. 11921 11922 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11923 See 'config.log' for more details" "$LINENO" 5; } 11924 else 11925 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11926 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11928 printf "%s\n" "yes" >&6; } 11929 11930 fi 11931 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11932 11933 # Check whether --with-appdefaultdir was given. 11934 if test ${with_appdefaultdir+y} 11935 then : 11936 withval=$with_appdefaultdir; appdefaultdir="$withval" 11937 else case e in #( 11938 e) appdefaultdir="${xt_appdefaultdir}" ;; 11939 esac 11940 fi 11941 11942 11943 11944 ac_config_files="$ac_config_files Makefile man/Makefile" 11945 11946 cat >confcache <<\_ACEOF 11947 # This file is a shell script that caches the results of configure 11948 # tests run on this system so they can be shared between configure 11949 # scripts and configure runs, see configure's option --config-cache. 11950 # It is not useful on other systems. If it contains results you don't 11951 # want to keep, you may remove or edit it. 11952 # 11953 # config.status only pays attention to the cache file if you give it 11954 # the --recheck option to rerun configure. 11955 # 11956 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11957 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11958 # following values. 11959 11960 _ACEOF 11961 11962 # The following way of writing the cache mishandles newlines in values, 11963 # but we know of no workaround that is simple, portable, and efficient. 11964 # So, we kill variables containing newlines. 11965 # Ultrix sh set writes to stderr and can't be redirected directly, 11966 # and sets the high bit in the cache file unless we assign to the vars. 11967 ( 11968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11969 eval ac_val=\$$ac_var 11970 case $ac_val in #( 11971 *${as_nl}*) 11972 case $ac_var in #( 11973 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11974 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11975 esac 11976 case $ac_var in #( 11977 _ | IFS | as_nl) ;; #( 11978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11979 *) { eval $ac_var=; unset $ac_var;} ;; 11980 esac ;; 11981 esac 11982 done 11983 11984 (set) 2>&1 | 11985 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11986 *${as_nl}ac_space=\ *) 11987 # 'set' does not quote correctly, so add quotes: double-quote 11988 # substitution turns \\\\ into \\, and sed turns \\ into \. 11989 sed -n \ 11990 "s/'/'\\\\''/g; 11991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11992 ;; #( 11993 *) 11994 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11996 ;; 11997 esac | 11998 sort 11999 ) | 12000 sed ' 12001 /^ac_cv_env_/b end 12002 t clear 12003 :clear 12004 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12005 t end 12006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12007 :end' >>confcache 12008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12009 if test -w "$cache_file"; then 12010 if test "x$cache_file" != "x/dev/null"; then 12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12012 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12013 if test ! -f "$cache_file" || test -h "$cache_file"; then 12014 cat confcache >"$cache_file" 12015 else 12016 case $cache_file in #( 12017 */* | ?:*) 12018 mv -f confcache "$cache_file"$$ && 12019 mv -f "$cache_file"$$ "$cache_file" ;; #( 12020 *) 12021 mv -f confcache "$cache_file" ;; 12022 esac 12023 fi 12024 fi 12025 else 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12027 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12028 fi 12029 fi 12030 rm -f confcache 12031 12032 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12033 # Let make expand exec_prefix. 12034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12035 12036 DEFS=-DHAVE_CONFIG_H 12037 12038 ac_libobjs= 12039 ac_ltlibobjs= 12040 U= 12041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12042 # 1. Remove the extension, and $U if already installed. 12043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12044 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12046 # will be set to the directory where LIBOBJS objects are built. 12047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12049 done 12050 LIBOBJS=$ac_libobjs 12051 12052 LTLIBOBJS=$ac_ltlibobjs 12053 12054 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12056 printf %s "checking that generated files are newer than configure... " >&6; } 12057 if test -n "$am_sleep_pid"; then 12058 # Hide warnings about reused PIDs. 12059 wait $am_sleep_pid 2>/dev/null 12060 fi 12061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12062 printf "%s\n" "done" >&6; } 12063 case $enable_silent_rules in # ((( 12064 yes) AM_DEFAULT_VERBOSITY=0;; 12065 no) AM_DEFAULT_VERBOSITY=1;; 12066 esac 12067 if test $am_cv_make_support_nested_variables = yes; then 12068 AM_V='$(V)' 12069 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12070 else 12071 AM_V=$AM_DEFAULT_VERBOSITY 12072 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12073 fi 12074 12075 if test -n "$EXEEXT"; then 12076 am__EXEEXT_TRUE= 12077 am__EXEEXT_FALSE='#' 12078 else 12079 am__EXEEXT_TRUE='#' 12080 am__EXEEXT_FALSE= 12081 fi 12082 12083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12084 as_fn_error $? "conditional \"AMDEP\" was never defined. 12085 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12086 fi 12087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12089 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12090 fi 12091 if test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then 12092 as_fn_error $? "conditional \"USE_RENDER\" was never defined. 12093 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12094 fi 12095 12096 : "${CONFIG_STATUS=./config.status}" 12097 ac_write_fail=0 12098 ac_clean_files_save=$ac_clean_files 12099 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12101 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12102 as_write_fail=0 12103 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12104 #! $SHELL 12105 # Generated by $as_me. 12106 # Run this file to recreate the current configuration. 12107 # Compiler output produced by configure, useful for debugging 12108 # configure, is in config.log if it exists. 12109 12110 debug=false 12111 ac_cs_recheck=false 12112 ac_cs_silent=false 12113 12114 SHELL=\${CONFIG_SHELL-$SHELL} 12115 export SHELL 12116 _ASEOF 12117 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12118 ## -------------------- ## 12119 ## M4sh Initialization. ## 12120 ## -------------------- ## 12121 12122 # Be more Bourne compatible 12123 DUALCASE=1; export DUALCASE # for MKS sh 12124 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12125 then : 12126 emulate sh 12127 NULLCMD=: 12128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12129 # is contrary to our usage. Disable this feature. 12130 alias -g '${1+"$@"}'='"$@"' 12131 setopt NO_GLOB_SUBST 12132 else case e in #( 12133 e) case `(set -o) 2>/dev/null` in #( 12134 *posix*) : 12135 set -o posix ;; #( 12136 *) : 12137 ;; 12138 esac ;; 12139 esac 12140 fi 12141 12142 12143 12144 # Reset variables that may have inherited troublesome values from 12145 # the environment. 12146 12147 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12148 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12149 # side effect of setting IFS to empty, thus disabling word splitting.) 12150 # Quoting is to prevent editors from complaining about space-tab. 12151 as_nl=' 12152 ' 12153 export as_nl 12154 IFS=" "" $as_nl" 12155 12156 PS1='$ ' 12157 PS2='> ' 12158 PS4='+ ' 12159 12160 # Ensure predictable behavior from utilities with locale-dependent output. 12161 LC_ALL=C 12162 export LC_ALL 12163 LANGUAGE=C 12164 export LANGUAGE 12165 12166 # We cannot yet rely on "unset" to work, but we need these variables 12167 # to be unset--not just set to an empty or harmless value--now, to 12168 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12169 # also avoids known problems related to "unset" and subshell syntax 12170 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12171 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12172 do eval test \${$as_var+y} \ 12173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12174 done 12175 12176 # Ensure that fds 0, 1, and 2 are open. 12177 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12178 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12179 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12180 12181 # The user is always right. 12182 if ${PATH_SEPARATOR+false} :; then 12183 PATH_SEPARATOR=: 12184 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12185 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12186 PATH_SEPARATOR=';' 12187 } 12188 fi 12189 12190 12191 # Find who we are. Look in the path if we contain no directory separator. 12192 as_myself= 12193 case $0 in #(( 12194 *[\\/]* ) as_myself=$0 ;; 12195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12196 for as_dir in $PATH 12197 do 12198 IFS=$as_save_IFS 12199 case $as_dir in #((( 12200 '') as_dir=./ ;; 12201 */) ;; 12202 *) as_dir=$as_dir/ ;; 12203 esac 12204 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12205 done 12206 IFS=$as_save_IFS 12207 12208 ;; 12209 esac 12210 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12211 # in which case we are not to be found in the path. 12212 if test "x$as_myself" = x; then 12213 as_myself=$0 12214 fi 12215 if test ! -f "$as_myself"; then 12216 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12217 exit 1 12218 fi 12219 12220 12221 12222 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12223 # ---------------------------------------- 12224 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12225 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12226 # script with STATUS, using 1 if that was 0. 12227 as_fn_error () 12228 { 12229 as_status=$1; test $as_status -eq 0 && as_status=1 12230 if test "$4"; then 12231 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12233 fi 12234 printf "%s\n" "$as_me: error: $2" >&2 12235 as_fn_exit $as_status 12236 } # as_fn_error 12237 12238 12239 # as_fn_set_status STATUS 12240 # ----------------------- 12241 # Set $? to STATUS, without forking. 12242 as_fn_set_status () 12243 { 12244 return $1 12245 } # as_fn_set_status 12246 12247 # as_fn_exit STATUS 12248 # ----------------- 12249 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12250 as_fn_exit () 12251 { 12252 set +e 12253 as_fn_set_status $1 12254 exit $1 12255 } # as_fn_exit 12256 12257 # as_fn_unset VAR 12258 # --------------- 12259 # Portably unset VAR. 12260 as_fn_unset () 12261 { 12262 { eval $1=; unset $1;} 12263 } 12264 as_unset=as_fn_unset 12265 12266 # as_fn_append VAR VALUE 12267 # ---------------------- 12268 # Append the text in VALUE to the end of the definition contained in VAR. Take 12269 # advantage of any shell optimizations that allow amortized linear growth over 12270 # repeated appends, instead of the typical quadratic growth present in naive 12271 # implementations. 12272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12273 then : 12274 eval 'as_fn_append () 12275 { 12276 eval $1+=\$2 12277 }' 12278 else case e in #( 12279 e) as_fn_append () 12280 { 12281 eval $1=\$$1\$2 12282 } ;; 12283 esac 12284 fi # as_fn_append 12285 12286 # as_fn_arith ARG... 12287 # ------------------ 12288 # Perform arithmetic evaluation on the ARGs, and store the result in the 12289 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12290 # must be portable across $(()) and expr. 12291 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12292 then : 12293 eval 'as_fn_arith () 12294 { 12295 as_val=$(( $* )) 12296 }' 12297 else case e in #( 12298 e) as_fn_arith () 12299 { 12300 as_val=`expr "$@" || test $? -eq 1` 12301 } ;; 12302 esac 12303 fi # as_fn_arith 12304 12305 12306 if expr a : '\(a\)' >/dev/null 2>&1 && 12307 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12308 as_expr=expr 12309 else 12310 as_expr=false 12311 fi 12312 12313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12314 as_basename=basename 12315 else 12316 as_basename=false 12317 fi 12318 12319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12320 as_dirname=dirname 12321 else 12322 as_dirname=false 12323 fi 12324 12325 as_me=`$as_basename -- "$0" || 12326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12327 X"$0" : 'X\(//\)$' \| \ 12328 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12329 printf "%s\n" X/"$0" | 12330 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12331 s//\1/ 12332 q 12333 } 12334 /^X\/\(\/\/\)$/{ 12335 s//\1/ 12336 q 12337 } 12338 /^X\/\(\/\).*/{ 12339 s//\1/ 12340 q 12341 } 12342 s/.*/./; q'` 12343 12344 # Avoid depending upon Character Ranges. 12345 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12348 as_cr_digits='0123456789' 12349 as_cr_alnum=$as_cr_Letters$as_cr_digits 12350 12351 12352 # Determine whether it's possible to make 'echo' print without a newline. 12353 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12354 # for compatibility with existing Makefiles. 12355 ECHO_C= ECHO_N= ECHO_T= 12356 case `echo -n x` in #((((( 12357 -n*) 12358 case `echo 'xy\c'` in 12359 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12360 xy) ECHO_C='\c';; 12361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12362 ECHO_T=' ';; 12363 esac;; 12364 *) 12365 ECHO_N='-n';; 12366 esac 12367 12368 # For backward compatibility with old third-party macros, we provide 12369 # the shell variables $as_echo and $as_echo_n. New code should use 12370 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12371 as_echo='printf %s\n' 12372 as_echo_n='printf %s' 12373 12374 rm -f conf$$ conf$$.exe conf$$.file 12375 if test -d conf$$.dir; then 12376 rm -f conf$$.dir/conf$$.file 12377 else 12378 rm -f conf$$.dir 12379 mkdir conf$$.dir 2>/dev/null 12380 fi 12381 if (echo >conf$$.file) 2>/dev/null; then 12382 if ln -s conf$$.file conf$$ 2>/dev/null; then 12383 as_ln_s='ln -s' 12384 # ... but there are two gotchas: 12385 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12386 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12387 # In both cases, we have to default to 'cp -pR'. 12388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12389 as_ln_s='cp -pR' 12390 elif ln conf$$.file conf$$ 2>/dev/null; then 12391 as_ln_s=ln 12392 else 12393 as_ln_s='cp -pR' 12394 fi 12395 else 12396 as_ln_s='cp -pR' 12397 fi 12398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12399 rmdir conf$$.dir 2>/dev/null 12400 12401 12402 # as_fn_mkdir_p 12403 # ------------- 12404 # Create "$as_dir" as a directory, including parents if necessary. 12405 as_fn_mkdir_p () 12406 { 12407 12408 case $as_dir in #( 12409 -*) as_dir=./$as_dir;; 12410 esac 12411 test -d "$as_dir" || eval $as_mkdir_p || { 12412 as_dirs= 12413 while :; do 12414 case $as_dir in #( 12415 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12416 *) as_qdir=$as_dir;; 12417 esac 12418 as_dirs="'$as_qdir' $as_dirs" 12419 as_dir=`$as_dirname -- "$as_dir" || 12420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12421 X"$as_dir" : 'X\(//\)[^/]' \| \ 12422 X"$as_dir" : 'X\(//\)$' \| \ 12423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12424 printf "%s\n" X"$as_dir" | 12425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12426 s//\1/ 12427 q 12428 } 12429 /^X\(\/\/\)[^/].*/{ 12430 s//\1/ 12431 q 12432 } 12433 /^X\(\/\/\)$/{ 12434 s//\1/ 12435 q 12436 } 12437 /^X\(\/\).*/{ 12438 s//\1/ 12439 q 12440 } 12441 s/.*/./; q'` 12442 test -d "$as_dir" && break 12443 done 12444 test -z "$as_dirs" || eval "mkdir $as_dirs" 12445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12446 12447 12448 } # as_fn_mkdir_p 12449 if mkdir -p . 2>/dev/null; then 12450 as_mkdir_p='mkdir -p "$as_dir"' 12451 else 12452 test -d ./-p && rmdir ./-p 12453 as_mkdir_p=false 12454 fi 12455 12456 12457 # as_fn_executable_p FILE 12458 # ----------------------- 12459 # Test if FILE is an executable regular file. 12460 as_fn_executable_p () 12461 { 12462 test -f "$1" && test -x "$1" 12463 } # as_fn_executable_p 12464 as_test_x='test -x' 12465 as_executable_p=as_fn_executable_p 12466 12467 # Sed expression to map a string onto a valid CPP name. 12468 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12469 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12470 12471 # Sed expression to map a string onto a valid variable name. 12472 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12473 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12474 12475 12476 exec 6>&1 12477 ## ----------------------------------- ## 12478 ## Main body of $CONFIG_STATUS script. ## 12479 ## ----------------------------------- ## 12480 _ASEOF 12481 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12482 12483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12484 # Save the log message, to keep $0 and so on meaningful, and to 12485 # report actual input values of CONFIG_FILES etc. instead of their 12486 # values after options handling. 12487 ac_log=" 12488 This file was extended by xlogo $as_me 1.0.7, which was 12489 generated by GNU Autoconf 2.72. Invocation command line was 12490 12491 CONFIG_FILES = $CONFIG_FILES 12492 CONFIG_HEADERS = $CONFIG_HEADERS 12493 CONFIG_LINKS = $CONFIG_LINKS 12494 CONFIG_COMMANDS = $CONFIG_COMMANDS 12495 $ $0 $@ 12496 12497 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12498 " 12499 12500 _ACEOF 12501 12502 case $ac_config_files in *" 12503 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12504 esac 12505 12506 case $ac_config_headers in *" 12507 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12508 esac 12509 12510 12511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12512 # Files that config.status was made for. 12513 config_files="$ac_config_files" 12514 config_headers="$ac_config_headers" 12515 config_commands="$ac_config_commands" 12516 12517 _ACEOF 12518 12519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12520 ac_cs_usage="\ 12521 '$as_me' instantiates files and other configuration actions 12522 from templates according to the current configuration. Unless the files 12523 and actions are specified as TAGs, all are instantiated by default. 12524 12525 Usage: $0 [OPTION]... [TAG]... 12526 12527 -h, --help print this help, then exit 12528 -V, --version print version number and configuration settings, then exit 12529 --config print configuration, then exit 12530 -q, --quiet, --silent 12531 do not print progress messages 12532 -d, --debug don't remove temporary files 12533 --recheck update $as_me by reconfiguring in the same conditions 12534 --file=FILE[:TEMPLATE] 12535 instantiate the configuration file FILE 12536 --header=FILE[:TEMPLATE] 12537 instantiate the configuration header FILE 12538 12539 Configuration files: 12540 $config_files 12541 12542 Configuration headers: 12543 $config_headers 12544 12545 Configuration commands: 12546 $config_commands 12547 12548 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/-/issues>." 12549 12550 _ACEOF 12551 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12552 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12554 ac_cs_config='$ac_cs_config_escaped' 12555 ac_cs_version="\\ 12556 xlogo config.status 1.0.7 12557 configured by $0, generated by GNU Autoconf 2.72, 12558 with options \\"\$ac_cs_config\\" 12559 12560 Copyright (C) 2023 Free Software Foundation, Inc. 12561 This config.status script is free software; the Free Software Foundation 12562 gives unlimited permission to copy, distribute and modify it." 12563 12564 ac_pwd='$ac_pwd' 12565 srcdir='$srcdir' 12566 INSTALL='$INSTALL' 12567 MKDIR_P='$MKDIR_P' 12568 AWK='$AWK' 12569 test -n "\$AWK" || AWK=awk 12570 _ACEOF 12571 12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12573 # The default lists apply if the user does not specify any file. 12574 ac_need_defaults=: 12575 while test $# != 0 12576 do 12577 case $1 in 12578 --*=?*) 12579 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12581 ac_shift=: 12582 ;; 12583 --*=) 12584 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12585 ac_optarg= 12586 ac_shift=: 12587 ;; 12588 *) 12589 ac_option=$1 12590 ac_optarg=$2 12591 ac_shift=shift 12592 ;; 12593 esac 12594 12595 case $ac_option in 12596 # Handling of the options. 12597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12598 ac_cs_recheck=: ;; 12599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12600 printf "%s\n" "$ac_cs_version"; exit ;; 12601 --config | --confi | --conf | --con | --co | --c ) 12602 printf "%s\n" "$ac_cs_config"; exit ;; 12603 --debug | --debu | --deb | --de | --d | -d ) 12604 debug=: ;; 12605 --file | --fil | --fi | --f ) 12606 $ac_shift 12607 case $ac_optarg in 12608 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12609 '') as_fn_error $? "missing file argument" ;; 12610 esac 12611 as_fn_append CONFIG_FILES " '$ac_optarg'" 12612 ac_need_defaults=false;; 12613 --header | --heade | --head | --hea ) 12614 $ac_shift 12615 case $ac_optarg in 12616 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12617 esac 12618 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12619 ac_need_defaults=false;; 12620 --he | --h) 12621 # Conflict between --help and --header 12622 as_fn_error $? "ambiguous option: '$1' 12623 Try '$0 --help' for more information.";; 12624 --help | --hel | -h ) 12625 printf "%s\n" "$ac_cs_usage"; exit ;; 12626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12627 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12628 ac_cs_silent=: ;; 12629 12630 # This is an error. 12631 -*) as_fn_error $? "unrecognized option: '$1' 12632 Try '$0 --help' for more information." ;; 12633 12634 *) as_fn_append ac_config_targets " $1" 12635 ac_need_defaults=false ;; 12636 12637 esac 12638 shift 12639 done 12640 12641 ac_configure_extra_args= 12642 12643 if $ac_cs_silent; then 12644 exec 6>/dev/null 12645 ac_configure_extra_args="$ac_configure_extra_args --silent" 12646 fi 12647 12648 _ACEOF 12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12650 if \$ac_cs_recheck; then 12651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12652 shift 12653 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12654 CONFIG_SHELL='$SHELL' 12655 export CONFIG_SHELL 12656 exec "\$@" 12657 fi 12658 12659 _ACEOF 12660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12661 exec 5>>config.log 12662 { 12663 echo 12664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12665 ## Running $as_me. ## 12666 _ASBOX 12667 printf "%s\n" "$ac_log" 12668 } >&5 12669 12670 _ACEOF 12671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12672 # 12673 # INIT-COMMANDS 12674 # 12675 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12676 12677 _ACEOF 12678 12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12680 12681 # Handling of arguments. 12682 for ac_config_target in $ac_config_targets 12683 do 12684 case $ac_config_target in 12685 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12686 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12688 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12689 12690 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12691 esac 12692 done 12693 12694 12695 # If the user did not use the arguments to specify the items to instantiate, 12696 # then the envvar interface is used. Set only those that are not. 12697 # We use the long form for the default assignment because of an extremely 12698 # bizarre bug on SunOS 4.1.3. 12699 if $ac_need_defaults; then 12700 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12701 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12702 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12703 fi 12704 12705 # Have a temporary directory for convenience. Make it in the build tree 12706 # simply because there is no reason against having it here, and in addition, 12707 # creating and moving files from /tmp can sometimes cause problems. 12708 # Hook for its removal unless debugging. 12709 # Note that there is a small window in which the directory will not be cleaned: 12710 # after its creation but before its name has been assigned to '$tmp'. 12711 $debug || 12712 { 12713 tmp= ac_tmp= 12714 trap 'exit_status=$? 12715 : "${ac_tmp:=$tmp}" 12716 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12717 ' 0 12718 trap 'as_fn_exit 1' 1 2 13 15 12719 } 12720 # Create a (secure) tmp directory for tmp files. 12721 12722 { 12723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12724 test -d "$tmp" 12725 } || 12726 { 12727 tmp=./conf$$-$RANDOM 12728 (umask 077 && mkdir "$tmp") 12729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12730 ac_tmp=$tmp 12731 12732 # Set up the scripts for CONFIG_FILES section. 12733 # No need to generate them if there are no CONFIG_FILES. 12734 # This happens for instance with './config.status config.h'. 12735 if test -n "$CONFIG_FILES"; then 12736 12737 12738 ac_cr=`echo X | tr X '\015'` 12739 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12740 # But we know of no other shell where ac_cr would be empty at this 12741 # point, so we can use a bashism as a fallback. 12742 if test "x$ac_cr" = x; then 12743 eval ac_cr=\$\'\\r\' 12744 fi 12745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12747 ac_cs_awk_cr='\\r' 12748 else 12749 ac_cs_awk_cr=$ac_cr 12750 fi 12751 12752 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12753 _ACEOF 12754 12755 12756 { 12757 echo "cat >conf$$subs.awk <<_ACEOF" && 12758 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12759 echo "_ACEOF" 12760 } >conf$$subs.sh || 12761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12762 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12763 ac_delim='%!_!# ' 12764 for ac_last_try in false false false false false :; do 12765 . ./conf$$subs.sh || 12766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12767 12768 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12769 if test $ac_delim_n = $ac_delim_num; then 12770 break 12771 elif $ac_last_try; then 12772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12773 else 12774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12775 fi 12776 done 12777 rm -f conf$$subs.sh 12778 12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12780 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12781 _ACEOF 12782 sed -n ' 12783 h 12784 s/^/S["/; s/!.*/"]=/ 12785 p 12786 g 12787 s/^[^!]*!// 12788 :repl 12789 t repl 12790 s/'"$ac_delim"'$// 12791 t delim 12792 :nl 12793 h 12794 s/\(.\{148\}\)..*/\1/ 12795 t more1 12796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12797 p 12798 n 12799 b repl 12800 :more1 12801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12802 p 12803 g 12804 s/.\{148\}// 12805 t nl 12806 :delim 12807 h 12808 s/\(.\{148\}\)..*/\1/ 12809 t more2 12810 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12811 p 12812 b 12813 :more2 12814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12815 p 12816 g 12817 s/.\{148\}// 12818 t delim 12819 ' <conf$$subs.awk | sed ' 12820 /^[^""]/{ 12821 N 12822 s/\n// 12823 } 12824 ' >>$CONFIG_STATUS || ac_write_fail=1 12825 rm -f conf$$subs.awk 12826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12827 _ACAWK 12828 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12829 for (key in S) S_is_set[key] = 1 12830 FS = "" 12831 12832 } 12833 { 12834 line = $ 0 12835 nfields = split(line, field, "@") 12836 substed = 0 12837 len = length(field[1]) 12838 for (i = 2; i < nfields; i++) { 12839 key = field[i] 12840 keylen = length(key) 12841 if (S_is_set[key]) { 12842 value = S[key] 12843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12844 len += length(value) + length(field[++i]) 12845 substed = 1 12846 } else 12847 len += 1 + keylen 12848 } 12849 12850 print line 12851 } 12852 12853 _ACAWK 12854 _ACEOF 12855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12858 else 12859 cat 12860 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12861 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12862 _ACEOF 12863 12864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12866 # trailing colons and then remove the whole line if VPATH becomes empty 12867 # (actually we leave an empty line to preserve line numbers). 12868 if test "x$srcdir" = x.; then 12869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12870 h 12871 s/// 12872 s/^/:/ 12873 s/[ ]*$/:/ 12874 s/:\$(srcdir):/:/g 12875 s/:\${srcdir}:/:/g 12876 s/:@srcdir@:/:/g 12877 s/^:*// 12878 s/:*$// 12879 x 12880 s/\(=[ ]*\).*/\1/ 12881 G 12882 s/\n// 12883 s/^[^=]*=[ ]*$// 12884 }' 12885 fi 12886 12887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12888 fi # test -n "$CONFIG_FILES" 12889 12890 # Set up the scripts for CONFIG_HEADERS section. 12891 # No need to generate them if there are no CONFIG_HEADERS. 12892 # This happens for instance with './config.status Makefile'. 12893 if test -n "$CONFIG_HEADERS"; then 12894 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12895 BEGIN { 12896 _ACEOF 12897 12898 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12899 # here-document in config.status, that substitutes the proper values into 12900 # config.h.in to produce config.h. 12901 12902 # Create a delimiter string that does not exist in confdefs.h, to ease 12903 # handling of long lines. 12904 ac_delim='%!_!# ' 12905 for ac_last_try in false false :; do 12906 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12907 if test -z "$ac_tt"; then 12908 break 12909 elif $ac_last_try; then 12910 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12911 else 12912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12913 fi 12914 done 12915 12916 # For the awk script, D is an array of macro values keyed by name, 12917 # likewise P contains macro parameters if any. Preserve backslash 12918 # newline sequences. 12919 12920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12921 sed -n ' 12922 s/.\{148\}/&'"$ac_delim"'/g 12923 t rset 12924 :rset 12925 s/^[ ]*#[ ]*define[ ][ ]*/ / 12926 t def 12927 d 12928 :def 12929 s/\\$// 12930 t bsnl 12931 s/["\\]/\\&/g 12932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12933 D["\1"]=" \3"/p 12934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12935 d 12936 :bsnl 12937 s/["\\]/\\&/g 12938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12939 D["\1"]=" \3\\\\\\n"\\/p 12940 t cont 12941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12942 t cont 12943 d 12944 :cont 12945 n 12946 s/.\{148\}/&'"$ac_delim"'/g 12947 t clear 12948 :clear 12949 s/\\$// 12950 t bsnlc 12951 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12952 d 12953 :bsnlc 12954 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12955 b cont 12956 ' <confdefs.h | sed ' 12957 s/'"$ac_delim"'/"\\\ 12958 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12959 12960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12961 for (key in D) D_is_set[key] = 1 12962 FS = "" 12963 } 12964 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12965 line = \$ 0 12966 split(line, arg, " ") 12967 if (arg[1] == "#") { 12968 defundef = arg[2] 12969 mac1 = arg[3] 12970 } else { 12971 defundef = substr(arg[1], 2) 12972 mac1 = arg[2] 12973 } 12974 split(mac1, mac2, "(") #) 12975 macro = mac2[1] 12976 prefix = substr(line, 1, index(line, defundef) - 1) 12977 if (D_is_set[macro]) { 12978 # Preserve the white space surrounding the "#". 12979 print prefix "define", macro P[macro] D[macro] 12980 next 12981 } else { 12982 # Replace #undef with comments. This is necessary, for example, 12983 # in the case of _POSIX_SOURCE, which is predefined and required 12984 # on some systems where configure will not decide to define it. 12985 if (defundef == "undef") { 12986 print "/*", prefix defundef, macro, "*/" 12987 next 12988 } 12989 } 12990 } 12991 { print } 12992 _ACAWK 12993 _ACEOF 12994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12995 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12996 fi # test -n "$CONFIG_HEADERS" 12997 12998 12999 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13000 shift 13001 for ac_tag 13002 do 13003 case $ac_tag in 13004 :[FHLC]) ac_mode=$ac_tag; continue;; 13005 esac 13006 case $ac_mode$ac_tag in 13007 :[FHL]*:*);; 13008 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13009 :[FH]-) ac_tag=-:-;; 13010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13011 esac 13012 ac_save_IFS=$IFS 13013 IFS=: 13014 set x $ac_tag 13015 IFS=$ac_save_IFS 13016 shift 13017 ac_file=$1 13018 shift 13019 13020 case $ac_mode in 13021 :L) ac_source=$1;; 13022 :[FH]) 13023 ac_file_inputs= 13024 for ac_f 13025 do 13026 case $ac_f in 13027 -) ac_f="$ac_tmp/stdin";; 13028 *) # Look for the file first in the build tree, then in the source tree 13029 # (if the path is not absolute). The absolute path cannot be DOS-style, 13030 # because $ac_f cannot contain ':'. 13031 test -f "$ac_f" || 13032 case $ac_f in 13033 [\\/$]*) false;; 13034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13035 esac || 13036 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13037 esac 13038 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13039 as_fn_append ac_file_inputs " '$ac_f'" 13040 done 13041 13042 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13043 # use $as_me), people would be surprised to read: 13044 # /* config.h. Generated by config.status. */ 13045 configure_input='Generated from '` 13046 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13047 `' by configure.' 13048 if test x"$ac_file" != x-; then 13049 configure_input="$ac_file. $configure_input" 13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13051 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13052 fi 13053 # Neutralize special characters interpreted by sed in replacement strings. 13054 case $configure_input in #( 13055 *\&* | *\|* | *\\* ) 13056 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13057 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13058 *) ac_sed_conf_input=$configure_input;; 13059 esac 13060 13061 case $ac_tag in 13062 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13064 esac 13065 ;; 13066 esac 13067 13068 ac_dir=`$as_dirname -- "$ac_file" || 13069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13070 X"$ac_file" : 'X\(//\)[^/]' \| \ 13071 X"$ac_file" : 'X\(//\)$' \| \ 13072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13073 printf "%s\n" X"$ac_file" | 13074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13075 s//\1/ 13076 q 13077 } 13078 /^X\(\/\/\)[^/].*/{ 13079 s//\1/ 13080 q 13081 } 13082 /^X\(\/\/\)$/{ 13083 s//\1/ 13084 q 13085 } 13086 /^X\(\/\).*/{ 13087 s//\1/ 13088 q 13089 } 13090 s/.*/./; q'` 13091 as_dir="$ac_dir"; as_fn_mkdir_p 13092 ac_builddir=. 13093 13094 case "$ac_dir" in 13095 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13096 *) 13097 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13098 # A ".." for each directory in $ac_dir_suffix. 13099 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13100 case $ac_top_builddir_sub in 13101 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13102 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13103 esac ;; 13104 esac 13105 ac_abs_top_builddir=$ac_pwd 13106 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13107 # for backward compatibility: 13108 ac_top_builddir=$ac_top_build_prefix 13109 13110 case $srcdir in 13111 .) # We are building in place. 13112 ac_srcdir=. 13113 ac_top_srcdir=$ac_top_builddir_sub 13114 ac_abs_top_srcdir=$ac_pwd ;; 13115 [\\/]* | ?:[\\/]* ) # Absolute name. 13116 ac_srcdir=$srcdir$ac_dir_suffix; 13117 ac_top_srcdir=$srcdir 13118 ac_abs_top_srcdir=$srcdir ;; 13119 *) # Relative name. 13120 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13121 ac_top_srcdir=$ac_top_build_prefix$srcdir 13122 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13123 esac 13124 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13125 13126 13127 case $ac_mode in 13128 :F) 13129 # 13130 # CONFIG_FILE 13131 # 13132 13133 case $INSTALL in 13134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13135 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13136 esac 13137 ac_MKDIR_P=$MKDIR_P 13138 case $MKDIR_P in 13139 [\\/$]* | ?:[\\/]* ) ;; 13140 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13141 esac 13142 _ACEOF 13143 13144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13145 # If the template does not know about datarootdir, expand it. 13146 # FIXME: This hack should be removed a few years after 2.60. 13147 ac_datarootdir_hack=; ac_datarootdir_seen= 13148 ac_sed_dataroot=' 13149 /datarootdir/ { 13150 p 13151 q 13152 } 13153 /@datadir@/p 13154 /@docdir@/p 13155 /@infodir@/p 13156 /@localedir@/p 13157 /@mandir@/p' 13158 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13159 *datarootdir*) ac_datarootdir_seen=yes;; 13160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13162 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13163 _ACEOF 13164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13165 ac_datarootdir_hack=' 13166 s&@datadir@&$datadir&g 13167 s&@docdir@&$docdir&g 13168 s&@infodir@&$infodir&g 13169 s&@localedir@&$localedir&g 13170 s&@mandir@&$mandir&g 13171 s&\\\${datarootdir}&$datarootdir&g' ;; 13172 esac 13173 _ACEOF 13174 13175 # Neutralize VPATH when '$srcdir' = '.'. 13176 # Shell code in configure.ac might set extrasub. 13177 # FIXME: do we really want to maintain this feature? 13178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13179 ac_sed_extra="$ac_vpsub 13180 $extrasub 13181 _ACEOF 13182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13183 :t 13184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13185 s|@configure_input@|$ac_sed_conf_input|;t t 13186 s&@top_builddir@&$ac_top_builddir_sub&;t t 13187 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13188 s&@srcdir@&$ac_srcdir&;t t 13189 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13190 s&@top_srcdir@&$ac_top_srcdir&;t t 13191 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13192 s&@builddir@&$ac_builddir&;t t 13193 s&@abs_builddir@&$ac_abs_builddir&;t t 13194 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13195 s&@INSTALL@&$ac_INSTALL&;t t 13196 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13197 $ac_datarootdir_hack 13198 " 13199 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13200 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13201 13202 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13203 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13204 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13205 "$ac_tmp/out"`; test -z "$ac_out"; } && 13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13207 which seems to be undefined. Please make sure it is defined" >&5 13208 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13209 which seems to be undefined. Please make sure it is defined" >&2;} 13210 13211 rm -f "$ac_tmp/stdin" 13212 case $ac_file in 13213 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13214 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13215 esac \ 13216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13217 ;; 13218 :H) 13219 # 13220 # CONFIG_HEADER 13221 # 13222 if test x"$ac_file" != x-; then 13223 { 13224 printf "%s\n" "/* $configure_input */" >&1 \ 13225 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13226 } >"$ac_tmp/config.h" \ 13227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13228 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13230 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13231 else 13232 rm -f "$ac_file" 13233 mv "$ac_tmp/config.h" "$ac_file" \ 13234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13235 fi 13236 else 13237 printf "%s\n" "/* $configure_input */" >&1 \ 13238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13239 || as_fn_error $? "could not create -" "$LINENO" 5 13240 fi 13241 # Compute "$ac_file"'s index in $config_headers. 13242 _am_arg="$ac_file" 13243 _am_stamp_count=1 13244 for _am_header in $config_headers :; do 13245 case $_am_header in 13246 $_am_arg | $_am_arg:* ) 13247 break ;; 13248 * ) 13249 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13250 esac 13251 done 13252 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13253 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13254 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13255 X"$_am_arg" : 'X\(//\)$' \| \ 13256 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13257 printf "%s\n" X"$_am_arg" | 13258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13259 s//\1/ 13260 q 13261 } 13262 /^X\(\/\/\)[^/].*/{ 13263 s//\1/ 13264 q 13265 } 13266 /^X\(\/\/\)$/{ 13267 s//\1/ 13268 q 13269 } 13270 /^X\(\/\).*/{ 13271 s//\1/ 13272 q 13273 } 13274 s/.*/./; q'`/stamp-h$_am_stamp_count 13275 ;; 13276 13277 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13278 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13279 ;; 13280 esac 13281 13282 13283 case $ac_file$ac_mode in 13284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13285 # Older Autoconf quotes --file arguments for eval, but not when files 13286 # are listed without --file. Let's play safe and only enable the eval 13287 # if we detect the quoting. 13288 # TODO: see whether this extra hack can be removed once we start 13289 # requiring Autoconf 2.70 or later. 13290 case $CONFIG_FILES in #( 13291 *\'*) : 13292 eval set x "$CONFIG_FILES" ;; #( 13293 *) : 13294 set x $CONFIG_FILES ;; #( 13295 *) : 13296 ;; 13297 esac 13298 shift 13299 # Used to flag and report bootstrapping failures. 13300 am_rc=0 13301 for am_mf 13302 do 13303 # Strip MF so we end up with the name of the file. 13304 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13305 # Check whether this is an Automake generated Makefile which includes 13306 # dependency-tracking related rules and includes. 13307 # Grep'ing the whole file directly is not great: AIX grep has a line 13308 # limit of 2048, but all sed's we know have understand at least 4000. 13309 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13310 || continue 13311 am_dirpart=`$as_dirname -- "$am_mf" || 13312 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13313 X"$am_mf" : 'X\(//\)[^/]' \| \ 13314 X"$am_mf" : 'X\(//\)$' \| \ 13315 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13316 printf "%s\n" X"$am_mf" | 13317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13318 s//\1/ 13319 q 13320 } 13321 /^X\(\/\/\)[^/].*/{ 13322 s//\1/ 13323 q 13324 } 13325 /^X\(\/\/\)$/{ 13326 s//\1/ 13327 q 13328 } 13329 /^X\(\/\).*/{ 13330 s//\1/ 13331 q 13332 } 13333 s/.*/./; q'` 13334 am_filepart=`$as_basename -- "$am_mf" || 13335 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13336 X"$am_mf" : 'X\(//\)$' \| \ 13337 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13338 printf "%s\n" X/"$am_mf" | 13339 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13340 s//\1/ 13341 q 13342 } 13343 /^X\/\(\/\/\)$/{ 13344 s//\1/ 13345 q 13346 } 13347 /^X\/\(\/\).*/{ 13348 s//\1/ 13349 q 13350 } 13351 s/.*/./; q'` 13352 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13353 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13354 | $MAKE -f - am--depfiles" >&5 13355 (cd "$am_dirpart" \ 13356 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13357 | $MAKE -f - am--depfiles) >&5 2>&5 13358 ac_status=$? 13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13360 (exit $ac_status); } || am_rc=$? 13361 done 13362 if test $am_rc -ne 0; then 13363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13364 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13365 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13366 for automatic dependency tracking. If GNU make was not used, consider 13367 re-running the configure script with MAKE=\"gmake\" (or whatever is 13368 necessary). You can also try re-running configure with the 13369 '--disable-dependency-tracking' option to at least be able to build 13370 the package (albeit without support for automatic dependency tracking). 13371 See 'config.log' for more details" "$LINENO" 5; } 13372 fi 13373 { am_dirpart=; unset am_dirpart;} 13374 { am_filepart=; unset am_filepart;} 13375 { am_mf=; unset am_mf;} 13376 { am_rc=; unset am_rc;} 13377 rm -f conftest-deps.mk 13378 } 13379 ;; 13380 13381 esac 13382 done # for ac_tag 13383 13384 13385 as_fn_exit 0 13386 _ACEOF 13387 ac_clean_files=$ac_clean_files_save 13388 13389 test $ac_write_fail = 0 || 13390 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13391 13392 13393 # configure is writing to config.log, and then calls config.status. 13394 # config.status does its own redirection, appending to config.log. 13395 # Unfortunately, on DOS this fails, as config.log is still kept open 13396 # by configure, so config.status won't be able to write to it; its 13397 # output is simply discarded. So we exec the FD to /dev/null, 13398 # effectively closing config.log, so it can be properly (re)opened and 13399 # appended to by config.status. When coming back to configure, we 13400 # need to make the FD available again. 13401 if test "$no_create" != yes; then 13402 ac_cs_success=: 13403 ac_config_status_args= 13404 test "$silent" = yes && 13405 ac_config_status_args="$ac_config_status_args --quiet" 13406 exec 5>/dev/null 13407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13408 exec 5>>config.log 13409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13410 # would make configure fail if this is the last instruction. 13411 $ac_cs_success || as_fn_exit 1 13412 fi 13413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13415 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13416 fi 13417 13418 13419