1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for lndir 1.0.5. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/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/util/lndir/-/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='lndir' 607 PACKAGE_TARNAME='lndir' 608 PACKAGE_VERSION='1.0.5' 609 PACKAGE_STRING='lndir 1.0.5' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/lndir/-/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 enable_year2038=no 647 ac_subst_vars='am__EXEEXT_FALSE 648 am__EXEEXT_TRUE 649 LTLIBOBJS 650 LIBOBJS 651 LIBBSD_LIBS 652 LIBBSD_CFLAGS 653 XPROTO_LIBS 654 XPROTO_CFLAGS 655 MAN_SUBSTS 656 XORG_MAN_PAGE 657 ADMIN_MAN_DIR 658 DRIVER_MAN_DIR 659 MISC_MAN_DIR 660 FILE_MAN_DIR 661 LIB_MAN_DIR 662 APP_MAN_DIR 663 ADMIN_MAN_SUFFIX 664 DRIVER_MAN_SUFFIX 665 MISC_MAN_SUFFIX 666 FILE_MAN_SUFFIX 667 LIB_MAN_SUFFIX 668 APP_MAN_SUFFIX 669 SED 670 host_os 671 host_vendor 672 host_cpu 673 host 674 build_os 675 build_vendor 676 build_cpu 677 build 678 INSTALL_CMD 679 PKG_CONFIG_LIBDIR 680 PKG_CONFIG_PATH 681 PKG_CONFIG 682 CHANGELOG_CMD 683 STRICT_CFLAGS 684 CWARNFLAGS 685 BASE_CFLAGS 686 AM_BACKSLASH 687 AM_DEFAULT_VERBOSITY 688 AM_DEFAULT_V 689 AM_V 690 CSCOPE 691 ETAGS 692 CTAGS 693 am__fastdepCC_FALSE 694 am__fastdepCC_TRUE 695 CCDEPMODE 696 am__nodep 697 AMDEPBACKSLASH 698 AMDEP_FALSE 699 AMDEP_TRUE 700 am__include 701 DEPDIR 702 am__untar 703 am__tar 704 AMTAR 705 am__leading_dot 706 SET_MAKE 707 AWK 708 mkdir_p 709 MKDIR_P 710 INSTALL_STRIP_PROGRAM 711 STRIP 712 install_sh 713 MAKEINFO 714 AUTOHEADER 715 AUTOMAKE 716 AUTOCONF 717 ACLOCAL 718 VERSION 719 PACKAGE 720 CYGPATH_W 721 am__isrc 722 INSTALL_DATA 723 INSTALL_SCRIPT 724 INSTALL_PROGRAM 725 OBJEXT 726 EXEEXT 727 ac_ct_CC 728 CPPFLAGS 729 LDFLAGS 730 CFLAGS 731 CC 732 target_alias 733 host_alias 734 build_alias 735 LIBS 736 ECHO_T 737 ECHO_N 738 ECHO_C 739 DEFS 740 mandir 741 localedir 742 libdir 743 psdir 744 pdfdir 745 dvidir 746 htmldir 747 infodir 748 docdir 749 oldincludedir 750 includedir 751 runstatedir 752 localstatedir 753 sharedstatedir 754 sysconfdir 755 datadir 756 datarootdir 757 libexecdir 758 sbindir 759 bindir 760 program_transform_name 761 prefix 762 exec_prefix 763 PACKAGE_URL 764 PACKAGE_BUGREPORT 765 PACKAGE_STRING 766 PACKAGE_VERSION 767 PACKAGE_TARNAME 768 PACKAGE_NAME 769 PATH_SEPARATOR 770 SHELL 771 am__quote' 772 ac_subst_files='' 773 ac_user_opts=' 774 enable_option_checking 775 enable_dependency_tracking 776 enable_silent_rules 777 enable_selective_werror 778 enable_strict_compilation 779 enable_largefile 780 enable_year2038 781 ' 782 ac_precious_vars='build_alias 783 host_alias 784 target_alias 785 CC 786 CFLAGS 787 LDFLAGS 788 LIBS 789 CPPFLAGS 790 PKG_CONFIG 791 PKG_CONFIG_PATH 792 PKG_CONFIG_LIBDIR 793 XPROTO_CFLAGS 794 XPROTO_LIBS 795 LIBBSD_CFLAGS 796 LIBBSD_LIBS' 797 798 799 # Initialize some variables set by options. 800 ac_init_help= 801 ac_init_version=false 802 ac_unrecognized_opts= 803 ac_unrecognized_sep= 804 # The variables have the same names as the options, with 805 # dashes changed to underlines. 806 cache_file=/dev/null 807 exec_prefix=NONE 808 no_create= 809 no_recursion= 810 prefix=NONE 811 program_prefix=NONE 812 program_suffix=NONE 813 program_transform_name=s,x,x, 814 silent= 815 site= 816 srcdir= 817 verbose= 818 x_includes=NONE 819 x_libraries=NONE 820 821 # Installation directory options. 822 # These are left unexpanded so users can "make install exec_prefix=/foo" 823 # and all the variables that are supposed to be based on exec_prefix 824 # by default will actually change. 825 # Use braces instead of parens because sh, perl, etc. also accept them. 826 # (The list follows the same order as the GNU Coding Standards.) 827 bindir='${exec_prefix}/bin' 828 sbindir='${exec_prefix}/sbin' 829 libexecdir='${exec_prefix}/libexec' 830 datarootdir='${prefix}/share' 831 datadir='${datarootdir}' 832 sysconfdir='${prefix}/etc' 833 sharedstatedir='${prefix}/com' 834 localstatedir='${prefix}/var' 835 runstatedir='${localstatedir}/run' 836 includedir='${prefix}/include' 837 oldincludedir='/usr/include' 838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839 infodir='${datarootdir}/info' 840 htmldir='${docdir}' 841 dvidir='${docdir}' 842 pdfdir='${docdir}' 843 psdir='${docdir}' 844 libdir='${exec_prefix}/lib' 845 localedir='${datarootdir}/locale' 846 mandir='${datarootdir}/man' 847 848 ac_prev= 849 ac_dashdash= 850 for ac_option 851 do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: '$ac_useropt'" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910 "enable_$ac_useropt" 911 "*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: '$ac_useropt'" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936 "enable_$ac_useropt" 937 "*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: '$ac_useropt'" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149 "with_$ac_useropt" 1150 "*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: '$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165 "with_$ac_useropt" 1166 "*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: '$ac_option' 1191 Try '$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213 done 1214 1215 if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218 fi 1219 1220 if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226 fi 1227 1228 # Check all directory arguments for consistency. 1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233 do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247 done 1248 1249 # There might be people who depend on the old broken behavior: '$host' 1250 # used to hold the argument of --host etc. 1251 # FIXME: To remove some day. 1252 build=$build_alias 1253 host=$host_alias 1254 target=$target_alias 1255 1256 # FIXME: To remove some day. 1257 if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263 fi 1264 1265 ac_tool_prefix= 1266 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268 test "$silent" = yes && exec 6>/dev/null 1269 1270 1271 ac_pwd=`pwd` && test -n "$ac_pwd" && 1272 ac_ls_di=`ls -di .` && 1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279 # Find the source files, if location was not specified. 1280 if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288 printf "%s\n" X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310 else 1311 ac_srcdir_defaulted=no 1312 fi 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316 fi 1317 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1318 ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321 # When building in place, set srcdir=. 1322 if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324 fi 1325 # Remove unnecessary trailing slashes from srcdir. 1326 # Double slashes in file names in object file debugging info 1327 # mess up M-x gdb in Emacs. 1328 case $srcdir in 1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330 esac 1331 for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336 done 1337 1338 # 1339 # Report the --help message. 1340 # 1341 if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345 'configure' configures lndir 1.0.5 to adapt to many kinds of systems. 1346 1347 Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350 VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352 Defaults for the options are specified in brackets. 1353 1354 Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print 'checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for '--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1364 1365 Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371 By default, 'make install' will install all the files in 1372 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1373 an installation prefix other than '$ac_default_prefix' using '--prefix', 1374 for instance '--prefix=\$HOME'. 1375 1376 For better control, use the options below. 1377 1378 Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/lndir] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399 _ACEOF 1400 1401 cat <<\_ACEOF 1402 1403 Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408 System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411 _ACEOF 1412 fi 1413 1414 if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of lndir 1.0.5:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420 Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 --disable-largefile omit support for large files 1437 --enable-year2038 support timestamps after 2038 1438 1439 Some influential environment variables: 1440 CC C compiler command 1441 CFLAGS C compiler flags 1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1443 nonstandard directory <lib dir> 1444 LIBS libraries to pass to the linker, e.g. -l<library> 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1446 you have headers in a nonstandard directory <include dir> 1447 PKG_CONFIG path to pkg-config utility 1448 PKG_CONFIG_PATH 1449 directories to add to pkg-config's search path 1450 PKG_CONFIG_LIBDIR 1451 path overriding pkg-config's built-in search path 1452 XPROTO_CFLAGS 1453 C compiler flags for XPROTO, overriding pkg-config 1454 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1455 LIBBSD_CFLAGS 1456 C compiler flags for LIBBSD, overriding pkg-config 1457 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1458 1459 Use these variables to override the choices made by 'configure' or to help 1460 it to find libraries and programs with nonstandard names/locations. 1461 1462 Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>. 1463 _ACEOF 1464 ac_status=$? 1465 fi 1466 1467 if test "$ac_init_help" = "recursive"; then 1468 # If there are subdirs, report their specific --help. 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1470 test -d "$ac_dir" || 1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1472 continue 1473 ac_builddir=. 1474 1475 case "$ac_dir" in 1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477 *) 1478 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1479 # A ".." for each directory in $ac_dir_suffix. 1480 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1481 case $ac_top_builddir_sub in 1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1484 esac ;; 1485 esac 1486 ac_abs_top_builddir=$ac_pwd 1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1488 # for backward compatibility: 1489 ac_top_builddir=$ac_top_build_prefix 1490 1491 case $srcdir in 1492 .) # We are building in place. 1493 ac_srcdir=. 1494 ac_top_srcdir=$ac_top_builddir_sub 1495 ac_abs_top_srcdir=$ac_pwd ;; 1496 [\\/]* | ?:[\\/]* ) # Absolute name. 1497 ac_srcdir=$srcdir$ac_dir_suffix; 1498 ac_top_srcdir=$srcdir 1499 ac_abs_top_srcdir=$srcdir ;; 1500 *) # Relative name. 1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1502 ac_top_srcdir=$ac_top_build_prefix$srcdir 1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1504 esac 1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1506 1507 cd "$ac_dir" || { ac_status=$?; continue; } 1508 # Check for configure.gnu first; this name is used for a wrapper for 1509 # Metaconfig's "Configure" on case-insensitive file systems. 1510 if test -f "$ac_srcdir/configure.gnu"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1513 elif test -f "$ac_srcdir/configure"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure" --help=recursive 1516 else 1517 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1518 fi || ac_status=$? 1519 cd "$ac_pwd" || { ac_status=$?; break; } 1520 done 1521 fi 1522 1523 test -n "$ac_init_help" && exit $ac_status 1524 if $ac_init_version; then 1525 cat <<\_ACEOF 1526 lndir configure 1.0.5 1527 generated by GNU Autoconf 2.72 1528 1529 Copyright (C) 2023 Free Software Foundation, Inc. 1530 This configure script is free software; the Free Software Foundation 1531 gives unlimited permission to copy, distribute and modify it. 1532 _ACEOF 1533 exit 1534 fi 1535 1536 ## ------------------------ ## 1537 ## Autoconf initialization. ## 1538 ## ------------------------ ## 1539 1540 # ac_fn_c_try_compile LINENO 1541 # -------------------------- 1542 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1543 ac_fn_c_try_compile () 1544 { 1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1546 rm -f conftest.$ac_objext conftest.beam 1547 if { { ac_try="$ac_compile" 1548 case "(($ac_try" in 1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1550 *) ac_try_echo=$ac_try;; 1551 esac 1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1553 printf "%s\n" "$ac_try_echo"; } >&5 1554 (eval "$ac_compile") 2>conftest.err 1555 ac_status=$? 1556 if test -s conftest.err; then 1557 grep -v '^ *+' conftest.err >conftest.er1 1558 cat conftest.er1 >&5 1559 mv -f conftest.er1 conftest.err 1560 fi 1561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { 1563 test -z "$ac_c_werror_flag" || 1564 test ! -s conftest.err 1565 } && test -s conftest.$ac_objext 1566 then : 1567 ac_retval=0 1568 else case e in #( 1569 e) printf "%s\n" "$as_me: failed program was:" >&5 1570 sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 ;; 1573 esac 1574 fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578 } # ac_fn_c_try_compile 1579 1580 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1581 # ------------------------------------------------------- 1582 # Tests whether HEADER exists and can be compiled using the include files in 1583 # INCLUDES, setting the cache variable VAR accordingly. 1584 ac_fn_c_check_header_compile () 1585 { 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1588 printf %s "checking for $2... " >&6; } 1589 if eval test \${$3+y} 1590 then : 1591 printf %s "(cached) " >&6 1592 else case e in #( 1593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1594 /* end confdefs.h. */ 1595 $4 1596 #include <$2> 1597 _ACEOF 1598 if ac_fn_c_try_compile "$LINENO" 1599 then : 1600 eval "$3=yes" 1601 else case e in #( 1602 e) eval "$3=no" ;; 1603 esac 1604 fi 1605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1606 esac 1607 fi 1608 eval ac_res=\$$3 1609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1610 printf "%s\n" "$ac_res" >&6; } 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 1613 } # ac_fn_c_check_header_compile 1614 1615 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1616 # ------------------------------------------------------------------ 1617 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1618 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1619 ac_fn_check_decl () 1620 { 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 as_decl_name=`echo $2|sed 's/ *(.*//'` 1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1624 printf %s "checking whether $as_decl_name is declared... " >&6; } 1625 if eval test \${$3+y} 1626 then : 1627 printf %s "(cached) " >&6 1628 else case e in #( 1629 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1630 eval ac_save_FLAGS=\$$6 1631 as_fn_append $6 " $5" 1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1633 /* end confdefs.h. */ 1634 $4 1635 int 1636 main (void) 1637 { 1638 #ifndef $as_decl_name 1639 #ifdef __cplusplus 1640 (void) $as_decl_use; 1641 #else 1642 (void) $as_decl_name; 1643 #endif 1644 #endif 1645 1646 ; 1647 return 0; 1648 } 1649 _ACEOF 1650 if ac_fn_c_try_compile "$LINENO" 1651 then : 1652 eval "$3=yes" 1653 else case e in #( 1654 e) eval "$3=no" ;; 1655 esac 1656 fi 1657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1658 eval $6=\$ac_save_FLAGS 1659 ;; 1660 esac 1661 fi 1662 eval ac_res=\$$3 1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664 printf "%s\n" "$ac_res" >&6; } 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 1667 } # ac_fn_check_decl 1668 1669 # ac_fn_c_try_link LINENO 1670 # ----------------------- 1671 # Try to link conftest.$ac_ext, and return whether this succeeded. 1672 ac_fn_c_try_link () 1673 { 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1676 if { { ac_try="$ac_link" 1677 case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680 esac 1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682 printf "%s\n" "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest$ac_exeext && { 1695 test "$cross_compiling" = yes || 1696 test -x conftest$ac_exeext 1697 } 1698 then : 1699 ac_retval=0 1700 else case e in #( 1701 e) printf "%s\n" "$as_me: failed program was:" >&5 1702 sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 ;; 1705 esac 1706 fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715 } # ac_fn_c_try_link 1716 1717 # ac_fn_c_check_func LINENO FUNC VAR 1718 # ---------------------------------- 1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1720 ac_fn_c_check_func () 1721 { 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724 printf %s "checking for $2... " >&6; } 1725 if eval test \${$3+y} 1726 then : 1727 printf %s "(cached) " >&6 1728 else case e in #( 1729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730 /* end confdefs.h. */ 1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733 #define $2 innocuous_$2 1734 1735 /* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (void); below. */ 1737 1738 #include <limits.h> 1739 #undef $2 1740 1741 /* Override any GCC internal prototype to avoid an error. 1742 Use char because int might match the return type of a GCC 1743 builtin and then its argument prototype would still apply. */ 1744 #ifdef __cplusplus 1745 extern "C" 1746 #endif 1747 char $2 (void); 1748 /* The GNU C library defines this for functions which it implements 1749 to always fail with ENOSYS. Some functions are actually named 1750 something starting with __ and the normal name is an alias. */ 1751 #if defined __stub_$2 || defined __stub___$2 1752 choke me 1753 #endif 1754 1755 int 1756 main (void) 1757 { 1758 return $2 (); 1759 ; 1760 return 0; 1761 } 1762 _ACEOF 1763 if ac_fn_c_try_link "$LINENO" 1764 then : 1765 eval "$3=yes" 1766 else case e in #( 1767 e) eval "$3=no" ;; 1768 esac 1769 fi 1770 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1771 conftest$ac_exeext conftest.$ac_ext ;; 1772 esac 1773 fi 1774 eval ac_res=\$$3 1775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1776 printf "%s\n" "$ac_res" >&6; } 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 1779 } # ac_fn_c_check_func 1780 ac_configure_args_raw= 1781 for ac_arg 1782 do 1783 case $ac_arg in 1784 *\'*) 1785 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1786 esac 1787 as_fn_append ac_configure_args_raw " '$ac_arg'" 1788 done 1789 1790 case $ac_configure_args_raw in 1791 *$as_nl*) 1792 ac_safe_unquote= ;; 1793 *) 1794 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1795 ac_unsafe_a="$ac_unsafe_z#~" 1796 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1797 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1798 esac 1799 1800 cat >config.log <<_ACEOF 1801 This file contains any messages produced by compilers while 1802 running configure, to aid debugging if configure makes a mistake. 1803 1804 It was created by lndir $as_me 1.0.5, which was 1805 generated by GNU Autoconf 2.72. Invocation command line was 1806 1807 $ $0$ac_configure_args_raw 1808 1809 _ACEOF 1810 exec 5>>config.log 1811 { 1812 cat <<_ASUNAME 1813 ## --------- ## 1814 ## Platform. ## 1815 ## --------- ## 1816 1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1818 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1819 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1820 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1821 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1822 1823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1825 1826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1833 1834 _ASUNAME 1835 1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1837 for as_dir in $PATH 1838 do 1839 IFS=$as_save_IFS 1840 case $as_dir in #((( 1841 '') as_dir=./ ;; 1842 */) ;; 1843 *) as_dir=$as_dir/ ;; 1844 esac 1845 printf "%s\n" "PATH: $as_dir" 1846 done 1847 IFS=$as_save_IFS 1848 1849 } >&5 1850 1851 cat >&5 <<_ACEOF 1852 1853 1854 ## ----------- ## 1855 ## Core tests. ## 1856 ## ----------- ## 1857 1858 _ACEOF 1859 1860 1861 # Keep a trace of the command line. 1862 # Strip out --no-create and --no-recursion so they do not pile up. 1863 # Strip out --silent because we don't want to record it for future runs. 1864 # Also quote any args containing shell meta-characters. 1865 # Make two passes to allow for proper duplicate-argument suppression. 1866 ac_configure_args= 1867 ac_configure_args0= 1868 ac_configure_args1= 1869 ac_must_keep_next=false 1870 for ac_pass in 1 2 1871 do 1872 for ac_arg 1873 do 1874 case $ac_arg in 1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1877 | -silent | --silent | --silen | --sile | --sil) 1878 continue ;; 1879 *\'*) 1880 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 esac 1882 case $ac_pass in 1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1884 2) 1885 as_fn_append ac_configure_args1 " '$ac_arg'" 1886 if test $ac_must_keep_next = true; then 1887 ac_must_keep_next=false # Got value, back to normal. 1888 else 1889 case $ac_arg in 1890 *=* | --config-cache | -C | -disable-* | --disable-* \ 1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1893 | -with-* | --with-* | -without-* | --without-* | --x) 1894 case "$ac_configure_args0 " in 1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1896 esac 1897 ;; 1898 -* ) ac_must_keep_next=true ;; 1899 esac 1900 fi 1901 as_fn_append ac_configure_args " '$ac_arg'" 1902 ;; 1903 esac 1904 done 1905 done 1906 { ac_configure_args0=; unset ac_configure_args0;} 1907 { ac_configure_args1=; unset ac_configure_args1;} 1908 1909 # When interrupted or exit'd, cleanup temporary files, and complete 1910 # config.log. We remove comments because anyway the quotes in there 1911 # would cause problems or look ugly. 1912 # WARNING: Use '\'' to represent an apostrophe within the trap. 1913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1914 trap 'exit_status=$? 1915 # Sanitize IFS. 1916 IFS=" "" $as_nl" 1917 # Save into config.log some information that might help in debugging. 1918 { 1919 echo 1920 1921 printf "%s\n" "## ---------------- ## 1922 ## Cache variables. ## 1923 ## ---------------- ##" 1924 echo 1925 # The following way of writing the cache mishandles newlines in values, 1926 ( 1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1928 eval ac_val=\$$ac_var 1929 case $ac_val in #( 1930 *${as_nl}*) 1931 case $ac_var in #( 1932 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1933 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1934 esac 1935 case $ac_var in #( 1936 _ | IFS | as_nl) ;; #( 1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1938 *) { eval $ac_var=; unset $ac_var;} ;; 1939 esac ;; 1940 esac 1941 done 1942 (set) 2>&1 | 1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1944 *${as_nl}ac_space=\ *) 1945 sed -n \ 1946 "s/'\''/'\''\\\\'\'''\''/g; 1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1948 ;; #( 1949 *) 1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1951 ;; 1952 esac | 1953 sort 1954 ) 1955 echo 1956 1957 printf "%s\n" "## ----------------- ## 1958 ## Output variables. ## 1959 ## ----------------- ##" 1960 echo 1961 for ac_var in $ac_subst_vars 1962 do 1963 eval ac_val=\$$ac_var 1964 case $ac_val in 1965 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1966 esac 1967 printf "%s\n" "$ac_var='\''$ac_val'\''" 1968 done | sort 1969 echo 1970 1971 if test -n "$ac_subst_files"; then 1972 printf "%s\n" "## ------------------- ## 1973 ## File substitutions. ## 1974 ## ------------------- ##" 1975 echo 1976 for ac_var in $ac_subst_files 1977 do 1978 eval ac_val=\$$ac_var 1979 case $ac_val in 1980 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1981 esac 1982 printf "%s\n" "$ac_var='\''$ac_val'\''" 1983 done | sort 1984 echo 1985 fi 1986 1987 if test -s confdefs.h; then 1988 printf "%s\n" "## ----------- ## 1989 ## confdefs.h. ## 1990 ## ----------- ##" 1991 echo 1992 cat confdefs.h 1993 echo 1994 fi 1995 test "$ac_signal" != 0 && 1996 printf "%s\n" "$as_me: caught signal $ac_signal" 1997 printf "%s\n" "$as_me: exit $exit_status" 1998 } >&5 1999 rm -f core *.core core.conftest.* && 2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2001 exit $exit_status 2002 ' 0 2003 for ac_signal in 1 2 13 15; do 2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2005 done 2006 ac_signal=0 2007 2008 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2009 rm -f -r conftest* confdefs.h 2010 2011 printf "%s\n" "/* confdefs.h */" > confdefs.h 2012 2013 # Predefined preprocessor variables. 2014 2015 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2016 2017 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2018 2019 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2020 2021 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2022 2023 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2024 2025 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2026 2027 2028 # Let the site file select an alternate cache file if it wants to. 2029 # Prefer an explicitly selected file to automatically selected ones. 2030 if test -n "$CONFIG_SITE"; then 2031 ac_site_files="$CONFIG_SITE" 2032 elif test "x$prefix" != xNONE; then 2033 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2034 else 2035 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2036 fi 2037 2038 for ac_site_file in $ac_site_files 2039 do 2040 case $ac_site_file in #( 2041 */*) : 2042 ;; #( 2043 *) : 2044 ac_site_file=./$ac_site_file ;; 2045 esac 2046 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2048 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2049 sed 's/^/| /' "$ac_site_file" >&5 2050 . "$ac_site_file" \ 2051 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2053 as_fn_error $? "failed to load site script $ac_site_file 2054 See 'config.log' for more details" "$LINENO" 5; } 2055 fi 2056 done 2057 2058 if test -r "$cache_file"; then 2059 # Some versions of bash will fail to source /dev/null (special files 2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2063 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2064 case $cache_file in 2065 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2066 *) . "./$cache_file";; 2067 esac 2068 fi 2069 else 2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2071 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2072 >$cache_file 2073 fi 2074 2075 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2076 # Test code for whether the C compiler supports C89 (global declarations) 2077 ac_c_conftest_c89_globals=' 2078 /* Does the compiler advertise C89 conformance? 2079 Do not test the value of __STDC__, because some compilers set it to 0 2080 while being otherwise adequately conformant. */ 2081 #if !defined __STDC__ 2082 # error "Compiler does not advertise C89 conformance" 2083 #endif 2084 2085 #include <stddef.h> 2086 #include <stdarg.h> 2087 struct stat; 2088 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2089 struct buf { int x; }; 2090 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2091 static char *e (char **p, int i) 2092 { 2093 return p[i]; 2094 } 2095 static char *f (char * (*g) (char **, int), char **p, ...) 2096 { 2097 char *s; 2098 va_list v; 2099 va_start (v,p); 2100 s = g (p, va_arg (v,int)); 2101 va_end (v); 2102 return s; 2103 } 2104 2105 /* C89 style stringification. */ 2106 #define noexpand_stringify(a) #a 2107 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2108 2109 /* C89 style token pasting. Exercises some of the corner cases that 2110 e.g. old MSVC gets wrong, but not very hard. */ 2111 #define noexpand_concat(a,b) a##b 2112 #define expand_concat(a,b) noexpand_concat(a,b) 2113 extern int vA; 2114 extern int vbee; 2115 #define aye A 2116 #define bee B 2117 int *pvA = &expand_concat(v,aye); 2118 int *pvbee = &noexpand_concat(v,bee); 2119 2120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2121 function prototypes and stuff, but not \xHH hex character constants. 2122 These do not provoke an error unfortunately, instead are silently treated 2123 as an "x". The following induces an error, until -std is added to get 2124 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2125 array size at least. It is necessary to write \x00 == 0 to get something 2126 that is true only with -std. */ 2127 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2128 2129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2130 inside strings and character constants. */ 2131 #define FOO(x) '\''x'\'' 2132 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2133 2134 int test (int i, double x); 2135 struct s1 {int (*f) (int a);}; 2136 struct s2 {int (*f) (double a);}; 2137 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2138 int, int);' 2139 2140 # Test code for whether the C compiler supports C89 (body of main). 2141 ac_c_conftest_c89_main=' 2142 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2143 ' 2144 2145 # Test code for whether the C compiler supports C99 (global declarations) 2146 ac_c_conftest_c99_globals=' 2147 /* Does the compiler advertise C99 conformance? */ 2148 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2149 # error "Compiler does not advertise C99 conformance" 2150 #endif 2151 2152 // See if C++-style comments work. 2153 2154 #include <stdbool.h> 2155 extern int puts (const char *); 2156 extern int printf (const char *, ...); 2157 extern int dprintf (int, const char *, ...); 2158 extern void *malloc (size_t); 2159 extern void free (void *); 2160 2161 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2162 // dprintf is used instead of fprintf to avoid needing to declare 2163 // FILE and stderr. 2164 #define debug(...) dprintf (2, __VA_ARGS__) 2165 #define showlist(...) puts (#__VA_ARGS__) 2166 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2167 static void 2168 test_varargs_macros (void) 2169 { 2170 int x = 1234; 2171 int y = 5678; 2172 debug ("Flag"); 2173 debug ("X = %d\n", x); 2174 showlist (The first, second, and third items.); 2175 report (x>y, "x is %d but y is %d", x, y); 2176 } 2177 2178 // Check long long types. 2179 #define BIG64 18446744073709551615ull 2180 #define BIG32 4294967295ul 2181 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2182 #if !BIG_OK 2183 #error "your preprocessor is broken" 2184 #endif 2185 #if BIG_OK 2186 #else 2187 #error "your preprocessor is broken" 2188 #endif 2189 static long long int bignum = -9223372036854775807LL; 2190 static unsigned long long int ubignum = BIG64; 2191 2192 struct incomplete_array 2193 { 2194 int datasize; 2195 double data[]; 2196 }; 2197 2198 struct named_init { 2199 int number; 2200 const wchar_t *name; 2201 double average; 2202 }; 2203 2204 typedef const char *ccp; 2205 2206 static inline int 2207 test_restrict (ccp restrict text) 2208 { 2209 // Iterate through items via the restricted pointer. 2210 // Also check for declarations in for loops. 2211 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2212 continue; 2213 return 0; 2214 } 2215 2216 // Check varargs and va_copy. 2217 static bool 2218 test_varargs (const char *format, ...) 2219 { 2220 va_list args; 2221 va_start (args, format); 2222 va_list args_copy; 2223 va_copy (args_copy, args); 2224 2225 const char *str = ""; 2226 int number = 0; 2227 float fnumber = 0; 2228 2229 while (*format) 2230 { 2231 switch (*format++) 2232 { 2233 case '\''s'\'': // string 2234 str = va_arg (args_copy, const char *); 2235 break; 2236 case '\''d'\'': // int 2237 number = va_arg (args_copy, int); 2238 break; 2239 case '\''f'\'': // float 2240 fnumber = va_arg (args_copy, double); 2241 break; 2242 default: 2243 break; 2244 } 2245 } 2246 va_end (args_copy); 2247 va_end (args); 2248 2249 return *str && number && fnumber; 2250 } 2251 ' 2252 2253 # Test code for whether the C compiler supports C99 (body of main). 2254 ac_c_conftest_c99_main=' 2255 // Check bool. 2256 _Bool success = false; 2257 success |= (argc != 0); 2258 2259 // Check restrict. 2260 if (test_restrict ("String literal") == 0) 2261 success = true; 2262 char *restrict newvar = "Another string"; 2263 2264 // Check varargs. 2265 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2266 test_varargs_macros (); 2267 2268 // Check flexible array members. 2269 struct incomplete_array *ia = 2270 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2271 ia->datasize = 10; 2272 for (int i = 0; i < ia->datasize; ++i) 2273 ia->data[i] = i * 1.234; 2274 // Work around memory leak warnings. 2275 free (ia); 2276 2277 // Check named initializers. 2278 struct named_init ni = { 2279 .number = 34, 2280 .name = L"Test wide string", 2281 .average = 543.34343, 2282 }; 2283 2284 ni.number = 58; 2285 2286 int dynamic_array[ni.number]; 2287 dynamic_array[0] = argv[0][0]; 2288 dynamic_array[ni.number - 1] = 543; 2289 2290 // work around unused variable warnings 2291 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2292 || dynamic_array[ni.number - 1] != 543); 2293 ' 2294 2295 # Test code for whether the C compiler supports C11 (global declarations) 2296 ac_c_conftest_c11_globals=' 2297 /* Does the compiler advertise C11 conformance? */ 2298 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2299 # error "Compiler does not advertise C11 conformance" 2300 #endif 2301 2302 // Check _Alignas. 2303 char _Alignas (double) aligned_as_double; 2304 char _Alignas (0) no_special_alignment; 2305 extern char aligned_as_int; 2306 char _Alignas (0) _Alignas (int) aligned_as_int; 2307 2308 // Check _Alignof. 2309 enum 2310 { 2311 int_alignment = _Alignof (int), 2312 int_array_alignment = _Alignof (int[100]), 2313 char_alignment = _Alignof (char) 2314 }; 2315 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2316 2317 // Check _Noreturn. 2318 int _Noreturn does_not_return (void) { for (;;) continue; } 2319 2320 // Check _Static_assert. 2321 struct test_static_assert 2322 { 2323 int x; 2324 _Static_assert (sizeof (int) <= sizeof (long int), 2325 "_Static_assert does not work in struct"); 2326 long int y; 2327 }; 2328 2329 // Check UTF-8 literals. 2330 #define u8 syntax error! 2331 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2332 2333 // Check duplicate typedefs. 2334 typedef long *long_ptr; 2335 typedef long int *long_ptr; 2336 typedef long_ptr long_ptr; 2337 2338 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2339 struct anonymous 2340 { 2341 union { 2342 struct { int i; int j; }; 2343 struct { int k; long int l; } w; 2344 }; 2345 int m; 2346 } v1; 2347 ' 2348 2349 # Test code for whether the C compiler supports C11 (body of main). 2350 ac_c_conftest_c11_main=' 2351 _Static_assert ((offsetof (struct anonymous, i) 2352 == offsetof (struct anonymous, w.k)), 2353 "Anonymous union alignment botch"); 2354 v1.i = 2; 2355 v1.w.k = 5; 2356 ok |= v1.i != 5; 2357 ' 2358 2359 # Test code for whether the C compiler supports C11 (complete). 2360 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2361 ${ac_c_conftest_c99_globals} 2362 ${ac_c_conftest_c11_globals} 2363 2364 int 2365 main (int argc, char **argv) 2366 { 2367 int ok = 0; 2368 ${ac_c_conftest_c89_main} 2369 ${ac_c_conftest_c99_main} 2370 ${ac_c_conftest_c11_main} 2371 return ok; 2372 } 2373 " 2374 2375 # Test code for whether the C compiler supports C99 (complete). 2376 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2377 ${ac_c_conftest_c99_globals} 2378 2379 int 2380 main (int argc, char **argv) 2381 { 2382 int ok = 0; 2383 ${ac_c_conftest_c89_main} 2384 ${ac_c_conftest_c99_main} 2385 return ok; 2386 } 2387 " 2388 2389 # Test code for whether the C compiler supports C89 (complete). 2390 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2391 2392 int 2393 main (int argc, char **argv) 2394 { 2395 int ok = 0; 2396 ${ac_c_conftest_c89_main} 2397 return ok; 2398 } 2399 " 2400 2401 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2402 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2403 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2404 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2405 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2406 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2407 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2408 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2409 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2410 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2411 2412 # Auxiliary files required by this configure script. 2413 ac_aux_files="config.guess config.sub missing install-sh compile" 2414 2415 # Locations in which to look for auxiliary files. 2416 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2417 2418 # Search for a directory containing all of the required auxiliary files, 2419 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2420 # If we don't find one directory that contains all the files we need, 2421 # we report the set of missing files from the *first* directory in 2422 # $ac_aux_dir_candidates and give up. 2423 ac_missing_aux_files="" 2424 ac_first_candidate=: 2425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427 as_found=false 2428 for as_dir in $ac_aux_dir_candidates 2429 do 2430 IFS=$as_save_IFS 2431 case $as_dir in #((( 2432 '') as_dir=./ ;; 2433 */) ;; 2434 *) as_dir=$as_dir/ ;; 2435 esac 2436 as_found=: 2437 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2439 ac_aux_dir_found=yes 2440 ac_install_sh= 2441 for ac_aux in $ac_aux_files 2442 do 2443 # As a special case, if "install-sh" is required, that requirement 2444 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2445 # and $ac_install_sh is set appropriately for whichever one is found. 2446 if test x"$ac_aux" = x"install-sh" 2447 then 2448 if test -f "${as_dir}install-sh"; then 2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2450 ac_install_sh="${as_dir}install-sh -c" 2451 elif test -f "${as_dir}install.sh"; then 2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2453 ac_install_sh="${as_dir}install.sh -c" 2454 elif test -f "${as_dir}shtool"; then 2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2456 ac_install_sh="${as_dir}shtool install -c" 2457 else 2458 ac_aux_dir_found=no 2459 if $ac_first_candidate; then 2460 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2461 else 2462 break 2463 fi 2464 fi 2465 else 2466 if test -f "${as_dir}${ac_aux}"; then 2467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2468 else 2469 ac_aux_dir_found=no 2470 if $ac_first_candidate; then 2471 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2472 else 2473 break 2474 fi 2475 fi 2476 fi 2477 done 2478 if test "$ac_aux_dir_found" = yes; then 2479 ac_aux_dir="$as_dir" 2480 break 2481 fi 2482 ac_first_candidate=false 2483 2484 as_found=false 2485 done 2486 IFS=$as_save_IFS 2487 if $as_found 2488 then : 2489 2490 else case e in #( 2491 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2492 esac 2493 fi 2494 2495 2496 # These three variables are undocumented and unsupported, 2497 # and are intended to be withdrawn in a future Autoconf release. 2498 # They can cause serious problems if a builder's source tree is in a directory 2499 # whose full name contains unusual characters. 2500 if test -f "${ac_aux_dir}config.guess"; then 2501 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2502 fi 2503 if test -f "${ac_aux_dir}config.sub"; then 2504 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2505 fi 2506 if test -f "$ac_aux_dir/configure"; then 2507 ac_configure="$SHELL ${ac_aux_dir}configure" 2508 fi 2509 2510 # Check that the precious variables saved in the cache have kept the same 2511 # value. 2512 ac_cache_corrupted=false 2513 for ac_var in $ac_precious_vars; do 2514 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2515 eval ac_new_set=\$ac_env_${ac_var}_set 2516 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2517 eval ac_new_val=\$ac_env_${ac_var}_value 2518 case $ac_old_set,$ac_new_set in 2519 set,) 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2521 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2522 ac_cache_corrupted=: ;; 2523 ,set) 2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2525 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2526 ac_cache_corrupted=: ;; 2527 ,);; 2528 *) 2529 if test "x$ac_old_val" != "x$ac_new_val"; then 2530 # differences in whitespace do not lead to failure. 2531 ac_old_val_w=`echo x $ac_old_val` 2532 ac_new_val_w=`echo x $ac_new_val` 2533 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2535 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2536 ac_cache_corrupted=: 2537 else 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2539 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2540 eval $ac_var=\$ac_old_val 2541 fi 2542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2543 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2545 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2546 fi;; 2547 esac 2548 # Pass precious variables to config.status. 2549 if test "$ac_new_set" = set; then 2550 case $ac_new_val in 2551 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2552 *) ac_arg=$ac_var=$ac_new_val ;; 2553 esac 2554 case " $ac_configure_args " in 2555 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2556 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2557 esac 2558 fi 2559 done 2560 if $ac_cache_corrupted; then 2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2562 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2564 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2565 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2566 and start over" "$LINENO" 5 2567 fi 2568 ## -------------------- ## 2569 ## Main body of script. ## 2570 ## -------------------- ## 2571 2572 ac_ext=c 2573 ac_cpp='$CPP $CPPFLAGS' 2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2577 2578 2579 2580 ac_config_headers="$ac_config_headers config.h" 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 # Expand $ac_aux_dir to an absolute path. 2594 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2595 2596 ac_ext=c 2597 ac_cpp='$CPP $CPPFLAGS' 2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 if test -n "$ac_tool_prefix"; then 2602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2603 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605 printf %s "checking for $ac_word... " >&6; } 2606 if test ${ac_cv_prog_CC+y} 2607 then : 2608 printf %s "(cached) " >&6 2609 else case e in #( 2610 e) if test -n "$CC"; then 2611 ac_cv_prog_CC="$CC" # Let the user override the test. 2612 else 2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614 for as_dir in $PATH 2615 do 2616 IFS=$as_save_IFS 2617 case $as_dir in #((( 2618 '') as_dir=./ ;; 2619 */) ;; 2620 *) as_dir=$as_dir/ ;; 2621 esac 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2624 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628 done 2629 done 2630 IFS=$as_save_IFS 2631 2632 fi ;; 2633 esac 2634 fi 2635 CC=$ac_cv_prog_CC 2636 if test -n "$CC"; then 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2638 printf "%s\n" "$CC" >&6; } 2639 else 2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641 printf "%s\n" "no" >&6; } 2642 fi 2643 2644 2645 fi 2646 if test -z "$ac_cv_prog_CC"; then 2647 ac_ct_CC=$CC 2648 # Extract the first word of "gcc", so it can be a program name with args. 2649 set dummy gcc; ac_word=$2 2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651 printf %s "checking for $ac_word... " >&6; } 2652 if test ${ac_cv_prog_ac_ct_CC+y} 2653 then : 2654 printf %s "(cached) " >&6 2655 else case e in #( 2656 e) if test -n "$ac_ct_CC"; then 2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2658 else 2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660 for as_dir in $PATH 2661 do 2662 IFS=$as_save_IFS 2663 case $as_dir in #((( 2664 '') as_dir=./ ;; 2665 */) ;; 2666 *) as_dir=$as_dir/ ;; 2667 esac 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_ac_ct_CC="gcc" 2671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674 done 2675 done 2676 IFS=$as_save_IFS 2677 2678 fi ;; 2679 esac 2680 fi 2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2682 if test -n "$ac_ct_CC"; then 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2684 printf "%s\n" "$ac_ct_CC" >&6; } 2685 else 2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687 printf "%s\n" "no" >&6; } 2688 fi 2689 2690 if test "x$ac_ct_CC" = x; then 2691 CC="" 2692 else 2693 case $cross_compiling:$ac_tool_warned in 2694 yes:) 2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2697 ac_tool_warned=yes ;; 2698 esac 2699 CC=$ac_ct_CC 2700 fi 2701 else 2702 CC="$ac_cv_prog_CC" 2703 fi 2704 2705 if test -z "$CC"; then 2706 if test -n "$ac_tool_prefix"; then 2707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2708 set dummy ${ac_tool_prefix}cc; ac_word=$2 2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710 printf %s "checking for $ac_word... " >&6; } 2711 if test ${ac_cv_prog_CC+y} 2712 then : 2713 printf %s "(cached) " >&6 2714 else case e in #( 2715 e) if test -n "$CC"; then 2716 ac_cv_prog_CC="$CC" # Let the user override the test. 2717 else 2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719 for as_dir in $PATH 2720 do 2721 IFS=$as_save_IFS 2722 case $as_dir in #((( 2723 '') as_dir=./ ;; 2724 */) ;; 2725 *) as_dir=$as_dir/ ;; 2726 esac 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2729 ac_cv_prog_CC="${ac_tool_prefix}cc" 2730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733 done 2734 done 2735 IFS=$as_save_IFS 2736 2737 fi ;; 2738 esac 2739 fi 2740 CC=$ac_cv_prog_CC 2741 if test -n "$CC"; then 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2743 printf "%s\n" "$CC" >&6; } 2744 else 2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746 printf "%s\n" "no" >&6; } 2747 fi 2748 2749 2750 fi 2751 fi 2752 if test -z "$CC"; then 2753 # Extract the first word of "cc", so it can be a program name with args. 2754 set dummy cc; ac_word=$2 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2756 printf %s "checking for $ac_word... " >&6; } 2757 if test ${ac_cv_prog_CC+y} 2758 then : 2759 printf %s "(cached) " >&6 2760 else case e in #( 2761 e) if test -n "$CC"; then 2762 ac_cv_prog_CC="$CC" # Let the user override the test. 2763 else 2764 ac_prog_rejected=no 2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766 for as_dir in $PATH 2767 do 2768 IFS=$as_save_IFS 2769 case $as_dir in #((( 2770 '') as_dir=./ ;; 2771 */) ;; 2772 *) as_dir=$as_dir/ ;; 2773 esac 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2776 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2777 ac_prog_rejected=yes 2778 continue 2779 fi 2780 ac_cv_prog_CC="cc" 2781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784 done 2785 done 2786 IFS=$as_save_IFS 2787 2788 if test $ac_prog_rejected = yes; then 2789 # We found a bogon in the path, so make sure we never use it. 2790 set dummy $ac_cv_prog_CC 2791 shift 2792 if test $# != 0; then 2793 # We chose a different compiler from the bogus one. 2794 # However, it has the same basename, so the bogon will be chosen 2795 # first if we set CC to just the basename; use the full file name. 2796 shift 2797 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2798 fi 2799 fi 2800 fi ;; 2801 esac 2802 fi 2803 CC=$ac_cv_prog_CC 2804 if test -n "$CC"; then 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2806 printf "%s\n" "$CC" >&6; } 2807 else 2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2809 printf "%s\n" "no" >&6; } 2810 fi 2811 2812 2813 fi 2814 if test -z "$CC"; then 2815 if test -n "$ac_tool_prefix"; then 2816 for ac_prog in cl.exe 2817 do 2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821 printf %s "checking for $ac_word... " >&6; } 2822 if test ${ac_cv_prog_CC+y} 2823 then : 2824 printf %s "(cached) " >&6 2825 else case e in #( 2826 e) if test -n "$CC"; then 2827 ac_cv_prog_CC="$CC" # Let the user override the test. 2828 else 2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830 for as_dir in $PATH 2831 do 2832 IFS=$as_save_IFS 2833 case $as_dir in #((( 2834 '') as_dir=./ ;; 2835 */) ;; 2836 *) as_dir=$as_dir/ ;; 2837 esac 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2842 break 2 2843 fi 2844 done 2845 done 2846 IFS=$as_save_IFS 2847 2848 fi ;; 2849 esac 2850 fi 2851 CC=$ac_cv_prog_CC 2852 if test -n "$CC"; then 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2854 printf "%s\n" "$CC" >&6; } 2855 else 2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857 printf "%s\n" "no" >&6; } 2858 fi 2859 2860 2861 test -n "$CC" && break 2862 done 2863 fi 2864 if test -z "$CC"; then 2865 ac_ct_CC=$CC 2866 for ac_prog in cl.exe 2867 do 2868 # Extract the first word of "$ac_prog", so it can be a program name with args. 2869 set dummy $ac_prog; ac_word=$2 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871 printf %s "checking for $ac_word... " >&6; } 2872 if test ${ac_cv_prog_ac_ct_CC+y} 2873 then : 2874 printf %s "(cached) " >&6 2875 else case e in #( 2876 e) if test -n "$ac_ct_CC"; then 2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2878 else 2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880 for as_dir in $PATH 2881 do 2882 IFS=$as_save_IFS 2883 case $as_dir in #((( 2884 '') as_dir=./ ;; 2885 */) ;; 2886 *) as_dir=$as_dir/ ;; 2887 esac 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_ac_ct_CC="$ac_prog" 2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894 done 2895 done 2896 IFS=$as_save_IFS 2897 2898 fi ;; 2899 esac 2900 fi 2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2902 if test -n "$ac_ct_CC"; then 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2904 printf "%s\n" "$ac_ct_CC" >&6; } 2905 else 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907 printf "%s\n" "no" >&6; } 2908 fi 2909 2910 2911 test -n "$ac_ct_CC" && break 2912 done 2913 2914 if test "x$ac_ct_CC" = x; then 2915 CC="" 2916 else 2917 case $cross_compiling:$ac_tool_warned in 2918 yes:) 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2921 ac_tool_warned=yes ;; 2922 esac 2923 CC=$ac_ct_CC 2924 fi 2925 fi 2926 2927 fi 2928 if test -z "$CC"; then 2929 if test -n "$ac_tool_prefix"; then 2930 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2931 set dummy ${ac_tool_prefix}clang; ac_word=$2 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2933 printf %s "checking for $ac_word... " >&6; } 2934 if test ${ac_cv_prog_CC+y} 2935 then : 2936 printf %s "(cached) " >&6 2937 else case e in #( 2938 e) if test -n "$CC"; then 2939 ac_cv_prog_CC="$CC" # Let the user override the test. 2940 else 2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942 for as_dir in $PATH 2943 do 2944 IFS=$as_save_IFS 2945 case $as_dir in #((( 2946 '') as_dir=./ ;; 2947 */) ;; 2948 *) as_dir=$as_dir/ ;; 2949 esac 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2952 ac_cv_prog_CC="${ac_tool_prefix}clang" 2953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956 done 2957 done 2958 IFS=$as_save_IFS 2959 2960 fi ;; 2961 esac 2962 fi 2963 CC=$ac_cv_prog_CC 2964 if test -n "$CC"; then 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966 printf "%s\n" "$CC" >&6; } 2967 else 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969 printf "%s\n" "no" >&6; } 2970 fi 2971 2972 2973 fi 2974 if test -z "$ac_cv_prog_CC"; then 2975 ac_ct_CC=$CC 2976 # Extract the first word of "clang", so it can be a program name with args. 2977 set dummy clang; ac_word=$2 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979 printf %s "checking for $ac_word... " >&6; } 2980 if test ${ac_cv_prog_ac_ct_CC+y} 2981 then : 2982 printf %s "(cached) " >&6 2983 else case e in #( 2984 e) if test -n "$ac_ct_CC"; then 2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2986 else 2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988 for as_dir in $PATH 2989 do 2990 IFS=$as_save_IFS 2991 case $as_dir in #((( 2992 '') as_dir=./ ;; 2993 */) ;; 2994 *) as_dir=$as_dir/ ;; 2995 esac 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2998 ac_cv_prog_ac_ct_CC="clang" 2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002 done 3003 done 3004 IFS=$as_save_IFS 3005 3006 fi ;; 3007 esac 3008 fi 3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3010 if test -n "$ac_ct_CC"; then 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3012 printf "%s\n" "$ac_ct_CC" >&6; } 3013 else 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015 printf "%s\n" "no" >&6; } 3016 fi 3017 3018 if test "x$ac_ct_CC" = x; then 3019 CC="" 3020 else 3021 case $cross_compiling:$ac_tool_warned in 3022 yes:) 3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3025 ac_tool_warned=yes ;; 3026 esac 3027 CC=$ac_ct_CC 3028 fi 3029 else 3030 CC="$ac_cv_prog_CC" 3031 fi 3032 3033 fi 3034 3035 3036 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3037 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3038 as_fn_error $? "no acceptable C compiler found in \$PATH 3039 See 'config.log' for more details" "$LINENO" 5; } 3040 3041 # Provide some information about the compiler. 3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3043 set X $ac_compile 3044 ac_compiler=$2 3045 for ac_option in --version -v -V -qversion -version; do 3046 { { ac_try="$ac_compiler $ac_option >&5" 3047 case "(($ac_try" in 3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3049 *) ac_try_echo=$ac_try;; 3050 esac 3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3052 printf "%s\n" "$ac_try_echo"; } >&5 3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3054 ac_status=$? 3055 if test -s conftest.err; then 3056 sed '10a\ 3057 ... rest of stderr output deleted ... 3058 10q' conftest.err >conftest.er1 3059 cat conftest.er1 >&5 3060 fi 3061 rm -f conftest.er1 conftest.err 3062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3063 test $ac_status = 0; } 3064 done 3065 3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3067 /* end confdefs.h. */ 3068 3069 int 3070 main (void) 3071 { 3072 3073 ; 3074 return 0; 3075 } 3076 _ACEOF 3077 ac_clean_files_save=$ac_clean_files 3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3079 # Try to create an executable without -o first, disregard a.out. 3080 # It will help us diagnose broken compilers, and finding out an intuition 3081 # of exeext. 3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3083 printf %s "checking whether the C compiler works... " >&6; } 3084 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3085 3086 # The possible output files: 3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3088 3089 ac_rmfiles= 3090 for ac_file in $ac_files 3091 do 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3095 esac 3096 done 3097 rm -f $ac_rmfiles 3098 3099 if { { ac_try="$ac_link_default" 3100 case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103 esac 3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3105 printf "%s\n" "$ac_try_echo"; } >&5 3106 (eval "$ac_link_default") 2>&5 3107 ac_status=$? 3108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3109 test $ac_status = 0; } 3110 then : 3111 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3112 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3113 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3114 # so that the user can short-circuit this test for compilers unknown to 3115 # Autoconf. 3116 for ac_file in $ac_files '' 3117 do 3118 test -f "$ac_file" || continue 3119 case $ac_file in 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3121 ;; 3122 [ab].out ) 3123 # We found the default executable, but exeext='' is most 3124 # certainly right. 3125 break;; 3126 *.* ) 3127 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3128 then :; else 3129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3130 fi 3131 # We set ac_cv_exeext here because the later test for it is not 3132 # safe: cross compilers may not add the suffix if given an '-o' 3133 # argument, so we may need to know it at that point already. 3134 # Even if this section looks crufty: it has the advantage of 3135 # actually working. 3136 break;; 3137 * ) 3138 break;; 3139 esac 3140 done 3141 test "$ac_cv_exeext" = no && ac_cv_exeext= 3142 3143 else case e in #( 3144 e) ac_file='' ;; 3145 esac 3146 fi 3147 if test -z "$ac_file" 3148 then : 3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150 printf "%s\n" "no" >&6; } 3151 printf "%s\n" "$as_me: failed program was:" >&5 3152 sed 's/^/| /' conftest.$ac_ext >&5 3153 3154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3155 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3156 as_fn_error 77 "C compiler cannot create executables 3157 See 'config.log' for more details" "$LINENO" 5; } 3158 else case e in #( 3159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3160 printf "%s\n" "yes" >&6; } ;; 3161 esac 3162 fi 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3164 printf %s "checking for C compiler default output file name... " >&6; } 3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3166 printf "%s\n" "$ac_file" >&6; } 3167 ac_exeext=$ac_cv_exeext 3168 3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3170 ac_clean_files=$ac_clean_files_save 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3172 printf %s "checking for suffix of executables... " >&6; } 3173 if { { ac_try="$ac_link" 3174 case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177 esac 3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3179 printf "%s\n" "$ac_try_echo"; } >&5 3180 (eval "$ac_link") 2>&5 3181 ac_status=$? 3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3183 test $ac_status = 0; } 3184 then : 3185 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3186 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3187 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3188 # 'rm'. 3189 for ac_file in conftest.exe conftest conftest.*; do 3190 test -f "$ac_file" || continue 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3194 break;; 3195 * ) break;; 3196 esac 3197 done 3198 else case e in #( 3199 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3200 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3201 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3202 See 'config.log' for more details" "$LINENO" 5; } ;; 3203 esac 3204 fi 3205 rm -f conftest conftest$ac_cv_exeext 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3207 printf "%s\n" "$ac_cv_exeext" >&6; } 3208 3209 rm -f conftest.$ac_ext 3210 EXEEXT=$ac_cv_exeext 3211 ac_exeext=$EXEEXT 3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3213 /* end confdefs.h. */ 3214 #include <stdio.h> 3215 int 3216 main (void) 3217 { 3218 FILE *f = fopen ("conftest.out", "w"); 3219 if (!f) 3220 return 1; 3221 return ferror (f) || fclose (f) != 0; 3222 3223 ; 3224 return 0; 3225 } 3226 _ACEOF 3227 ac_clean_files="$ac_clean_files conftest.out" 3228 # Check that the compiler produces executables we can run. If not, either 3229 # the compiler is broken, or we cross compile. 3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3231 printf %s "checking whether we are cross compiling... " >&6; } 3232 if test "$cross_compiling" != yes; then 3233 { { ac_try="$ac_link" 3234 case "(($ac_try" in 3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3236 *) ac_try_echo=$ac_try;; 3237 esac 3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3239 printf "%s\n" "$ac_try_echo"; } >&5 3240 (eval "$ac_link") 2>&5 3241 ac_status=$? 3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3243 test $ac_status = 0; } 3244 if { ac_try='./conftest$ac_cv_exeext' 3245 { { case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248 esac 3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250 printf "%s\n" "$ac_try_echo"; } >&5 3251 (eval "$ac_try") 2>&5 3252 ac_status=$? 3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; }; }; then 3255 cross_compiling=no 3256 else 3257 if test "$cross_compiling" = maybe; then 3258 cross_compiling=yes 3259 else 3260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3262 as_fn_error 77 "cannot run C compiled programs. 3263 If you meant to cross compile, use '--host'. 3264 See 'config.log' for more details" "$LINENO" 5; } 3265 fi 3266 fi 3267 fi 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3269 printf "%s\n" "$cross_compiling" >&6; } 3270 3271 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3272 conftest.o conftest.obj conftest.out 3273 ac_clean_files=$ac_clean_files_save 3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3275 printf %s "checking for suffix of object files... " >&6; } 3276 if test ${ac_cv_objext+y} 3277 then : 3278 printf %s "(cached) " >&6 3279 else case e in #( 3280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281 /* end confdefs.h. */ 3282 3283 int 3284 main (void) 3285 { 3286 3287 ; 3288 return 0; 3289 } 3290 _ACEOF 3291 rm -f conftest.o conftest.obj 3292 if { { ac_try="$ac_compile" 3293 case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296 esac 3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3298 printf "%s\n" "$ac_try_echo"; } >&5 3299 (eval "$ac_compile") 2>&5 3300 ac_status=$? 3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; } 3303 then : 3304 for ac_file in conftest.o conftest.obj conftest.*; do 3305 test -f "$ac_file" || continue; 3306 case $ac_file in 3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3309 break;; 3310 esac 3311 done 3312 else case e in #( 3313 e) printf "%s\n" "$as_me: failed program was:" >&5 3314 sed 's/^/| /' conftest.$ac_ext >&5 3315 3316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3317 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3318 as_fn_error $? "cannot compute suffix of object files: cannot compile 3319 See 'config.log' for more details" "$LINENO" 5; } ;; 3320 esac 3321 fi 3322 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3323 esac 3324 fi 3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3326 printf "%s\n" "$ac_cv_objext" >&6; } 3327 OBJEXT=$ac_cv_objext 3328 ac_objext=$OBJEXT 3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3330 printf %s "checking whether the compiler supports GNU C... " >&6; } 3331 if test ${ac_cv_c_compiler_gnu+y} 3332 then : 3333 printf %s "(cached) " >&6 3334 else case e in #( 3335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336 /* end confdefs.h. */ 3337 3338 int 3339 main (void) 3340 { 3341 #ifndef __GNUC__ 3342 choke me 3343 #endif 3344 3345 ; 3346 return 0; 3347 } 3348 _ACEOF 3349 if ac_fn_c_try_compile "$LINENO" 3350 then : 3351 ac_compiler_gnu=yes 3352 else case e in #( 3353 e) ac_compiler_gnu=no ;; 3354 esac 3355 fi 3356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3357 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3358 ;; 3359 esac 3360 fi 3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3362 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3364 3365 if test $ac_compiler_gnu = yes; then 3366 GCC=yes 3367 else 3368 GCC= 3369 fi 3370 ac_test_CFLAGS=${CFLAGS+y} 3371 ac_save_CFLAGS=$CFLAGS 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3373 printf %s "checking whether $CC accepts -g... " >&6; } 3374 if test ${ac_cv_prog_cc_g+y} 3375 then : 3376 printf %s "(cached) " >&6 3377 else case e in #( 3378 e) ac_save_c_werror_flag=$ac_c_werror_flag 3379 ac_c_werror_flag=yes 3380 ac_cv_prog_cc_g=no 3381 CFLAGS="-g" 3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3383 /* end confdefs.h. */ 3384 3385 int 3386 main (void) 3387 { 3388 3389 ; 3390 return 0; 3391 } 3392 _ACEOF 3393 if ac_fn_c_try_compile "$LINENO" 3394 then : 3395 ac_cv_prog_cc_g=yes 3396 else case e in #( 3397 e) CFLAGS="" 3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399 /* end confdefs.h. */ 3400 3401 int 3402 main (void) 3403 { 3404 3405 ; 3406 return 0; 3407 } 3408 _ACEOF 3409 if ac_fn_c_try_compile "$LINENO" 3410 then : 3411 3412 else case e in #( 3413 e) ac_c_werror_flag=$ac_save_c_werror_flag 3414 CFLAGS="-g" 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 3418 int 3419 main (void) 3420 { 3421 3422 ; 3423 return 0; 3424 } 3425 _ACEOF 3426 if ac_fn_c_try_compile "$LINENO" 3427 then : 3428 ac_cv_prog_cc_g=yes 3429 fi 3430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3431 esac 3432 fi 3433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3434 esac 3435 fi 3436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3437 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3438 esac 3439 fi 3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3441 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3442 if test $ac_test_CFLAGS; then 3443 CFLAGS=$ac_save_CFLAGS 3444 elif test $ac_cv_prog_cc_g = yes; then 3445 if test "$GCC" = yes; then 3446 CFLAGS="-g -O2" 3447 else 3448 CFLAGS="-g" 3449 fi 3450 else 3451 if test "$GCC" = yes; then 3452 CFLAGS="-O2" 3453 else 3454 CFLAGS= 3455 fi 3456 fi 3457 ac_prog_cc_stdc=no 3458 if test x$ac_prog_cc_stdc = xno 3459 then : 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3461 printf %s "checking for $CC option to enable C11 features... " >&6; } 3462 if test ${ac_cv_prog_cc_c11+y} 3463 then : 3464 printf %s "(cached) " >&6 3465 else case e in #( 3466 e) ac_cv_prog_cc_c11=no 3467 ac_save_CC=$CC 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469 /* end confdefs.h. */ 3470 $ac_c_conftest_c11_program 3471 _ACEOF 3472 for ac_arg in '' -std=gnu11 3473 do 3474 CC="$ac_save_CC $ac_arg" 3475 if ac_fn_c_try_compile "$LINENO" 3476 then : 3477 ac_cv_prog_cc_c11=$ac_arg 3478 fi 3479 rm -f core conftest.err conftest.$ac_objext conftest.beam 3480 test "x$ac_cv_prog_cc_c11" != "xno" && break 3481 done 3482 rm -f conftest.$ac_ext 3483 CC=$ac_save_CC ;; 3484 esac 3485 fi 3486 3487 if test "x$ac_cv_prog_cc_c11" = xno 3488 then : 3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3490 printf "%s\n" "unsupported" >&6; } 3491 else case e in #( 3492 e) if test "x$ac_cv_prog_cc_c11" = x 3493 then : 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3495 printf "%s\n" "none needed" >&6; } 3496 else case e in #( 3497 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3498 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3499 CC="$CC $ac_cv_prog_cc_c11" ;; 3500 esac 3501 fi 3502 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3503 ac_prog_cc_stdc=c11 ;; 3504 esac 3505 fi 3506 fi 3507 if test x$ac_prog_cc_stdc = xno 3508 then : 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3510 printf %s "checking for $CC option to enable C99 features... " >&6; } 3511 if test ${ac_cv_prog_cc_c99+y} 3512 then : 3513 printf %s "(cached) " >&6 3514 else case e in #( 3515 e) ac_cv_prog_cc_c99=no 3516 ac_save_CC=$CC 3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518 /* end confdefs.h. */ 3519 $ac_c_conftest_c99_program 3520 _ACEOF 3521 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3522 do 3523 CC="$ac_save_CC $ac_arg" 3524 if ac_fn_c_try_compile "$LINENO" 3525 then : 3526 ac_cv_prog_cc_c99=$ac_arg 3527 fi 3528 rm -f core conftest.err conftest.$ac_objext conftest.beam 3529 test "x$ac_cv_prog_cc_c99" != "xno" && break 3530 done 3531 rm -f conftest.$ac_ext 3532 CC=$ac_save_CC ;; 3533 esac 3534 fi 3535 3536 if test "x$ac_cv_prog_cc_c99" = xno 3537 then : 3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3539 printf "%s\n" "unsupported" >&6; } 3540 else case e in #( 3541 e) if test "x$ac_cv_prog_cc_c99" = x 3542 then : 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3544 printf "%s\n" "none needed" >&6; } 3545 else case e in #( 3546 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3547 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3548 CC="$CC $ac_cv_prog_cc_c99" ;; 3549 esac 3550 fi 3551 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3552 ac_prog_cc_stdc=c99 ;; 3553 esac 3554 fi 3555 fi 3556 if test x$ac_prog_cc_stdc = xno 3557 then : 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3559 printf %s "checking for $CC option to enable C89 features... " >&6; } 3560 if test ${ac_cv_prog_cc_c89+y} 3561 then : 3562 printf %s "(cached) " >&6 3563 else case e in #( 3564 e) ac_cv_prog_cc_c89=no 3565 ac_save_CC=$CC 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567 /* end confdefs.h. */ 3568 $ac_c_conftest_c89_program 3569 _ACEOF 3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3571 do 3572 CC="$ac_save_CC $ac_arg" 3573 if ac_fn_c_try_compile "$LINENO" 3574 then : 3575 ac_cv_prog_cc_c89=$ac_arg 3576 fi 3577 rm -f core conftest.err conftest.$ac_objext conftest.beam 3578 test "x$ac_cv_prog_cc_c89" != "xno" && break 3579 done 3580 rm -f conftest.$ac_ext 3581 CC=$ac_save_CC ;; 3582 esac 3583 fi 3584 3585 if test "x$ac_cv_prog_cc_c89" = xno 3586 then : 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3588 printf "%s\n" "unsupported" >&6; } 3589 else case e in #( 3590 e) if test "x$ac_cv_prog_cc_c89" = x 3591 then : 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3593 printf "%s\n" "none needed" >&6; } 3594 else case e in #( 3595 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3596 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3597 CC="$CC $ac_cv_prog_cc_c89" ;; 3598 esac 3599 fi 3600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3601 ac_prog_cc_stdc=c89 ;; 3602 esac 3603 fi 3604 fi 3605 3606 ac_ext=c 3607 ac_cpp='$CPP $CPPFLAGS' 3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3611 3612 3613 ac_ext=c 3614 ac_cpp='$CPP $CPPFLAGS' 3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3619 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3620 if test ${am_cv_prog_cc_c_o+y} 3621 then : 3622 printf %s "(cached) " >&6 3623 else case e in #( 3624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625 /* end confdefs.h. */ 3626 3627 int 3628 main (void) 3629 { 3630 3631 ; 3632 return 0; 3633 } 3634 _ACEOF 3635 # Make sure it works both with $CC and with simple cc. 3636 # Following AC_PROG_CC_C_O, we do the test twice because some 3637 # compilers refuse to overwrite an existing .o file with -o, 3638 # though they will create one. 3639 am_cv_prog_cc_c_o=yes 3640 for am_i in 1 2; do 3641 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3642 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); } \ 3646 && test -f conftest2.$ac_objext; then 3647 : OK 3648 else 3649 am_cv_prog_cc_c_o=no 3650 break 3651 fi 3652 done 3653 rm -f core conftest* 3654 unset am_i ;; 3655 esac 3656 fi 3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3658 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3659 if test "$am_cv_prog_cc_c_o" != yes; then 3660 # Losing compiler, so override with the script. 3661 # FIXME: It is wrong to rewrite CC. 3662 # But if we don't then we get into trouble of one sort or another. 3663 # A longer-term fix would be to have automake use am__CC in this case, 3664 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3665 CC="$am_aux_dir/compile $CC" 3666 fi 3667 ac_ext=c 3668 ac_cpp='$CPP $CPPFLAGS' 3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3672 3673 3674 3675 ac_header= ac_cache= 3676 for ac_item in $ac_header_c_list 3677 do 3678 if test $ac_cache; then 3679 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3680 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3681 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3682 fi 3683 ac_header= ac_cache= 3684 elif test $ac_header; then 3685 ac_cache=$ac_item 3686 else 3687 ac_header=$ac_item 3688 fi 3689 done 3690 3691 3692 3693 3694 3695 3696 3697 3698 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3699 then : 3700 3701 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3702 3703 fi 3704 3705 3706 3707 3708 3709 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3711 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3712 if test ${ac_cv_safe_to_define___extensions__+y} 3713 then : 3714 printf %s "(cached) " >&6 3715 else case e in #( 3716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717 /* end confdefs.h. */ 3718 3719 # define __EXTENSIONS__ 1 3720 $ac_includes_default 3721 int 3722 main (void) 3723 { 3724 3725 ; 3726 return 0; 3727 } 3728 _ACEOF 3729 if ac_fn_c_try_compile "$LINENO" 3730 then : 3731 ac_cv_safe_to_define___extensions__=yes 3732 else case e in #( 3733 e) ac_cv_safe_to_define___extensions__=no ;; 3734 esac 3735 fi 3736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3737 esac 3738 fi 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3740 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3741 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3743 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3744 if test ${ac_cv_should_define__xopen_source+y} 3745 then : 3746 printf %s "(cached) " >&6 3747 else case e in #( 3748 e) ac_cv_should_define__xopen_source=no 3749 if test $ac_cv_header_wchar_h = yes 3750 then : 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752 /* end confdefs.h. */ 3753 3754 #include <wchar.h> 3755 mbstate_t x; 3756 int 3757 main (void) 3758 { 3759 3760 ; 3761 return 0; 3762 } 3763 _ACEOF 3764 if ac_fn_c_try_compile "$LINENO" 3765 then : 3766 3767 else case e in #( 3768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769 /* end confdefs.h. */ 3770 3771 #define _XOPEN_SOURCE 500 3772 #include <wchar.h> 3773 mbstate_t x; 3774 int 3775 main (void) 3776 { 3777 3778 ; 3779 return 0; 3780 } 3781 _ACEOF 3782 if ac_fn_c_try_compile "$LINENO" 3783 then : 3784 ac_cv_should_define__xopen_source=yes 3785 fi 3786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3787 esac 3788 fi 3789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3790 fi ;; 3791 esac 3792 fi 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3794 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3795 3796 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3797 3798 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3799 3800 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3801 3802 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3803 3804 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3805 3806 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3807 3808 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3809 3810 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3811 3812 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3813 3814 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3815 3816 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3817 3818 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3819 3820 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3821 3822 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3823 3824 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3825 3826 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3827 3828 if test $ac_cv_header_minix_config_h = yes 3829 then : 3830 MINIX=yes 3831 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3832 3833 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3834 3835 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3836 3837 else case e in #( 3838 e) MINIX= ;; 3839 esac 3840 fi 3841 if test $ac_cv_safe_to_define___extensions__ = yes 3842 then : 3843 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3844 3845 fi 3846 if test $ac_cv_should_define__xopen_source = yes 3847 then : 3848 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3849 3850 fi 3851 3852 3853 # Initialize Automake 3854 am__api_version='1.16' 3855 3856 3857 # Find a good install program. We prefer a C program (faster), 3858 # so one script is as good as another. But avoid the broken or 3859 # incompatible versions: 3860 # SysV /etc/install, /usr/sbin/install 3861 # SunOS /usr/etc/install 3862 # IRIX /sbin/install 3863 # AIX /bin/install 3864 # AmigaOS /C/install, which installs bootblocks on floppy discs 3865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3868 # OS/2's system install, which has a completely different semantic 3869 # ./install, which can be erroneously created by make from ./install.sh. 3870 # Reject install programs that cannot install multiple files. 3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3872 printf %s "checking for a BSD-compatible install... " >&6; } 3873 if test -z "$INSTALL"; then 3874 if test ${ac_cv_path_install+y} 3875 then : 3876 printf %s "(cached) " >&6 3877 else case e in #( 3878 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879 for as_dir in $PATH 3880 do 3881 IFS=$as_save_IFS 3882 case $as_dir in #((( 3883 '') as_dir=./ ;; 3884 */) ;; 3885 *) as_dir=$as_dir/ ;; 3886 esac 3887 # Account for fact that we put trailing slashes in our PATH walk. 3888 case $as_dir in #(( 3889 ./ | /[cC]/* | \ 3890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3892 /usr/ucb/* ) ;; 3893 *) 3894 # OSF1 and SCO ODT 3.0 have their own names for install. 3895 # Don't use installbsd from OSF since it installs stuff as root 3896 # by default. 3897 for ac_prog in ginstall scoinst install; do 3898 for ac_exec_ext in '' $ac_executable_extensions; do 3899 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3900 if test $ac_prog = install && 3901 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3902 # AIX install. It has an incompatible calling convention. 3903 : 3904 elif test $ac_prog = install && 3905 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3906 # program-specific install script used by HP pwplus--don't use. 3907 : 3908 else 3909 rm -rf conftest.one conftest.two conftest.dir 3910 echo one > conftest.one 3911 echo two > conftest.two 3912 mkdir conftest.dir 3913 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3914 test -s conftest.one && test -s conftest.two && 3915 test -s conftest.dir/conftest.one && 3916 test -s conftest.dir/conftest.two 3917 then 3918 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3919 break 3 3920 fi 3921 fi 3922 fi 3923 done 3924 done 3925 ;; 3926 esac 3927 3928 done 3929 IFS=$as_save_IFS 3930 3931 rm -rf conftest.one conftest.two conftest.dir 3932 ;; 3933 esac 3934 fi 3935 if test ${ac_cv_path_install+y}; then 3936 INSTALL=$ac_cv_path_install 3937 else 3938 # As a last resort, use the slow shell script. Don't cache a 3939 # value for INSTALL within a source directory, because that will 3940 # break other packages using the cache if that directory is 3941 # removed, or if the value is a relative name. 3942 INSTALL=$ac_install_sh 3943 fi 3944 fi 3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3946 printf "%s\n" "$INSTALL" >&6; } 3947 3948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3949 # It thinks the first close brace ends the variable substitution. 3950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3951 3952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3953 3954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3955 3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3957 printf %s "checking whether build environment is sane... " >&6; } 3958 # Reject unsafe characters in $srcdir or the absolute working directory 3959 # name. Accept space and tab only in the latter. 3960 am_lf=' 3961 ' 3962 case `pwd` in 3963 *[\\\"\#\$\&\'\`$am_lf]*) 3964 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3965 esac 3966 case $srcdir in 3967 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3968 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3969 esac 3970 3971 # Do 'set' in a subshell so we don't clobber the current shell's 3972 # arguments. Must try -L first in case configure is actually a 3973 # symlink; some systems play weird games with the mod time of symlinks 3974 # (eg FreeBSD returns the mod time of the symlink's containing 3975 # directory). 3976 if ( 3977 am_has_slept=no 3978 for am_try in 1 2; do 3979 echo "timestamp, slept: $am_has_slept" > conftest.file 3980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3981 if test "$*" = "X"; then 3982 # -L didn't work. 3983 set X `ls -t "$srcdir/configure" conftest.file` 3984 fi 3985 if test "$*" != "X $srcdir/configure conftest.file" \ 3986 && test "$*" != "X conftest.file $srcdir/configure"; then 3987 3988 # If neither matched, then we have a broken ls. This can happen 3989 # if, for instance, CONFIG_SHELL is bash and it inherits a 3990 # broken ls alias from the environment. This has actually 3991 # happened. Such a system could not be considered "sane". 3992 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3993 alias in your environment" "$LINENO" 5 3994 fi 3995 if test "$2" = conftest.file || test $am_try -eq 2; then 3996 break 3997 fi 3998 # Just in case. 3999 sleep 1 4000 am_has_slept=yes 4001 done 4002 test "$2" = conftest.file 4003 ) 4004 then 4005 # Ok. 4006 : 4007 else 4008 as_fn_error $? "newly created file is older than distributed files! 4009 Check your system clock" "$LINENO" 5 4010 fi 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4012 printf "%s\n" "yes" >&6; } 4013 # If we didn't sleep, we still need to ensure time stamps of config.status and 4014 # generated files are strictly newer. 4015 am_sleep_pid= 4016 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4017 ( sleep 1 ) & 4018 am_sleep_pid=$! 4019 fi 4020 4021 rm -f conftest.file 4022 4023 test "$program_prefix" != NONE && 4024 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4025 # Use a double $ so make ignores it. 4026 test "$program_suffix" != NONE && 4027 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4028 # Double any \ or $. 4029 # By default was 's,x,x', remove it if useless. 4030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4031 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4032 4033 4034 if test x"${MISSING+set}" != xset; then 4035 MISSING="\${SHELL} '$am_aux_dir/missing'" 4036 fi 4037 # Use eval to expand $SHELL 4038 if eval "$MISSING --is-lightweight"; then 4039 am_missing_run="$MISSING " 4040 else 4041 am_missing_run= 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4043 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4044 fi 4045 4046 if test x"${install_sh+set}" != xset; then 4047 case $am_aux_dir in 4048 *\ * | *\ *) 4049 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4050 *) 4051 install_sh="\${SHELL} $am_aux_dir/install-sh" 4052 esac 4053 fi 4054 4055 # Installed binaries are usually stripped using 'strip' when the user 4056 # run "make install-strip". However 'strip' might not be the right 4057 # tool to use in cross-compilation environments, therefore Automake 4058 # will honor the 'STRIP' environment variable to overrule this program. 4059 if test "$cross_compiling" != no; then 4060 if test -n "$ac_tool_prefix"; then 4061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4062 set dummy ${ac_tool_prefix}strip; ac_word=$2 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064 printf %s "checking for $ac_word... " >&6; } 4065 if test ${ac_cv_prog_STRIP+y} 4066 then : 4067 printf %s "(cached) " >&6 4068 else case e in #( 4069 e) if test -n "$STRIP"; then 4070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4071 else 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073 for as_dir in $PATH 4074 do 4075 IFS=$as_save_IFS 4076 case $as_dir in #((( 4077 '') as_dir=./ ;; 4078 */) ;; 4079 *) as_dir=$as_dir/ ;; 4080 esac 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4083 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087 done 4088 done 4089 IFS=$as_save_IFS 4090 4091 fi ;; 4092 esac 4093 fi 4094 STRIP=$ac_cv_prog_STRIP 4095 if test -n "$STRIP"; then 4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4097 printf "%s\n" "$STRIP" >&6; } 4098 else 4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4100 printf "%s\n" "no" >&6; } 4101 fi 4102 4103 4104 fi 4105 if test -z "$ac_cv_prog_STRIP"; then 4106 ac_ct_STRIP=$STRIP 4107 # Extract the first word of "strip", so it can be a program name with args. 4108 set dummy strip; ac_word=$2 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4110 printf %s "checking for $ac_word... " >&6; } 4111 if test ${ac_cv_prog_ac_ct_STRIP+y} 4112 then : 4113 printf %s "(cached) " >&6 4114 else case e in #( 4115 e) if test -n "$ac_ct_STRIP"; then 4116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4117 else 4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4119 for as_dir in $PATH 4120 do 4121 IFS=$as_save_IFS 4122 case $as_dir in #((( 4123 '') as_dir=./ ;; 4124 */) ;; 4125 *) as_dir=$as_dir/ ;; 4126 esac 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4129 ac_cv_prog_ac_ct_STRIP="strip" 4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4131 break 2 4132 fi 4133 done 4134 done 4135 IFS=$as_save_IFS 4136 4137 fi ;; 4138 esac 4139 fi 4140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4141 if test -n "$ac_ct_STRIP"; then 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4143 printf "%s\n" "$ac_ct_STRIP" >&6; } 4144 else 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146 printf "%s\n" "no" >&6; } 4147 fi 4148 4149 if test "x$ac_ct_STRIP" = x; then 4150 STRIP=":" 4151 else 4152 case $cross_compiling:$ac_tool_warned in 4153 yes:) 4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4155 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4156 ac_tool_warned=yes ;; 4157 esac 4158 STRIP=$ac_ct_STRIP 4159 fi 4160 else 4161 STRIP="$ac_cv_prog_STRIP" 4162 fi 4163 4164 fi 4165 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4166 4167 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4169 printf %s "checking for a race-free mkdir -p... " >&6; } 4170 if test -z "$MKDIR_P"; then 4171 if test ${ac_cv_path_mkdir+y} 4172 then : 4173 printf %s "(cached) " >&6 4174 else case e in #( 4175 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4177 do 4178 IFS=$as_save_IFS 4179 case $as_dir in #((( 4180 '') as_dir=./ ;; 4181 */) ;; 4182 *) as_dir=$as_dir/ ;; 4183 esac 4184 for ac_prog in mkdir gmkdir; do 4185 for ac_exec_ext in '' $ac_executable_extensions; do 4186 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4187 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4188 'mkdir ('*'coreutils) '* | \ 4189 *'BusyBox '* | \ 4190 'mkdir (fileutils) '4.1*) 4191 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4192 break 3;; 4193 esac 4194 done 4195 done 4196 done 4197 IFS=$as_save_IFS 4198 ;; 4199 esac 4200 fi 4201 4202 test -d ./--version && rmdir ./--version 4203 if test ${ac_cv_path_mkdir+y}; then 4204 MKDIR_P="$ac_cv_path_mkdir -p" 4205 else 4206 # As a last resort, use plain mkdir -p, 4207 # in the hope it doesn't have the bugs of ancient mkdir. 4208 MKDIR_P='mkdir -p' 4209 fi 4210 fi 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4212 printf "%s\n" "$MKDIR_P" >&6; } 4213 4214 for ac_prog in gawk mawk nawk awk 4215 do 4216 # Extract the first word of "$ac_prog", so it can be a program name with args. 4217 set dummy $ac_prog; ac_word=$2 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4219 printf %s "checking for $ac_word... " >&6; } 4220 if test ${ac_cv_prog_AWK+y} 4221 then : 4222 printf %s "(cached) " >&6 4223 else case e in #( 4224 e) if test -n "$AWK"; then 4225 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4226 else 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228 for as_dir in $PATH 4229 do 4230 IFS=$as_save_IFS 4231 case $as_dir in #((( 4232 '') as_dir=./ ;; 4233 */) ;; 4234 *) as_dir=$as_dir/ ;; 4235 esac 4236 for ac_exec_ext in '' $ac_executable_extensions; do 4237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4238 ac_cv_prog_AWK="$ac_prog" 4239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4240 break 2 4241 fi 4242 done 4243 done 4244 IFS=$as_save_IFS 4245 4246 fi ;; 4247 esac 4248 fi 4249 AWK=$ac_cv_prog_AWK 4250 if test -n "$AWK"; then 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4252 printf "%s\n" "$AWK" >&6; } 4253 else 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4255 printf "%s\n" "no" >&6; } 4256 fi 4257 4258 4259 test -n "$AWK" && break 4260 done 4261 4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4263 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4264 set x ${MAKE-make} 4265 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4266 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4267 then : 4268 printf %s "(cached) " >&6 4269 else case e in #( 4270 e) cat >conftest.make <<\_ACEOF 4271 SHELL = /bin/sh 4272 all: 4273 @echo '@@@%%%=$(MAKE)=@@@%%%' 4274 _ACEOF 4275 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4276 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4277 *@@@%%%=?*=@@@%%%*) 4278 eval ac_cv_prog_make_${ac_make}_set=yes;; 4279 *) 4280 eval ac_cv_prog_make_${ac_make}_set=no;; 4281 esac 4282 rm -f conftest.make ;; 4283 esac 4284 fi 4285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4287 printf "%s\n" "yes" >&6; } 4288 SET_MAKE= 4289 else 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291 printf "%s\n" "no" >&6; } 4292 SET_MAKE="MAKE=${MAKE-make}" 4293 fi 4294 4295 rm -rf .tst 2>/dev/null 4296 mkdir .tst 2>/dev/null 4297 if test -d .tst; then 4298 am__leading_dot=. 4299 else 4300 am__leading_dot=_ 4301 fi 4302 rmdir .tst 2>/dev/null 4303 4304 DEPDIR="${am__leading_dot}deps" 4305 4306 ac_config_commands="$ac_config_commands depfiles" 4307 4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4309 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4310 cat > confinc.mk << 'END' 4311 am__doit: 4312 @echo this is the am__doit target >confinc.out 4313 .PHONY: am__doit 4314 END 4315 am__include="#" 4316 am__quote= 4317 # BSD make does it like this. 4318 echo '.include "confinc.mk" # ignored' > confmf.BSD 4319 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4320 echo 'include confinc.mk # ignored' > confmf.GNU 4321 _am_result=no 4322 for s in GNU BSD; do 4323 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4324 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4325 ac_status=$? 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); } 4328 case $?:`cat confinc.out 2>/dev/null` in #( 4329 '0:this is the am__doit target') : 4330 case $s in #( 4331 BSD) : 4332 am__include='.include' am__quote='"' ;; #( 4333 *) : 4334 am__include='include' am__quote='' ;; 4335 esac ;; #( 4336 *) : 4337 ;; 4338 esac 4339 if test "$am__include" != "#"; then 4340 _am_result="yes ($s style)" 4341 break 4342 fi 4343 done 4344 rm -f confinc.* confmf.* 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4346 printf "%s\n" "${_am_result}" >&6; } 4347 4348 # Check whether --enable-dependency-tracking was given. 4349 if test ${enable_dependency_tracking+y} 4350 then : 4351 enableval=$enable_dependency_tracking; 4352 fi 4353 4354 if test "x$enable_dependency_tracking" != xno; then 4355 am_depcomp="$ac_aux_dir/depcomp" 4356 AMDEPBACKSLASH='\' 4357 am__nodep='_no' 4358 fi 4359 if test "x$enable_dependency_tracking" != xno; then 4360 AMDEP_TRUE= 4361 AMDEP_FALSE='#' 4362 else 4363 AMDEP_TRUE='#' 4364 AMDEP_FALSE= 4365 fi 4366 4367 4368 # Check whether --enable-silent-rules was given. 4369 if test ${enable_silent_rules+y} 4370 then : 4371 enableval=$enable_silent_rules; 4372 fi 4373 4374 case $enable_silent_rules in # ((( 4375 yes) AM_DEFAULT_VERBOSITY=0;; 4376 no) AM_DEFAULT_VERBOSITY=1;; 4377 *) AM_DEFAULT_VERBOSITY=1;; 4378 esac 4379 am_make=${MAKE-make} 4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4381 printf %s "checking whether $am_make supports nested variables... " >&6; } 4382 if test ${am_cv_make_support_nested_variables+y} 4383 then : 4384 printf %s "(cached) " >&6 4385 else case e in #( 4386 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4387 BAR0=false 4388 BAR1=true 4389 V=1 4390 am__doit: 4391 @$(TRUE) 4392 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4393 am_cv_make_support_nested_variables=yes 4394 else 4395 am_cv_make_support_nested_variables=no 4396 fi ;; 4397 esac 4398 fi 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4400 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4401 if test $am_cv_make_support_nested_variables = yes; then 4402 AM_V='$(V)' 4403 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4404 else 4405 AM_V=$AM_DEFAULT_VERBOSITY 4406 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4407 fi 4408 AM_BACKSLASH='\' 4409 4410 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4411 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4412 # is not polluted with repeated "-I." 4413 am__isrc=' -I$(srcdir)' 4414 # test to see if srcdir already configured 4415 if test -f $srcdir/config.status; then 4416 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4417 fi 4418 fi 4419 4420 # test whether we have cygpath 4421 if test -z "$CYGPATH_W"; then 4422 if (cygpath --version) >/dev/null 2>/dev/null; then 4423 CYGPATH_W='cygpath -w' 4424 else 4425 CYGPATH_W=echo 4426 fi 4427 fi 4428 4429 4430 # Define the identity of the package. 4431 PACKAGE='lndir' 4432 VERSION='1.0.5' 4433 4434 4435 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4436 4437 4438 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4439 4440 # Some tools Automake needs. 4441 4442 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4443 4444 4445 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4446 4447 4448 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4449 4450 4451 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4452 4453 4454 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4455 4456 # For better backward compatibility. To be removed once Automake 1.9.x 4457 # dies out for good. For more background, see: 4458 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4459 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4460 mkdir_p='$(MKDIR_P)' 4461 4462 # We need awk for the "check" target (and possibly the TAP driver). The 4463 # system "awk" is bad on some platforms. 4464 # Always define AMTAR for backward compatibility. Yes, it's still used 4465 # in the wild :-( We should find a proper way to deprecate it ... 4466 AMTAR='$${TAR-tar}' 4467 4468 4469 # We'll loop over all known methods to create a tar archive until one works. 4470 _am_tools='gnutar pax cpio none' 4471 4472 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4473 4474 4475 4476 4477 4478 depcc="$CC" am_compiler_list= 4479 4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4481 printf %s "checking dependency style of $depcc... " >&6; } 4482 if test ${am_cv_CC_dependencies_compiler_type+y} 4483 then : 4484 printf %s "(cached) " >&6 4485 else case e in #( 4486 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4487 # We make a subdir and do the tests there. Otherwise we can end up 4488 # making bogus files that we don't know about and never remove. For 4489 # instance it was reported that on HP-UX the gcc test will end up 4490 # making a dummy file named 'D' -- because '-MD' means "put the output 4491 # in D". 4492 rm -rf conftest.dir 4493 mkdir conftest.dir 4494 # Copy depcomp to subdir because otherwise we won't find it if we're 4495 # using a relative directory. 4496 cp "$am_depcomp" conftest.dir 4497 cd conftest.dir 4498 # We will build objects and dependencies in a subdirectory because 4499 # it helps to detect inapplicable dependency modes. For instance 4500 # both Tru64's cc and ICC support -MD to output dependencies as a 4501 # side effect of compilation, but ICC will put the dependencies in 4502 # the current directory while Tru64 will put them in the object 4503 # directory. 4504 mkdir sub 4505 4506 am_cv_CC_dependencies_compiler_type=none 4507 if test "$am_compiler_list" = ""; then 4508 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4509 fi 4510 am__universal=false 4511 case " $depcc " in #( 4512 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4513 esac 4514 4515 for depmode in $am_compiler_list; do 4516 # Setup a source with many dependencies, because some compilers 4517 # like to wrap large dependency lists on column 80 (with \), and 4518 # we should not choose a depcomp mode which is confused by this. 4519 # 4520 # We need to recreate these files for each test, as the compiler may 4521 # overwrite some of them when testing with obscure command lines. 4522 # This happens at least with the AIX C compiler. 4523 : > sub/conftest.c 4524 for i in 1 2 3 4 5 6; do 4525 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4526 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4527 # Solaris 10 /bin/sh. 4528 echo '/* dummy */' > sub/conftst$i.h 4529 done 4530 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4531 4532 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4533 # mode. It turns out that the SunPro C++ compiler does not properly 4534 # handle '-M -o', and we need to detect this. Also, some Intel 4535 # versions had trouble with output in subdirs. 4536 am__obj=sub/conftest.${OBJEXT-o} 4537 am__minus_obj="-o $am__obj" 4538 case $depmode in 4539 gcc) 4540 # This depmode causes a compiler race in universal mode. 4541 test "$am__universal" = false || continue 4542 ;; 4543 nosideeffect) 4544 # After this tag, mechanisms are not by side-effect, so they'll 4545 # only be used when explicitly requested. 4546 if test "x$enable_dependency_tracking" = xyes; then 4547 continue 4548 else 4549 break 4550 fi 4551 ;; 4552 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4553 # This compiler won't grok '-c -o', but also, the minuso test has 4554 # not run yet. These depmodes are late enough in the game, and 4555 # so weak that their functioning should not be impacted. 4556 am__obj=conftest.${OBJEXT-o} 4557 am__minus_obj= 4558 ;; 4559 none) break ;; 4560 esac 4561 if depmode=$depmode \ 4562 source=sub/conftest.c object=$am__obj \ 4563 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4564 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4565 >/dev/null 2>conftest.err && 4566 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4567 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4568 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4570 # icc doesn't choke on unknown options, it will just issue warnings 4571 # or remarks (even with -Werror). So we grep stderr for any message 4572 # that says an option was ignored or not supported. 4573 # When given -MP, icc 7.0 and 7.1 complain thusly: 4574 # icc: Command line warning: ignoring option '-M'; no argument required 4575 # The diagnosis changed in icc 8.0: 4576 # icc: Command line remark: option '-MP' not supported 4577 if (grep 'ignoring option' conftest.err || 4578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4579 am_cv_CC_dependencies_compiler_type=$depmode 4580 break 4581 fi 4582 fi 4583 done 4584 4585 cd .. 4586 rm -rf conftest.dir 4587 else 4588 am_cv_CC_dependencies_compiler_type=none 4589 fi 4590 ;; 4591 esac 4592 fi 4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4594 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4596 4597 if 4598 test "x$enable_dependency_tracking" != xno \ 4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4600 am__fastdepCC_TRUE= 4601 am__fastdepCC_FALSE='#' 4602 else 4603 am__fastdepCC_TRUE='#' 4604 am__fastdepCC_FALSE= 4605 fi 4606 4607 4608 # Variables for tags utilities; see am/tags.am 4609 if test -z "$CTAGS"; then 4610 CTAGS=ctags 4611 fi 4612 4613 if test -z "$ETAGS"; then 4614 ETAGS=etags 4615 fi 4616 4617 if test -z "$CSCOPE"; then 4618 CSCOPE=cscope 4619 fi 4620 4621 4622 4623 # POSIX will say in a future version that running "rm -f" with no argument 4624 # is OK; and we want to be able to make that assumption in our Makefile 4625 # recipes. So use an aggressive probe to check that the usage we want is 4626 # actually supported "in the wild" to an acceptable degree. 4627 # See automake bug#10828. 4628 # To make any issue more visible, cause the running configure to be aborted 4629 # by default if the 'rm' program in use doesn't match our expectations; the 4630 # user can still override this though. 4631 if rm -f && rm -fr && rm -rf; then : OK; else 4632 cat >&2 <<'END' 4633 Oops! 4634 4635 Your 'rm' program seems unable to run without file operands specified 4636 on the command line, even when the '-f' option is present. This is contrary 4637 to the behaviour of most rm programs out there, and not conforming with 4638 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4639 4640 Please tell bug-automake@gnu.org about your system, including the value 4641 of your $PATH and any error possibly output before this message. This 4642 can help us improve future automake versions. 4643 4644 END 4645 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4646 echo 'Configuration will proceed anyway, since you have set the' >&2 4647 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4648 echo >&2 4649 else 4650 cat >&2 <<'END' 4651 Aborting the configuration process, to ensure you take notice of the issue. 4652 4653 You can download and install GNU coreutils to get an 'rm' implementation 4654 that behaves properly: <https://www.gnu.org/software/coreutils/>. 4655 4656 If you want to complete the configuration process using your problematic 4657 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4658 to "yes", and re-run configure. 4659 4660 END 4661 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4662 fi 4663 fi 4664 4665 4666 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4679 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4680 if test ${ac_cv_c_undeclared_builtin_options+y} 4681 then : 4682 printf %s "(cached) " >&6 4683 else case e in #( 4684 e) ac_save_CFLAGS=$CFLAGS 4685 ac_cv_c_undeclared_builtin_options='cannot detect' 4686 for ac_arg in '' -fno-builtin; do 4687 CFLAGS="$ac_save_CFLAGS $ac_arg" 4688 # This test program should *not* compile successfully. 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690 /* end confdefs.h. */ 4691 4692 int 4693 main (void) 4694 { 4695 (void) strchr; 4696 ; 4697 return 0; 4698 } 4699 _ACEOF 4700 if ac_fn_c_try_compile "$LINENO" 4701 then : 4702 4703 else case e in #( 4704 e) # This test program should compile successfully. 4705 # No library function is consistently available on 4706 # freestanding implementations, so test against a dummy 4707 # declaration. Include always-available headers on the 4708 # off chance that they somehow elicit warnings. 4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4710 /* end confdefs.h. */ 4711 #include <float.h> 4712 #include <limits.h> 4713 #include <stdarg.h> 4714 #include <stddef.h> 4715 extern void ac_decl (int, char *); 4716 4717 int 4718 main (void) 4719 { 4720 (void) ac_decl (0, (char *) 0); 4721 (void) ac_decl; 4722 4723 ; 4724 return 0; 4725 } 4726 _ACEOF 4727 if ac_fn_c_try_compile "$LINENO" 4728 then : 4729 if test x"$ac_arg" = x 4730 then : 4731 ac_cv_c_undeclared_builtin_options='none needed' 4732 else case e in #( 4733 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4734 esac 4735 fi 4736 break 4737 fi 4738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4739 esac 4740 fi 4741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4742 done 4743 CFLAGS=$ac_save_CFLAGS 4744 ;; 4745 esac 4746 fi 4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4748 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4749 case $ac_cv_c_undeclared_builtin_options in #( 4750 'cannot detect') : 4751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4752 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4753 as_fn_error $? "cannot make $CC report undeclared builtins 4754 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4755 'none needed') : 4756 ac_c_undeclared_builtin_options='' ;; #( 4757 *) : 4758 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4759 esac 4760 4761 4762 4763 4764 4765 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4766 if test "x$ac_cv_have_decl___clang__" = xyes 4767 then : 4768 CLANGCC="yes" 4769 else case e in #( 4770 e) CLANGCC="no" ;; 4771 esac 4772 fi 4773 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4774 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4775 then : 4776 INTELCC="yes" 4777 else case e in #( 4778 e) INTELCC="no" ;; 4779 esac 4780 fi 4781 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4782 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4783 then : 4784 SUNCC="yes" 4785 else case e in #( 4786 e) SUNCC="no" ;; 4787 esac 4788 fi 4789 4790 4791 4792 4793 4794 4795 4796 4797 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4798 if test -n "$ac_tool_prefix"; then 4799 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4800 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4802 printf %s "checking for $ac_word... " >&6; } 4803 if test ${ac_cv_path_PKG_CONFIG+y} 4804 then : 4805 printf %s "(cached) " >&6 4806 else case e in #( 4807 e) case $PKG_CONFIG in 4808 [\\/]* | ?:[\\/]*) 4809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4810 ;; 4811 *) 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813 for as_dir in $PATH 4814 do 4815 IFS=$as_save_IFS 4816 case $as_dir in #((( 4817 '') as_dir=./ ;; 4818 */) ;; 4819 *) as_dir=$as_dir/ ;; 4820 esac 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4823 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4825 break 2 4826 fi 4827 done 4828 done 4829 IFS=$as_save_IFS 4830 4831 ;; 4832 esac ;; 4833 esac 4834 fi 4835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4836 if test -n "$PKG_CONFIG"; then 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4838 printf "%s\n" "$PKG_CONFIG" >&6; } 4839 else 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841 printf "%s\n" "no" >&6; } 4842 fi 4843 4844 4845 fi 4846 if test -z "$ac_cv_path_PKG_CONFIG"; then 4847 ac_pt_PKG_CONFIG=$PKG_CONFIG 4848 # Extract the first word of "pkg-config", so it can be a program name with args. 4849 set dummy pkg-config; ac_word=$2 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4851 printf %s "checking for $ac_word... " >&6; } 4852 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4853 then : 4854 printf %s "(cached) " >&6 4855 else case e in #( 4856 e) case $ac_pt_PKG_CONFIG in 4857 [\\/]* | ?:[\\/]*) 4858 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4859 ;; 4860 *) 4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862 for as_dir in $PATH 4863 do 4864 IFS=$as_save_IFS 4865 case $as_dir in #((( 4866 '') as_dir=./ ;; 4867 */) ;; 4868 *) as_dir=$as_dir/ ;; 4869 esac 4870 for ac_exec_ext in '' $ac_executable_extensions; do 4871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4872 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4874 break 2 4875 fi 4876 done 4877 done 4878 IFS=$as_save_IFS 4879 4880 ;; 4881 esac ;; 4882 esac 4883 fi 4884 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4885 if test -n "$ac_pt_PKG_CONFIG"; then 4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4887 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4888 else 4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4890 printf "%s\n" "no" >&6; } 4891 fi 4892 4893 if test "x$ac_pt_PKG_CONFIG" = x; then 4894 PKG_CONFIG="" 4895 else 4896 case $cross_compiling:$ac_tool_warned in 4897 yes:) 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4900 ac_tool_warned=yes ;; 4901 esac 4902 PKG_CONFIG=$ac_pt_PKG_CONFIG 4903 fi 4904 else 4905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4906 fi 4907 4908 fi 4909 if test -n "$PKG_CONFIG"; then 4910 _pkg_min_version=0.9.0 4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4912 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4913 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4915 printf "%s\n" "yes" >&6; } 4916 else 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918 printf "%s\n" "no" >&6; } 4919 PKG_CONFIG="" 4920 fi 4921 fi 4922 4923 4924 # Make sure we can run config.sub. 4925 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4926 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4927 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4929 printf %s "checking build system type... " >&6; } 4930 if test ${ac_cv_build+y} 4931 then : 4932 printf %s "(cached) " >&6 4933 else case e in #( 4934 e) ac_build_alias=$build_alias 4935 test "x$ac_build_alias" = x && 4936 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4937 test "x$ac_build_alias" = x && 4938 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4939 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4940 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4941 ;; 4942 esac 4943 fi 4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4945 printf "%s\n" "$ac_cv_build" >&6; } 4946 case $ac_cv_build in 4947 *-*-*) ;; 4948 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4949 esac 4950 build=$ac_cv_build 4951 ac_save_IFS=$IFS; IFS='-' 4952 set x $ac_cv_build 4953 shift 4954 build_cpu=$1 4955 build_vendor=$2 4956 shift; shift 4957 # Remember, the first character of IFS is used to create $*, 4958 # except with old shells: 4959 build_os=$* 4960 IFS=$ac_save_IFS 4961 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4962 4963 4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4965 printf %s "checking host system type... " >&6; } 4966 if test ${ac_cv_host+y} 4967 then : 4968 printf %s "(cached) " >&6 4969 else case e in #( 4970 e) if test "x$host_alias" = x; then 4971 ac_cv_host=$ac_cv_build 4972 else 4973 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4974 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4975 fi 4976 ;; 4977 esac 4978 fi 4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4980 printf "%s\n" "$ac_cv_host" >&6; } 4981 case $ac_cv_host in 4982 *-*-*) ;; 4983 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4984 esac 4985 host=$ac_cv_host 4986 ac_save_IFS=$IFS; IFS='-' 4987 set x $ac_cv_host 4988 shift 4989 host_cpu=$1 4990 host_vendor=$2 4991 shift; shift 4992 # Remember, the first character of IFS is used to create $*, 4993 # except with old shells: 4994 host_os=$* 4995 IFS=$ac_save_IFS 4996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4997 4998 4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5000 printf %s "checking for a sed that does not truncate output... " >&6; } 5001 if test ${ac_cv_path_SED+y} 5002 then : 5003 printf %s "(cached) " >&6 5004 else case e in #( 5005 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5006 for ac_i in 1 2 3 4 5 6 7; do 5007 ac_script="$ac_script$as_nl$ac_script" 5008 done 5009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5010 { ac_script=; unset ac_script;} 5011 if test -z "$SED"; then 5012 ac_path_SED_found=false 5013 # Loop through the user's path and test for each of PROGNAME-LIST 5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5015 for as_dir in $PATH 5016 do 5017 IFS=$as_save_IFS 5018 case $as_dir in #((( 5019 '') as_dir=./ ;; 5020 */) ;; 5021 *) as_dir=$as_dir/ ;; 5022 esac 5023 for ac_prog in sed gsed 5024 do 5025 for ac_exec_ext in '' $ac_executable_extensions; do 5026 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5027 as_fn_executable_p "$ac_path_SED" || continue 5028 # Check for GNU ac_path_SED and select it if it is found. 5029 # Check for GNU $ac_path_SED 5030 case `"$ac_path_SED" --version 2>&1` in #( 5031 *GNU*) 5032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5033 #( 5034 *) 5035 ac_count=0 5036 printf %s 0123456789 >"conftest.in" 5037 while : 5038 do 5039 cat "conftest.in" "conftest.in" >"conftest.tmp" 5040 mv "conftest.tmp" "conftest.in" 5041 cp "conftest.in" "conftest.nl" 5042 printf "%s\n" '' >> "conftest.nl" 5043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5045 as_fn_arith $ac_count + 1 && ac_count=$as_val 5046 if test $ac_count -gt ${ac_path_SED_max-0}; then 5047 # Best one so far, save it but keep looking for a better one 5048 ac_cv_path_SED="$ac_path_SED" 5049 ac_path_SED_max=$ac_count 5050 fi 5051 # 10*(2^10) chars as input seems more than enough 5052 test $ac_count -gt 10 && break 5053 done 5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5055 esac 5056 5057 $ac_path_SED_found && break 3 5058 done 5059 done 5060 done 5061 IFS=$as_save_IFS 5062 if test -z "$ac_cv_path_SED"; then 5063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5064 fi 5065 else 5066 ac_cv_path_SED=$SED 5067 fi 5068 ;; 5069 esac 5070 fi 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5072 printf "%s\n" "$ac_cv_path_SED" >&6; } 5073 SED="$ac_cv_path_SED" 5074 rm -f conftest.sed 5075 5076 5077 5078 5079 5080 5081 # Check whether --enable-selective-werror was given. 5082 if test ${enable_selective_werror+y} 5083 then : 5084 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5085 else case e in #( 5086 e) SELECTIVE_WERROR=yes ;; 5087 esac 5088 fi 5089 5090 5091 5092 5093 5094 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5095 if test "x$SUNCC" = "xyes"; then 5096 BASE_CFLAGS="-v" 5097 else 5098 BASE_CFLAGS="" 5099 fi 5100 5101 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 xorg_testset_save_CFLAGS="$CFLAGS" 5116 5117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5120 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5121 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5122 then : 5123 printf %s "(cached) " >&6 5124 else case e in #( 5125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126 /* end confdefs.h. */ 5127 int i; 5128 _ACEOF 5129 if ac_fn_c_try_compile "$LINENO" 5130 then : 5131 xorg_cv_cc_flag_unknown_warning_option=yes 5132 else case e in #( 5133 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5134 esac 5135 fi 5136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5137 esac 5138 fi 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5142 CFLAGS="$xorg_testset_save_CFLAGS" 5143 fi 5144 5145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5148 fi 5149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5153 then : 5154 printf %s "(cached) " >&6 5155 else case e in #( 5156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157 /* end confdefs.h. */ 5158 int i; 5159 _ACEOF 5160 if ac_fn_c_try_compile "$LINENO" 5161 then : 5162 xorg_cv_cc_flag_unused_command_line_argument=yes 5163 else case e in #( 5164 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5165 esac 5166 fi 5167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5168 esac 5169 fi 5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5171 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5173 CFLAGS="$xorg_testset_save_CFLAGS" 5174 fi 5175 5176 found="no" 5177 5178 if test $found = "no" ; then 5179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5181 fi 5182 5183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5185 fi 5186 5187 CFLAGS="$CFLAGS -Wall" 5188 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5190 printf %s "checking if $CC supports -Wall... " >&6; } 5191 cacheid=xorg_cv_cc_flag__Wall 5192 if eval test \${$cacheid+y} 5193 then : 5194 printf %s "(cached) " >&6 5195 else case e in #( 5196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197 /* end confdefs.h. */ 5198 int i; 5199 int 5200 main (void) 5201 { 5202 5203 ; 5204 return 0; 5205 } 5206 _ACEOF 5207 if ac_fn_c_try_link "$LINENO" 5208 then : 5209 eval $cacheid=yes 5210 else case e in #( 5211 e) eval $cacheid=no ;; 5212 esac 5213 fi 5214 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5215 conftest$ac_exeext conftest.$ac_ext ;; 5216 esac 5217 fi 5218 5219 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221 5222 eval supported=\$$cacheid 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5224 printf "%s\n" "$supported" >&6; } 5225 if test "$supported" = "yes" ; then 5226 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5227 found="yes" 5228 fi 5229 fi 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 xorg_testset_save_CFLAGS="$CFLAGS" 5246 5247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5250 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5251 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5252 then : 5253 printf %s "(cached) " >&6 5254 else case e in #( 5255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256 /* end confdefs.h. */ 5257 int i; 5258 _ACEOF 5259 if ac_fn_c_try_compile "$LINENO" 5260 then : 5261 xorg_cv_cc_flag_unknown_warning_option=yes 5262 else case e in #( 5263 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5264 esac 5265 fi 5266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5267 esac 5268 fi 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5270 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273 fi 5274 5275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5281 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5282 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5283 then : 5284 printf %s "(cached) " >&6 5285 else case e in #( 5286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5287 /* end confdefs.h. */ 5288 int i; 5289 _ACEOF 5290 if ac_fn_c_try_compile "$LINENO" 5291 then : 5292 xorg_cv_cc_flag_unused_command_line_argument=yes 5293 else case e in #( 5294 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5295 esac 5296 fi 5297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5298 esac 5299 fi 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5303 CFLAGS="$xorg_testset_save_CFLAGS" 5304 fi 5305 5306 found="no" 5307 5308 if test $found = "no" ; then 5309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 fi 5312 5313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 fi 5316 5317 CFLAGS="$CFLAGS -Wpointer-arith" 5318 5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5320 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5321 cacheid=xorg_cv_cc_flag__Wpointer_arith 5322 if eval test \${$cacheid+y} 5323 then : 5324 printf %s "(cached) " >&6 5325 else case e in #( 5326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327 /* end confdefs.h. */ 5328 int i; 5329 int 5330 main (void) 5331 { 5332 5333 ; 5334 return 0; 5335 } 5336 _ACEOF 5337 if ac_fn_c_try_link "$LINENO" 5338 then : 5339 eval $cacheid=yes 5340 else case e in #( 5341 e) eval $cacheid=no ;; 5342 esac 5343 fi 5344 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5345 conftest$ac_exeext conftest.$ac_ext ;; 5346 esac 5347 fi 5348 5349 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351 5352 eval supported=\$$cacheid 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5354 printf "%s\n" "$supported" >&6; } 5355 if test "$supported" = "yes" ; then 5356 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5357 found="yes" 5358 fi 5359 fi 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 xorg_testset_save_CFLAGS="$CFLAGS" 5376 5377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5381 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5382 then : 5383 printf %s "(cached) " >&6 5384 else case e in #( 5385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386 /* end confdefs.h. */ 5387 int i; 5388 _ACEOF 5389 if ac_fn_c_try_compile "$LINENO" 5390 then : 5391 xorg_cv_cc_flag_unknown_warning_option=yes 5392 else case e in #( 5393 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5394 esac 5395 fi 5396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5397 esac 5398 fi 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403 fi 5404 5405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5413 then : 5414 printf %s "(cached) " >&6 5415 else case e in #( 5416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417 /* end confdefs.h. */ 5418 int i; 5419 _ACEOF 5420 if ac_fn_c_try_compile "$LINENO" 5421 then : 5422 xorg_cv_cc_flag_unused_command_line_argument=yes 5423 else case e in #( 5424 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5425 esac 5426 fi 5427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5428 esac 5429 fi 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434 fi 5435 5436 found="no" 5437 5438 if test $found = "no" ; then 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 fi 5442 5443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 fi 5446 5447 CFLAGS="$CFLAGS -Wmissing-declarations" 5448 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5450 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5451 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5452 if eval test \${$cacheid+y} 5453 then : 5454 printf %s "(cached) " >&6 5455 else case e in #( 5456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457 /* end confdefs.h. */ 5458 int i; 5459 int 5460 main (void) 5461 { 5462 5463 ; 5464 return 0; 5465 } 5466 _ACEOF 5467 if ac_fn_c_try_link "$LINENO" 5468 then : 5469 eval $cacheid=yes 5470 else case e in #( 5471 e) eval $cacheid=no ;; 5472 esac 5473 fi 5474 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5475 conftest$ac_exeext conftest.$ac_ext ;; 5476 esac 5477 fi 5478 5479 5480 CFLAGS="$xorg_testset_save_CFLAGS" 5481 5482 eval supported=\$$cacheid 5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5484 printf "%s\n" "$supported" >&6; } 5485 if test "$supported" = "yes" ; then 5486 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5487 found="yes" 5488 fi 5489 fi 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 xorg_testset_save_CFLAGS="$CFLAGS" 5506 5507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5511 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5512 then : 5513 printf %s "(cached) " >&6 5514 else case e in #( 5515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5516 /* end confdefs.h. */ 5517 int i; 5518 _ACEOF 5519 if ac_fn_c_try_compile "$LINENO" 5520 then : 5521 xorg_cv_cc_flag_unknown_warning_option=yes 5522 else case e in #( 5523 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5524 esac 5525 fi 5526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5527 esac 5528 fi 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5530 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5532 CFLAGS="$xorg_testset_save_CFLAGS" 5533 fi 5534 5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 fi 5539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5541 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5542 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5543 then : 5544 printf %s "(cached) " >&6 5545 else case e in #( 5546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547 /* end confdefs.h. */ 5548 int i; 5549 _ACEOF 5550 if ac_fn_c_try_compile "$LINENO" 5551 then : 5552 xorg_cv_cc_flag_unused_command_line_argument=yes 5553 else case e in #( 5554 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5555 esac 5556 fi 5557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5558 esac 5559 fi 5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5563 CFLAGS="$xorg_testset_save_CFLAGS" 5564 fi 5565 5566 found="no" 5567 5568 if test $found = "no" ; then 5569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5571 fi 5572 5573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5575 fi 5576 5577 CFLAGS="$CFLAGS -Wformat=2" 5578 5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5580 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5581 cacheid=xorg_cv_cc_flag__Wformat_2 5582 if eval test \${$cacheid+y} 5583 then : 5584 printf %s "(cached) " >&6 5585 else case e in #( 5586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5587 /* end confdefs.h. */ 5588 int i; 5589 int 5590 main (void) 5591 { 5592 5593 ; 5594 return 0; 5595 } 5596 _ACEOF 5597 if ac_fn_c_try_link "$LINENO" 5598 then : 5599 eval $cacheid=yes 5600 else case e in #( 5601 e) eval $cacheid=no ;; 5602 esac 5603 fi 5604 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5605 conftest$ac_exeext conftest.$ac_ext ;; 5606 esac 5607 fi 5608 5609 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611 5612 eval supported=\$$cacheid 5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5614 printf "%s\n" "$supported" >&6; } 5615 if test "$supported" = "yes" ; then 5616 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5617 found="yes" 5618 fi 5619 fi 5620 5621 if test $found = "no" ; then 5622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5624 fi 5625 5626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5628 fi 5629 5630 CFLAGS="$CFLAGS -Wformat" 5631 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5633 printf %s "checking if $CC supports -Wformat... " >&6; } 5634 cacheid=xorg_cv_cc_flag__Wformat 5635 if eval test \${$cacheid+y} 5636 then : 5637 printf %s "(cached) " >&6 5638 else case e in #( 5639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5640 /* end confdefs.h. */ 5641 int i; 5642 int 5643 main (void) 5644 { 5645 5646 ; 5647 return 0; 5648 } 5649 _ACEOF 5650 if ac_fn_c_try_link "$LINENO" 5651 then : 5652 eval $cacheid=yes 5653 else case e in #( 5654 e) eval $cacheid=no ;; 5655 esac 5656 fi 5657 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5658 conftest$ac_exeext conftest.$ac_ext ;; 5659 esac 5660 fi 5661 5662 5663 CFLAGS="$xorg_testset_save_CFLAGS" 5664 5665 eval supported=\$$cacheid 5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5667 printf "%s\n" "$supported" >&6; } 5668 if test "$supported" = "yes" ; then 5669 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5670 found="yes" 5671 fi 5672 fi 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 xorg_testset_save_CFLAGS="$CFLAGS" 5691 5692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5696 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5697 then : 5698 printf %s "(cached) " >&6 5699 else case e in #( 5700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701 /* end confdefs.h. */ 5702 int i; 5703 _ACEOF 5704 if ac_fn_c_try_compile "$LINENO" 5705 then : 5706 xorg_cv_cc_flag_unknown_warning_option=yes 5707 else case e in #( 5708 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5709 esac 5710 fi 5711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5712 esac 5713 fi 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5717 CFLAGS="$xorg_testset_save_CFLAGS" 5718 fi 5719 5720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5723 fi 5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5728 then : 5729 printf %s "(cached) " >&6 5730 else case e in #( 5731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732 /* end confdefs.h. */ 5733 int i; 5734 _ACEOF 5735 if ac_fn_c_try_compile "$LINENO" 5736 then : 5737 xorg_cv_cc_flag_unused_command_line_argument=yes 5738 else case e in #( 5739 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5740 esac 5741 fi 5742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5743 esac 5744 fi 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5748 CFLAGS="$xorg_testset_save_CFLAGS" 5749 fi 5750 5751 found="no" 5752 5753 if test $found = "no" ; then 5754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5756 fi 5757 5758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5760 fi 5761 5762 CFLAGS="$CFLAGS -Wstrict-prototypes" 5763 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5765 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5766 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5767 if eval test \${$cacheid+y} 5768 then : 5769 printf %s "(cached) " >&6 5770 else case e in #( 5771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772 /* end confdefs.h. */ 5773 int i; 5774 int 5775 main (void) 5776 { 5777 5778 ; 5779 return 0; 5780 } 5781 _ACEOF 5782 if ac_fn_c_try_link "$LINENO" 5783 then : 5784 eval $cacheid=yes 5785 else case e in #( 5786 e) eval $cacheid=no ;; 5787 esac 5788 fi 5789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5790 conftest$ac_exeext conftest.$ac_ext ;; 5791 esac 5792 fi 5793 5794 5795 CFLAGS="$xorg_testset_save_CFLAGS" 5796 5797 eval supported=\$$cacheid 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5799 printf "%s\n" "$supported" >&6; } 5800 if test "$supported" = "yes" ; then 5801 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5802 found="yes" 5803 fi 5804 fi 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 xorg_testset_save_CFLAGS="$CFLAGS" 5821 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5826 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5827 then : 5828 printf %s "(cached) " >&6 5829 else case e in #( 5830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5831 /* end confdefs.h. */ 5832 int i; 5833 _ACEOF 5834 if ac_fn_c_try_compile "$LINENO" 5835 then : 5836 xorg_cv_cc_flag_unknown_warning_option=yes 5837 else case e in #( 5838 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5839 esac 5840 fi 5841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5842 esac 5843 fi 5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5845 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848 fi 5849 5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5856 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5857 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5858 then : 5859 printf %s "(cached) " >&6 5860 else case e in #( 5861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862 /* end confdefs.h. */ 5863 int i; 5864 _ACEOF 5865 if ac_fn_c_try_compile "$LINENO" 5866 then : 5867 xorg_cv_cc_flag_unused_command_line_argument=yes 5868 else case e in #( 5869 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5870 esac 5871 fi 5872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5873 esac 5874 fi 5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5878 CFLAGS="$xorg_testset_save_CFLAGS" 5879 fi 5880 5881 found="no" 5882 5883 if test $found = "no" ; then 5884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5886 fi 5887 5888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5890 fi 5891 5892 CFLAGS="$CFLAGS -Wmissing-prototypes" 5893 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5895 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5896 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5897 if eval test \${$cacheid+y} 5898 then : 5899 printf %s "(cached) " >&6 5900 else case e in #( 5901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902 /* end confdefs.h. */ 5903 int i; 5904 int 5905 main (void) 5906 { 5907 5908 ; 5909 return 0; 5910 } 5911 _ACEOF 5912 if ac_fn_c_try_link "$LINENO" 5913 then : 5914 eval $cacheid=yes 5915 else case e in #( 5916 e) eval $cacheid=no ;; 5917 esac 5918 fi 5919 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5920 conftest$ac_exeext conftest.$ac_ext ;; 5921 esac 5922 fi 5923 5924 5925 CFLAGS="$xorg_testset_save_CFLAGS" 5926 5927 eval supported=\$$cacheid 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5929 printf "%s\n" "$supported" >&6; } 5930 if test "$supported" = "yes" ; then 5931 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5932 found="yes" 5933 fi 5934 fi 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 xorg_testset_save_CFLAGS="$CFLAGS" 5951 5952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5956 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5957 then : 5958 printf %s "(cached) " >&6 5959 else case e in #( 5960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961 /* end confdefs.h. */ 5962 int i; 5963 _ACEOF 5964 if ac_fn_c_try_compile "$LINENO" 5965 then : 5966 xorg_cv_cc_flag_unknown_warning_option=yes 5967 else case e in #( 5968 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5969 esac 5970 fi 5971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5972 esac 5973 fi 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5977 CFLAGS="$xorg_testset_save_CFLAGS" 5978 fi 5979 5980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 fi 5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5988 then : 5989 printf %s "(cached) " >&6 5990 else case e in #( 5991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992 /* end confdefs.h. */ 5993 int i; 5994 _ACEOF 5995 if ac_fn_c_try_compile "$LINENO" 5996 then : 5997 xorg_cv_cc_flag_unused_command_line_argument=yes 5998 else case e in #( 5999 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6000 esac 6001 fi 6002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6003 esac 6004 fi 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009 fi 6010 6011 found="no" 6012 6013 if test $found = "no" ; then 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 fi 6017 6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6020 fi 6021 6022 CFLAGS="$CFLAGS -Wnested-externs" 6023 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6025 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6026 cacheid=xorg_cv_cc_flag__Wnested_externs 6027 if eval test \${$cacheid+y} 6028 then : 6029 printf %s "(cached) " >&6 6030 else case e in #( 6031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6032 /* end confdefs.h. */ 6033 int i; 6034 int 6035 main (void) 6036 { 6037 6038 ; 6039 return 0; 6040 } 6041 _ACEOF 6042 if ac_fn_c_try_link "$LINENO" 6043 then : 6044 eval $cacheid=yes 6045 else case e in #( 6046 e) eval $cacheid=no ;; 6047 esac 6048 fi 6049 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6050 conftest$ac_exeext conftest.$ac_ext ;; 6051 esac 6052 fi 6053 6054 6055 CFLAGS="$xorg_testset_save_CFLAGS" 6056 6057 eval supported=\$$cacheid 6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6059 printf "%s\n" "$supported" >&6; } 6060 if test "$supported" = "yes" ; then 6061 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6062 found="yes" 6063 fi 6064 fi 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 xorg_testset_save_CFLAGS="$CFLAGS" 6081 6082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6086 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6087 then : 6088 printf %s "(cached) " >&6 6089 else case e in #( 6090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091 /* end confdefs.h. */ 6092 int i; 6093 _ACEOF 6094 if ac_fn_c_try_compile "$LINENO" 6095 then : 6096 xorg_cv_cc_flag_unknown_warning_option=yes 6097 else case e in #( 6098 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6099 esac 6100 fi 6101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6102 esac 6103 fi 6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6107 CFLAGS="$xorg_testset_save_CFLAGS" 6108 fi 6109 6110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 fi 6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6118 then : 6119 printf %s "(cached) " >&6 6120 else case e in #( 6121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122 /* end confdefs.h. */ 6123 int i; 6124 _ACEOF 6125 if ac_fn_c_try_compile "$LINENO" 6126 then : 6127 xorg_cv_cc_flag_unused_command_line_argument=yes 6128 else case e in #( 6129 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6130 esac 6131 fi 6132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6133 esac 6134 fi 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6136 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6138 CFLAGS="$xorg_testset_save_CFLAGS" 6139 fi 6140 6141 found="no" 6142 6143 if test $found = "no" ; then 6144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6146 fi 6147 6148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6150 fi 6151 6152 CFLAGS="$CFLAGS -Wbad-function-cast" 6153 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6155 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6156 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6157 if eval test \${$cacheid+y} 6158 then : 6159 printf %s "(cached) " >&6 6160 else case e in #( 6161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162 /* end confdefs.h. */ 6163 int i; 6164 int 6165 main (void) 6166 { 6167 6168 ; 6169 return 0; 6170 } 6171 _ACEOF 6172 if ac_fn_c_try_link "$LINENO" 6173 then : 6174 eval $cacheid=yes 6175 else case e in #( 6176 e) eval $cacheid=no ;; 6177 esac 6178 fi 6179 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6180 conftest$ac_exeext conftest.$ac_ext ;; 6181 esac 6182 fi 6183 6184 6185 CFLAGS="$xorg_testset_save_CFLAGS" 6186 6187 eval supported=\$$cacheid 6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6189 printf "%s\n" "$supported" >&6; } 6190 if test "$supported" = "yes" ; then 6191 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6192 found="yes" 6193 fi 6194 fi 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 xorg_testset_save_CFLAGS="$CFLAGS" 6211 6212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6216 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6217 then : 6218 printf %s "(cached) " >&6 6219 else case e in #( 6220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221 /* end confdefs.h. */ 6222 int i; 6223 _ACEOF 6224 if ac_fn_c_try_compile "$LINENO" 6225 then : 6226 xorg_cv_cc_flag_unknown_warning_option=yes 6227 else case e in #( 6228 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6229 esac 6230 fi 6231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6232 esac 6233 fi 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238 fi 6239 6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6243 fi 6244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6248 then : 6249 printf %s "(cached) " >&6 6250 else case e in #( 6251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252 /* end confdefs.h. */ 6253 int i; 6254 _ACEOF 6255 if ac_fn_c_try_compile "$LINENO" 6256 then : 6257 xorg_cv_cc_flag_unused_command_line_argument=yes 6258 else case e in #( 6259 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6260 esac 6261 fi 6262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6263 esac 6264 fi 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269 fi 6270 6271 found="no" 6272 6273 if test $found = "no" ; then 6274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6276 fi 6277 6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6280 fi 6281 6282 CFLAGS="$CFLAGS -Wold-style-definition" 6283 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6285 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6286 cacheid=xorg_cv_cc_flag__Wold_style_definition 6287 if eval test \${$cacheid+y} 6288 then : 6289 printf %s "(cached) " >&6 6290 else case e in #( 6291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292 /* end confdefs.h. */ 6293 int i; 6294 int 6295 main (void) 6296 { 6297 6298 ; 6299 return 0; 6300 } 6301 _ACEOF 6302 if ac_fn_c_try_link "$LINENO" 6303 then : 6304 eval $cacheid=yes 6305 else case e in #( 6306 e) eval $cacheid=no ;; 6307 esac 6308 fi 6309 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6310 conftest$ac_exeext conftest.$ac_ext ;; 6311 esac 6312 fi 6313 6314 6315 CFLAGS="$xorg_testset_save_CFLAGS" 6316 6317 eval supported=\$$cacheid 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6319 printf "%s\n" "$supported" >&6; } 6320 if test "$supported" = "yes" ; then 6321 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6322 found="yes" 6323 fi 6324 fi 6325 6326 if test $found = "no" ; then 6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6329 fi 6330 6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6333 fi 6334 6335 CFLAGS="$CFLAGS -fd" 6336 6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6338 printf %s "checking if $CC supports -fd... " >&6; } 6339 cacheid=xorg_cv_cc_flag__fd 6340 if eval test \${$cacheid+y} 6341 then : 6342 printf %s "(cached) " >&6 6343 else case e in #( 6344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6345 /* end confdefs.h. */ 6346 int i; 6347 int 6348 main (void) 6349 { 6350 6351 ; 6352 return 0; 6353 } 6354 _ACEOF 6355 if ac_fn_c_try_link "$LINENO" 6356 then : 6357 eval $cacheid=yes 6358 else case e in #( 6359 e) eval $cacheid=no ;; 6360 esac 6361 fi 6362 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6363 conftest$ac_exeext conftest.$ac_ext ;; 6364 esac 6365 fi 6366 6367 6368 CFLAGS="$xorg_testset_save_CFLAGS" 6369 6370 eval supported=\$$cacheid 6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6372 printf "%s\n" "$supported" >&6; } 6373 if test "$supported" = "yes" ; then 6374 BASE_CFLAGS="$BASE_CFLAGS -fd" 6375 found="yes" 6376 fi 6377 fi 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 xorg_testset_save_CFLAGS="$CFLAGS" 6394 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6399 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6400 then : 6401 printf %s "(cached) " >&6 6402 else case e in #( 6403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404 /* end confdefs.h. */ 6405 int i; 6406 _ACEOF 6407 if ac_fn_c_try_compile "$LINENO" 6408 then : 6409 xorg_cv_cc_flag_unknown_warning_option=yes 6410 else case e in #( 6411 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6412 esac 6413 fi 6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6415 esac 6416 fi 6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6420 CFLAGS="$xorg_testset_save_CFLAGS" 6421 fi 6422 6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426 fi 6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6431 then : 6432 printf %s "(cached) " >&6 6433 else case e in #( 6434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435 /* end confdefs.h. */ 6436 int i; 6437 _ACEOF 6438 if ac_fn_c_try_compile "$LINENO" 6439 then : 6440 xorg_cv_cc_flag_unused_command_line_argument=yes 6441 else case e in #( 6442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6443 esac 6444 fi 6445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6446 esac 6447 fi 6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6451 CFLAGS="$xorg_testset_save_CFLAGS" 6452 fi 6453 6454 found="no" 6455 6456 if test $found = "no" ; then 6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 fi 6460 6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6463 fi 6464 6465 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6466 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6468 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6469 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6470 if eval test \${$cacheid+y} 6471 then : 6472 printf %s "(cached) " >&6 6473 else case e in #( 6474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475 /* end confdefs.h. */ 6476 int i; 6477 int 6478 main (void) 6479 { 6480 6481 ; 6482 return 0; 6483 } 6484 _ACEOF 6485 if ac_fn_c_try_link "$LINENO" 6486 then : 6487 eval $cacheid=yes 6488 else case e in #( 6489 e) eval $cacheid=no ;; 6490 esac 6491 fi 6492 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6493 conftest$ac_exeext conftest.$ac_ext ;; 6494 esac 6495 fi 6496 6497 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499 6500 eval supported=\$$cacheid 6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6502 printf "%s\n" "$supported" >&6; } 6503 if test "$supported" = "yes" ; then 6504 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6505 found="yes" 6506 fi 6507 fi 6508 6509 6510 6511 6512 6513 # This chunk adds additional warnings that could catch undesired effects. 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 xorg_testset_save_CFLAGS="$CFLAGS" 6528 6529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6533 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6534 then : 6535 printf %s "(cached) " >&6 6536 else case e in #( 6537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538 /* end confdefs.h. */ 6539 int i; 6540 _ACEOF 6541 if ac_fn_c_try_compile "$LINENO" 6542 then : 6543 xorg_cv_cc_flag_unknown_warning_option=yes 6544 else case e in #( 6545 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6546 esac 6547 fi 6548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6549 esac 6550 fi 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6554 CFLAGS="$xorg_testset_save_CFLAGS" 6555 fi 6556 6557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 fi 6561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6565 then : 6566 printf %s "(cached) " >&6 6567 else case e in #( 6568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569 /* end confdefs.h. */ 6570 int i; 6571 _ACEOF 6572 if ac_fn_c_try_compile "$LINENO" 6573 then : 6574 xorg_cv_cc_flag_unused_command_line_argument=yes 6575 else case e in #( 6576 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6577 esac 6578 fi 6579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6580 esac 6581 fi 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6583 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6585 CFLAGS="$xorg_testset_save_CFLAGS" 6586 fi 6587 6588 found="no" 6589 6590 if test $found = "no" ; then 6591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6593 fi 6594 6595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6597 fi 6598 6599 CFLAGS="$CFLAGS -Wunused" 6600 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6602 printf %s "checking if $CC supports -Wunused... " >&6; } 6603 cacheid=xorg_cv_cc_flag__Wunused 6604 if eval test \${$cacheid+y} 6605 then : 6606 printf %s "(cached) " >&6 6607 else case e in #( 6608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609 /* end confdefs.h. */ 6610 int i; 6611 int 6612 main (void) 6613 { 6614 6615 ; 6616 return 0; 6617 } 6618 _ACEOF 6619 if ac_fn_c_try_link "$LINENO" 6620 then : 6621 eval $cacheid=yes 6622 else case e in #( 6623 e) eval $cacheid=no ;; 6624 esac 6625 fi 6626 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6627 conftest$ac_exeext conftest.$ac_ext ;; 6628 esac 6629 fi 6630 6631 6632 CFLAGS="$xorg_testset_save_CFLAGS" 6633 6634 eval supported=\$$cacheid 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6636 printf "%s\n" "$supported" >&6; } 6637 if test "$supported" = "yes" ; then 6638 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6639 found="yes" 6640 fi 6641 fi 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 xorg_testset_save_CFLAGS="$CFLAGS" 6658 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6663 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6664 then : 6665 printf %s "(cached) " >&6 6666 else case e in #( 6667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668 /* end confdefs.h. */ 6669 int i; 6670 _ACEOF 6671 if ac_fn_c_try_compile "$LINENO" 6672 then : 6673 xorg_cv_cc_flag_unknown_warning_option=yes 6674 else case e in #( 6675 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6676 esac 6677 fi 6678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6679 esac 6680 fi 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685 fi 6686 6687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 fi 6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6695 then : 6696 printf %s "(cached) " >&6 6697 else case e in #( 6698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699 /* end confdefs.h. */ 6700 int i; 6701 _ACEOF 6702 if ac_fn_c_try_compile "$LINENO" 6703 then : 6704 xorg_cv_cc_flag_unused_command_line_argument=yes 6705 else case e in #( 6706 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6707 esac 6708 fi 6709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6710 esac 6711 fi 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6715 CFLAGS="$xorg_testset_save_CFLAGS" 6716 fi 6717 6718 found="no" 6719 6720 if test $found = "no" ; then 6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6723 fi 6724 6725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6727 fi 6728 6729 CFLAGS="$CFLAGS -Wuninitialized" 6730 6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6732 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6733 cacheid=xorg_cv_cc_flag__Wuninitialized 6734 if eval test \${$cacheid+y} 6735 then : 6736 printf %s "(cached) " >&6 6737 else case e in #( 6738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739 /* end confdefs.h. */ 6740 int i; 6741 int 6742 main (void) 6743 { 6744 6745 ; 6746 return 0; 6747 } 6748 _ACEOF 6749 if ac_fn_c_try_link "$LINENO" 6750 then : 6751 eval $cacheid=yes 6752 else case e in #( 6753 e) eval $cacheid=no ;; 6754 esac 6755 fi 6756 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6757 conftest$ac_exeext conftest.$ac_ext ;; 6758 esac 6759 fi 6760 6761 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763 6764 eval supported=\$$cacheid 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6766 printf "%s\n" "$supported" >&6; } 6767 if test "$supported" = "yes" ; then 6768 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6769 found="yes" 6770 fi 6771 fi 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 xorg_testset_save_CFLAGS="$CFLAGS" 6788 6789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6793 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6794 then : 6795 printf %s "(cached) " >&6 6796 else case e in #( 6797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798 /* end confdefs.h. */ 6799 int i; 6800 _ACEOF 6801 if ac_fn_c_try_compile "$LINENO" 6802 then : 6803 xorg_cv_cc_flag_unknown_warning_option=yes 6804 else case e in #( 6805 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6806 esac 6807 fi 6808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6809 esac 6810 fi 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6812 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815 fi 6816 6817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6820 fi 6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6823 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6824 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6825 then : 6826 printf %s "(cached) " >&6 6827 else case e in #( 6828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829 /* end confdefs.h. */ 6830 int i; 6831 _ACEOF 6832 if ac_fn_c_try_compile "$LINENO" 6833 then : 6834 xorg_cv_cc_flag_unused_command_line_argument=yes 6835 else case e in #( 6836 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6837 esac 6838 fi 6839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6840 esac 6841 fi 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846 fi 6847 6848 found="no" 6849 6850 if test $found = "no" ; then 6851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6853 fi 6854 6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6857 fi 6858 6859 CFLAGS="$CFLAGS -Wshadow" 6860 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6862 printf %s "checking if $CC supports -Wshadow... " >&6; } 6863 cacheid=xorg_cv_cc_flag__Wshadow 6864 if eval test \${$cacheid+y} 6865 then : 6866 printf %s "(cached) " >&6 6867 else case e in #( 6868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869 /* end confdefs.h. */ 6870 int i; 6871 int 6872 main (void) 6873 { 6874 6875 ; 6876 return 0; 6877 } 6878 _ACEOF 6879 if ac_fn_c_try_link "$LINENO" 6880 then : 6881 eval $cacheid=yes 6882 else case e in #( 6883 e) eval $cacheid=no ;; 6884 esac 6885 fi 6886 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6887 conftest$ac_exeext conftest.$ac_ext ;; 6888 esac 6889 fi 6890 6891 6892 CFLAGS="$xorg_testset_save_CFLAGS" 6893 6894 eval supported=\$$cacheid 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6896 printf "%s\n" "$supported" >&6; } 6897 if test "$supported" = "yes" ; then 6898 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6899 found="yes" 6900 fi 6901 fi 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 xorg_testset_save_CFLAGS="$CFLAGS" 6918 6919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6923 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6924 then : 6925 printf %s "(cached) " >&6 6926 else case e in #( 6927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6928 /* end confdefs.h. */ 6929 int i; 6930 _ACEOF 6931 if ac_fn_c_try_compile "$LINENO" 6932 then : 6933 xorg_cv_cc_flag_unknown_warning_option=yes 6934 else case e in #( 6935 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6936 esac 6937 fi 6938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6939 esac 6940 fi 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945 fi 6946 6947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 fi 6951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6955 then : 6956 printf %s "(cached) " >&6 6957 else case e in #( 6958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959 /* end confdefs.h. */ 6960 int i; 6961 _ACEOF 6962 if ac_fn_c_try_compile "$LINENO" 6963 then : 6964 xorg_cv_cc_flag_unused_command_line_argument=yes 6965 else case e in #( 6966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6967 esac 6968 fi 6969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6970 esac 6971 fi 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976 fi 6977 6978 found="no" 6979 6980 if test $found = "no" ; then 6981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6983 fi 6984 6985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6987 fi 6988 6989 CFLAGS="$CFLAGS -Wmissing-noreturn" 6990 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6992 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6993 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6994 if eval test \${$cacheid+y} 6995 then : 6996 printf %s "(cached) " >&6 6997 else case e in #( 6998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999 /* end confdefs.h. */ 7000 int i; 7001 int 7002 main (void) 7003 { 7004 7005 ; 7006 return 0; 7007 } 7008 _ACEOF 7009 if ac_fn_c_try_link "$LINENO" 7010 then : 7011 eval $cacheid=yes 7012 else case e in #( 7013 e) eval $cacheid=no ;; 7014 esac 7015 fi 7016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7017 conftest$ac_exeext conftest.$ac_ext ;; 7018 esac 7019 fi 7020 7021 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023 7024 eval supported=\$$cacheid 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7026 printf "%s\n" "$supported" >&6; } 7027 if test "$supported" = "yes" ; then 7028 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7029 found="yes" 7030 fi 7031 fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 xorg_testset_save_CFLAGS="$CFLAGS" 7048 7049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7053 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7054 then : 7055 printf %s "(cached) " >&6 7056 else case e in #( 7057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7058 /* end confdefs.h. */ 7059 int i; 7060 _ACEOF 7061 if ac_fn_c_try_compile "$LINENO" 7062 then : 7063 xorg_cv_cc_flag_unknown_warning_option=yes 7064 else case e in #( 7065 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7066 esac 7067 fi 7068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7069 esac 7070 fi 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075 fi 7076 7077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 fi 7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7085 then : 7086 printf %s "(cached) " >&6 7087 else case e in #( 7088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7089 /* end confdefs.h. */ 7090 int i; 7091 _ACEOF 7092 if ac_fn_c_try_compile "$LINENO" 7093 then : 7094 xorg_cv_cc_flag_unused_command_line_argument=yes 7095 else case e in #( 7096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7097 esac 7098 fi 7099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7100 esac 7101 fi 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106 fi 7107 7108 found="no" 7109 7110 if test $found = "no" ; then 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 fi 7114 7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7117 fi 7118 7119 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7120 7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7122 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7123 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7124 if eval test \${$cacheid+y} 7125 then : 7126 printf %s "(cached) " >&6 7127 else case e in #( 7128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7129 /* end confdefs.h. */ 7130 int i; 7131 int 7132 main (void) 7133 { 7134 7135 ; 7136 return 0; 7137 } 7138 _ACEOF 7139 if ac_fn_c_try_link "$LINENO" 7140 then : 7141 eval $cacheid=yes 7142 else case e in #( 7143 e) eval $cacheid=no ;; 7144 esac 7145 fi 7146 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7147 conftest$ac_exeext conftest.$ac_ext ;; 7148 esac 7149 fi 7150 7151 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153 7154 eval supported=\$$cacheid 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7156 printf "%s\n" "$supported" >&6; } 7157 if test "$supported" = "yes" ; then 7158 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7159 found="yes" 7160 fi 7161 fi 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 xorg_testset_save_CFLAGS="$CFLAGS" 7178 7179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7183 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7184 then : 7185 printf %s "(cached) " >&6 7186 else case e in #( 7187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7188 /* end confdefs.h. */ 7189 int i; 7190 _ACEOF 7191 if ac_fn_c_try_compile "$LINENO" 7192 then : 7193 xorg_cv_cc_flag_unknown_warning_option=yes 7194 else case e in #( 7195 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7196 esac 7197 fi 7198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7199 esac 7200 fi 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7204 CFLAGS="$xorg_testset_save_CFLAGS" 7205 fi 7206 7207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 fi 7211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7215 then : 7216 printf %s "(cached) " >&6 7217 else case e in #( 7218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7219 /* end confdefs.h. */ 7220 int i; 7221 _ACEOF 7222 if ac_fn_c_try_compile "$LINENO" 7223 then : 7224 xorg_cv_cc_flag_unused_command_line_argument=yes 7225 else case e in #( 7226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7227 esac 7228 fi 7229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7230 esac 7231 fi 7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7235 CFLAGS="$xorg_testset_save_CFLAGS" 7236 fi 7237 7238 found="no" 7239 7240 if test $found = "no" ; then 7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7243 fi 7244 7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7247 fi 7248 7249 CFLAGS="$CFLAGS -Wredundant-decls" 7250 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7252 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7253 cacheid=xorg_cv_cc_flag__Wredundant_decls 7254 if eval test \${$cacheid+y} 7255 then : 7256 printf %s "(cached) " >&6 7257 else case e in #( 7258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259 /* end confdefs.h. */ 7260 int i; 7261 int 7262 main (void) 7263 { 7264 7265 ; 7266 return 0; 7267 } 7268 _ACEOF 7269 if ac_fn_c_try_link "$LINENO" 7270 then : 7271 eval $cacheid=yes 7272 else case e in #( 7273 e) eval $cacheid=no ;; 7274 esac 7275 fi 7276 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7277 conftest$ac_exeext conftest.$ac_ext ;; 7278 esac 7279 fi 7280 7281 7282 CFLAGS="$xorg_testset_save_CFLAGS" 7283 7284 eval supported=\$$cacheid 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7286 printf "%s\n" "$supported" >&6; } 7287 if test "$supported" = "yes" ; then 7288 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7289 found="yes" 7290 fi 7291 fi 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 xorg_testset_save_CFLAGS="$CFLAGS" 7308 7309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7313 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7314 then : 7315 printf %s "(cached) " >&6 7316 else case e in #( 7317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318 /* end confdefs.h. */ 7319 int i; 7320 _ACEOF 7321 if ac_fn_c_try_compile "$LINENO" 7322 then : 7323 xorg_cv_cc_flag_unknown_warning_option=yes 7324 else case e in #( 7325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7326 esac 7327 fi 7328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7329 esac 7330 fi 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7334 CFLAGS="$xorg_testset_save_CFLAGS" 7335 fi 7336 7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 fi 7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7345 then : 7346 printf %s "(cached) " >&6 7347 else case e in #( 7348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349 /* end confdefs.h. */ 7350 int i; 7351 _ACEOF 7352 if ac_fn_c_try_compile "$LINENO" 7353 then : 7354 xorg_cv_cc_flag_unused_command_line_argument=yes 7355 else case e in #( 7356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7357 esac 7358 fi 7359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7360 esac 7361 fi 7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366 fi 7367 7368 found="no" 7369 7370 if test $found = "no" ; then 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 fi 7374 7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7377 fi 7378 7379 CFLAGS="$CFLAGS -Wlogical-op" 7380 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7382 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7383 cacheid=xorg_cv_cc_flag__Wlogical_op 7384 if eval test \${$cacheid+y} 7385 then : 7386 printf %s "(cached) " >&6 7387 else case e in #( 7388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389 /* end confdefs.h. */ 7390 int i; 7391 int 7392 main (void) 7393 { 7394 7395 ; 7396 return 0; 7397 } 7398 _ACEOF 7399 if ac_fn_c_try_link "$LINENO" 7400 then : 7401 eval $cacheid=yes 7402 else case e in #( 7403 e) eval $cacheid=no ;; 7404 esac 7405 fi 7406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7407 conftest$ac_exeext conftest.$ac_ext ;; 7408 esac 7409 fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416 printf "%s\n" "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7419 found="yes" 7420 fi 7421 fi 7422 7423 7424 7425 # These are currently disabled because they are noisy. They will be enabled 7426 # in the future once the codebase is sufficiently modernized to silence 7427 # them. For now, I don't want them to drown out the other warnings. 7428 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7429 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7430 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7431 7432 # Turn some warnings into errors, so we don't accidentally get successful builds 7433 # when there are problems that should be fixed. 7434 7435 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 xorg_testset_save_CFLAGS="$CFLAGS" 7450 7451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7455 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF 7463 if ac_fn_c_try_compile "$LINENO" 7464 then : 7465 xorg_cv_cc_flag_unknown_warning_option=yes 7466 else case e in #( 7467 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7468 esac 7469 fi 7470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7471 esac 7472 fi 7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477 fi 7478 7479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 fi 7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7487 then : 7488 printf %s "(cached) " >&6 7489 else case e in #( 7490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491 /* end confdefs.h. */ 7492 int i; 7493 _ACEOF 7494 if ac_fn_c_try_compile "$LINENO" 7495 then : 7496 xorg_cv_cc_flag_unused_command_line_argument=yes 7497 else case e in #( 7498 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7499 esac 7500 fi 7501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7502 esac 7503 fi 7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7505 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508 fi 7509 7510 found="no" 7511 7512 if test $found = "no" ; then 7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7515 fi 7516 7517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7519 fi 7520 7521 CFLAGS="$CFLAGS -Werror=implicit" 7522 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7524 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7525 cacheid=xorg_cv_cc_flag__Werror_implicit 7526 if eval test \${$cacheid+y} 7527 then : 7528 printf %s "(cached) " >&6 7529 else case e in #( 7530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531 /* end confdefs.h. */ 7532 int i; 7533 int 7534 main (void) 7535 { 7536 7537 ; 7538 return 0; 7539 } 7540 _ACEOF 7541 if ac_fn_c_try_link "$LINENO" 7542 then : 7543 eval $cacheid=yes 7544 else case e in #( 7545 e) eval $cacheid=no ;; 7546 esac 7547 fi 7548 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7549 conftest$ac_exeext conftest.$ac_ext ;; 7550 esac 7551 fi 7552 7553 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555 7556 eval supported=\$$cacheid 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7558 printf "%s\n" "$supported" >&6; } 7559 if test "$supported" = "yes" ; then 7560 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7561 found="yes" 7562 fi 7563 fi 7564 7565 if test $found = "no" ; then 7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7568 fi 7569 7570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7572 fi 7573 7574 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7575 7576 { 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 7577 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7578 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7579 if eval test \${$cacheid+y} 7580 then : 7581 printf %s "(cached) " >&6 7582 else case e in #( 7583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584 /* end confdefs.h. */ 7585 int i; 7586 int 7587 main (void) 7588 { 7589 7590 ; 7591 return 0; 7592 } 7593 _ACEOF 7594 if ac_fn_c_try_link "$LINENO" 7595 then : 7596 eval $cacheid=yes 7597 else case e in #( 7598 e) eval $cacheid=no ;; 7599 esac 7600 fi 7601 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7602 conftest$ac_exeext conftest.$ac_ext ;; 7603 esac 7604 fi 7605 7606 7607 CFLAGS="$xorg_testset_save_CFLAGS" 7608 7609 eval supported=\$$cacheid 7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7611 printf "%s\n" "$supported" >&6; } 7612 if test "$supported" = "yes" ; then 7613 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7614 found="yes" 7615 fi 7616 fi 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 xorg_testset_save_CFLAGS="$CFLAGS" 7633 7634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7638 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7639 then : 7640 printf %s "(cached) " >&6 7641 else case e in #( 7642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643 /* end confdefs.h. */ 7644 int i; 7645 _ACEOF 7646 if ac_fn_c_try_compile "$LINENO" 7647 then : 7648 xorg_cv_cc_flag_unknown_warning_option=yes 7649 else case e in #( 7650 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7651 esac 7652 fi 7653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7654 esac 7655 fi 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660 fi 7661 7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7670 then : 7671 printf %s "(cached) " >&6 7672 else case e in #( 7673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674 /* end confdefs.h. */ 7675 int i; 7676 _ACEOF 7677 if ac_fn_c_try_compile "$LINENO" 7678 then : 7679 xorg_cv_cc_flag_unused_command_line_argument=yes 7680 else case e in #( 7681 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7682 esac 7683 fi 7684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7685 esac 7686 fi 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7690 CFLAGS="$xorg_testset_save_CFLAGS" 7691 fi 7692 7693 found="no" 7694 7695 if test $found = "no" ; then 7696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698 fi 7699 7700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7702 fi 7703 7704 CFLAGS="$CFLAGS -Werror=nonnull" 7705 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7707 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7708 cacheid=xorg_cv_cc_flag__Werror_nonnull 7709 if eval test \${$cacheid+y} 7710 then : 7711 printf %s "(cached) " >&6 7712 else case e in #( 7713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714 /* end confdefs.h. */ 7715 int i; 7716 int 7717 main (void) 7718 { 7719 7720 ; 7721 return 0; 7722 } 7723 _ACEOF 7724 if ac_fn_c_try_link "$LINENO" 7725 then : 7726 eval $cacheid=yes 7727 else case e in #( 7728 e) eval $cacheid=no ;; 7729 esac 7730 fi 7731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7732 conftest$ac_exeext conftest.$ac_ext ;; 7733 esac 7734 fi 7735 7736 7737 CFLAGS="$xorg_testset_save_CFLAGS" 7738 7739 eval supported=\$$cacheid 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7741 printf "%s\n" "$supported" >&6; } 7742 if test "$supported" = "yes" ; then 7743 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7744 found="yes" 7745 fi 7746 fi 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 xorg_testset_save_CFLAGS="$CFLAGS" 7763 7764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7767 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7768 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7769 then : 7770 printf %s "(cached) " >&6 7771 else case e in #( 7772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7773 /* end confdefs.h. */ 7774 int i; 7775 _ACEOF 7776 if ac_fn_c_try_compile "$LINENO" 7777 then : 7778 xorg_cv_cc_flag_unknown_warning_option=yes 7779 else case e in #( 7780 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7781 esac 7782 fi 7783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7784 esac 7785 fi 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7787 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7789 CFLAGS="$xorg_testset_save_CFLAGS" 7790 fi 7791 7792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7795 fi 7796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7800 then : 7801 printf %s "(cached) " >&6 7802 else case e in #( 7803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804 /* end confdefs.h. */ 7805 int i; 7806 _ACEOF 7807 if ac_fn_c_try_compile "$LINENO" 7808 then : 7809 xorg_cv_cc_flag_unused_command_line_argument=yes 7810 else case e in #( 7811 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7812 esac 7813 fi 7814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7815 esac 7816 fi 7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821 fi 7822 7823 found="no" 7824 7825 if test $found = "no" ; then 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 fi 7829 7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7832 fi 7833 7834 CFLAGS="$CFLAGS -Werror=init-self" 7835 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7837 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7838 cacheid=xorg_cv_cc_flag__Werror_init_self 7839 if eval test \${$cacheid+y} 7840 then : 7841 printf %s "(cached) " >&6 7842 else case e in #( 7843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844 /* end confdefs.h. */ 7845 int i; 7846 int 7847 main (void) 7848 { 7849 7850 ; 7851 return 0; 7852 } 7853 _ACEOF 7854 if ac_fn_c_try_link "$LINENO" 7855 then : 7856 eval $cacheid=yes 7857 else case e in #( 7858 e) eval $cacheid=no ;; 7859 esac 7860 fi 7861 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7862 conftest$ac_exeext conftest.$ac_ext ;; 7863 esac 7864 fi 7865 7866 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868 7869 eval supported=\$$cacheid 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7871 printf "%s\n" "$supported" >&6; } 7872 if test "$supported" = "yes" ; then 7873 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7874 found="yes" 7875 fi 7876 fi 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 xorg_testset_save_CFLAGS="$CFLAGS" 7893 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7898 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7899 then : 7900 printf %s "(cached) " >&6 7901 else case e in #( 7902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7903 /* end confdefs.h. */ 7904 int i; 7905 _ACEOF 7906 if ac_fn_c_try_compile "$LINENO" 7907 then : 7908 xorg_cv_cc_flag_unknown_warning_option=yes 7909 else case e in #( 7910 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7911 esac 7912 fi 7913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7914 esac 7915 fi 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7917 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7919 CFLAGS="$xorg_testset_save_CFLAGS" 7920 fi 7921 7922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7925 fi 7926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7930 then : 7931 printf %s "(cached) " >&6 7932 else case e in #( 7933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934 /* end confdefs.h. */ 7935 int i; 7936 _ACEOF 7937 if ac_fn_c_try_compile "$LINENO" 7938 then : 7939 xorg_cv_cc_flag_unused_command_line_argument=yes 7940 else case e in #( 7941 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7942 esac 7943 fi 7944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7945 esac 7946 fi 7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7948 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951 fi 7952 7953 found="no" 7954 7955 if test $found = "no" ; then 7956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7958 fi 7959 7960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7962 fi 7963 7964 CFLAGS="$CFLAGS -Werror=main" 7965 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7967 printf %s "checking if $CC supports -Werror=main... " >&6; } 7968 cacheid=xorg_cv_cc_flag__Werror_main 7969 if eval test \${$cacheid+y} 7970 then : 7971 printf %s "(cached) " >&6 7972 else case e in #( 7973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974 /* end confdefs.h. */ 7975 int i; 7976 int 7977 main (void) 7978 { 7979 7980 ; 7981 return 0; 7982 } 7983 _ACEOF 7984 if ac_fn_c_try_link "$LINENO" 7985 then : 7986 eval $cacheid=yes 7987 else case e in #( 7988 e) eval $cacheid=no ;; 7989 esac 7990 fi 7991 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7992 conftest$ac_exeext conftest.$ac_ext ;; 7993 esac 7994 fi 7995 7996 7997 CFLAGS="$xorg_testset_save_CFLAGS" 7998 7999 eval supported=\$$cacheid 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8001 printf "%s\n" "$supported" >&6; } 8002 if test "$supported" = "yes" ; then 8003 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8004 found="yes" 8005 fi 8006 fi 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 xorg_testset_save_CFLAGS="$CFLAGS" 8023 8024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8028 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8029 then : 8030 printf %s "(cached) " >&6 8031 else case e in #( 8032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8033 /* end confdefs.h. */ 8034 int i; 8035 _ACEOF 8036 if ac_fn_c_try_compile "$LINENO" 8037 then : 8038 xorg_cv_cc_flag_unknown_warning_option=yes 8039 else case e in #( 8040 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8041 esac 8042 fi 8043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8044 esac 8045 fi 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8047 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8049 CFLAGS="$xorg_testset_save_CFLAGS" 8050 fi 8051 8052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 fi 8056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8058 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8059 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8060 then : 8061 printf %s "(cached) " >&6 8062 else case e in #( 8063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064 /* end confdefs.h. */ 8065 int i; 8066 _ACEOF 8067 if ac_fn_c_try_compile "$LINENO" 8068 then : 8069 xorg_cv_cc_flag_unused_command_line_argument=yes 8070 else case e in #( 8071 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8072 esac 8073 fi 8074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8075 esac 8076 fi 8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8080 CFLAGS="$xorg_testset_save_CFLAGS" 8081 fi 8082 8083 found="no" 8084 8085 if test $found = "no" ; then 8086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088 fi 8089 8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 fi 8093 8094 CFLAGS="$CFLAGS -Werror=missing-braces" 8095 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8097 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8098 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8099 if eval test \${$cacheid+y} 8100 then : 8101 printf %s "(cached) " >&6 8102 else case e in #( 8103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104 /* end confdefs.h. */ 8105 int i; 8106 int 8107 main (void) 8108 { 8109 8110 ; 8111 return 0; 8112 } 8113 _ACEOF 8114 if ac_fn_c_try_link "$LINENO" 8115 then : 8116 eval $cacheid=yes 8117 else case e in #( 8118 e) eval $cacheid=no ;; 8119 esac 8120 fi 8121 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8122 conftest$ac_exeext conftest.$ac_ext ;; 8123 esac 8124 fi 8125 8126 8127 CFLAGS="$xorg_testset_save_CFLAGS" 8128 8129 eval supported=\$$cacheid 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8131 printf "%s\n" "$supported" >&6; } 8132 if test "$supported" = "yes" ; then 8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8134 found="yes" 8135 fi 8136 fi 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 xorg_testset_save_CFLAGS="$CFLAGS" 8153 8154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8157 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8158 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8159 then : 8160 printf %s "(cached) " >&6 8161 else case e in #( 8162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163 /* end confdefs.h. */ 8164 int i; 8165 _ACEOF 8166 if ac_fn_c_try_compile "$LINENO" 8167 then : 8168 xorg_cv_cc_flag_unknown_warning_option=yes 8169 else case e in #( 8170 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8171 esac 8172 fi 8173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8174 esac 8175 fi 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8179 CFLAGS="$xorg_testset_save_CFLAGS" 8180 fi 8181 8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 fi 8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8190 then : 8191 printf %s "(cached) " >&6 8192 else case e in #( 8193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194 /* end confdefs.h. */ 8195 int i; 8196 _ACEOF 8197 if ac_fn_c_try_compile "$LINENO" 8198 then : 8199 xorg_cv_cc_flag_unused_command_line_argument=yes 8200 else case e in #( 8201 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8202 esac 8203 fi 8204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8205 esac 8206 fi 8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8210 CFLAGS="$xorg_testset_save_CFLAGS" 8211 fi 8212 8213 found="no" 8214 8215 if test $found = "no" ; then 8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218 fi 8219 8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8222 fi 8223 8224 CFLAGS="$CFLAGS -Werror=sequence-point" 8225 8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8227 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8228 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8229 if eval test \${$cacheid+y} 8230 then : 8231 printf %s "(cached) " >&6 8232 else case e in #( 8233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234 /* end confdefs.h. */ 8235 int i; 8236 int 8237 main (void) 8238 { 8239 8240 ; 8241 return 0; 8242 } 8243 _ACEOF 8244 if ac_fn_c_try_link "$LINENO" 8245 then : 8246 eval $cacheid=yes 8247 else case e in #( 8248 e) eval $cacheid=no ;; 8249 esac 8250 fi 8251 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8252 conftest$ac_exeext conftest.$ac_ext ;; 8253 esac 8254 fi 8255 8256 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258 8259 eval supported=\$$cacheid 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8261 printf "%s\n" "$supported" >&6; } 8262 if test "$supported" = "yes" ; then 8263 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8264 found="yes" 8265 fi 8266 fi 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 xorg_testset_save_CFLAGS="$CFLAGS" 8283 8284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8288 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF 8296 if ac_fn_c_try_compile "$LINENO" 8297 then : 8298 xorg_cv_cc_flag_unknown_warning_option=yes 8299 else case e in #( 8300 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8301 esac 8302 fi 8303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8304 esac 8305 fi 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310 fi 8311 8312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 fi 8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8320 then : 8321 printf %s "(cached) " >&6 8322 else case e in #( 8323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324 /* end confdefs.h. */ 8325 int i; 8326 _ACEOF 8327 if ac_fn_c_try_compile "$LINENO" 8328 then : 8329 xorg_cv_cc_flag_unused_command_line_argument=yes 8330 else case e in #( 8331 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8332 esac 8333 fi 8334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8335 esac 8336 fi 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8338 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8341 fi 8342 8343 found="no" 8344 8345 if test $found = "no" ; then 8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8348 fi 8349 8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8352 fi 8353 8354 CFLAGS="$CFLAGS -Werror=return-type" 8355 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8357 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8358 cacheid=xorg_cv_cc_flag__Werror_return_type 8359 if eval test \${$cacheid+y} 8360 then : 8361 printf %s "(cached) " >&6 8362 else case e in #( 8363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364 /* end confdefs.h. */ 8365 int i; 8366 int 8367 main (void) 8368 { 8369 8370 ; 8371 return 0; 8372 } 8373 _ACEOF 8374 if ac_fn_c_try_link "$LINENO" 8375 then : 8376 eval $cacheid=yes 8377 else case e in #( 8378 e) eval $cacheid=no ;; 8379 esac 8380 fi 8381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8382 conftest$ac_exeext conftest.$ac_ext ;; 8383 esac 8384 fi 8385 8386 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388 8389 eval supported=\$$cacheid 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8391 printf "%s\n" "$supported" >&6; } 8392 if test "$supported" = "yes" ; then 8393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8394 found="yes" 8395 fi 8396 fi 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8410 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8412 if eval test \${$cacheid+y} 8413 then : 8414 printf %s "(cached) " >&6 8415 else case e in #( 8416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417 /* end confdefs.h. */ 8418 int i; 8419 int 8420 main (void) 8421 { 8422 8423 ; 8424 return 0; 8425 } 8426 _ACEOF 8427 if ac_fn_c_try_link "$LINENO" 8428 then : 8429 eval $cacheid=yes 8430 else case e in #( 8431 e) eval $cacheid=no ;; 8432 esac 8433 fi 8434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8435 conftest$ac_exeext conftest.$ac_ext ;; 8436 esac 8437 fi 8438 8439 8440 CFLAGS="$xorg_testset_save_CFLAGS" 8441 8442 eval supported=\$$cacheid 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8444 printf "%s\n" "$supported" >&6; } 8445 if test "$supported" = "yes" ; then 8446 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8447 found="yes" 8448 fi 8449 fi 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 xorg_testset_save_CFLAGS="$CFLAGS" 8466 8467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8471 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8472 then : 8473 printf %s "(cached) " >&6 8474 else case e in #( 8475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476 /* end confdefs.h. */ 8477 int i; 8478 _ACEOF 8479 if ac_fn_c_try_compile "$LINENO" 8480 then : 8481 xorg_cv_cc_flag_unknown_warning_option=yes 8482 else case e in #( 8483 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8484 esac 8485 fi 8486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8487 esac 8488 fi 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8492 CFLAGS="$xorg_testset_save_CFLAGS" 8493 fi 8494 8495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 fi 8499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8503 then : 8504 printf %s "(cached) " >&6 8505 else case e in #( 8506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8507 /* end confdefs.h. */ 8508 int i; 8509 _ACEOF 8510 if ac_fn_c_try_compile "$LINENO" 8511 then : 8512 xorg_cv_cc_flag_unused_command_line_argument=yes 8513 else case e in #( 8514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8515 esac 8516 fi 8517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8518 esac 8519 fi 8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8523 CFLAGS="$xorg_testset_save_CFLAGS" 8524 fi 8525 8526 found="no" 8527 8528 if test $found = "no" ; then 8529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8531 fi 8532 8533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8535 fi 8536 8537 CFLAGS="$CFLAGS -Werror=trigraphs" 8538 8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8540 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8541 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8542 if eval test \${$cacheid+y} 8543 then : 8544 printf %s "(cached) " >&6 8545 else case e in #( 8546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547 /* end confdefs.h. */ 8548 int i; 8549 int 8550 main (void) 8551 { 8552 8553 ; 8554 return 0; 8555 } 8556 _ACEOF 8557 if ac_fn_c_try_link "$LINENO" 8558 then : 8559 eval $cacheid=yes 8560 else case e in #( 8561 e) eval $cacheid=no ;; 8562 esac 8563 fi 8564 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8565 conftest$ac_exeext conftest.$ac_ext ;; 8566 esac 8567 fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574 printf "%s\n" "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8577 found="yes" 8578 fi 8579 fi 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 xorg_testset_save_CFLAGS="$CFLAGS" 8596 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8600 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8601 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8602 then : 8603 printf %s "(cached) " >&6 8604 else case e in #( 8605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8606 /* end confdefs.h. */ 8607 int i; 8608 _ACEOF 8609 if ac_fn_c_try_compile "$LINENO" 8610 then : 8611 xorg_cv_cc_flag_unknown_warning_option=yes 8612 else case e in #( 8613 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8614 esac 8615 fi 8616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8617 esac 8618 fi 8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623 fi 8624 8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8633 then : 8634 printf %s "(cached) " >&6 8635 else case e in #( 8636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637 /* end confdefs.h. */ 8638 int i; 8639 _ACEOF 8640 if ac_fn_c_try_compile "$LINENO" 8641 then : 8642 xorg_cv_cc_flag_unused_command_line_argument=yes 8643 else case e in #( 8644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8645 esac 8646 fi 8647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8648 esac 8649 fi 8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654 fi 8655 8656 found="no" 8657 8658 if test $found = "no" ; then 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 fi 8662 8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 fi 8666 8667 CFLAGS="$CFLAGS -Werror=array-bounds" 8668 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8670 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8671 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8672 if eval test \${$cacheid+y} 8673 then : 8674 printf %s "(cached) " >&6 8675 else case e in #( 8676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677 /* end confdefs.h. */ 8678 int i; 8679 int 8680 main (void) 8681 { 8682 8683 ; 8684 return 0; 8685 } 8686 _ACEOF 8687 if ac_fn_c_try_link "$LINENO" 8688 then : 8689 eval $cacheid=yes 8690 else case e in #( 8691 e) eval $cacheid=no ;; 8692 esac 8693 fi 8694 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8695 conftest$ac_exeext conftest.$ac_ext ;; 8696 esac 8697 fi 8698 8699 8700 CFLAGS="$xorg_testset_save_CFLAGS" 8701 8702 eval supported=\$$cacheid 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8704 printf "%s\n" "$supported" >&6; } 8705 if test "$supported" = "yes" ; then 8706 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8707 found="yes" 8708 fi 8709 fi 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 xorg_testset_save_CFLAGS="$CFLAGS" 8726 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8730 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8731 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8732 then : 8733 printf %s "(cached) " >&6 8734 else case e in #( 8735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736 /* end confdefs.h. */ 8737 int i; 8738 _ACEOF 8739 if ac_fn_c_try_compile "$LINENO" 8740 then : 8741 xorg_cv_cc_flag_unknown_warning_option=yes 8742 else case e in #( 8743 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8744 esac 8745 fi 8746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8747 esac 8748 fi 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753 fi 8754 8755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 fi 8759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8763 then : 8764 printf %s "(cached) " >&6 8765 else case e in #( 8766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767 /* end confdefs.h. */ 8768 int i; 8769 _ACEOF 8770 if ac_fn_c_try_compile "$LINENO" 8771 then : 8772 xorg_cv_cc_flag_unused_command_line_argument=yes 8773 else case e in #( 8774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8775 esac 8776 fi 8777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8778 esac 8779 fi 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8783 CFLAGS="$xorg_testset_save_CFLAGS" 8784 fi 8785 8786 found="no" 8787 8788 if test $found = "no" ; then 8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8791 fi 8792 8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8795 fi 8796 8797 CFLAGS="$CFLAGS -Werror=write-strings" 8798 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8800 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8801 cacheid=xorg_cv_cc_flag__Werror_write_strings 8802 if eval test \${$cacheid+y} 8803 then : 8804 printf %s "(cached) " >&6 8805 else case e in #( 8806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807 /* end confdefs.h. */ 8808 int i; 8809 int 8810 main (void) 8811 { 8812 8813 ; 8814 return 0; 8815 } 8816 _ACEOF 8817 if ac_fn_c_try_link "$LINENO" 8818 then : 8819 eval $cacheid=yes 8820 else case e in #( 8821 e) eval $cacheid=no ;; 8822 esac 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8825 conftest$ac_exeext conftest.$ac_ext ;; 8826 esac 8827 fi 8828 8829 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831 8832 eval supported=\$$cacheid 8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8834 printf "%s\n" "$supported" >&6; } 8835 if test "$supported" = "yes" ; then 8836 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8837 found="yes" 8838 fi 8839 fi 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 xorg_testset_save_CFLAGS="$CFLAGS" 8856 8857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8861 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8862 then : 8863 printf %s "(cached) " >&6 8864 else case e in #( 8865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8866 /* end confdefs.h. */ 8867 int i; 8868 _ACEOF 8869 if ac_fn_c_try_compile "$LINENO" 8870 then : 8871 xorg_cv_cc_flag_unknown_warning_option=yes 8872 else case e in #( 8873 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8874 esac 8875 fi 8876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8877 esac 8878 fi 8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8882 CFLAGS="$xorg_testset_save_CFLAGS" 8883 fi 8884 8885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 fi 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8893 then : 8894 printf %s "(cached) " >&6 8895 else case e in #( 8896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897 /* end confdefs.h. */ 8898 int i; 8899 _ACEOF 8900 if ac_fn_c_try_compile "$LINENO" 8901 then : 8902 xorg_cv_cc_flag_unused_command_line_argument=yes 8903 else case e in #( 8904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8905 esac 8906 fi 8907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8908 esac 8909 fi 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8913 CFLAGS="$xorg_testset_save_CFLAGS" 8914 fi 8915 8916 found="no" 8917 8918 if test $found = "no" ; then 8919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8921 fi 8922 8923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8925 fi 8926 8927 CFLAGS="$CFLAGS -Werror=address" 8928 8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8930 printf %s "checking if $CC supports -Werror=address... " >&6; } 8931 cacheid=xorg_cv_cc_flag__Werror_address 8932 if eval test \${$cacheid+y} 8933 then : 8934 printf %s "(cached) " >&6 8935 else case e in #( 8936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8937 /* end confdefs.h. */ 8938 int i; 8939 int 8940 main (void) 8941 { 8942 8943 ; 8944 return 0; 8945 } 8946 _ACEOF 8947 if ac_fn_c_try_link "$LINENO" 8948 then : 8949 eval $cacheid=yes 8950 else case e in #( 8951 e) eval $cacheid=no ;; 8952 esac 8953 fi 8954 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8955 conftest$ac_exeext conftest.$ac_ext ;; 8956 esac 8957 fi 8958 8959 8960 CFLAGS="$xorg_testset_save_CFLAGS" 8961 8962 eval supported=\$$cacheid 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8964 printf "%s\n" "$supported" >&6; } 8965 if test "$supported" = "yes" ; then 8966 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8967 found="yes" 8968 fi 8969 fi 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 xorg_testset_save_CFLAGS="$CFLAGS" 8986 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8991 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF 8999 if ac_fn_c_try_compile "$LINENO" 9000 then : 9001 xorg_cv_cc_flag_unknown_warning_option=yes 9002 else case e in #( 9003 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9004 esac 9005 fi 9006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9007 esac 9008 fi 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9010 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9012 CFLAGS="$xorg_testset_save_CFLAGS" 9013 fi 9014 9015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 fi 9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9021 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9022 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9023 then : 9024 printf %s "(cached) " >&6 9025 else case e in #( 9026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027 /* end confdefs.h. */ 9028 int i; 9029 _ACEOF 9030 if ac_fn_c_try_compile "$LINENO" 9031 then : 9032 xorg_cv_cc_flag_unused_command_line_argument=yes 9033 else case e in #( 9034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9035 esac 9036 fi 9037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9038 esac 9039 fi 9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9043 CFLAGS="$xorg_testset_save_CFLAGS" 9044 fi 9045 9046 found="no" 9047 9048 if test $found = "no" ; then 9049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9051 fi 9052 9053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9055 fi 9056 9057 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9058 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9060 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9061 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9062 if eval test \${$cacheid+y} 9063 then : 9064 printf %s "(cached) " >&6 9065 else case e in #( 9066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067 /* end confdefs.h. */ 9068 int i; 9069 int 9070 main (void) 9071 { 9072 9073 ; 9074 return 0; 9075 } 9076 _ACEOF 9077 if ac_fn_c_try_link "$LINENO" 9078 then : 9079 eval $cacheid=yes 9080 else case e in #( 9081 e) eval $cacheid=no ;; 9082 esac 9083 fi 9084 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9085 conftest$ac_exeext conftest.$ac_ext ;; 9086 esac 9087 fi 9088 9089 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091 9092 eval supported=\$$cacheid 9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9094 printf "%s\n" "$supported" >&6; } 9095 if test "$supported" = "yes" ; then 9096 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9097 found="yes" 9098 fi 9099 fi 9100 9101 if test $found = "no" ; then 9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9104 fi 9105 9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9108 fi 9109 9110 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9111 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9113 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9114 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9115 if eval test \${$cacheid+y} 9116 then : 9117 printf %s "(cached) " >&6 9118 else case e in #( 9119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120 /* end confdefs.h. */ 9121 int i; 9122 int 9123 main (void) 9124 { 9125 9126 ; 9127 return 0; 9128 } 9129 _ACEOF 9130 if ac_fn_c_try_link "$LINENO" 9131 then : 9132 eval $cacheid=yes 9133 else case e in #( 9134 e) eval $cacheid=no ;; 9135 esac 9136 fi 9137 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9138 conftest$ac_exeext conftest.$ac_ext ;; 9139 esac 9140 fi 9141 9142 9143 CFLAGS="$xorg_testset_save_CFLAGS" 9144 9145 eval supported=\$$cacheid 9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9147 printf "%s\n" "$supported" >&6; } 9148 if test "$supported" = "yes" ; then 9149 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9150 found="yes" 9151 fi 9152 fi 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 xorg_testset_save_CFLAGS="$CFLAGS" 9169 9170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9173 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9174 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9175 then : 9176 printf %s "(cached) " >&6 9177 else case e in #( 9178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179 /* end confdefs.h. */ 9180 int i; 9181 _ACEOF 9182 if ac_fn_c_try_compile "$LINENO" 9183 then : 9184 xorg_cv_cc_flag_unknown_warning_option=yes 9185 else case e in #( 9186 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9187 esac 9188 fi 9189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9190 esac 9191 fi 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9195 CFLAGS="$xorg_testset_save_CFLAGS" 9196 fi 9197 9198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9206 then : 9207 printf %s "(cached) " >&6 9208 else case e in #( 9209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9210 /* end confdefs.h. */ 9211 int i; 9212 _ACEOF 9213 if ac_fn_c_try_compile "$LINENO" 9214 then : 9215 xorg_cv_cc_flag_unused_command_line_argument=yes 9216 else case e in #( 9217 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9218 esac 9219 fi 9220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9221 esac 9222 fi 9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227 fi 9228 9229 found="no" 9230 9231 if test $found = "no" ; then 9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 fi 9235 9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9238 fi 9239 9240 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9241 9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9243 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9244 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9245 if eval test \${$cacheid+y} 9246 then : 9247 printf %s "(cached) " >&6 9248 else case e in #( 9249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250 /* end confdefs.h. */ 9251 int i; 9252 int 9253 main (void) 9254 { 9255 9256 ; 9257 return 0; 9258 } 9259 _ACEOF 9260 if ac_fn_c_try_link "$LINENO" 9261 then : 9262 eval $cacheid=yes 9263 else case e in #( 9264 e) eval $cacheid=no ;; 9265 esac 9266 fi 9267 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9268 conftest$ac_exeext conftest.$ac_ext ;; 9269 esac 9270 fi 9271 9272 9273 CFLAGS="$xorg_testset_save_CFLAGS" 9274 9275 eval supported=\$$cacheid 9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9277 printf "%s\n" "$supported" >&6; } 9278 if test "$supported" = "yes" ; then 9279 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9280 found="yes" 9281 fi 9282 fi 9283 9284 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9285 else 9286 { 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 9287 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;} 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 xorg_testset_save_CFLAGS="$CFLAGS" 9302 9303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9307 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9308 then : 9309 printf %s "(cached) " >&6 9310 else case e in #( 9311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312 /* end confdefs.h. */ 9313 int i; 9314 _ACEOF 9315 if ac_fn_c_try_compile "$LINENO" 9316 then : 9317 xorg_cv_cc_flag_unknown_warning_option=yes 9318 else case e in #( 9319 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9320 esac 9321 fi 9322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9323 esac 9324 fi 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9326 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9328 CFLAGS="$xorg_testset_save_CFLAGS" 9329 fi 9330 9331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9334 fi 9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9339 then : 9340 printf %s "(cached) " >&6 9341 else case e in #( 9342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343 /* end confdefs.h. */ 9344 int i; 9345 _ACEOF 9346 if ac_fn_c_try_compile "$LINENO" 9347 then : 9348 xorg_cv_cc_flag_unused_command_line_argument=yes 9349 else case e in #( 9350 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9351 esac 9352 fi 9353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9354 esac 9355 fi 9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360 fi 9361 9362 found="no" 9363 9364 if test $found = "no" ; then 9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 fi 9368 9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 fi 9372 9373 CFLAGS="$CFLAGS -Wimplicit" 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9376 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9377 cacheid=xorg_cv_cc_flag__Wimplicit 9378 if eval test \${$cacheid+y} 9379 then : 9380 printf %s "(cached) " >&6 9381 else case e in #( 9382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9383 /* end confdefs.h. */ 9384 int i; 9385 int 9386 main (void) 9387 { 9388 9389 ; 9390 return 0; 9391 } 9392 _ACEOF 9393 if ac_fn_c_try_link "$LINENO" 9394 then : 9395 eval $cacheid=yes 9396 else case e in #( 9397 e) eval $cacheid=no ;; 9398 esac 9399 fi 9400 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9401 conftest$ac_exeext conftest.$ac_ext ;; 9402 esac 9403 fi 9404 9405 9406 CFLAGS="$xorg_testset_save_CFLAGS" 9407 9408 eval supported=\$$cacheid 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9410 printf "%s\n" "$supported" >&6; } 9411 if test "$supported" = "yes" ; then 9412 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9413 found="yes" 9414 fi 9415 fi 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 xorg_testset_save_CFLAGS="$CFLAGS" 9432 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9437 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9438 then : 9439 printf %s "(cached) " >&6 9440 else case e in #( 9441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442 /* end confdefs.h. */ 9443 int i; 9444 _ACEOF 9445 if ac_fn_c_try_compile "$LINENO" 9446 then : 9447 xorg_cv_cc_flag_unknown_warning_option=yes 9448 else case e in #( 9449 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9450 esac 9451 fi 9452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9453 esac 9454 fi 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9456 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9458 CFLAGS="$xorg_testset_save_CFLAGS" 9459 fi 9460 9461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 fi 9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9469 then : 9470 printf %s "(cached) " >&6 9471 else case e in #( 9472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473 /* end confdefs.h. */ 9474 int i; 9475 _ACEOF 9476 if ac_fn_c_try_compile "$LINENO" 9477 then : 9478 xorg_cv_cc_flag_unused_command_line_argument=yes 9479 else case e in #( 9480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9481 esac 9482 fi 9483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9484 esac 9485 fi 9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9489 CFLAGS="$xorg_testset_save_CFLAGS" 9490 fi 9491 9492 found="no" 9493 9494 if test $found = "no" ; then 9495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9497 fi 9498 9499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9501 fi 9502 9503 CFLAGS="$CFLAGS -Wnonnull" 9504 9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9506 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9507 cacheid=xorg_cv_cc_flag__Wnonnull 9508 if eval test \${$cacheid+y} 9509 then : 9510 printf %s "(cached) " >&6 9511 else case e in #( 9512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513 /* end confdefs.h. */ 9514 int i; 9515 int 9516 main (void) 9517 { 9518 9519 ; 9520 return 0; 9521 } 9522 _ACEOF 9523 if ac_fn_c_try_link "$LINENO" 9524 then : 9525 eval $cacheid=yes 9526 else case e in #( 9527 e) eval $cacheid=no ;; 9528 esac 9529 fi 9530 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9531 conftest$ac_exeext conftest.$ac_ext ;; 9532 esac 9533 fi 9534 9535 9536 CFLAGS="$xorg_testset_save_CFLAGS" 9537 9538 eval supported=\$$cacheid 9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9540 printf "%s\n" "$supported" >&6; } 9541 if test "$supported" = "yes" ; then 9542 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9543 found="yes" 9544 fi 9545 fi 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 xorg_testset_save_CFLAGS="$CFLAGS" 9562 9563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9567 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9568 then : 9569 printf %s "(cached) " >&6 9570 else case e in #( 9571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9572 /* end confdefs.h. */ 9573 int i; 9574 _ACEOF 9575 if ac_fn_c_try_compile "$LINENO" 9576 then : 9577 xorg_cv_cc_flag_unknown_warning_option=yes 9578 else case e in #( 9579 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9580 esac 9581 fi 9582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9583 esac 9584 fi 9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9588 CFLAGS="$xorg_testset_save_CFLAGS" 9589 fi 9590 9591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 fi 9595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9599 then : 9600 printf %s "(cached) " >&6 9601 else case e in #( 9602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603 /* end confdefs.h. */ 9604 int i; 9605 _ACEOF 9606 if ac_fn_c_try_compile "$LINENO" 9607 then : 9608 xorg_cv_cc_flag_unused_command_line_argument=yes 9609 else case e in #( 9610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9611 esac 9612 fi 9613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9614 esac 9615 fi 9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9617 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9619 CFLAGS="$xorg_testset_save_CFLAGS" 9620 fi 9621 9622 found="no" 9623 9624 if test $found = "no" ; then 9625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 fi 9628 9629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9631 fi 9632 9633 CFLAGS="$CFLAGS -Winit-self" 9634 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9636 printf %s "checking if $CC supports -Winit-self... " >&6; } 9637 cacheid=xorg_cv_cc_flag__Winit_self 9638 if eval test \${$cacheid+y} 9639 then : 9640 printf %s "(cached) " >&6 9641 else case e in #( 9642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643 /* end confdefs.h. */ 9644 int i; 9645 int 9646 main (void) 9647 { 9648 9649 ; 9650 return 0; 9651 } 9652 _ACEOF 9653 if ac_fn_c_try_link "$LINENO" 9654 then : 9655 eval $cacheid=yes 9656 else case e in #( 9657 e) eval $cacheid=no ;; 9658 esac 9659 fi 9660 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9661 conftest$ac_exeext conftest.$ac_ext ;; 9662 esac 9663 fi 9664 9665 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667 9668 eval supported=\$$cacheid 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9670 printf "%s\n" "$supported" >&6; } 9671 if test "$supported" = "yes" ; then 9672 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9673 found="yes" 9674 fi 9675 fi 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 xorg_testset_save_CFLAGS="$CFLAGS" 9692 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9697 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9698 then : 9699 printf %s "(cached) " >&6 9700 else case e in #( 9701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702 /* end confdefs.h. */ 9703 int i; 9704 _ACEOF 9705 if ac_fn_c_try_compile "$LINENO" 9706 then : 9707 xorg_cv_cc_flag_unknown_warning_option=yes 9708 else case e in #( 9709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9710 esac 9711 fi 9712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9713 esac 9714 fi 9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9716 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719 fi 9720 9721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9729 then : 9730 printf %s "(cached) " >&6 9731 else case e in #( 9732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733 /* end confdefs.h. */ 9734 int i; 9735 _ACEOF 9736 if ac_fn_c_try_compile "$LINENO" 9737 then : 9738 xorg_cv_cc_flag_unused_command_line_argument=yes 9739 else case e in #( 9740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9741 esac 9742 fi 9743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9744 esac 9745 fi 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9747 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9749 CFLAGS="$xorg_testset_save_CFLAGS" 9750 fi 9751 9752 found="no" 9753 9754 if test $found = "no" ; then 9755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9757 fi 9758 9759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9761 fi 9762 9763 CFLAGS="$CFLAGS -Wmain" 9764 9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9766 printf %s "checking if $CC supports -Wmain... " >&6; } 9767 cacheid=xorg_cv_cc_flag__Wmain 9768 if eval test \${$cacheid+y} 9769 then : 9770 printf %s "(cached) " >&6 9771 else case e in #( 9772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9773 /* end confdefs.h. */ 9774 int i; 9775 int 9776 main (void) 9777 { 9778 9779 ; 9780 return 0; 9781 } 9782 _ACEOF 9783 if ac_fn_c_try_link "$LINENO" 9784 then : 9785 eval $cacheid=yes 9786 else case e in #( 9787 e) eval $cacheid=no ;; 9788 esac 9789 fi 9790 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9791 conftest$ac_exeext conftest.$ac_ext ;; 9792 esac 9793 fi 9794 9795 9796 CFLAGS="$xorg_testset_save_CFLAGS" 9797 9798 eval supported=\$$cacheid 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9800 printf "%s\n" "$supported" >&6; } 9801 if test "$supported" = "yes" ; then 9802 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9803 found="yes" 9804 fi 9805 fi 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 xorg_testset_save_CFLAGS="$CFLAGS" 9822 9823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9827 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9828 then : 9829 printf %s "(cached) " >&6 9830 else case e in #( 9831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832 /* end confdefs.h. */ 9833 int i; 9834 _ACEOF 9835 if ac_fn_c_try_compile "$LINENO" 9836 then : 9837 xorg_cv_cc_flag_unknown_warning_option=yes 9838 else case e in #( 9839 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9840 esac 9841 fi 9842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9843 esac 9844 fi 9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9848 CFLAGS="$xorg_testset_save_CFLAGS" 9849 fi 9850 9851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9854 fi 9855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9859 then : 9860 printf %s "(cached) " >&6 9861 else case e in #( 9862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863 /* end confdefs.h. */ 9864 int i; 9865 _ACEOF 9866 if ac_fn_c_try_compile "$LINENO" 9867 then : 9868 xorg_cv_cc_flag_unused_command_line_argument=yes 9869 else case e in #( 9870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9871 esac 9872 fi 9873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9874 esac 9875 fi 9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880 fi 9881 9882 found="no" 9883 9884 if test $found = "no" ; then 9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 fi 9888 9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9891 fi 9892 9893 CFLAGS="$CFLAGS -Wmissing-braces" 9894 9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9896 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9897 cacheid=xorg_cv_cc_flag__Wmissing_braces 9898 if eval test \${$cacheid+y} 9899 then : 9900 printf %s "(cached) " >&6 9901 else case e in #( 9902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9903 /* end confdefs.h. */ 9904 int i; 9905 int 9906 main (void) 9907 { 9908 9909 ; 9910 return 0; 9911 } 9912 _ACEOF 9913 if ac_fn_c_try_link "$LINENO" 9914 then : 9915 eval $cacheid=yes 9916 else case e in #( 9917 e) eval $cacheid=no ;; 9918 esac 9919 fi 9920 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9921 conftest$ac_exeext conftest.$ac_ext ;; 9922 esac 9923 fi 9924 9925 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 9928 eval supported=\$$cacheid 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9930 printf "%s\n" "$supported" >&6; } 9931 if test "$supported" = "yes" ; then 9932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9933 found="yes" 9934 fi 9935 fi 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 xorg_testset_save_CFLAGS="$CFLAGS" 9952 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9957 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9958 then : 9959 printf %s "(cached) " >&6 9960 else case e in #( 9961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962 /* end confdefs.h. */ 9963 int i; 9964 _ACEOF 9965 if ac_fn_c_try_compile "$LINENO" 9966 then : 9967 xorg_cv_cc_flag_unknown_warning_option=yes 9968 else case e in #( 9969 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9970 esac 9971 fi 9972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9973 esac 9974 fi 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9978 CFLAGS="$xorg_testset_save_CFLAGS" 9979 fi 9980 9981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 fi 9985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9989 then : 9990 printf %s "(cached) " >&6 9991 else case e in #( 9992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993 /* end confdefs.h. */ 9994 int i; 9995 _ACEOF 9996 if ac_fn_c_try_compile "$LINENO" 9997 then : 9998 xorg_cv_cc_flag_unused_command_line_argument=yes 9999 else case e in #( 10000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10001 esac 10002 fi 10003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10004 esac 10005 fi 10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10009 CFLAGS="$xorg_testset_save_CFLAGS" 10010 fi 10011 10012 found="no" 10013 10014 if test $found = "no" ; then 10015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10017 fi 10018 10019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10021 fi 10022 10023 CFLAGS="$CFLAGS -Wsequence-point" 10024 10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10026 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10027 cacheid=xorg_cv_cc_flag__Wsequence_point 10028 if eval test \${$cacheid+y} 10029 then : 10030 printf %s "(cached) " >&6 10031 else case e in #( 10032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033 /* end confdefs.h. */ 10034 int i; 10035 int 10036 main (void) 10037 { 10038 10039 ; 10040 return 0; 10041 } 10042 _ACEOF 10043 if ac_fn_c_try_link "$LINENO" 10044 then : 10045 eval $cacheid=yes 10046 else case e in #( 10047 e) eval $cacheid=no ;; 10048 esac 10049 fi 10050 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10051 conftest$ac_exeext conftest.$ac_ext ;; 10052 esac 10053 fi 10054 10055 10056 CFLAGS="$xorg_testset_save_CFLAGS" 10057 10058 eval supported=\$$cacheid 10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10060 printf "%s\n" "$supported" >&6; } 10061 if test "$supported" = "yes" ; then 10062 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10063 found="yes" 10064 fi 10065 fi 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 xorg_testset_save_CFLAGS="$CFLAGS" 10082 10083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10087 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10088 then : 10089 printf %s "(cached) " >&6 10090 else case e in #( 10091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10092 /* end confdefs.h. */ 10093 int i; 10094 _ACEOF 10095 if ac_fn_c_try_compile "$LINENO" 10096 then : 10097 xorg_cv_cc_flag_unknown_warning_option=yes 10098 else case e in #( 10099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10100 esac 10101 fi 10102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10103 esac 10104 fi 10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10108 CFLAGS="$xorg_testset_save_CFLAGS" 10109 fi 10110 10111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 fi 10115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10119 then : 10120 printf %s "(cached) " >&6 10121 else case e in #( 10122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123 /* end confdefs.h. */ 10124 int i; 10125 _ACEOF 10126 if ac_fn_c_try_compile "$LINENO" 10127 then : 10128 xorg_cv_cc_flag_unused_command_line_argument=yes 10129 else case e in #( 10130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10131 esac 10132 fi 10133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10134 esac 10135 fi 10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10139 CFLAGS="$xorg_testset_save_CFLAGS" 10140 fi 10141 10142 found="no" 10143 10144 if test $found = "no" ; then 10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 fi 10148 10149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10151 fi 10152 10153 CFLAGS="$CFLAGS -Wreturn-type" 10154 10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10156 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10157 cacheid=xorg_cv_cc_flag__Wreturn_type 10158 if eval test \${$cacheid+y} 10159 then : 10160 printf %s "(cached) " >&6 10161 else case e in #( 10162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163 /* end confdefs.h. */ 10164 int i; 10165 int 10166 main (void) 10167 { 10168 10169 ; 10170 return 0; 10171 } 10172 _ACEOF 10173 if ac_fn_c_try_link "$LINENO" 10174 then : 10175 eval $cacheid=yes 10176 else case e in #( 10177 e) eval $cacheid=no ;; 10178 esac 10179 fi 10180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10181 conftest$ac_exeext conftest.$ac_ext ;; 10182 esac 10183 fi 10184 10185 10186 CFLAGS="$xorg_testset_save_CFLAGS" 10187 10188 eval supported=\$$cacheid 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10190 printf "%s\n" "$supported" >&6; } 10191 if test "$supported" = "yes" ; then 10192 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10193 found="yes" 10194 fi 10195 fi 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 xorg_testset_save_CFLAGS="$CFLAGS" 10212 10213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10218 then : 10219 printf %s "(cached) " >&6 10220 else case e in #( 10221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222 /* end confdefs.h. */ 10223 int i; 10224 _ACEOF 10225 if ac_fn_c_try_compile "$LINENO" 10226 then : 10227 xorg_cv_cc_flag_unknown_warning_option=yes 10228 else case e in #( 10229 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10230 esac 10231 fi 10232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10233 esac 10234 fi 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10238 CFLAGS="$xorg_testset_save_CFLAGS" 10239 fi 10240 10241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 fi 10245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10249 then : 10250 printf %s "(cached) " >&6 10251 else case e in #( 10252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10253 /* end confdefs.h. */ 10254 int i; 10255 _ACEOF 10256 if ac_fn_c_try_compile "$LINENO" 10257 then : 10258 xorg_cv_cc_flag_unused_command_line_argument=yes 10259 else case e in #( 10260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10261 esac 10262 fi 10263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10264 esac 10265 fi 10266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10269 CFLAGS="$xorg_testset_save_CFLAGS" 10270 fi 10271 10272 found="no" 10273 10274 if test $found = "no" ; then 10275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 fi 10278 10279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10281 fi 10282 10283 CFLAGS="$CFLAGS -Wtrigraphs" 10284 10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10286 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10287 cacheid=xorg_cv_cc_flag__Wtrigraphs 10288 if eval test \${$cacheid+y} 10289 then : 10290 printf %s "(cached) " >&6 10291 else case e in #( 10292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293 /* end confdefs.h. */ 10294 int i; 10295 int 10296 main (void) 10297 { 10298 10299 ; 10300 return 0; 10301 } 10302 _ACEOF 10303 if ac_fn_c_try_link "$LINENO" 10304 then : 10305 eval $cacheid=yes 10306 else case e in #( 10307 e) eval $cacheid=no ;; 10308 esac 10309 fi 10310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10311 conftest$ac_exeext conftest.$ac_ext ;; 10312 esac 10313 fi 10314 10315 10316 CFLAGS="$xorg_testset_save_CFLAGS" 10317 10318 eval supported=\$$cacheid 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10320 printf "%s\n" "$supported" >&6; } 10321 if test "$supported" = "yes" ; then 10322 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10323 found="yes" 10324 fi 10325 fi 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 xorg_testset_save_CFLAGS="$CFLAGS" 10342 10343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10346 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10347 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10348 then : 10349 printf %s "(cached) " >&6 10350 else case e in #( 10351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352 /* end confdefs.h. */ 10353 int i; 10354 _ACEOF 10355 if ac_fn_c_try_compile "$LINENO" 10356 then : 10357 xorg_cv_cc_flag_unknown_warning_option=yes 10358 else case e in #( 10359 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10360 esac 10361 fi 10362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10363 esac 10364 fi 10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10366 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10368 CFLAGS="$xorg_testset_save_CFLAGS" 10369 fi 10370 10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10377 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10378 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10379 then : 10380 printf %s "(cached) " >&6 10381 else case e in #( 10382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10383 /* end confdefs.h. */ 10384 int i; 10385 _ACEOF 10386 if ac_fn_c_try_compile "$LINENO" 10387 then : 10388 xorg_cv_cc_flag_unused_command_line_argument=yes 10389 else case e in #( 10390 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10391 esac 10392 fi 10393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10394 esac 10395 fi 10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10397 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10399 CFLAGS="$xorg_testset_save_CFLAGS" 10400 fi 10401 10402 found="no" 10403 10404 if test $found = "no" ; then 10405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10407 fi 10408 10409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10411 fi 10412 10413 CFLAGS="$CFLAGS -Warray-bounds" 10414 10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10416 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10417 cacheid=xorg_cv_cc_flag__Warray_bounds 10418 if eval test \${$cacheid+y} 10419 then : 10420 printf %s "(cached) " >&6 10421 else case e in #( 10422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423 /* end confdefs.h. */ 10424 int i; 10425 int 10426 main (void) 10427 { 10428 10429 ; 10430 return 0; 10431 } 10432 _ACEOF 10433 if ac_fn_c_try_link "$LINENO" 10434 then : 10435 eval $cacheid=yes 10436 else case e in #( 10437 e) eval $cacheid=no ;; 10438 esac 10439 fi 10440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10441 conftest$ac_exeext conftest.$ac_ext ;; 10442 esac 10443 fi 10444 10445 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447 10448 eval supported=\$$cacheid 10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10450 printf "%s\n" "$supported" >&6; } 10451 if test "$supported" = "yes" ; then 10452 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10453 found="yes" 10454 fi 10455 fi 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 xorg_testset_save_CFLAGS="$CFLAGS" 10472 10473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10476 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10477 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10478 then : 10479 printf %s "(cached) " >&6 10480 else case e in #( 10481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10482 /* end confdefs.h. */ 10483 int i; 10484 _ACEOF 10485 if ac_fn_c_try_compile "$LINENO" 10486 then : 10487 xorg_cv_cc_flag_unknown_warning_option=yes 10488 else case e in #( 10489 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10490 esac 10491 fi 10492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10493 esac 10494 fi 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10498 CFLAGS="$xorg_testset_save_CFLAGS" 10499 fi 10500 10501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10504 fi 10505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10509 then : 10510 printf %s "(cached) " >&6 10511 else case e in #( 10512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513 /* end confdefs.h. */ 10514 int i; 10515 _ACEOF 10516 if ac_fn_c_try_compile "$LINENO" 10517 then : 10518 xorg_cv_cc_flag_unused_command_line_argument=yes 10519 else case e in #( 10520 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10521 esac 10522 fi 10523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10524 esac 10525 fi 10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10529 CFLAGS="$xorg_testset_save_CFLAGS" 10530 fi 10531 10532 found="no" 10533 10534 if test $found = "no" ; then 10535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10537 fi 10538 10539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10541 fi 10542 10543 CFLAGS="$CFLAGS -Wwrite-strings" 10544 10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10546 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10547 cacheid=xorg_cv_cc_flag__Wwrite_strings 10548 if eval test \${$cacheid+y} 10549 then : 10550 printf %s "(cached) " >&6 10551 else case e in #( 10552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553 /* end confdefs.h. */ 10554 int i; 10555 int 10556 main (void) 10557 { 10558 10559 ; 10560 return 0; 10561 } 10562 _ACEOF 10563 if ac_fn_c_try_link "$LINENO" 10564 then : 10565 eval $cacheid=yes 10566 else case e in #( 10567 e) eval $cacheid=no ;; 10568 esac 10569 fi 10570 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10571 conftest$ac_exeext conftest.$ac_ext ;; 10572 esac 10573 fi 10574 10575 10576 CFLAGS="$xorg_testset_save_CFLAGS" 10577 10578 eval supported=\$$cacheid 10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10580 printf "%s\n" "$supported" >&6; } 10581 if test "$supported" = "yes" ; then 10582 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10583 found="yes" 10584 fi 10585 fi 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 xorg_testset_save_CFLAGS="$CFLAGS" 10602 10603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10607 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10608 then : 10609 printf %s "(cached) " >&6 10610 else case e in #( 10611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612 /* end confdefs.h. */ 10613 int i; 10614 _ACEOF 10615 if ac_fn_c_try_compile "$LINENO" 10616 then : 10617 xorg_cv_cc_flag_unknown_warning_option=yes 10618 else case e in #( 10619 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10620 esac 10621 fi 10622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10623 esac 10624 fi 10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10628 CFLAGS="$xorg_testset_save_CFLAGS" 10629 fi 10630 10631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10634 fi 10635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10639 then : 10640 printf %s "(cached) " >&6 10641 else case e in #( 10642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10643 /* end confdefs.h. */ 10644 int i; 10645 _ACEOF 10646 if ac_fn_c_try_compile "$LINENO" 10647 then : 10648 xorg_cv_cc_flag_unused_command_line_argument=yes 10649 else case e in #( 10650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10651 esac 10652 fi 10653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10654 esac 10655 fi 10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10659 CFLAGS="$xorg_testset_save_CFLAGS" 10660 fi 10661 10662 found="no" 10663 10664 if test $found = "no" ; then 10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10667 fi 10668 10669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10671 fi 10672 10673 CFLAGS="$CFLAGS -Waddress" 10674 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10676 printf %s "checking if $CC supports -Waddress... " >&6; } 10677 cacheid=xorg_cv_cc_flag__Waddress 10678 if eval test \${$cacheid+y} 10679 then : 10680 printf %s "(cached) " >&6 10681 else case e in #( 10682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683 /* end confdefs.h. */ 10684 int i; 10685 int 10686 main (void) 10687 { 10688 10689 ; 10690 return 0; 10691 } 10692 _ACEOF 10693 if ac_fn_c_try_link "$LINENO" 10694 then : 10695 eval $cacheid=yes 10696 else case e in #( 10697 e) eval $cacheid=no ;; 10698 esac 10699 fi 10700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10701 conftest$ac_exeext conftest.$ac_ext ;; 10702 esac 10703 fi 10704 10705 10706 CFLAGS="$xorg_testset_save_CFLAGS" 10707 10708 eval supported=\$$cacheid 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10710 printf "%s\n" "$supported" >&6; } 10711 if test "$supported" = "yes" ; then 10712 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10713 found="yes" 10714 fi 10715 fi 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 xorg_testset_save_CFLAGS="$CFLAGS" 10732 10733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10737 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10738 then : 10739 printf %s "(cached) " >&6 10740 else case e in #( 10741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10742 /* end confdefs.h. */ 10743 int i; 10744 _ACEOF 10745 if ac_fn_c_try_compile "$LINENO" 10746 then : 10747 xorg_cv_cc_flag_unknown_warning_option=yes 10748 else case e in #( 10749 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10750 esac 10751 fi 10752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10753 esac 10754 fi 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10758 CFLAGS="$xorg_testset_save_CFLAGS" 10759 fi 10760 10761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764 fi 10765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10769 then : 10770 printf %s "(cached) " >&6 10771 else case e in #( 10772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773 /* end confdefs.h. */ 10774 int i; 10775 _ACEOF 10776 if ac_fn_c_try_compile "$LINENO" 10777 then : 10778 xorg_cv_cc_flag_unused_command_line_argument=yes 10779 else case e in #( 10780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10781 esac 10782 fi 10783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10784 esac 10785 fi 10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10789 CFLAGS="$xorg_testset_save_CFLAGS" 10790 fi 10791 10792 found="no" 10793 10794 if test $found = "no" ; then 10795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10797 fi 10798 10799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10801 fi 10802 10803 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10804 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10806 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10807 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10808 if eval test \${$cacheid+y} 10809 then : 10810 printf %s "(cached) " >&6 10811 else case e in #( 10812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813 /* end confdefs.h. */ 10814 int i; 10815 int 10816 main (void) 10817 { 10818 10819 ; 10820 return 0; 10821 } 10822 _ACEOF 10823 if ac_fn_c_try_link "$LINENO" 10824 then : 10825 eval $cacheid=yes 10826 else case e in #( 10827 e) eval $cacheid=no ;; 10828 esac 10829 fi 10830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10831 conftest$ac_exeext conftest.$ac_ext ;; 10832 esac 10833 fi 10834 10835 10836 CFLAGS="$xorg_testset_save_CFLAGS" 10837 10838 eval supported=\$$cacheid 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10840 printf "%s\n" "$supported" >&6; } 10841 if test "$supported" = "yes" ; then 10842 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10843 found="yes" 10844 fi 10845 fi 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 xorg_testset_save_CFLAGS="$CFLAGS" 10862 10863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10868 then : 10869 printf %s "(cached) " >&6 10870 else case e in #( 10871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872 /* end confdefs.h. */ 10873 int i; 10874 _ACEOF 10875 if ac_fn_c_try_compile "$LINENO" 10876 then : 10877 xorg_cv_cc_flag_unknown_warning_option=yes 10878 else case e in #( 10879 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10880 esac 10881 fi 10882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10883 esac 10884 fi 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10888 CFLAGS="$xorg_testset_save_CFLAGS" 10889 fi 10890 10891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10894 fi 10895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10899 then : 10900 printf %s "(cached) " >&6 10901 else case e in #( 10902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10903 /* end confdefs.h. */ 10904 int i; 10905 _ACEOF 10906 if ac_fn_c_try_compile "$LINENO" 10907 then : 10908 xorg_cv_cc_flag_unused_command_line_argument=yes 10909 else case e in #( 10910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10911 esac 10912 fi 10913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10914 esac 10915 fi 10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10919 CFLAGS="$xorg_testset_save_CFLAGS" 10920 fi 10921 10922 found="no" 10923 10924 if test $found = "no" ; then 10925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10927 fi 10928 10929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10931 fi 10932 10933 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10934 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10936 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10937 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10938 if eval test \${$cacheid+y} 10939 then : 10940 printf %s "(cached) " >&6 10941 else case e in #( 10942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943 /* end confdefs.h. */ 10944 int i; 10945 int 10946 main (void) 10947 { 10948 10949 ; 10950 return 0; 10951 } 10952 _ACEOF 10953 if ac_fn_c_try_link "$LINENO" 10954 then : 10955 eval $cacheid=yes 10956 else case e in #( 10957 e) eval $cacheid=no ;; 10958 esac 10959 fi 10960 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10961 conftest$ac_exeext conftest.$ac_ext ;; 10962 esac 10963 fi 10964 10965 10966 CFLAGS="$xorg_testset_save_CFLAGS" 10967 10968 eval supported=\$$cacheid 10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10970 printf "%s\n" "$supported" >&6; } 10971 if test "$supported" = "yes" ; then 10972 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10973 found="yes" 10974 fi 10975 fi 10976 10977 10978 fi 10979 10980 10981 10982 10983 10984 10985 10986 CWARNFLAGS="$BASE_CFLAGS" 10987 if test "x$GCC" = xyes ; then 10988 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10989 fi 10990 10991 10992 10993 10994 10995 10996 10997 10998 # Check whether --enable-strict-compilation was given. 10999 if test ${enable_strict_compilation+y} 11000 then : 11001 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11002 else case e in #( 11003 e) STRICT_COMPILE=no ;; 11004 esac 11005 fi 11006 11007 11008 11009 11010 11011 11012 STRICT_CFLAGS="" 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 xorg_testset_save_CFLAGS="$CFLAGS" 11027 11028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11032 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11033 then : 11034 printf %s "(cached) " >&6 11035 else case e in #( 11036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11037 /* end confdefs.h. */ 11038 int i; 11039 _ACEOF 11040 if ac_fn_c_try_compile "$LINENO" 11041 then : 11042 xorg_cv_cc_flag_unknown_warning_option=yes 11043 else case e in #( 11044 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11045 esac 11046 fi 11047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11048 esac 11049 fi 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11053 CFLAGS="$xorg_testset_save_CFLAGS" 11054 fi 11055 11056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11059 fi 11060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11064 then : 11065 printf %s "(cached) " >&6 11066 else case e in #( 11067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068 /* end confdefs.h. */ 11069 int i; 11070 _ACEOF 11071 if ac_fn_c_try_compile "$LINENO" 11072 then : 11073 xorg_cv_cc_flag_unused_command_line_argument=yes 11074 else case e in #( 11075 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11076 esac 11077 fi 11078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11079 esac 11080 fi 11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11084 CFLAGS="$xorg_testset_save_CFLAGS" 11085 fi 11086 11087 found="no" 11088 11089 if test $found = "no" ; then 11090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11092 fi 11093 11094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11096 fi 11097 11098 CFLAGS="$CFLAGS -pedantic" 11099 11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11101 printf %s "checking if $CC supports -pedantic... " >&6; } 11102 cacheid=xorg_cv_cc_flag__pedantic 11103 if eval test \${$cacheid+y} 11104 then : 11105 printf %s "(cached) " >&6 11106 else case e in #( 11107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11108 /* end confdefs.h. */ 11109 int i; 11110 int 11111 main (void) 11112 { 11113 11114 ; 11115 return 0; 11116 } 11117 _ACEOF 11118 if ac_fn_c_try_link "$LINENO" 11119 then : 11120 eval $cacheid=yes 11121 else case e in #( 11122 e) eval $cacheid=no ;; 11123 esac 11124 fi 11125 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11126 conftest$ac_exeext conftest.$ac_ext ;; 11127 esac 11128 fi 11129 11130 11131 CFLAGS="$xorg_testset_save_CFLAGS" 11132 11133 eval supported=\$$cacheid 11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11135 printf "%s\n" "$supported" >&6; } 11136 if test "$supported" = "yes" ; then 11137 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11138 found="yes" 11139 fi 11140 fi 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 xorg_testset_save_CFLAGS="$CFLAGS" 11157 11158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11162 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF 11170 if ac_fn_c_try_compile "$LINENO" 11171 then : 11172 xorg_cv_cc_flag_unknown_warning_option=yes 11173 else case e in #( 11174 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11175 esac 11176 fi 11177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11178 esac 11179 fi 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11183 CFLAGS="$xorg_testset_save_CFLAGS" 11184 fi 11185 11186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11189 fi 11190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11194 then : 11195 printf %s "(cached) " >&6 11196 else case e in #( 11197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198 /* end confdefs.h. */ 11199 int i; 11200 _ACEOF 11201 if ac_fn_c_try_compile "$LINENO" 11202 then : 11203 xorg_cv_cc_flag_unused_command_line_argument=yes 11204 else case e in #( 11205 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11206 esac 11207 fi 11208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11209 esac 11210 fi 11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11214 CFLAGS="$xorg_testset_save_CFLAGS" 11215 fi 11216 11217 found="no" 11218 11219 if test $found = "no" ; then 11220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11222 fi 11223 11224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11226 fi 11227 11228 CFLAGS="$CFLAGS -Werror" 11229 11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11231 printf %s "checking if $CC supports -Werror... " >&6; } 11232 cacheid=xorg_cv_cc_flag__Werror 11233 if eval test \${$cacheid+y} 11234 then : 11235 printf %s "(cached) " >&6 11236 else case e in #( 11237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11238 /* end confdefs.h. */ 11239 int i; 11240 int 11241 main (void) 11242 { 11243 11244 ; 11245 return 0; 11246 } 11247 _ACEOF 11248 if ac_fn_c_try_link "$LINENO" 11249 then : 11250 eval $cacheid=yes 11251 else case e in #( 11252 e) eval $cacheid=no ;; 11253 esac 11254 fi 11255 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11256 conftest$ac_exeext conftest.$ac_ext ;; 11257 esac 11258 fi 11259 11260 11261 CFLAGS="$xorg_testset_save_CFLAGS" 11262 11263 eval supported=\$$cacheid 11264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11265 printf "%s\n" "$supported" >&6; } 11266 if test "$supported" = "yes" ; then 11267 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11268 found="yes" 11269 fi 11270 fi 11271 11272 if test $found = "no" ; then 11273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11275 fi 11276 11277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11279 fi 11280 11281 CFLAGS="$CFLAGS -errwarn" 11282 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11284 printf %s "checking if $CC supports -errwarn... " >&6; } 11285 cacheid=xorg_cv_cc_flag__errwarn 11286 if eval test \${$cacheid+y} 11287 then : 11288 printf %s "(cached) " >&6 11289 else case e in #( 11290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11291 /* end confdefs.h. */ 11292 int i; 11293 int 11294 main (void) 11295 { 11296 11297 ; 11298 return 0; 11299 } 11300 _ACEOF 11301 if ac_fn_c_try_link "$LINENO" 11302 then : 11303 eval $cacheid=yes 11304 else case e in #( 11305 e) eval $cacheid=no ;; 11306 esac 11307 fi 11308 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11309 conftest$ac_exeext conftest.$ac_ext ;; 11310 esac 11311 fi 11312 11313 11314 CFLAGS="$xorg_testset_save_CFLAGS" 11315 11316 eval supported=\$$cacheid 11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11318 printf "%s\n" "$supported" >&6; } 11319 if test "$supported" = "yes" ; then 11320 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11321 found="yes" 11322 fi 11323 fi 11324 11325 11326 11327 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11328 # activate it with -Werror, so we add it here explicitly. 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 xorg_testset_save_CFLAGS="$CFLAGS" 11343 11344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11349 then : 11350 printf %s "(cached) " >&6 11351 else case e in #( 11352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353 /* end confdefs.h. */ 11354 int i; 11355 _ACEOF 11356 if ac_fn_c_try_compile "$LINENO" 11357 then : 11358 xorg_cv_cc_flag_unknown_warning_option=yes 11359 else case e in #( 11360 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11361 esac 11362 fi 11363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11364 esac 11365 fi 11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11369 CFLAGS="$xorg_testset_save_CFLAGS" 11370 fi 11371 11372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11375 fi 11376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11380 then : 11381 printf %s "(cached) " >&6 11382 else case e in #( 11383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11384 /* end confdefs.h. */ 11385 int i; 11386 _ACEOF 11387 if ac_fn_c_try_compile "$LINENO" 11388 then : 11389 xorg_cv_cc_flag_unused_command_line_argument=yes 11390 else case e in #( 11391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11392 esac 11393 fi 11394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11395 esac 11396 fi 11397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11400 CFLAGS="$xorg_testset_save_CFLAGS" 11401 fi 11402 11403 found="no" 11404 11405 if test $found = "no" ; then 11406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11408 fi 11409 11410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11412 fi 11413 11414 CFLAGS="$CFLAGS -Werror=attributes" 11415 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11417 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11418 cacheid=xorg_cv_cc_flag__Werror_attributes 11419 if eval test \${$cacheid+y} 11420 then : 11421 printf %s "(cached) " >&6 11422 else case e in #( 11423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11424 /* end confdefs.h. */ 11425 int i; 11426 int 11427 main (void) 11428 { 11429 11430 ; 11431 return 0; 11432 } 11433 _ACEOF 11434 if ac_fn_c_try_link "$LINENO" 11435 then : 11436 eval $cacheid=yes 11437 else case e in #( 11438 e) eval $cacheid=no ;; 11439 esac 11440 fi 11441 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11442 conftest$ac_exeext conftest.$ac_ext ;; 11443 esac 11444 fi 11445 11446 11447 CFLAGS="$xorg_testset_save_CFLAGS" 11448 11449 eval supported=\$$cacheid 11450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11451 printf "%s\n" "$supported" >&6; } 11452 if test "$supported" = "yes" ; then 11453 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11454 found="yes" 11455 fi 11456 fi 11457 11458 11459 11460 if test "x$STRICT_COMPILE" = "xyes"; then 11461 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11462 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11463 fi 11464 11465 11466 11467 11468 11469 11470 11471 11472 cat >>confdefs.h <<_ACEOF 11473 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11474 _ACEOF 11475 11476 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11477 if test "x$PVM" = "x"; then 11478 PVM="0" 11479 fi 11480 11481 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11482 11483 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11484 if test "x$PVP" = "x"; then 11485 PVP="0" 11486 fi 11487 11488 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11489 11490 11491 11492 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11493 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11494 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11495 touch \$(top_srcdir)/ChangeLog; \ 11496 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11497 11498 11499 11500 11501 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11502 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11503 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11504 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11505 touch \$(top_srcdir)/INSTALL; \ 11506 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11507 11508 11509 11510 11511 11512 11513 case $host_os in 11514 solaris*) 11515 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11516 # check for a man page file found in later versions that use 11517 # traditional section numbers instead 11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11519 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11520 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11521 then : 11522 printf %s "(cached) " >&6 11523 else case e in #( 11524 e) test "$cross_compiling" = yes && 11525 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11526 if test -r "/usr/share/man/man7/attributes.7"; then 11527 ac_cv_file__usr_share_man_man7_attributes_7=yes 11528 else 11529 ac_cv_file__usr_share_man_man7_attributes_7=no 11530 fi ;; 11531 esac 11532 fi 11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11534 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11535 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11536 then : 11537 SYSV_MAN_SECTIONS=false 11538 else case e in #( 11539 e) SYSV_MAN_SECTIONS=true ;; 11540 esac 11541 fi 11542 11543 ;; 11544 *) SYSV_MAN_SECTIONS=false ;; 11545 esac 11546 11547 if test x$APP_MAN_SUFFIX = x ; then 11548 APP_MAN_SUFFIX=1 11549 fi 11550 if test x$APP_MAN_DIR = x ; then 11551 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11552 fi 11553 11554 if test x$LIB_MAN_SUFFIX = x ; then 11555 LIB_MAN_SUFFIX=3 11556 fi 11557 if test x$LIB_MAN_DIR = x ; then 11558 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11559 fi 11560 11561 if test x$FILE_MAN_SUFFIX = x ; then 11562 case $SYSV_MAN_SECTIONS in 11563 true) FILE_MAN_SUFFIX=4 ;; 11564 *) FILE_MAN_SUFFIX=5 ;; 11565 esac 11566 fi 11567 if test x$FILE_MAN_DIR = x ; then 11568 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11569 fi 11570 11571 if test x$MISC_MAN_SUFFIX = x ; then 11572 case $SYSV_MAN_SECTIONS in 11573 true) MISC_MAN_SUFFIX=5 ;; 11574 *) MISC_MAN_SUFFIX=7 ;; 11575 esac 11576 fi 11577 if test x$MISC_MAN_DIR = x ; then 11578 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11579 fi 11580 11581 if test x$DRIVER_MAN_SUFFIX = x ; then 11582 case $SYSV_MAN_SECTIONS in 11583 true) DRIVER_MAN_SUFFIX=7 ;; 11584 *) DRIVER_MAN_SUFFIX=4 ;; 11585 esac 11586 fi 11587 if test x$DRIVER_MAN_DIR = x ; then 11588 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11589 fi 11590 11591 if test x$ADMIN_MAN_SUFFIX = x ; then 11592 case $SYSV_MAN_SECTIONS in 11593 true) ADMIN_MAN_SUFFIX=1m ;; 11594 *) ADMIN_MAN_SUFFIX=8 ;; 11595 esac 11596 fi 11597 if test x$ADMIN_MAN_DIR = x ; then 11598 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11599 fi 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 XORG_MAN_PAGE="X Version 11" 11616 11617 MAN_SUBSTS="\ 11618 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11619 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11620 -e 's|__xservername__|Xorg|g' \ 11621 -e 's|__xconfigfile__|xorg.conf|g' \ 11622 -e 's|__projectroot__|\$(prefix)|g' \ 11623 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11624 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11625 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11626 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11627 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11628 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11629 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11630 11631 11632 11633 # Check whether --enable-silent-rules was given. 11634 if test ${enable_silent_rules+y} 11635 then : 11636 enableval=$enable_silent_rules; 11637 fi 11638 11639 case $enable_silent_rules in # ((( 11640 yes) AM_DEFAULT_VERBOSITY=0;; 11641 no) AM_DEFAULT_VERBOSITY=1;; 11642 *) AM_DEFAULT_VERBOSITY=0;; 11643 esac 11644 am_make=${MAKE-make} 11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11646 printf %s "checking whether $am_make supports nested variables... " >&6; } 11647 if test ${am_cv_make_support_nested_variables+y} 11648 then : 11649 printf %s "(cached) " >&6 11650 else case e in #( 11651 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11652 BAR0=false 11653 BAR1=true 11654 V=1 11655 am__doit: 11656 @$(TRUE) 11657 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11658 am_cv_make_support_nested_variables=yes 11659 else 11660 am_cv_make_support_nested_variables=no 11661 fi ;; 11662 esac 11663 fi 11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11665 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11666 if test $am_cv_make_support_nested_variables = yes; then 11667 AM_V='$(V)' 11668 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11669 else 11670 AM_V=$AM_DEFAULT_VERBOSITY 11671 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11672 fi 11673 AM_BACKSLASH='\' 11674 11675 11676 11677 11678 # Avoid stat() failures if a file has a size that doesn't fit in 32-bits 11679 # Check whether --enable-largefile was given. 11680 if test ${enable_largefile+y} 11681 then : 11682 enableval=$enable_largefile; 11683 fi 11684 if test "$enable_largefile,$enable_year2038" != no,no 11685 then : 11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11687 printf %s "checking for $CC option to enable large file support... " >&6; } 11688 if test ${ac_cv_sys_largefile_opts+y} 11689 then : 11690 printf %s "(cached) " >&6 11691 else case e in #( 11692 e) ac_save_CC="$CC" 11693 ac_opt_found=no 11694 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11695 if test x"$ac_opt" != x"none needed" 11696 then : 11697 CC="$ac_save_CC $ac_opt" 11698 fi 11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11700 /* end confdefs.h. */ 11701 #include <sys/types.h> 11702 #ifndef FTYPE 11703 # define FTYPE off_t 11704 #endif 11705 /* Check that FTYPE can represent 2**63 - 1 correctly. 11706 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11707 since some C++ compilers masquerading as C compilers 11708 incorrectly reject 9223372036854775807. */ 11709 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11710 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11711 && LARGE_FTYPE % 2147483647 == 1) 11712 ? 1 : -1]; 11713 int 11714 main (void) 11715 { 11716 11717 ; 11718 return 0; 11719 } 11720 _ACEOF 11721 if ac_fn_c_try_compile "$LINENO" 11722 then : 11723 if test x"$ac_opt" = x"none needed" 11724 then : 11725 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11726 CC="$CC -DFTYPE=ino_t" 11727 if ac_fn_c_try_compile "$LINENO" 11728 then : 11729 11730 else case e in #( 11731 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11732 if ac_fn_c_try_compile "$LINENO" 11733 then : 11734 ac_opt='-D_FILE_OFFSET_BITS=64' 11735 fi 11736 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11737 esac 11738 fi 11739 rm -f core conftest.err conftest.$ac_objext conftest.beam 11740 fi 11741 ac_cv_sys_largefile_opts=$ac_opt 11742 ac_opt_found=yes 11743 fi 11744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11745 test $ac_opt_found = no || break 11746 done 11747 CC="$ac_save_CC" 11748 11749 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11750 esac 11751 fi 11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11753 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11754 11755 ac_have_largefile=yes 11756 case $ac_cv_sys_largefile_opts in #( 11757 "none needed") : 11758 ;; #( 11759 "supported through gnulib") : 11760 ;; #( 11761 "support not detected") : 11762 ac_have_largefile=no ;; #( 11763 "-D_FILE_OFFSET_BITS=64") : 11764 11765 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11766 ;; #( 11767 "-D_LARGE_FILES=1") : 11768 11769 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11770 ;; #( 11771 "-n32") : 11772 CC="$CC -n32" ;; #( 11773 *) : 11774 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11775 esac 11776 11777 if test "$enable_year2038" != no 11778 then : 11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11780 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11781 if test ${ac_cv_sys_year2038_opts+y} 11782 then : 11783 printf %s "(cached) " >&6 11784 else case e in #( 11785 e) ac_save_CPPFLAGS="$CPPFLAGS" 11786 ac_opt_found=no 11787 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11788 if test x"$ac_opt" != x"none needed" 11789 then : 11790 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11791 fi 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793 /* end confdefs.h. */ 11794 11795 #include <time.h> 11796 /* Check that time_t can represent 2**32 - 1 correctly. */ 11797 #define LARGE_TIME_T \\ 11798 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11799 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11800 && LARGE_TIME_T % 65537 == 0) 11801 ? 1 : -1]; 11802 11803 int 11804 main (void) 11805 { 11806 11807 ; 11808 return 0; 11809 } 11810 _ACEOF 11811 if ac_fn_c_try_compile "$LINENO" 11812 then : 11813 ac_cv_sys_year2038_opts="$ac_opt" 11814 ac_opt_found=yes 11815 fi 11816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11817 test $ac_opt_found = no || break 11818 done 11819 CPPFLAGS="$ac_save_CPPFLAGS" 11820 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11821 esac 11822 fi 11823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11824 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11825 11826 ac_have_year2038=yes 11827 case $ac_cv_sys_year2038_opts in #( 11828 "none needed") : 11829 ;; #( 11830 "support not detected") : 11831 ac_have_year2038=no ;; #( 11832 "-D_TIME_BITS=64") : 11833 11834 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11835 ;; #( 11836 "-D__MINGW_USE_VC2005_COMPAT") : 11837 11838 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11839 ;; #( 11840 "-U_USE_32_BIT_TIME_T"*) : 11841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11842 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11843 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11844 will stop working after mid-January 2038. Remove 11845 _USE_32BIT_TIME_T from the compiler flags. 11846 See 'config.log' for more details" "$LINENO" 5; } ;; #( 11847 *) : 11848 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11849 esac 11850 11851 fi 11852 11853 fi 11854 11855 # Checks for pkg-config packages 11856 11857 pkg_failed=no 11858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 11859 printf %s "checking for XPROTO... " >&6; } 11860 11861 if test -n "$XPROTO_CFLAGS"; then 11862 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 11863 elif test -n "$PKG_CONFIG"; then 11864 if test -n "$PKG_CONFIG" && \ 11865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 11866 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 11867 ac_status=$? 11868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11869 test $ac_status = 0; }; then 11870 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null` 11871 test "x$?" != "x0" && pkg_failed=yes 11872 else 11873 pkg_failed=yes 11874 fi 11875 else 11876 pkg_failed=untried 11877 fi 11878 if test -n "$XPROTO_LIBS"; then 11879 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 11880 elif test -n "$PKG_CONFIG"; then 11881 if test -n "$PKG_CONFIG" && \ 11882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 11883 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 11884 ac_status=$? 11885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11886 test $ac_status = 0; }; then 11887 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null` 11888 test "x$?" != "x0" && pkg_failed=yes 11889 else 11890 pkg_failed=yes 11891 fi 11892 else 11893 pkg_failed=untried 11894 fi 11895 11896 11897 11898 if test $pkg_failed = yes; then 11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11900 printf "%s\n" "no" >&6; } 11901 11902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11903 _pkg_short_errors_supported=yes 11904 else 11905 _pkg_short_errors_supported=no 11906 fi 11907 if test $_pkg_short_errors_supported = yes; then 11908 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1` 11909 else 11910 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1` 11911 fi 11912 # Put the nasty error message in config.log where it belongs 11913 echo "$XPROTO_PKG_ERRORS" >&5 11914 11915 as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met: 11916 11917 $XPROTO_PKG_ERRORS 11918 11919 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11920 installed software in a non-standard prefix. 11921 11922 Alternatively, you may set the environment variables XPROTO_CFLAGS 11923 and XPROTO_LIBS to avoid the need to call pkg-config. 11924 See the pkg-config man page for more details." "$LINENO" 5 11925 elif test $pkg_failed = untried; then 11926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11927 printf "%s\n" "no" >&6; } 11928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11929 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11930 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11931 is in your PATH or set the PKG_CONFIG environment variable to the full 11932 path to pkg-config. 11933 11934 Alternatively, you may set the environment variables XPROTO_CFLAGS 11935 and XPROTO_LIBS to avoid the need to call pkg-config. 11936 See the pkg-config man page for more details. 11937 11938 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11939 See 'config.log' for more details" "$LINENO" 5; } 11940 else 11941 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 11942 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 11943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11944 printf "%s\n" "yes" >&6; } 11945 11946 fi 11947 11948 # Checks for non-standard functions and fallback to libbsd if we can 11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950 /* end confdefs.h. */ 11951 11952 /* Override any GCC internal prototype to avoid an error. 11953 Use char because int might match the return type of a GCC 11954 builtin and then its argument prototype would still apply. 11955 The 'extern "C"' is for builds by C++ compilers; 11956 although this is not generally supported in C code supporting it here 11957 has little cost and some practical benefit (sr 110532). */ 11958 #ifdef __cplusplus 11959 extern "C" 11960 #endif 11961 char strlcpy (void); 11962 int 11963 main (void) 11964 { 11965 return strlcpy (); 11966 ; 11967 return 0; 11968 } 11969 _ACEOF 11970 if ac_fn_c_try_link "$LINENO" 11971 then : 11972 TRY_LIBBSD="no" 11973 else case e in #( 11974 e) TRY_LIBBSD="yes" ;; 11975 esac 11976 fi 11977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11978 conftest$ac_exeext conftest.$ac_ext 11979 if test "x$TRY_LIBBSD" = "xyes" 11980 then : 11981 11982 pkg_failed=no 11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 11984 printf %s "checking for LIBBSD... " >&6; } 11985 11986 if test -n "$LIBBSD_CFLAGS"; then 11987 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 11988 elif test -n "$PKG_CONFIG"; then 11989 if test -n "$PKG_CONFIG" && \ 11990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 11991 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 11992 ac_status=$? 11993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11994 test $ac_status = 0; }; then 11995 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 11996 test "x$?" != "x0" && pkg_failed=yes 11997 else 11998 pkg_failed=yes 11999 fi 12000 else 12001 pkg_failed=untried 12002 fi 12003 if test -n "$LIBBSD_LIBS"; then 12004 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 12005 elif test -n "$PKG_CONFIG"; then 12006 if test -n "$PKG_CONFIG" && \ 12007 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 12008 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 12009 ac_status=$? 12010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12011 test $ac_status = 0; }; then 12012 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 12013 test "x$?" != "x0" && pkg_failed=yes 12014 else 12015 pkg_failed=yes 12016 fi 12017 else 12018 pkg_failed=untried 12019 fi 12020 12021 12022 12023 if test $pkg_failed = yes; then 12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12025 printf "%s\n" "no" >&6; } 12026 12027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12028 _pkg_short_errors_supported=yes 12029 else 12030 _pkg_short_errors_supported=no 12031 fi 12032 if test $_pkg_short_errors_supported = yes; then 12033 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 12034 else 12035 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 12036 fi 12037 # Put the nasty error message in config.log where it belongs 12038 echo "$LIBBSD_PKG_ERRORS" >&5 12039 12040 : 12041 elif test $pkg_failed = untried; then 12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12043 printf "%s\n" "no" >&6; } 12044 : 12045 else 12046 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 12047 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12049 printf "%s\n" "yes" >&6; } 12050 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" ; LIBS="$LIBS $LIBBSD_LIBS" 12051 fi 12052 fi 12053 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 12054 if test "x$ac_cv_func_strlcat" = xyes 12055 then : 12056 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 12057 12058 fi 12059 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12060 if test "x$ac_cv_func_strlcpy" = xyes 12061 then : 12062 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12063 12064 fi 12065 12066 12067 ac_config_files="$ac_config_files Makefile" 12068 12069 cat >confcache <<\_ACEOF 12070 # This file is a shell script that caches the results of configure 12071 # tests run on this system so they can be shared between configure 12072 # scripts and configure runs, see configure's option --config-cache. 12073 # It is not useful on other systems. If it contains results you don't 12074 # want to keep, you may remove or edit it. 12075 # 12076 # config.status only pays attention to the cache file if you give it 12077 # the --recheck option to rerun configure. 12078 # 12079 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12080 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12081 # following values. 12082 12083 _ACEOF 12084 12085 # The following way of writing the cache mishandles newlines in values, 12086 # but we know of no workaround that is simple, portable, and efficient. 12087 # So, we kill variables containing newlines. 12088 # Ultrix sh set writes to stderr and can't be redirected directly, 12089 # and sets the high bit in the cache file unless we assign to the vars. 12090 ( 12091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12092 eval ac_val=\$$ac_var 12093 case $ac_val in #( 12094 *${as_nl}*) 12095 case $ac_var in #( 12096 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12097 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12098 esac 12099 case $ac_var in #( 12100 _ | IFS | as_nl) ;; #( 12101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12102 *) { eval $ac_var=; unset $ac_var;} ;; 12103 esac ;; 12104 esac 12105 done 12106 12107 (set) 2>&1 | 12108 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12109 *${as_nl}ac_space=\ *) 12110 # 'set' does not quote correctly, so add quotes: double-quote 12111 # substitution turns \\\\ into \\, and sed turns \\ into \. 12112 sed -n \ 12113 "s/'/'\\\\''/g; 12114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12115 ;; #( 12116 *) 12117 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12119 ;; 12120 esac | 12121 sort 12122 ) | 12123 sed ' 12124 /^ac_cv_env_/b end 12125 t clear 12126 :clear 12127 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12128 t end 12129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12130 :end' >>confcache 12131 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12132 if test -w "$cache_file"; then 12133 if test "x$cache_file" != "x/dev/null"; then 12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12135 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12136 if test ! -f "$cache_file" || test -h "$cache_file"; then 12137 cat confcache >"$cache_file" 12138 else 12139 case $cache_file in #( 12140 */* | ?:*) 12141 mv -f confcache "$cache_file"$$ && 12142 mv -f "$cache_file"$$ "$cache_file" ;; #( 12143 *) 12144 mv -f confcache "$cache_file" ;; 12145 esac 12146 fi 12147 fi 12148 else 12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12150 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12151 fi 12152 fi 12153 rm -f confcache 12154 12155 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12156 # Let make expand exec_prefix. 12157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12158 12159 DEFS=-DHAVE_CONFIG_H 12160 12161 ac_libobjs= 12162 ac_ltlibobjs= 12163 U= 12164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12165 # 1. Remove the extension, and $U if already installed. 12166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12167 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12169 # will be set to the directory where LIBOBJS objects are built. 12170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12172 done 12173 LIBOBJS=$ac_libobjs 12174 12175 LTLIBOBJS=$ac_ltlibobjs 12176 12177 12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12179 printf %s "checking that generated files are newer than configure... " >&6; } 12180 if test -n "$am_sleep_pid"; then 12181 # Hide warnings about reused PIDs. 12182 wait $am_sleep_pid 2>/dev/null 12183 fi 12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12185 printf "%s\n" "done" >&6; } 12186 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12187 as_fn_error $? "conditional \"AMDEP\" was never defined. 12188 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12189 fi 12190 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12191 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12192 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12193 fi 12194 if test -n "$EXEEXT"; then 12195 am__EXEEXT_TRUE= 12196 am__EXEEXT_FALSE='#' 12197 else 12198 am__EXEEXT_TRUE='#' 12199 am__EXEEXT_FALSE= 12200 fi 12201 12202 # Check whether --enable-year2038 was given. 12203 if test ${enable_year2038+y} 12204 then : 12205 enableval=$enable_year2038; 12206 fi 12207 12208 12209 : "${CONFIG_STATUS=./config.status}" 12210 ac_write_fail=0 12211 ac_clean_files_save=$ac_clean_files 12212 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12214 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12215 as_write_fail=0 12216 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12217 #! $SHELL 12218 # Generated by $as_me. 12219 # Run this file to recreate the current configuration. 12220 # Compiler output produced by configure, useful for debugging 12221 # configure, is in config.log if it exists. 12222 12223 debug=false 12224 ac_cs_recheck=false 12225 ac_cs_silent=false 12226 12227 SHELL=\${CONFIG_SHELL-$SHELL} 12228 export SHELL 12229 _ASEOF 12230 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12231 ## -------------------- ## 12232 ## M4sh Initialization. ## 12233 ## -------------------- ## 12234 12235 # Be more Bourne compatible 12236 DUALCASE=1; export DUALCASE # for MKS sh 12237 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12238 then : 12239 emulate sh 12240 NULLCMD=: 12241 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12242 # is contrary to our usage. Disable this feature. 12243 alias -g '${1+"$@"}'='"$@"' 12244 setopt NO_GLOB_SUBST 12245 else case e in #( 12246 e) case `(set -o) 2>/dev/null` in #( 12247 *posix*) : 12248 set -o posix ;; #( 12249 *) : 12250 ;; 12251 esac ;; 12252 esac 12253 fi 12254 12255 12256 12257 # Reset variables that may have inherited troublesome values from 12258 # the environment. 12259 12260 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12261 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12262 # side effect of setting IFS to empty, thus disabling word splitting.) 12263 # Quoting is to prevent editors from complaining about space-tab. 12264 as_nl=' 12265 ' 12266 export as_nl 12267 IFS=" "" $as_nl" 12268 12269 PS1='$ ' 12270 PS2='> ' 12271 PS4='+ ' 12272 12273 # Ensure predictable behavior from utilities with locale-dependent output. 12274 LC_ALL=C 12275 export LC_ALL 12276 LANGUAGE=C 12277 export LANGUAGE 12278 12279 # We cannot yet rely on "unset" to work, but we need these variables 12280 # to be unset--not just set to an empty or harmless value--now, to 12281 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12282 # also avoids known problems related to "unset" and subshell syntax 12283 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12284 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12285 do eval test \${$as_var+y} \ 12286 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12287 done 12288 12289 # Ensure that fds 0, 1, and 2 are open. 12290 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12291 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12292 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12293 12294 # The user is always right. 12295 if ${PATH_SEPARATOR+false} :; then 12296 PATH_SEPARATOR=: 12297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12299 PATH_SEPARATOR=';' 12300 } 12301 fi 12302 12303 12304 # Find who we are. Look in the path if we contain no directory separator. 12305 as_myself= 12306 case $0 in #(( 12307 *[\\/]* ) as_myself=$0 ;; 12308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12309 for as_dir in $PATH 12310 do 12311 IFS=$as_save_IFS 12312 case $as_dir in #((( 12313 '') as_dir=./ ;; 12314 */) ;; 12315 *) as_dir=$as_dir/ ;; 12316 esac 12317 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12318 done 12319 IFS=$as_save_IFS 12320 12321 ;; 12322 esac 12323 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12324 # in which case we are not to be found in the path. 12325 if test "x$as_myself" = x; then 12326 as_myself=$0 12327 fi 12328 if test ! -f "$as_myself"; then 12329 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12330 exit 1 12331 fi 12332 12333 12334 12335 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12336 # ---------------------------------------- 12337 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12338 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12339 # script with STATUS, using 1 if that was 0. 12340 as_fn_error () 12341 { 12342 as_status=$1; test $as_status -eq 0 && as_status=1 12343 if test "$4"; then 12344 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12346 fi 12347 printf "%s\n" "$as_me: error: $2" >&2 12348 as_fn_exit $as_status 12349 } # as_fn_error 12350 12351 12352 # as_fn_set_status STATUS 12353 # ----------------------- 12354 # Set $? to STATUS, without forking. 12355 as_fn_set_status () 12356 { 12357 return $1 12358 } # as_fn_set_status 12359 12360 # as_fn_exit STATUS 12361 # ----------------- 12362 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12363 as_fn_exit () 12364 { 12365 set +e 12366 as_fn_set_status $1 12367 exit $1 12368 } # as_fn_exit 12369 12370 # as_fn_unset VAR 12371 # --------------- 12372 # Portably unset VAR. 12373 as_fn_unset () 12374 { 12375 { eval $1=; unset $1;} 12376 } 12377 as_unset=as_fn_unset 12378 12379 # as_fn_append VAR VALUE 12380 # ---------------------- 12381 # Append the text in VALUE to the end of the definition contained in VAR. Take 12382 # advantage of any shell optimizations that allow amortized linear growth over 12383 # repeated appends, instead of the typical quadratic growth present in naive 12384 # implementations. 12385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12386 then : 12387 eval 'as_fn_append () 12388 { 12389 eval $1+=\$2 12390 }' 12391 else case e in #( 12392 e) as_fn_append () 12393 { 12394 eval $1=\$$1\$2 12395 } ;; 12396 esac 12397 fi # as_fn_append 12398 12399 # as_fn_arith ARG... 12400 # ------------------ 12401 # Perform arithmetic evaluation on the ARGs, and store the result in the 12402 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12403 # must be portable across $(()) and expr. 12404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12405 then : 12406 eval 'as_fn_arith () 12407 { 12408 as_val=$(( $* )) 12409 }' 12410 else case e in #( 12411 e) as_fn_arith () 12412 { 12413 as_val=`expr "$@" || test $? -eq 1` 12414 } ;; 12415 esac 12416 fi # as_fn_arith 12417 12418 12419 if expr a : '\(a\)' >/dev/null 2>&1 && 12420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12421 as_expr=expr 12422 else 12423 as_expr=false 12424 fi 12425 12426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12427 as_basename=basename 12428 else 12429 as_basename=false 12430 fi 12431 12432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12433 as_dirname=dirname 12434 else 12435 as_dirname=false 12436 fi 12437 12438 as_me=`$as_basename -- "$0" || 12439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12440 X"$0" : 'X\(//\)$' \| \ 12441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12442 printf "%s\n" X/"$0" | 12443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12444 s//\1/ 12445 q 12446 } 12447 /^X\/\(\/\/\)$/{ 12448 s//\1/ 12449 q 12450 } 12451 /^X\/\(\/\).*/{ 12452 s//\1/ 12453 q 12454 } 12455 s/.*/./; q'` 12456 12457 # Avoid depending upon Character Ranges. 12458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12461 as_cr_digits='0123456789' 12462 as_cr_alnum=$as_cr_Letters$as_cr_digits 12463 12464 12465 # Determine whether it's possible to make 'echo' print without a newline. 12466 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12467 # for compatibility with existing Makefiles. 12468 ECHO_C= ECHO_N= ECHO_T= 12469 case `echo -n x` in #((((( 12470 -n*) 12471 case `echo 'xy\c'` in 12472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12473 xy) ECHO_C='\c';; 12474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12475 ECHO_T=' ';; 12476 esac;; 12477 *) 12478 ECHO_N='-n';; 12479 esac 12480 12481 # For backward compatibility with old third-party macros, we provide 12482 # the shell variables $as_echo and $as_echo_n. New code should use 12483 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12484 as_echo='printf %s\n' 12485 as_echo_n='printf %s' 12486 12487 rm -f conf$$ conf$$.exe conf$$.file 12488 if test -d conf$$.dir; then 12489 rm -f conf$$.dir/conf$$.file 12490 else 12491 rm -f conf$$.dir 12492 mkdir conf$$.dir 2>/dev/null 12493 fi 12494 if (echo >conf$$.file) 2>/dev/null; then 12495 if ln -s conf$$.file conf$$ 2>/dev/null; then 12496 as_ln_s='ln -s' 12497 # ... but there are two gotchas: 12498 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12499 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12500 # In both cases, we have to default to 'cp -pR'. 12501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12502 as_ln_s='cp -pR' 12503 elif ln conf$$.file conf$$ 2>/dev/null; then 12504 as_ln_s=ln 12505 else 12506 as_ln_s='cp -pR' 12507 fi 12508 else 12509 as_ln_s='cp -pR' 12510 fi 12511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12512 rmdir conf$$.dir 2>/dev/null 12513 12514 12515 # as_fn_mkdir_p 12516 # ------------- 12517 # Create "$as_dir" as a directory, including parents if necessary. 12518 as_fn_mkdir_p () 12519 { 12520 12521 case $as_dir in #( 12522 -*) as_dir=./$as_dir;; 12523 esac 12524 test -d "$as_dir" || eval $as_mkdir_p || { 12525 as_dirs= 12526 while :; do 12527 case $as_dir in #( 12528 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12529 *) as_qdir=$as_dir;; 12530 esac 12531 as_dirs="'$as_qdir' $as_dirs" 12532 as_dir=`$as_dirname -- "$as_dir" || 12533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12534 X"$as_dir" : 'X\(//\)[^/]' \| \ 12535 X"$as_dir" : 'X\(//\)$' \| \ 12536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12537 printf "%s\n" X"$as_dir" | 12538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12539 s//\1/ 12540 q 12541 } 12542 /^X\(\/\/\)[^/].*/{ 12543 s//\1/ 12544 q 12545 } 12546 /^X\(\/\/\)$/{ 12547 s//\1/ 12548 q 12549 } 12550 /^X\(\/\).*/{ 12551 s//\1/ 12552 q 12553 } 12554 s/.*/./; q'` 12555 test -d "$as_dir" && break 12556 done 12557 test -z "$as_dirs" || eval "mkdir $as_dirs" 12558 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12559 12560 12561 } # as_fn_mkdir_p 12562 if mkdir -p . 2>/dev/null; then 12563 as_mkdir_p='mkdir -p "$as_dir"' 12564 else 12565 test -d ./-p && rmdir ./-p 12566 as_mkdir_p=false 12567 fi 12568 12569 12570 # as_fn_executable_p FILE 12571 # ----------------------- 12572 # Test if FILE is an executable regular file. 12573 as_fn_executable_p () 12574 { 12575 test -f "$1" && test -x "$1" 12576 } # as_fn_executable_p 12577 as_test_x='test -x' 12578 as_executable_p=as_fn_executable_p 12579 12580 # Sed expression to map a string onto a valid CPP name. 12581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12583 12584 # Sed expression to map a string onto a valid variable name. 12585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12587 12588 12589 exec 6>&1 12590 ## ----------------------------------- ## 12591 ## Main body of $CONFIG_STATUS script. ## 12592 ## ----------------------------------- ## 12593 _ASEOF 12594 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12595 12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12597 # Save the log message, to keep $0 and so on meaningful, and to 12598 # report actual input values of CONFIG_FILES etc. instead of their 12599 # values after options handling. 12600 ac_log=" 12601 This file was extended by lndir $as_me 1.0.5, which was 12602 generated by GNU Autoconf 2.72. Invocation command line was 12603 12604 CONFIG_FILES = $CONFIG_FILES 12605 CONFIG_HEADERS = $CONFIG_HEADERS 12606 CONFIG_LINKS = $CONFIG_LINKS 12607 CONFIG_COMMANDS = $CONFIG_COMMANDS 12608 $ $0 $@ 12609 12610 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12611 " 12612 12613 _ACEOF 12614 12615 case $ac_config_files in *" 12616 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12617 esac 12618 12619 case $ac_config_headers in *" 12620 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12621 esac 12622 12623 12624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12625 # Files that config.status was made for. 12626 config_files="$ac_config_files" 12627 config_headers="$ac_config_headers" 12628 config_commands="$ac_config_commands" 12629 12630 _ACEOF 12631 12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12633 ac_cs_usage="\ 12634 '$as_me' instantiates files and other configuration actions 12635 from templates according to the current configuration. Unless the files 12636 and actions are specified as TAGs, all are instantiated by default. 12637 12638 Usage: $0 [OPTION]... [TAG]... 12639 12640 -h, --help print this help, then exit 12641 -V, --version print version number and configuration settings, then exit 12642 --config print configuration, then exit 12643 -q, --quiet, --silent 12644 do not print progress messages 12645 -d, --debug don't remove temporary files 12646 --recheck update $as_me by reconfiguring in the same conditions 12647 --file=FILE[:TEMPLATE] 12648 instantiate the configuration file FILE 12649 --header=FILE[:TEMPLATE] 12650 instantiate the configuration header FILE 12651 12652 Configuration files: 12653 $config_files 12654 12655 Configuration headers: 12656 $config_headers 12657 12658 Configuration commands: 12659 $config_commands 12660 12661 Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>." 12662 12663 _ACEOF 12664 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12665 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12667 ac_cs_config='$ac_cs_config_escaped' 12668 ac_cs_version="\\ 12669 lndir config.status 1.0.5 12670 configured by $0, generated by GNU Autoconf 2.72, 12671 with options \\"\$ac_cs_config\\" 12672 12673 Copyright (C) 2023 Free Software Foundation, Inc. 12674 This config.status script is free software; the Free Software Foundation 12675 gives unlimited permission to copy, distribute and modify it." 12676 12677 ac_pwd='$ac_pwd' 12678 srcdir='$srcdir' 12679 INSTALL='$INSTALL' 12680 MKDIR_P='$MKDIR_P' 12681 AWK='$AWK' 12682 test -n "\$AWK" || AWK=awk 12683 _ACEOF 12684 12685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12686 # The default lists apply if the user does not specify any file. 12687 ac_need_defaults=: 12688 while test $# != 0 12689 do 12690 case $1 in 12691 --*=?*) 12692 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12694 ac_shift=: 12695 ;; 12696 --*=) 12697 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12698 ac_optarg= 12699 ac_shift=: 12700 ;; 12701 *) 12702 ac_option=$1 12703 ac_optarg=$2 12704 ac_shift=shift 12705 ;; 12706 esac 12707 12708 case $ac_option in 12709 # Handling of the options. 12710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12711 ac_cs_recheck=: ;; 12712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12713 printf "%s\n" "$ac_cs_version"; exit ;; 12714 --config | --confi | --conf | --con | --co | --c ) 12715 printf "%s\n" "$ac_cs_config"; exit ;; 12716 --debug | --debu | --deb | --de | --d | -d ) 12717 debug=: ;; 12718 --file | --fil | --fi | --f ) 12719 $ac_shift 12720 case $ac_optarg in 12721 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12722 '') as_fn_error $? "missing file argument" ;; 12723 esac 12724 as_fn_append CONFIG_FILES " '$ac_optarg'" 12725 ac_need_defaults=false;; 12726 --header | --heade | --head | --hea ) 12727 $ac_shift 12728 case $ac_optarg in 12729 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12730 esac 12731 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12732 ac_need_defaults=false;; 12733 --he | --h) 12734 # Conflict between --help and --header 12735 as_fn_error $? "ambiguous option: '$1' 12736 Try '$0 --help' for more information.";; 12737 --help | --hel | -h ) 12738 printf "%s\n" "$ac_cs_usage"; exit ;; 12739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12740 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12741 ac_cs_silent=: ;; 12742 12743 # This is an error. 12744 -*) as_fn_error $? "unrecognized option: '$1' 12745 Try '$0 --help' for more information." ;; 12746 12747 *) as_fn_append ac_config_targets " $1" 12748 ac_need_defaults=false ;; 12749 12750 esac 12751 shift 12752 done 12753 12754 ac_configure_extra_args= 12755 12756 if $ac_cs_silent; then 12757 exec 6>/dev/null 12758 ac_configure_extra_args="$ac_configure_extra_args --silent" 12759 fi 12760 12761 _ACEOF 12762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12763 if \$ac_cs_recheck; then 12764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12765 shift 12766 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12767 CONFIG_SHELL='$SHELL' 12768 export CONFIG_SHELL 12769 exec "\$@" 12770 fi 12771 12772 _ACEOF 12773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12774 exec 5>>config.log 12775 { 12776 echo 12777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12778 ## Running $as_me. ## 12779 _ASBOX 12780 printf "%s\n" "$ac_log" 12781 } >&5 12782 12783 _ACEOF 12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12785 # 12786 # INIT-COMMANDS 12787 # 12788 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12789 12790 _ACEOF 12791 12792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12793 12794 # Handling of arguments. 12795 for ac_config_target in $ac_config_targets 12796 do 12797 case $ac_config_target in 12798 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12799 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12800 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12801 12802 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12803 esac 12804 done 12805 12806 12807 # If the user did not use the arguments to specify the items to instantiate, 12808 # then the envvar interface is used. Set only those that are not. 12809 # We use the long form for the default assignment because of an extremely 12810 # bizarre bug on SunOS 4.1.3. 12811 if $ac_need_defaults; then 12812 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12813 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12814 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12815 fi 12816 12817 # Have a temporary directory for convenience. Make it in the build tree 12818 # simply because there is no reason against having it here, and in addition, 12819 # creating and moving files from /tmp can sometimes cause problems. 12820 # Hook for its removal unless debugging. 12821 # Note that there is a small window in which the directory will not be cleaned: 12822 # after its creation but before its name has been assigned to '$tmp'. 12823 $debug || 12824 { 12825 tmp= ac_tmp= 12826 trap 'exit_status=$? 12827 : "${ac_tmp:=$tmp}" 12828 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12829 ' 0 12830 trap 'as_fn_exit 1' 1 2 13 15 12831 } 12832 # Create a (secure) tmp directory for tmp files. 12833 12834 { 12835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12836 test -d "$tmp" 12837 } || 12838 { 12839 tmp=./conf$$-$RANDOM 12840 (umask 077 && mkdir "$tmp") 12841 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12842 ac_tmp=$tmp 12843 12844 # Set up the scripts for CONFIG_FILES section. 12845 # No need to generate them if there are no CONFIG_FILES. 12846 # This happens for instance with './config.status config.h'. 12847 if test -n "$CONFIG_FILES"; then 12848 12849 12850 ac_cr=`echo X | tr X '\015'` 12851 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12852 # But we know of no other shell where ac_cr would be empty at this 12853 # point, so we can use a bashism as a fallback. 12854 if test "x$ac_cr" = x; then 12855 eval ac_cr=\$\'\\r\' 12856 fi 12857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12859 ac_cs_awk_cr='\\r' 12860 else 12861 ac_cs_awk_cr=$ac_cr 12862 fi 12863 12864 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12865 _ACEOF 12866 12867 12868 { 12869 echo "cat >conf$$subs.awk <<_ACEOF" && 12870 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12871 echo "_ACEOF" 12872 } >conf$$subs.sh || 12873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12875 ac_delim='%!_!# ' 12876 for ac_last_try in false false false false false :; do 12877 . ./conf$$subs.sh || 12878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12879 12880 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12881 if test $ac_delim_n = $ac_delim_num; then 12882 break 12883 elif $ac_last_try; then 12884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12885 else 12886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12887 fi 12888 done 12889 rm -f conf$$subs.sh 12890 12891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12892 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12893 _ACEOF 12894 sed -n ' 12895 h 12896 s/^/S["/; s/!.*/"]=/ 12897 p 12898 g 12899 s/^[^!]*!// 12900 :repl 12901 t repl 12902 s/'"$ac_delim"'$// 12903 t delim 12904 :nl 12905 h 12906 s/\(.\{148\}\)..*/\1/ 12907 t more1 12908 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12909 p 12910 n 12911 b repl 12912 :more1 12913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12914 p 12915 g 12916 s/.\{148\}// 12917 t nl 12918 :delim 12919 h 12920 s/\(.\{148\}\)..*/\1/ 12921 t more2 12922 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12923 p 12924 b 12925 :more2 12926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12927 p 12928 g 12929 s/.\{148\}// 12930 t delim 12931 ' <conf$$subs.awk | sed ' 12932 /^[^""]/{ 12933 N 12934 s/\n// 12935 } 12936 ' >>$CONFIG_STATUS || ac_write_fail=1 12937 rm -f conf$$subs.awk 12938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12939 _ACAWK 12940 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12941 for (key in S) S_is_set[key] = 1 12942 FS = "" 12943 12944 } 12945 { 12946 line = $ 0 12947 nfields = split(line, field, "@") 12948 substed = 0 12949 len = length(field[1]) 12950 for (i = 2; i < nfields; i++) { 12951 key = field[i] 12952 keylen = length(key) 12953 if (S_is_set[key]) { 12954 value = S[key] 12955 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12956 len += length(value) + length(field[++i]) 12957 substed = 1 12958 } else 12959 len += 1 + keylen 12960 } 12961 12962 print line 12963 } 12964 12965 _ACAWK 12966 _ACEOF 12967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12968 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12969 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12970 else 12971 cat 12972 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12973 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12974 _ACEOF 12975 12976 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12977 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12978 # trailing colons and then remove the whole line if VPATH becomes empty 12979 # (actually we leave an empty line to preserve line numbers). 12980 if test "x$srcdir" = x.; then 12981 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12982 h 12983 s/// 12984 s/^/:/ 12985 s/[ ]*$/:/ 12986 s/:\$(srcdir):/:/g 12987 s/:\${srcdir}:/:/g 12988 s/:@srcdir@:/:/g 12989 s/^:*// 12990 s/:*$// 12991 x 12992 s/\(=[ ]*\).*/\1/ 12993 G 12994 s/\n// 12995 s/^[^=]*=[ ]*$// 12996 }' 12997 fi 12998 12999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13000 fi # test -n "$CONFIG_FILES" 13001 13002 # Set up the scripts for CONFIG_HEADERS section. 13003 # No need to generate them if there are no CONFIG_HEADERS. 13004 # This happens for instance with './config.status Makefile'. 13005 if test -n "$CONFIG_HEADERS"; then 13006 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13007 BEGIN { 13008 _ACEOF 13009 13010 # Transform confdefs.h into an awk script 'defines.awk', embedded as 13011 # here-document in config.status, that substitutes the proper values into 13012 # config.h.in to produce config.h. 13013 13014 # Create a delimiter string that does not exist in confdefs.h, to ease 13015 # handling of long lines. 13016 ac_delim='%!_!# ' 13017 for ac_last_try in false false :; do 13018 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13019 if test -z "$ac_tt"; then 13020 break 13021 elif $ac_last_try; then 13022 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13023 else 13024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13025 fi 13026 done 13027 13028 # For the awk script, D is an array of macro values keyed by name, 13029 # likewise P contains macro parameters if any. Preserve backslash 13030 # newline sequences. 13031 13032 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13033 sed -n ' 13034 s/.\{148\}/&'"$ac_delim"'/g 13035 t rset 13036 :rset 13037 s/^[ ]*#[ ]*define[ ][ ]*/ / 13038 t def 13039 d 13040 :def 13041 s/\\$// 13042 t bsnl 13043 s/["\\]/\\&/g 13044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13045 D["\1"]=" \3"/p 13046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13047 d 13048 :bsnl 13049 s/["\\]/\\&/g 13050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13051 D["\1"]=" \3\\\\\\n"\\/p 13052 t cont 13053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13054 t cont 13055 d 13056 :cont 13057 n 13058 s/.\{148\}/&'"$ac_delim"'/g 13059 t clear 13060 :clear 13061 s/\\$// 13062 t bsnlc 13063 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13064 d 13065 :bsnlc 13066 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13067 b cont 13068 ' <confdefs.h | sed ' 13069 s/'"$ac_delim"'/"\\\ 13070 "/g' >>$CONFIG_STATUS || ac_write_fail=1 13071 13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13073 for (key in D) D_is_set[key] = 1 13074 FS = "" 13075 } 13076 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13077 line = \$ 0 13078 split(line, arg, " ") 13079 if (arg[1] == "#") { 13080 defundef = arg[2] 13081 mac1 = arg[3] 13082 } else { 13083 defundef = substr(arg[1], 2) 13084 mac1 = arg[2] 13085 } 13086 split(mac1, mac2, "(") #) 13087 macro = mac2[1] 13088 prefix = substr(line, 1, index(line, defundef) - 1) 13089 if (D_is_set[macro]) { 13090 # Preserve the white space surrounding the "#". 13091 print prefix "define", macro P[macro] D[macro] 13092 next 13093 } else { 13094 # Replace #undef with comments. This is necessary, for example, 13095 # in the case of _POSIX_SOURCE, which is predefined and required 13096 # on some systems where configure will not decide to define it. 13097 if (defundef == "undef") { 13098 print "/*", prefix defundef, macro, "*/" 13099 next 13100 } 13101 } 13102 } 13103 { print } 13104 _ACAWK 13105 _ACEOF 13106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13107 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13108 fi # test -n "$CONFIG_HEADERS" 13109 13110 13111 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13112 shift 13113 for ac_tag 13114 do 13115 case $ac_tag in 13116 :[FHLC]) ac_mode=$ac_tag; continue;; 13117 esac 13118 case $ac_mode$ac_tag in 13119 :[FHL]*:*);; 13120 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13121 :[FH]-) ac_tag=-:-;; 13122 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13123 esac 13124 ac_save_IFS=$IFS 13125 IFS=: 13126 set x $ac_tag 13127 IFS=$ac_save_IFS 13128 shift 13129 ac_file=$1 13130 shift 13131 13132 case $ac_mode in 13133 :L) ac_source=$1;; 13134 :[FH]) 13135 ac_file_inputs= 13136 for ac_f 13137 do 13138 case $ac_f in 13139 -) ac_f="$ac_tmp/stdin";; 13140 *) # Look for the file first in the build tree, then in the source tree 13141 # (if the path is not absolute). The absolute path cannot be DOS-style, 13142 # because $ac_f cannot contain ':'. 13143 test -f "$ac_f" || 13144 case $ac_f in 13145 [\\/$]*) false;; 13146 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13147 esac || 13148 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13149 esac 13150 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13151 as_fn_append ac_file_inputs " '$ac_f'" 13152 done 13153 13154 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13155 # use $as_me), people would be surprised to read: 13156 # /* config.h. Generated by config.status. */ 13157 configure_input='Generated from '` 13158 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13159 `' by configure.' 13160 if test x"$ac_file" != x-; then 13161 configure_input="$ac_file. $configure_input" 13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13163 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13164 fi 13165 # Neutralize special characters interpreted by sed in replacement strings. 13166 case $configure_input in #( 13167 *\&* | *\|* | *\\* ) 13168 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13169 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13170 *) ac_sed_conf_input=$configure_input;; 13171 esac 13172 13173 case $ac_tag in 13174 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13176 esac 13177 ;; 13178 esac 13179 13180 ac_dir=`$as_dirname -- "$ac_file" || 13181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13182 X"$ac_file" : 'X\(//\)[^/]' \| \ 13183 X"$ac_file" : 'X\(//\)$' \| \ 13184 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13185 printf "%s\n" X"$ac_file" | 13186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13187 s//\1/ 13188 q 13189 } 13190 /^X\(\/\/\)[^/].*/{ 13191 s//\1/ 13192 q 13193 } 13194 /^X\(\/\/\)$/{ 13195 s//\1/ 13196 q 13197 } 13198 /^X\(\/\).*/{ 13199 s//\1/ 13200 q 13201 } 13202 s/.*/./; q'` 13203 as_dir="$ac_dir"; as_fn_mkdir_p 13204 ac_builddir=. 13205 13206 case "$ac_dir" in 13207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13208 *) 13209 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13210 # A ".." for each directory in $ac_dir_suffix. 13211 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13212 case $ac_top_builddir_sub in 13213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13215 esac ;; 13216 esac 13217 ac_abs_top_builddir=$ac_pwd 13218 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13219 # for backward compatibility: 13220 ac_top_builddir=$ac_top_build_prefix 13221 13222 case $srcdir in 13223 .) # We are building in place. 13224 ac_srcdir=. 13225 ac_top_srcdir=$ac_top_builddir_sub 13226 ac_abs_top_srcdir=$ac_pwd ;; 13227 [\\/]* | ?:[\\/]* ) # Absolute name. 13228 ac_srcdir=$srcdir$ac_dir_suffix; 13229 ac_top_srcdir=$srcdir 13230 ac_abs_top_srcdir=$srcdir ;; 13231 *) # Relative name. 13232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13233 ac_top_srcdir=$ac_top_build_prefix$srcdir 13234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13235 esac 13236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13237 13238 13239 case $ac_mode in 13240 :F) 13241 # 13242 # CONFIG_FILE 13243 # 13244 13245 case $INSTALL in 13246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13248 esac 13249 ac_MKDIR_P=$MKDIR_P 13250 case $MKDIR_P in 13251 [\\/$]* | ?:[\\/]* ) ;; 13252 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13253 esac 13254 _ACEOF 13255 13256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13257 # If the template does not know about datarootdir, expand it. 13258 # FIXME: This hack should be removed a few years after 2.60. 13259 ac_datarootdir_hack=; ac_datarootdir_seen= 13260 ac_sed_dataroot=' 13261 /datarootdir/ { 13262 p 13263 q 13264 } 13265 /@datadir@/p 13266 /@docdir@/p 13267 /@infodir@/p 13268 /@localedir@/p 13269 /@mandir@/p' 13270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13271 *datarootdir*) ac_datarootdir_seen=yes;; 13272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13274 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13275 _ACEOF 13276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13277 ac_datarootdir_hack=' 13278 s&@datadir@&$datadir&g 13279 s&@docdir@&$docdir&g 13280 s&@infodir@&$infodir&g 13281 s&@localedir@&$localedir&g 13282 s&@mandir@&$mandir&g 13283 s&\\\${datarootdir}&$datarootdir&g' ;; 13284 esac 13285 _ACEOF 13286 13287 # Neutralize VPATH when '$srcdir' = '.'. 13288 # Shell code in configure.ac might set extrasub. 13289 # FIXME: do we really want to maintain this feature? 13290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13291 ac_sed_extra="$ac_vpsub 13292 $extrasub 13293 _ACEOF 13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13295 :t 13296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13297 s|@configure_input@|$ac_sed_conf_input|;t t 13298 s&@top_builddir@&$ac_top_builddir_sub&;t t 13299 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13300 s&@srcdir@&$ac_srcdir&;t t 13301 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13302 s&@top_srcdir@&$ac_top_srcdir&;t t 13303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13304 s&@builddir@&$ac_builddir&;t t 13305 s&@abs_builddir@&$ac_abs_builddir&;t t 13306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13307 s&@INSTALL@&$ac_INSTALL&;t t 13308 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13309 $ac_datarootdir_hack 13310 " 13311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13312 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13313 13314 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13315 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13317 "$ac_tmp/out"`; test -z "$ac_out"; } && 13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13319 which seems to be undefined. Please make sure it is defined" >&5 13320 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13321 which seems to be undefined. Please make sure it is defined" >&2;} 13322 13323 rm -f "$ac_tmp/stdin" 13324 case $ac_file in 13325 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13326 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13327 esac \ 13328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13329 ;; 13330 :H) 13331 # 13332 # CONFIG_HEADER 13333 # 13334 if test x"$ac_file" != x-; then 13335 { 13336 printf "%s\n" "/* $configure_input */" >&1 \ 13337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13338 } >"$ac_tmp/config.h" \ 13339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13340 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13342 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13343 else 13344 rm -f "$ac_file" 13345 mv "$ac_tmp/config.h" "$ac_file" \ 13346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13347 fi 13348 else 13349 printf "%s\n" "/* $configure_input */" >&1 \ 13350 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13351 || as_fn_error $? "could not create -" "$LINENO" 5 13352 fi 13353 # Compute "$ac_file"'s index in $config_headers. 13354 _am_arg="$ac_file" 13355 _am_stamp_count=1 13356 for _am_header in $config_headers :; do 13357 case $_am_header in 13358 $_am_arg | $_am_arg:* ) 13359 break ;; 13360 * ) 13361 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13362 esac 13363 done 13364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13366 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13367 X"$_am_arg" : 'X\(//\)$' \| \ 13368 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13369 printf "%s\n" X"$_am_arg" | 13370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13371 s//\1/ 13372 q 13373 } 13374 /^X\(\/\/\)[^/].*/{ 13375 s//\1/ 13376 q 13377 } 13378 /^X\(\/\/\)$/{ 13379 s//\1/ 13380 q 13381 } 13382 /^X\(\/\).*/{ 13383 s//\1/ 13384 q 13385 } 13386 s/.*/./; q'`/stamp-h$_am_stamp_count 13387 ;; 13388 13389 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13390 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13391 ;; 13392 esac 13393 13394 13395 case $ac_file$ac_mode in 13396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13397 # Older Autoconf quotes --file arguments for eval, but not when files 13398 # are listed without --file. Let's play safe and only enable the eval 13399 # if we detect the quoting. 13400 # TODO: see whether this extra hack can be removed once we start 13401 # requiring Autoconf 2.70 or later. 13402 case $CONFIG_FILES in #( 13403 *\'*) : 13404 eval set x "$CONFIG_FILES" ;; #( 13405 *) : 13406 set x $CONFIG_FILES ;; #( 13407 *) : 13408 ;; 13409 esac 13410 shift 13411 # Used to flag and report bootstrapping failures. 13412 am_rc=0 13413 for am_mf 13414 do 13415 # Strip MF so we end up with the name of the file. 13416 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13417 # Check whether this is an Automake generated Makefile which includes 13418 # dependency-tracking related rules and includes. 13419 # Grep'ing the whole file directly is not great: AIX grep has a line 13420 # limit of 2048, but all sed's we know have understand at least 4000. 13421 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13422 || continue 13423 am_dirpart=`$as_dirname -- "$am_mf" || 13424 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13425 X"$am_mf" : 'X\(//\)[^/]' \| \ 13426 X"$am_mf" : 'X\(//\)$' \| \ 13427 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13428 printf "%s\n" X"$am_mf" | 13429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13430 s//\1/ 13431 q 13432 } 13433 /^X\(\/\/\)[^/].*/{ 13434 s//\1/ 13435 q 13436 } 13437 /^X\(\/\/\)$/{ 13438 s//\1/ 13439 q 13440 } 13441 /^X\(\/\).*/{ 13442 s//\1/ 13443 q 13444 } 13445 s/.*/./; q'` 13446 am_filepart=`$as_basename -- "$am_mf" || 13447 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13448 X"$am_mf" : 'X\(//\)$' \| \ 13449 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13450 printf "%s\n" X/"$am_mf" | 13451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13452 s//\1/ 13453 q 13454 } 13455 /^X\/\(\/\/\)$/{ 13456 s//\1/ 13457 q 13458 } 13459 /^X\/\(\/\).*/{ 13460 s//\1/ 13461 q 13462 } 13463 s/.*/./; q'` 13464 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13465 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13466 | $MAKE -f - am--depfiles" >&5 13467 (cd "$am_dirpart" \ 13468 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13469 | $MAKE -f - am--depfiles) >&5 2>&5 13470 ac_status=$? 13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13472 (exit $ac_status); } || am_rc=$? 13473 done 13474 if test $am_rc -ne 0; then 13475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13476 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13477 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13478 for automatic dependency tracking. If GNU make was not used, consider 13479 re-running the configure script with MAKE=\"gmake\" (or whatever is 13480 necessary). You can also try re-running configure with the 13481 '--disable-dependency-tracking' option to at least be able to build 13482 the package (albeit without support for automatic dependency tracking). 13483 See 'config.log' for more details" "$LINENO" 5; } 13484 fi 13485 { am_dirpart=; unset am_dirpart;} 13486 { am_filepart=; unset am_filepart;} 13487 { am_mf=; unset am_mf;} 13488 { am_rc=; unset am_rc;} 13489 rm -f conftest-deps.mk 13490 } 13491 ;; 13492 13493 esac 13494 done # for ac_tag 13495 13496 13497 as_fn_exit 0 13498 _ACEOF 13499 ac_clean_files=$ac_clean_files_save 13500 13501 test $ac_write_fail = 0 || 13502 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13503 13504 13505 # configure is writing to config.log, and then calls config.status. 13506 # config.status does its own redirection, appending to config.log. 13507 # Unfortunately, on DOS this fails, as config.log is still kept open 13508 # by configure, so config.status won't be able to write to it; its 13509 # output is simply discarded. So we exec the FD to /dev/null, 13510 # effectively closing config.log, so it can be properly (re)opened and 13511 # appended to by config.status. When coming back to configure, we 13512 # need to make the FD available again. 13513 if test "$no_create" != yes; then 13514 ac_cs_success=: 13515 ac_config_status_args= 13516 test "$silent" = yes && 13517 ac_config_status_args="$ac_config_status_args --quiet" 13518 exec 5>/dev/null 13519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13520 exec 5>>config.log 13521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13522 # would make configure fail if this is the last instruction. 13523 $ac_cs_success || as_fn_exit 1 13524 fi 13525 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13527 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13528 fi 13529 13530 13531