1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xmag 1.0.8. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 $0: https://gitlab.freedesktop.org/xorg/app/xmag/-/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='xmag' 607 PACKAGE_TARNAME='xmag' 608 PACKAGE_VERSION='1.0.8' 609 PACKAGE_STRING='xmag 1.0.8' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmag/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 appdefaultdir 651 XMAG_LIBS 652 XMAG_CFLAGS 653 MAN_SUBSTS 654 XORG_MAN_PAGE 655 ADMIN_MAN_DIR 656 DRIVER_MAN_DIR 657 MISC_MAN_DIR 658 FILE_MAN_DIR 659 LIB_MAN_DIR 660 APP_MAN_DIR 661 ADMIN_MAN_SUFFIX 662 DRIVER_MAN_SUFFIX 663 MISC_MAN_SUFFIX 664 FILE_MAN_SUFFIX 665 LIB_MAN_SUFFIX 666 APP_MAN_SUFFIX 667 SED 668 host_os 669 host_vendor 670 host_cpu 671 host 672 build_os 673 build_vendor 674 build_cpu 675 build 676 INSTALL_CMD 677 PKG_CONFIG_LIBDIR 678 PKG_CONFIG_PATH 679 PKG_CONFIG 680 CHANGELOG_CMD 681 STRICT_CFLAGS 682 CWARNFLAGS 683 BASE_CFLAGS 684 am__fastdepCC_FALSE 685 am__fastdepCC_TRUE 686 CCDEPMODE 687 am__nodep 688 AMDEPBACKSLASH 689 AMDEP_FALSE 690 AMDEP_TRUE 691 am__include 692 DEPDIR 693 OBJEXT 694 EXEEXT 695 ac_ct_CC 696 CPPFLAGS 697 LDFLAGS 698 CFLAGS 699 CC 700 am__xargs_n 701 am__rm_f_notfound 702 AM_BACKSLASH 703 AM_DEFAULT_VERBOSITY 704 AM_DEFAULT_V 705 AM_V 706 CSCOPE 707 ETAGS 708 CTAGS 709 am__untar 710 am__tar 711 AMTAR 712 am__leading_dot 713 SET_MAKE 714 AWK 715 mkdir_p 716 MKDIR_P 717 INSTALL_STRIP_PROGRAM 718 STRIP 719 install_sh 720 MAKEINFO 721 AUTOHEADER 722 AUTOMAKE 723 AUTOCONF 724 ACLOCAL 725 VERSION 726 PACKAGE 727 CYGPATH_W 728 am__isrc 729 INSTALL_DATA 730 INSTALL_SCRIPT 731 INSTALL_PROGRAM 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_silent_rules 776 enable_dependency_tracking 777 enable_selective_werror 778 enable_strict_compilation 779 with_appdefaultdir 780 ' 781 ac_precious_vars='build_alias 782 host_alias 783 target_alias 784 CC 785 CFLAGS 786 LDFLAGS 787 LIBS 788 CPPFLAGS 789 PKG_CONFIG 790 PKG_CONFIG_PATH 791 PKG_CONFIG_LIBDIR 792 XMAG_CFLAGS 793 XMAG_LIBS' 794 795 796 # Initialize some variables set by options. 797 ac_init_help= 798 ac_init_version=false 799 ac_unrecognized_opts= 800 ac_unrecognized_sep= 801 # The variables have the same names as the options, with 802 # dashes changed to underlines. 803 cache_file=/dev/null 804 exec_prefix=NONE 805 no_create= 806 no_recursion= 807 prefix=NONE 808 program_prefix=NONE 809 program_suffix=NONE 810 program_transform_name=s,x,x, 811 silent= 812 site= 813 srcdir= 814 verbose= 815 x_includes=NONE 816 x_libraries=NONE 817 818 # Installation directory options. 819 # These are left unexpanded so users can "make install exec_prefix=/foo" 820 # and all the variables that are supposed to be based on exec_prefix 821 # by default will actually change. 822 # Use braces instead of parens because sh, perl, etc. also accept them. 823 # (The list follows the same order as the GNU Coding Standards.) 824 bindir='${exec_prefix}/bin' 825 sbindir='${exec_prefix}/sbin' 826 libexecdir='${exec_prefix}/libexec' 827 datarootdir='${prefix}/share' 828 datadir='${datarootdir}' 829 sysconfdir='${prefix}/etc' 830 sharedstatedir='${prefix}/com' 831 localstatedir='${prefix}/var' 832 runstatedir='${localstatedir}/run' 833 includedir='${prefix}/include' 834 oldincludedir='/usr/include' 835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836 infodir='${datarootdir}/info' 837 htmldir='${docdir}' 838 dvidir='${docdir}' 839 pdfdir='${docdir}' 840 psdir='${docdir}' 841 libdir='${exec_prefix}/lib' 842 localedir='${datarootdir}/locale' 843 mandir='${datarootdir}/man' 844 845 ac_prev= 846 ac_dashdash= 847 for ac_option 848 do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: '$ac_useropt'" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907 "enable_$ac_useropt" 908 "*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: '$ac_useropt'" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933 "enable_$ac_useropt" 934 "*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: '$ac_useropt'" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146 "with_$ac_useropt" 1147 "*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: '$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162 "with_$ac_useropt" 1163 "*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: '$ac_option' 1188 Try '$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210 done 1211 1212 if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215 fi 1216 1217 if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223 fi 1224 1225 # Check all directory arguments for consistency. 1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230 do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244 done 1245 1246 # There might be people who depend on the old broken behavior: '$host' 1247 # used to hold the argument of --host etc. 1248 # FIXME: To remove some day. 1249 build=$build_alias 1250 host=$host_alias 1251 target=$target_alias 1252 1253 # FIXME: To remove some day. 1254 if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260 fi 1261 1262 ac_tool_prefix= 1263 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265 test "$silent" = yes && exec 6>/dev/null 1266 1267 1268 ac_pwd=`pwd` && test -n "$ac_pwd" && 1269 ac_ls_di=`ls -di .` && 1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276 # Find the source files, if location was not specified. 1277 if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285 printf "%s\n" X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307 else 1308 ac_srcdir_defaulted=no 1309 fi 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313 fi 1314 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1315 ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318 # When building in place, set srcdir=. 1319 if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321 fi 1322 # Remove unnecessary trailing slashes from srcdir. 1323 # Double slashes in file names in object file debugging info 1324 # mess up M-x gdb in Emacs. 1325 case $srcdir in 1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327 esac 1328 for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333 done 1334 1335 # 1336 # Report the --help message. 1337 # 1338 if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342 'configure' configures xmag 1.0.8 to adapt to many kinds of systems. 1343 1344 Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347 VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349 Defaults for the options are specified in brackets. 1350 1351 Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print 'checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for '--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1361 1362 Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368 By default, 'make install' will install all the files in 1369 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1370 an installation prefix other than '$ac_default_prefix' using '--prefix', 1371 for instance '--prefix=\$HOME'. 1372 1373 For better control, use the options below. 1374 1375 Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396 _ACEOF 1397 1398 cat <<\_ACEOF 1399 1400 Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405 System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408 _ACEOF 1409 fi 1410 1411 if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of xmag 1.0.8:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417 Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --disable-selective-werror 1428 Turn off selective compiler errors. (default: 1429 enabled) 1430 --enable-strict-compilation 1431 Enable all warnings from compiler and make them 1432 errors (default: disabled) 1433 1434 Optional Packages: 1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1437 --with-appdefaultdir=<pathname> 1438 specify directory for app-defaults files (default is 1439 autodetected) 1440 1441 Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 PKG_CONFIG path to pkg-config utility 1450 PKG_CONFIG_PATH 1451 directories to add to pkg-config's search path 1452 PKG_CONFIG_LIBDIR 1453 path overriding pkg-config's built-in search path 1454 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config 1455 XMAG_LIBS linker flags for XMAG, overriding pkg-config 1456 1457 Use these variables to override the choices made by 'configure' or to help 1458 it to find libraries and programs with nonstandard names/locations. 1459 1460 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>. 1461 _ACEOF 1462 ac_status=$? 1463 fi 1464 1465 if test "$ac_init_help" = "recursive"; then 1466 # If there are subdirs, report their specific --help. 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 test -d "$ac_dir" || 1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1470 continue 1471 ac_builddir=. 1472 1473 case "$ac_dir" in 1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475 *) 1476 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1477 # A ".." for each directory in $ac_dir_suffix. 1478 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1479 case $ac_top_builddir_sub in 1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1482 esac ;; 1483 esac 1484 ac_abs_top_builddir=$ac_pwd 1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1486 # for backward compatibility: 1487 ac_top_builddir=$ac_top_build_prefix 1488 1489 case $srcdir in 1490 .) # We are building in place. 1491 ac_srcdir=. 1492 ac_top_srcdir=$ac_top_builddir_sub 1493 ac_abs_top_srcdir=$ac_pwd ;; 1494 [\\/]* | ?:[\\/]* ) # Absolute name. 1495 ac_srcdir=$srcdir$ac_dir_suffix; 1496 ac_top_srcdir=$srcdir 1497 ac_abs_top_srcdir=$srcdir ;; 1498 *) # Relative name. 1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1500 ac_top_srcdir=$ac_top_build_prefix$srcdir 1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1502 esac 1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1504 1505 cd "$ac_dir" || { ac_status=$?; continue; } 1506 # Check for configure.gnu first; this name is used for a wrapper for 1507 # Metaconfig's "Configure" on case-insensitive file systems. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519 fi 1520 1521 test -n "$ac_init_help" && exit $ac_status 1522 if $ac_init_version; then 1523 cat <<\_ACEOF 1524 xmag configure 1.0.8 1525 generated by GNU Autoconf 2.72 1526 1527 Copyright (C) 2023 Free Software Foundation, Inc. 1528 This configure script is free software; the Free Software Foundation 1529 gives unlimited permission to copy, distribute and modify it. 1530 _ACEOF 1531 exit 1532 fi 1533 1534 ## ------------------------ ## 1535 ## Autoconf initialization. ## 1536 ## ------------------------ ## 1537 1538 # ac_fn_c_try_compile LINENO 1539 # -------------------------- 1540 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1541 ac_fn_c_try_compile () 1542 { 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext conftest.beam 1545 if { { ac_try="$ac_compile" 1546 case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549 esac 1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551 printf "%s\n" "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext 1564 then : 1565 ac_retval=0 1566 else case e in #( 1567 e) printf "%s\n" "$as_me: failed program was:" >&5 1568 sed 's/^/| /' conftest.$ac_ext >&5 1569 1570 ac_retval=1 ;; 1571 esac 1572 fi 1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 as_fn_set_status $ac_retval 1575 1576 } # ac_fn_c_try_compile 1577 1578 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1579 # ------------------------------------------------------------------ 1580 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1581 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1582 ac_fn_check_decl () 1583 { 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 as_decl_name=`echo $2|sed 's/ *(.*//'` 1586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1587 printf %s "checking whether $as_decl_name is declared... " >&6; } 1588 if eval test \${$3+y} 1589 then : 1590 printf %s "(cached) " >&6 1591 else case e in #( 1592 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1593 eval ac_save_FLAGS=\$$6 1594 as_fn_append $6 " $5" 1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1596 /* end confdefs.h. */ 1597 $4 1598 int 1599 main (void) 1600 { 1601 #ifndef $as_decl_name 1602 #ifdef __cplusplus 1603 (void) $as_decl_use; 1604 #else 1605 (void) $as_decl_name; 1606 #endif 1607 #endif 1608 1609 ; 1610 return 0; 1611 } 1612 _ACEOF 1613 if ac_fn_c_try_compile "$LINENO" 1614 then : 1615 eval "$3=yes" 1616 else case e in #( 1617 e) eval "$3=no" ;; 1618 esac 1619 fi 1620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1621 eval $6=\$ac_save_FLAGS 1622 ;; 1623 esac 1624 fi 1625 eval ac_res=\$$3 1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627 printf "%s\n" "$ac_res" >&6; } 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 1630 } # ac_fn_check_decl 1631 1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633 # ------------------------------------------------------- 1634 # Tests whether HEADER exists and can be compiled using the include files in 1635 # INCLUDES, setting the cache variable VAR accordingly. 1636 ac_fn_c_check_header_compile () 1637 { 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640 printf %s "checking for $2... " >&6; } 1641 if eval test \${$3+y} 1642 then : 1643 printf %s "(cached) " >&6 1644 else case e in #( 1645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646 /* end confdefs.h. */ 1647 $4 1648 #include <$2> 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 esac 1659 fi 1660 eval ac_res=\$$3 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662 printf "%s\n" "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665 } # ac_fn_c_check_header_compile 1666 1667 # ac_fn_c_try_link LINENO 1668 # ----------------------- 1669 # Try to link conftest.$ac_ext, and return whether this succeeded. 1670 ac_fn_c_try_link () 1671 { 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1674 if { { ac_try="$ac_link" 1675 case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678 esac 1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680 printf "%s\n" "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest$ac_exeext && { 1693 test "$cross_compiling" = yes || 1694 test -x conftest$ac_exeext 1695 } 1696 then : 1697 ac_retval=0 1698 else case e in #( 1699 e) printf "%s\n" "$as_me: failed program was:" >&5 1700 sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 ;; 1703 esac 1704 fi 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1707 # interfere with the next link command; also delete a directory that is 1708 # left behind by Apple's compiler. We do this before executing the actions. 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713 } # ac_fn_c_try_link 1714 1715 # ac_fn_c_check_func LINENO FUNC VAR 1716 # ---------------------------------- 1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1718 ac_fn_c_check_func () 1719 { 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722 printf %s "checking for $2... " >&6; } 1723 if eval test \${$3+y} 1724 then : 1725 printf %s "(cached) " >&6 1726 else case e in #( 1727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728 /* end confdefs.h. */ 1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731 #define $2 innocuous_$2 1732 1733 /* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (void); below. */ 1735 1736 #include <limits.h> 1737 #undef $2 1738 1739 /* Override any GCC internal prototype to avoid an error. 1740 Use char because int might match the return type of a GCC 1741 builtin and then its argument prototype would still apply. */ 1742 #ifdef __cplusplus 1743 extern "C" 1744 #endif 1745 char $2 (void); 1746 /* The GNU C library defines this for functions which it implements 1747 to always fail with ENOSYS. Some functions are actually named 1748 something starting with __ and the normal name is an alias. */ 1749 #if defined __stub_$2 || defined __stub___$2 1750 choke me 1751 #endif 1752 1753 int 1754 main (void) 1755 { 1756 return $2 (); 1757 ; 1758 return 0; 1759 } 1760 _ACEOF 1761 if ac_fn_c_try_link "$LINENO" 1762 then : 1763 eval "$3=yes" 1764 else case e in #( 1765 e) eval "$3=no" ;; 1766 esac 1767 fi 1768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1769 conftest$ac_exeext conftest.$ac_ext ;; 1770 esac 1771 fi 1772 eval ac_res=\$$3 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774 printf "%s\n" "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777 } # ac_fn_c_check_func 1778 ac_configure_args_raw= 1779 for ac_arg 1780 do 1781 case $ac_arg in 1782 *\'*) 1783 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 as_fn_append ac_configure_args_raw " '$ac_arg'" 1786 done 1787 1788 case $ac_configure_args_raw in 1789 *$as_nl*) 1790 ac_safe_unquote= ;; 1791 *) 1792 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1793 ac_unsafe_a="$ac_unsafe_z#~" 1794 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1795 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1796 esac 1797 1798 cat >config.log <<_ACEOF 1799 This file contains any messages produced by compilers while 1800 running configure, to aid debugging if configure makes a mistake. 1801 1802 It was created by xmag $as_me 1.0.8, which was 1803 generated by GNU Autoconf 2.72. Invocation command line was 1804 1805 $ $0$ac_configure_args_raw 1806 1807 _ACEOF 1808 exec 5>>config.log 1809 { 1810 cat <<_ASUNAME 1811 ## --------- ## 1812 ## Platform. ## 1813 ## --------- ## 1814 1815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1816 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1817 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1818 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1819 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1820 1821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1822 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1823 1824 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1825 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1827 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1828 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1829 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1830 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1831 1832 _ASUNAME 1833 1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835 for as_dir in $PATH 1836 do 1837 IFS=$as_save_IFS 1838 case $as_dir in #((( 1839 '') as_dir=./ ;; 1840 */) ;; 1841 *) as_dir=$as_dir/ ;; 1842 esac 1843 printf "%s\n" "PATH: $as_dir" 1844 done 1845 IFS=$as_save_IFS 1846 1847 } >&5 1848 1849 cat >&5 <<_ACEOF 1850 1851 1852 ## ----------- ## 1853 ## Core tests. ## 1854 ## ----------- ## 1855 1856 _ACEOF 1857 1858 1859 # Keep a trace of the command line. 1860 # Strip out --no-create and --no-recursion so they do not pile up. 1861 # Strip out --silent because we don't want to record it for future runs. 1862 # Also quote any args containing shell meta-characters. 1863 # Make two passes to allow for proper duplicate-argument suppression. 1864 ac_configure_args= 1865 ac_configure_args0= 1866 ac_configure_args1= 1867 ac_must_keep_next=false 1868 for ac_pass in 1 2 1869 do 1870 for ac_arg 1871 do 1872 case $ac_arg in 1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1875 | -silent | --silent | --silen | --sile | --sil) 1876 continue ;; 1877 *\'*) 1878 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1879 esac 1880 case $ac_pass in 1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1882 2) 1883 as_fn_append ac_configure_args1 " '$ac_arg'" 1884 if test $ac_must_keep_next = true; then 1885 ac_must_keep_next=false # Got value, back to normal. 1886 else 1887 case $ac_arg in 1888 *=* | --config-cache | -C | -disable-* | --disable-* \ 1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1891 | -with-* | --with-* | -without-* | --without-* | --x) 1892 case "$ac_configure_args0 " in 1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1894 esac 1895 ;; 1896 -* ) ac_must_keep_next=true ;; 1897 esac 1898 fi 1899 as_fn_append ac_configure_args " '$ac_arg'" 1900 ;; 1901 esac 1902 done 1903 done 1904 { ac_configure_args0=; unset ac_configure_args0;} 1905 { ac_configure_args1=; unset ac_configure_args1;} 1906 1907 # When interrupted or exit'd, cleanup temporary files, and complete 1908 # config.log. We remove comments because anyway the quotes in there 1909 # would cause problems or look ugly. 1910 # WARNING: Use '\'' to represent an apostrophe within the trap. 1911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1912 trap 'exit_status=$? 1913 # Sanitize IFS. 1914 IFS=" "" $as_nl" 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 printf "%s\n" "## ---------------- ## 1920 ## Cache variables. ## 1921 ## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924 ( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952 ) 1953 echo 1954 1955 printf "%s\n" "## ----------------- ## 1956 ## Output variables. ## 1957 ## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 printf "%s\n" "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 printf "%s\n" "## ------------------- ## 1971 ## File substitutions. ## 1972 ## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 printf "%s\n" "## ----------- ## 1987 ## confdefs.h. ## 1988 ## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 printf "%s\n" "$as_me: caught signal $ac_signal" 1995 printf "%s\n" "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000 ' 0 2001 for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003 done 2004 ac_signal=0 2005 2006 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2007 rm -f -r conftest* confdefs.h 2008 2009 printf "%s\n" "/* confdefs.h */" > confdefs.h 2010 2011 # Predefined preprocessor variables. 2012 2013 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2014 2015 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2016 2017 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2018 2019 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2020 2021 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2022 2023 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2024 2025 2026 # Let the site file select an alternate cache file if it wants to. 2027 # Prefer an explicitly selected file to automatically selected ones. 2028 if test -n "$CONFIG_SITE"; then 2029 ac_site_files="$CONFIG_SITE" 2030 elif test "x$prefix" != xNONE; then 2031 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2032 else 2033 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2034 fi 2035 2036 for ac_site_file in $ac_site_files 2037 do 2038 case $ac_site_file in #( 2039 */*) : 2040 ;; #( 2041 *) : 2042 ac_site_file=./$ac_site_file ;; 2043 esac 2044 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2046 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2047 sed 's/^/| /' "$ac_site_file" >&5 2048 . "$ac_site_file" \ 2049 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2051 as_fn_error $? "failed to load site script $ac_site_file 2052 See 'config.log' for more details" "$LINENO" 5; } 2053 fi 2054 done 2055 2056 if test -r "$cache_file"; then 2057 # Some versions of bash will fail to source /dev/null (special files 2058 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2061 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2062 case $cache_file in 2063 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2064 *) . "./$cache_file";; 2065 esac 2066 fi 2067 else 2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2069 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2070 >$cache_file 2071 fi 2072 2073 # Test code for whether the C compiler supports C89 (global declarations) 2074 ac_c_conftest_c89_globals=' 2075 /* Does the compiler advertise C89 conformance? 2076 Do not test the value of __STDC__, because some compilers set it to 0 2077 while being otherwise adequately conformant. */ 2078 #if !defined __STDC__ 2079 # error "Compiler does not advertise C89 conformance" 2080 #endif 2081 2082 #include <stddef.h> 2083 #include <stdarg.h> 2084 struct stat; 2085 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2086 struct buf { int x; }; 2087 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2088 static char *e (char **p, int i) 2089 { 2090 return p[i]; 2091 } 2092 static char *f (char * (*g) (char **, int), char **p, ...) 2093 { 2094 char *s; 2095 va_list v; 2096 va_start (v,p); 2097 s = g (p, va_arg (v,int)); 2098 va_end (v); 2099 return s; 2100 } 2101 2102 /* C89 style stringification. */ 2103 #define noexpand_stringify(a) #a 2104 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2105 2106 /* C89 style token pasting. Exercises some of the corner cases that 2107 e.g. old MSVC gets wrong, but not very hard. */ 2108 #define noexpand_concat(a,b) a##b 2109 #define expand_concat(a,b) noexpand_concat(a,b) 2110 extern int vA; 2111 extern int vbee; 2112 #define aye A 2113 #define bee B 2114 int *pvA = &expand_concat(v,aye); 2115 int *pvbee = &noexpand_concat(v,bee); 2116 2117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2118 function prototypes and stuff, but not \xHH hex character constants. 2119 These do not provoke an error unfortunately, instead are silently treated 2120 as an "x". The following induces an error, until -std is added to get 2121 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2122 array size at least. It is necessary to write \x00 == 0 to get something 2123 that is true only with -std. */ 2124 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2125 2126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2127 inside strings and character constants. */ 2128 #define FOO(x) '\''x'\'' 2129 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2130 2131 int test (int i, double x); 2132 struct s1 {int (*f) (int a);}; 2133 struct s2 {int (*f) (double a);}; 2134 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2135 int, int);' 2136 2137 # Test code for whether the C compiler supports C89 (body of main). 2138 ac_c_conftest_c89_main=' 2139 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2140 ' 2141 2142 # Test code for whether the C compiler supports C99 (global declarations) 2143 ac_c_conftest_c99_globals=' 2144 /* Does the compiler advertise C99 conformance? */ 2145 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2146 # error "Compiler does not advertise C99 conformance" 2147 #endif 2148 2149 // See if C++-style comments work. 2150 2151 #include <stdbool.h> 2152 extern int puts (const char *); 2153 extern int printf (const char *, ...); 2154 extern int dprintf (int, const char *, ...); 2155 extern void *malloc (size_t); 2156 extern void free (void *); 2157 2158 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2159 // dprintf is used instead of fprintf to avoid needing to declare 2160 // FILE and stderr. 2161 #define debug(...) dprintf (2, __VA_ARGS__) 2162 #define showlist(...) puts (#__VA_ARGS__) 2163 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2164 static void 2165 test_varargs_macros (void) 2166 { 2167 int x = 1234; 2168 int y = 5678; 2169 debug ("Flag"); 2170 debug ("X = %d\n", x); 2171 showlist (The first, second, and third items.); 2172 report (x>y, "x is %d but y is %d", x, y); 2173 } 2174 2175 // Check long long types. 2176 #define BIG64 18446744073709551615ull 2177 #define BIG32 4294967295ul 2178 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2179 #if !BIG_OK 2180 #error "your preprocessor is broken" 2181 #endif 2182 #if BIG_OK 2183 #else 2184 #error "your preprocessor is broken" 2185 #endif 2186 static long long int bignum = -9223372036854775807LL; 2187 static unsigned long long int ubignum = BIG64; 2188 2189 struct incomplete_array 2190 { 2191 int datasize; 2192 double data[]; 2193 }; 2194 2195 struct named_init { 2196 int number; 2197 const wchar_t *name; 2198 double average; 2199 }; 2200 2201 typedef const char *ccp; 2202 2203 static inline int 2204 test_restrict (ccp restrict text) 2205 { 2206 // Iterate through items via the restricted pointer. 2207 // Also check for declarations in for loops. 2208 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2209 continue; 2210 return 0; 2211 } 2212 2213 // Check varargs and va_copy. 2214 static bool 2215 test_varargs (const char *format, ...) 2216 { 2217 va_list args; 2218 va_start (args, format); 2219 va_list args_copy; 2220 va_copy (args_copy, args); 2221 2222 const char *str = ""; 2223 int number = 0; 2224 float fnumber = 0; 2225 2226 while (*format) 2227 { 2228 switch (*format++) 2229 { 2230 case '\''s'\'': // string 2231 str = va_arg (args_copy, const char *); 2232 break; 2233 case '\''d'\'': // int 2234 number = va_arg (args_copy, int); 2235 break; 2236 case '\''f'\'': // float 2237 fnumber = va_arg (args_copy, double); 2238 break; 2239 default: 2240 break; 2241 } 2242 } 2243 va_end (args_copy); 2244 va_end (args); 2245 2246 return *str && number && fnumber; 2247 } 2248 ' 2249 2250 # Test code for whether the C compiler supports C99 (body of main). 2251 ac_c_conftest_c99_main=' 2252 // Check bool. 2253 _Bool success = false; 2254 success |= (argc != 0); 2255 2256 // Check restrict. 2257 if (test_restrict ("String literal") == 0) 2258 success = true; 2259 char *restrict newvar = "Another string"; 2260 2261 // Check varargs. 2262 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2263 test_varargs_macros (); 2264 2265 // Check flexible array members. 2266 struct incomplete_array *ia = 2267 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2268 ia->datasize = 10; 2269 for (int i = 0; i < ia->datasize; ++i) 2270 ia->data[i] = i * 1.234; 2271 // Work around memory leak warnings. 2272 free (ia); 2273 2274 // Check named initializers. 2275 struct named_init ni = { 2276 .number = 34, 2277 .name = L"Test wide string", 2278 .average = 543.34343, 2279 }; 2280 2281 ni.number = 58; 2282 2283 int dynamic_array[ni.number]; 2284 dynamic_array[0] = argv[0][0]; 2285 dynamic_array[ni.number - 1] = 543; 2286 2287 // work around unused variable warnings 2288 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2289 || dynamic_array[ni.number - 1] != 543); 2290 ' 2291 2292 # Test code for whether the C compiler supports C11 (global declarations) 2293 ac_c_conftest_c11_globals=' 2294 /* Does the compiler advertise C11 conformance? */ 2295 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2296 # error "Compiler does not advertise C11 conformance" 2297 #endif 2298 2299 // Check _Alignas. 2300 char _Alignas (double) aligned_as_double; 2301 char _Alignas (0) no_special_alignment; 2302 extern char aligned_as_int; 2303 char _Alignas (0) _Alignas (int) aligned_as_int; 2304 2305 // Check _Alignof. 2306 enum 2307 { 2308 int_alignment = _Alignof (int), 2309 int_array_alignment = _Alignof (int[100]), 2310 char_alignment = _Alignof (char) 2311 }; 2312 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2313 2314 // Check _Noreturn. 2315 int _Noreturn does_not_return (void) { for (;;) continue; } 2316 2317 // Check _Static_assert. 2318 struct test_static_assert 2319 { 2320 int x; 2321 _Static_assert (sizeof (int) <= sizeof (long int), 2322 "_Static_assert does not work in struct"); 2323 long int y; 2324 }; 2325 2326 // Check UTF-8 literals. 2327 #define u8 syntax error! 2328 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2329 2330 // Check duplicate typedefs. 2331 typedef long *long_ptr; 2332 typedef long int *long_ptr; 2333 typedef long_ptr long_ptr; 2334 2335 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2336 struct anonymous 2337 { 2338 union { 2339 struct { int i; int j; }; 2340 struct { int k; long int l; } w; 2341 }; 2342 int m; 2343 } v1; 2344 ' 2345 2346 # Test code for whether the C compiler supports C11 (body of main). 2347 ac_c_conftest_c11_main=' 2348 _Static_assert ((offsetof (struct anonymous, i) 2349 == offsetof (struct anonymous, w.k)), 2350 "Anonymous union alignment botch"); 2351 v1.i = 2; 2352 v1.w.k = 5; 2353 ok |= v1.i != 5; 2354 ' 2355 2356 # Test code for whether the C compiler supports C11 (complete). 2357 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2358 ${ac_c_conftest_c99_globals} 2359 ${ac_c_conftest_c11_globals} 2360 2361 int 2362 main (int argc, char **argv) 2363 { 2364 int ok = 0; 2365 ${ac_c_conftest_c89_main} 2366 ${ac_c_conftest_c99_main} 2367 ${ac_c_conftest_c11_main} 2368 return ok; 2369 } 2370 " 2371 2372 # Test code for whether the C compiler supports C99 (complete). 2373 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2374 ${ac_c_conftest_c99_globals} 2375 2376 int 2377 main (int argc, char **argv) 2378 { 2379 int ok = 0; 2380 ${ac_c_conftest_c89_main} 2381 ${ac_c_conftest_c99_main} 2382 return ok; 2383 } 2384 " 2385 2386 # Test code for whether the C compiler supports C89 (complete). 2387 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2388 2389 int 2390 main (int argc, char **argv) 2391 { 2392 int ok = 0; 2393 ${ac_c_conftest_c89_main} 2394 return ok; 2395 } 2396 " 2397 2398 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2399 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2400 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2401 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2402 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2403 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2404 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2405 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2406 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2407 2408 # Auxiliary files required by this configure script. 2409 ac_aux_files="config.guess config.sub compile missing install-sh" 2410 2411 # Locations in which to look for auxiliary files. 2412 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2413 2414 # Search for a directory containing all of the required auxiliary files, 2415 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2416 # If we don't find one directory that contains all the files we need, 2417 # we report the set of missing files from the *first* directory in 2418 # $ac_aux_dir_candidates and give up. 2419 ac_missing_aux_files="" 2420 ac_first_candidate=: 2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423 as_found=false 2424 for as_dir in $ac_aux_dir_candidates 2425 do 2426 IFS=$as_save_IFS 2427 case $as_dir in #((( 2428 '') as_dir=./ ;; 2429 */) ;; 2430 *) as_dir=$as_dir/ ;; 2431 esac 2432 as_found=: 2433 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2435 ac_aux_dir_found=yes 2436 ac_install_sh= 2437 for ac_aux in $ac_aux_files 2438 do 2439 # As a special case, if "install-sh" is required, that requirement 2440 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2441 # and $ac_install_sh is set appropriately for whichever one is found. 2442 if test x"$ac_aux" = x"install-sh" 2443 then 2444 if test -f "${as_dir}install-sh"; then 2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2446 ac_install_sh="${as_dir}install-sh -c" 2447 elif test -f "${as_dir}install.sh"; then 2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2449 ac_install_sh="${as_dir}install.sh -c" 2450 elif test -f "${as_dir}shtool"; then 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2452 ac_install_sh="${as_dir}shtool install -c" 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2457 else 2458 break 2459 fi 2460 fi 2461 else 2462 if test -f "${as_dir}${ac_aux}"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2464 else 2465 ac_aux_dir_found=no 2466 if $ac_first_candidate; then 2467 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2468 else 2469 break 2470 fi 2471 fi 2472 fi 2473 done 2474 if test "$ac_aux_dir_found" = yes; then 2475 ac_aux_dir="$as_dir" 2476 break 2477 fi 2478 ac_first_candidate=false 2479 2480 as_found=false 2481 done 2482 IFS=$as_save_IFS 2483 if $as_found 2484 then : 2485 2486 else case e in #( 2487 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2488 esac 2489 fi 2490 2491 2492 # These three variables are undocumented and unsupported, 2493 # and are intended to be withdrawn in a future Autoconf release. 2494 # They can cause serious problems if a builder's source tree is in a directory 2495 # whose full name contains unusual characters. 2496 if test -f "${ac_aux_dir}config.guess"; then 2497 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2498 fi 2499 if test -f "${ac_aux_dir}config.sub"; then 2500 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2501 fi 2502 if test -f "$ac_aux_dir/configure"; then 2503 ac_configure="$SHELL ${ac_aux_dir}configure" 2504 fi 2505 2506 # Check that the precious variables saved in the cache have kept the same 2507 # value. 2508 ac_cache_corrupted=false 2509 for ac_var in $ac_precious_vars; do 2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2511 eval ac_new_set=\$ac_env_${ac_var}_set 2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2513 eval ac_new_val=\$ac_env_${ac_var}_value 2514 case $ac_old_set,$ac_new_set in 2515 set,) 2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2517 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2518 ac_cache_corrupted=: ;; 2519 ,set) 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2521 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2522 ac_cache_corrupted=: ;; 2523 ,);; 2524 *) 2525 if test "x$ac_old_val" != "x$ac_new_val"; then 2526 # differences in whitespace do not lead to failure. 2527 ac_old_val_w=`echo x $ac_old_val` 2528 ac_new_val_w=`echo x $ac_new_val` 2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2531 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2532 ac_cache_corrupted=: 2533 else 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2535 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2536 eval $ac_var=\$ac_old_val 2537 fi 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2539 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2541 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2542 fi;; 2543 esac 2544 # Pass precious variables to config.status. 2545 if test "$ac_new_set" = set; then 2546 case $ac_new_val in 2547 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2548 *) ac_arg=$ac_var=$ac_new_val ;; 2549 esac 2550 case " $ac_configure_args " in 2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2553 esac 2554 fi 2555 done 2556 if $ac_cache_corrupted; then 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2558 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2560 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2561 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2562 and start over" "$LINENO" 5 2563 fi 2564 ## -------------------- ## 2565 ## Main body of script. ## 2566 ## -------------------- ## 2567 2568 ac_ext=c 2569 ac_cpp='$CPP $CPPFLAGS' 2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573 2574 2575 2576 ac_config_headers="$ac_config_headers config.h" 2577 2578 2579 # Initialize Automake 2580 am__api_version='1.17' 2581 2582 2583 2584 # Find a good install program. We prefer a C program (faster), 2585 # so one script is as good as another. But avoid the broken or 2586 # incompatible versions: 2587 # SysV /etc/install, /usr/sbin/install 2588 # SunOS /usr/etc/install 2589 # IRIX /sbin/install 2590 # AIX /bin/install 2591 # AmigaOS /C/install, which installs bootblocks on floppy discs 2592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2595 # OS/2's system install, which has a completely different semantic 2596 # ./install, which can be erroneously created by make from ./install.sh. 2597 # Reject install programs that cannot install multiple files. 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2599 printf %s "checking for a BSD-compatible install... " >&6; } 2600 if test -z "$INSTALL"; then 2601 if test ${ac_cv_path_install+y} 2602 then : 2603 printf %s "(cached) " >&6 2604 else case e in #( 2605 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606 for as_dir in $PATH 2607 do 2608 IFS=$as_save_IFS 2609 case $as_dir in #((( 2610 '') as_dir=./ ;; 2611 */) ;; 2612 *) as_dir=$as_dir/ ;; 2613 esac 2614 # Account for fact that we put trailing slashes in our PATH walk. 2615 case $as_dir in #(( 2616 ./ | /[cC]/* | \ 2617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2618 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2619 /usr/ucb/* ) ;; 2620 *) 2621 # OSF1 and SCO ODT 3.0 have their own names for install. 2622 # Don't use installbsd from OSF since it installs stuff as root 2623 # by default. 2624 for ac_prog in ginstall scoinst install; do 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2627 if test $ac_prog = install && 2628 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2629 # AIX install. It has an incompatible calling convention. 2630 : 2631 elif test $ac_prog = install && 2632 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2633 # program-specific install script used by HP pwplus--don't use. 2634 : 2635 else 2636 rm -rf conftest.one conftest.two conftest.dir 2637 echo one > conftest.one 2638 echo two > conftest.two 2639 mkdir conftest.dir 2640 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2641 test -s conftest.one && test -s conftest.two && 2642 test -s conftest.dir/conftest.one && 2643 test -s conftest.dir/conftest.two 2644 then 2645 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2646 break 3 2647 fi 2648 fi 2649 fi 2650 done 2651 done 2652 ;; 2653 esac 2654 2655 done 2656 IFS=$as_save_IFS 2657 2658 rm -rf conftest.one conftest.two conftest.dir 2659 ;; 2660 esac 2661 fi 2662 if test ${ac_cv_path_install+y}; then 2663 INSTALL=$ac_cv_path_install 2664 else 2665 # As a last resort, use the slow shell script. Don't cache a 2666 # value for INSTALL within a source directory, because that will 2667 # break other packages using the cache if that directory is 2668 # removed, or if the value is a relative name. 2669 INSTALL=$ac_install_sh 2670 fi 2671 fi 2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2673 printf "%s\n" "$INSTALL" >&6; } 2674 2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2676 # It thinks the first close brace ends the variable substitution. 2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2678 2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2680 2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2682 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2684 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2685 if test ${am_cv_sleep_fractional_seconds+y} 2686 then : 2687 printf %s "(cached) " >&6 2688 else case e in #( 2689 e) if sleep 0.001 2>/dev/null 2690 then : 2691 am_cv_sleep_fractional_seconds=yes 2692 else case e in #( 2693 e) am_cv_sleep_fractional_seconds=no ;; 2694 esac 2695 fi 2696 ;; 2697 esac 2698 fi 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2700 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2701 2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2703 printf %s "checking filesystem timestamp resolution... " >&6; } 2704 if test ${am_cv_filesystem_timestamp_resolution+y} 2705 then : 2706 printf %s "(cached) " >&6 2707 else case e in #( 2708 e) # Default to the worst case. 2709 am_cv_filesystem_timestamp_resolution=2 2710 2711 # Only try to go finer than 1 sec if sleep can do it. 2712 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2713 # - 1 sec is not much of a win compared to 2 sec, and 2714 # - it takes 2 seconds to perform the test whether 1 sec works. 2715 # 2716 # Instead, just use the default 2s on platforms that have 1s resolution, 2717 # accept the extra 1s delay when using $sleep in the Automake tests, in 2718 # exchange for not incurring the 2s delay for running the test for all 2719 # packages. 2720 # 2721 am_try_resolutions= 2722 if test "$am_cv_sleep_fractional_seconds" = yes; then 2723 # Even a millisecond often causes a bunch of false positives, 2724 # so just try a hundredth of a second. The time saved between .001 and 2725 # .01 is not terribly consequential. 2726 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2727 fi 2728 2729 # In order to catch current-generation FAT out, we must *modify* files 2730 # that already exist; the *creation* timestamp is finer. Use names 2731 # that make ls -t sort them differently when they have equal 2732 # timestamps than when they have distinct timestamps, keeping 2733 # in mind that ls -t prints the *newest* file first. 2734 rm -f conftest.ts? 2735 : > conftest.ts1 2736 : > conftest.ts2 2737 : > conftest.ts3 2738 2739 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2740 # clobber the current shell's arguments. (Outer-level square brackets 2741 # are removed by m4; they're present so that m4 does not expand 2742 # <dollar><star>; be careful, easy to get confused.) 2743 if ( 2744 set X `ls -t conftest.ts[12]` && 2745 { 2746 test "$*" != "X conftest.ts1 conftest.ts2" || 2747 test "$*" != "X conftest.ts2 conftest.ts1"; 2748 } 2749 ); then :; else 2750 # If neither matched, then we have a broken ls. This can happen 2751 # if, for instance, CONFIG_SHELL is bash and it inherits a 2752 # broken ls alias from the environment. This has actually 2753 # happened. Such a system could not be considered "sane". 2754 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2757 as_fn_error $? "ls -t produces unexpected output. 2758 Make sure there is not a broken ls alias in your environment. 2759 See 'config.log' for more details" "$LINENO" 5; } 2760 fi 2761 2762 for am_try_res in $am_try_resolutions; do 2763 # Any one fine-grained sleep might happen to cross the boundary 2764 # between two values of a coarser actual resolution, but if we do 2765 # two fine-grained sleeps in a row, at least one of them will fall 2766 # entirely within a coarse interval. 2767 echo alpha > conftest.ts1 2768 sleep $am_try_res 2769 echo beta > conftest.ts2 2770 sleep $am_try_res 2771 echo gamma > conftest.ts3 2772 2773 # We assume that 'ls -t' will make use of high-resolution 2774 # timestamps if the operating system supports them at all. 2775 if (set X `ls -t conftest.ts?` && 2776 test "$2" = conftest.ts3 && 2777 test "$3" = conftest.ts2 && 2778 test "$4" = conftest.ts1); then 2779 # 2780 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2781 # because we don't need to test make. 2782 make_ok=true 2783 if test $am_try_res != 1; then 2784 # But if we've succeeded so far with a subsecond resolution, we 2785 # have one more thing to check: make. It can happen that 2786 # everything else supports the subsecond mtimes, but make doesn't; 2787 # notably on macOS, which ships make 3.81 from 2006 (the last one 2788 # released under GPLv2). https://bugs.gnu.org/68808 2789 # 2790 # We test $MAKE if it is defined in the environment, else "make". 2791 # It might get overridden later, but our hope is that in practice 2792 # it does not matter: it is the system "make" which is (by far) 2793 # the most likely to be broken, whereas if the user overrides it, 2794 # probably they did so with a better, or at least not worse, make. 2795 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2796 # 2797 # Create a Makefile (real tab character here): 2798 rm -f conftest.mk 2799 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2800 echo ' touch conftest.ts2' >>conftest.mk 2801 # 2802 # Now, running 2803 # touch conftest.ts1; touch conftest.ts2; make 2804 # should touch ts1 because ts2 is newer. This could happen by luck, 2805 # but most often, it will fail if make's support is insufficient. So 2806 # test for several consecutive successes. 2807 # 2808 # (We reuse conftest.ts[12] because we still want to modify existing 2809 # files, not create new ones, per above.) 2810 n=0 2811 make=${MAKE-make} 2812 until test $n -eq 3; do 2813 echo one > conftest.ts1 2814 sleep $am_try_res 2815 echo two > conftest.ts2 # ts2 should now be newer than ts1 2816 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2817 make_ok=false 2818 break # out of $n loop 2819 fi 2820 n=`expr $n + 1` 2821 done 2822 fi 2823 # 2824 if $make_ok; then 2825 # Everything we know to check worked out, so call this resolution good. 2826 am_cv_filesystem_timestamp_resolution=$am_try_res 2827 break # out of $am_try_res loop 2828 fi 2829 # Otherwise, we'll go on to check the next resolution. 2830 fi 2831 done 2832 rm -f conftest.ts? 2833 # (end _am_filesystem_timestamp_resolution) 2834 ;; 2835 esac 2836 fi 2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2838 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2839 2840 # This check should not be cached, as it may vary across builds of 2841 # different projects. 2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2843 printf %s "checking whether build environment is sane... " >&6; } 2844 # Reject unsafe characters in $srcdir or the absolute working directory 2845 # name. Accept space and tab only in the latter. 2846 am_lf=' 2847 ' 2848 case `pwd` in 2849 *[\\\"\#\$\&\'\`$am_lf]*) 2850 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2851 esac 2852 case $srcdir in 2853 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2854 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2855 esac 2856 2857 # Do 'set' in a subshell so we don't clobber the current shell's 2858 # arguments. Must try -L first in case configure is actually a 2859 # symlink; some systems play weird games with the mod time of symlinks 2860 # (eg FreeBSD returns the mod time of the symlink's containing 2861 # directory). 2862 am_build_env_is_sane=no 2863 am_has_slept=no 2864 rm -f conftest.file 2865 for am_try in 1 2; do 2866 echo "timestamp, slept: $am_has_slept" > conftest.file 2867 if ( 2868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2869 if test "$*" = "X"; then 2870 # -L didn't work. 2871 set X `ls -t "$srcdir/configure" conftest.file` 2872 fi 2873 test "$2" = conftest.file 2874 ); then 2875 am_build_env_is_sane=yes 2876 break 2877 fi 2878 # Just in case. 2879 sleep "$am_cv_filesystem_timestamp_resolution" 2880 am_has_slept=yes 2881 done 2882 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2884 printf "%s\n" "$am_build_env_is_sane" >&6; } 2885 if test "$am_build_env_is_sane" = no; then 2886 as_fn_error $? "newly created file is older than distributed files! 2887 Check your system clock" "$LINENO" 5 2888 fi 2889 2890 # If we didn't sleep, we still need to ensure time stamps of config.status and 2891 # generated files are strictly newer. 2892 am_sleep_pid= 2893 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2894 then : 2895 2896 else case e in #( 2897 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2898 am_sleep_pid=$! 2899 ;; 2900 esac 2901 fi 2902 2903 rm -f conftest.file 2904 2905 test "$program_prefix" != NONE && 2906 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2907 # Use a double $ so make ignores it. 2908 test "$program_suffix" != NONE && 2909 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2910 # Double any \ or $. 2911 # By default was 's,x,x', remove it if useless. 2912 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2913 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2914 2915 2916 # Expand $ac_aux_dir to an absolute path. 2917 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2918 2919 2920 if test x"${MISSING+set}" != xset; then 2921 MISSING="\${SHELL} '$am_aux_dir/missing'" 2922 fi 2923 # Use eval to expand $SHELL 2924 if eval "$MISSING --is-lightweight"; then 2925 am_missing_run="$MISSING " 2926 else 2927 am_missing_run= 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2929 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2930 fi 2931 2932 if test x"${install_sh+set}" != xset; then 2933 case $am_aux_dir in 2934 *\ * | *\ *) 2935 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2936 *) 2937 install_sh="\${SHELL} $am_aux_dir/install-sh" 2938 esac 2939 fi 2940 2941 # Installed binaries are usually stripped using 'strip' when the user 2942 # run "make install-strip". However 'strip' might not be the right 2943 # tool to use in cross-compilation environments, therefore Automake 2944 # will honor the 'STRIP' environment variable to overrule this program. 2945 if test "$cross_compiling" != no; then 2946 if test -n "$ac_tool_prefix"; then 2947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2948 set dummy ${ac_tool_prefix}strip; ac_word=$2 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950 printf %s "checking for $ac_word... " >&6; } 2951 if test ${ac_cv_prog_STRIP+y} 2952 then : 2953 printf %s "(cached) " >&6 2954 else case e in #( 2955 e) if test -n "$STRIP"; then 2956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2957 else 2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959 for as_dir in $PATH 2960 do 2961 IFS=$as_save_IFS 2962 case $as_dir in #((( 2963 '') as_dir=./ ;; 2964 */) ;; 2965 *) as_dir=$as_dir/ ;; 2966 esac 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2969 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973 done 2974 done 2975 IFS=$as_save_IFS 2976 2977 fi ;; 2978 esac 2979 fi 2980 STRIP=$ac_cv_prog_STRIP 2981 if test -n "$STRIP"; then 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2983 printf "%s\n" "$STRIP" >&6; } 2984 else 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986 printf "%s\n" "no" >&6; } 2987 fi 2988 2989 2990 fi 2991 if test -z "$ac_cv_prog_STRIP"; then 2992 ac_ct_STRIP=$STRIP 2993 # Extract the first word of "strip", so it can be a program name with args. 2994 set dummy strip; ac_word=$2 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996 printf %s "checking for $ac_word... " >&6; } 2997 if test ${ac_cv_prog_ac_ct_STRIP+y} 2998 then : 2999 printf %s "(cached) " >&6 3000 else case e in #( 3001 e) if test -n "$ac_ct_STRIP"; then 3002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3003 else 3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005 for as_dir in $PATH 3006 do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_ac_ct_STRIP="strip" 3016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019 done 3020 done 3021 IFS=$as_save_IFS 3022 3023 fi ;; 3024 esac 3025 fi 3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3027 if test -n "$ac_ct_STRIP"; then 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3029 printf "%s\n" "$ac_ct_STRIP" >&6; } 3030 else 3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032 printf "%s\n" "no" >&6; } 3033 fi 3034 3035 if test "x$ac_ct_STRIP" = x; then 3036 STRIP=":" 3037 else 3038 case $cross_compiling:$ac_tool_warned in 3039 yes:) 3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3042 ac_tool_warned=yes ;; 3043 esac 3044 STRIP=$ac_ct_STRIP 3045 fi 3046 else 3047 STRIP="$ac_cv_prog_STRIP" 3048 fi 3049 3050 fi 3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3052 3053 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3055 printf %s "checking for a race-free mkdir -p... " >&6; } 3056 if test -z "$MKDIR_P"; then 3057 if test ${ac_cv_path_mkdir+y} 3058 then : 3059 printf %s "(cached) " >&6 3060 else case e in #( 3061 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3063 do 3064 IFS=$as_save_IFS 3065 case $as_dir in #((( 3066 '') as_dir=./ ;; 3067 */) ;; 3068 *) as_dir=$as_dir/ ;; 3069 esac 3070 for ac_prog in mkdir gmkdir; do 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3073 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3074 'mkdir ('*'coreutils) '* | \ 3075 *'BusyBox '* | \ 3076 'mkdir (fileutils) '4.1*) 3077 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3078 break 3;; 3079 esac 3080 done 3081 done 3082 done 3083 IFS=$as_save_IFS 3084 ;; 3085 esac 3086 fi 3087 3088 test -d ./--version && rmdir ./--version 3089 if test ${ac_cv_path_mkdir+y}; then 3090 MKDIR_P="$ac_cv_path_mkdir -p" 3091 else 3092 # As a last resort, use plain mkdir -p, 3093 # in the hope it doesn't have the bugs of ancient mkdir. 3094 MKDIR_P='mkdir -p' 3095 fi 3096 fi 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3098 printf "%s\n" "$MKDIR_P" >&6; } 3099 3100 for ac_prog in gawk mawk nawk awk 3101 do 3102 # Extract the first word of "$ac_prog", so it can be a program name with args. 3103 set dummy $ac_prog; ac_word=$2 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105 printf %s "checking for $ac_word... " >&6; } 3106 if test ${ac_cv_prog_AWK+y} 3107 then : 3108 printf %s "(cached) " >&6 3109 else case e in #( 3110 e) if test -n "$AWK"; then 3111 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3112 else 3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114 for as_dir in $PATH 3115 do 3116 IFS=$as_save_IFS 3117 case $as_dir in #((( 3118 '') as_dir=./ ;; 3119 */) ;; 3120 *) as_dir=$as_dir/ ;; 3121 esac 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3124 ac_cv_prog_AWK="$ac_prog" 3125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3126 break 2 3127 fi 3128 done 3129 done 3130 IFS=$as_save_IFS 3131 3132 fi ;; 3133 esac 3134 fi 3135 AWK=$ac_cv_prog_AWK 3136 if test -n "$AWK"; then 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3138 printf "%s\n" "$AWK" >&6; } 3139 else 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141 printf "%s\n" "no" >&6; } 3142 fi 3143 3144 3145 test -n "$AWK" && break 3146 done 3147 3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3149 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3150 set x ${MAKE-make} 3151 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3152 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3153 then : 3154 printf %s "(cached) " >&6 3155 else case e in #( 3156 e) cat >conftest.make <<\_ACEOF 3157 SHELL = /bin/sh 3158 all: 3159 @echo '@@@%%%=$(MAKE)=@@@%%%' 3160 _ACEOF 3161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3162 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3163 *@@@%%%=?*=@@@%%%*) 3164 eval ac_cv_prog_make_${ac_make}_set=yes;; 3165 *) 3166 eval ac_cv_prog_make_${ac_make}_set=no;; 3167 esac 3168 rm -f conftest.make ;; 3169 esac 3170 fi 3171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3173 printf "%s\n" "yes" >&6; } 3174 SET_MAKE= 3175 else 3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177 printf "%s\n" "no" >&6; } 3178 SET_MAKE="MAKE=${MAKE-make}" 3179 fi 3180 3181 rm -rf .tst 2>/dev/null 3182 mkdir .tst 2>/dev/null 3183 if test -d .tst; then 3184 am__leading_dot=. 3185 else 3186 am__leading_dot=_ 3187 fi 3188 rmdir .tst 2>/dev/null 3189 3190 AM_DEFAULT_VERBOSITY=1 3191 # Check whether --enable-silent-rules was given. 3192 if test ${enable_silent_rules+y} 3193 then : 3194 enableval=$enable_silent_rules; 3195 fi 3196 3197 am_make=${MAKE-make} 3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3199 printf %s "checking whether $am_make supports nested variables... " >&6; } 3200 if test ${am_cv_make_support_nested_variables+y} 3201 then : 3202 printf %s "(cached) " >&6 3203 else case e in #( 3204 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3205 BAR0=false 3206 BAR1=true 3207 V=1 3208 am__doit: 3209 @$(TRUE) 3210 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3211 am_cv_make_support_nested_variables=yes 3212 else 3213 am_cv_make_support_nested_variables=no 3214 fi ;; 3215 esac 3216 fi 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3218 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3219 AM_BACKSLASH='\' 3220 3221 am__rm_f_notfound= 3222 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3223 then : 3224 3225 else case e in #( 3226 e) am__rm_f_notfound='""' ;; 3227 esac 3228 fi 3229 3230 3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3232 printf %s "checking xargs -n works... " >&6; } 3233 if test ${am_cv_xargs_n_works+y} 3234 then : 3235 printf %s "(cached) " >&6 3236 else case e in #( 3237 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3238 3" 3239 then : 3240 am_cv_xargs_n_works=yes 3241 else case e in #( 3242 e) am_cv_xargs_n_works=no ;; 3243 esac 3244 fi ;; 3245 esac 3246 fi 3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3248 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3249 if test "$am_cv_xargs_n_works" = yes 3250 then : 3251 am__xargs_n='xargs -n' 3252 else case e in #( 3253 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3254 ;; 3255 esac 3256 fi 3257 3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3260 # is not polluted with repeated "-I." 3261 am__isrc=' -I$(srcdir)' 3262 # test to see if srcdir already configured 3263 if test -f $srcdir/config.status; then 3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3265 fi 3266 fi 3267 3268 # test whether we have cygpath 3269 if test -z "$CYGPATH_W"; then 3270 if (cygpath --version) >/dev/null 2>/dev/null; then 3271 CYGPATH_W='cygpath -w' 3272 else 3273 CYGPATH_W=echo 3274 fi 3275 fi 3276 3277 3278 # Define the identity of the package. 3279 PACKAGE='xmag' 3280 VERSION='1.0.8' 3281 3282 3283 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3284 3285 3286 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3287 3288 # Some tools Automake needs. 3289 3290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3291 3292 3293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3294 3295 3296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3297 3298 3299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3300 3301 3302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3303 3304 # For better backward compatibility. To be removed once Automake 1.9.x 3305 # dies out for good. For more background, see: 3306 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3307 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3308 mkdir_p='$(MKDIR_P)' 3309 3310 # We need awk for the "check" target (and possibly the TAP driver). The 3311 # system "awk" is bad on some platforms. 3312 # Always define AMTAR for backward compatibility. Yes, it's still used 3313 # in the wild :-( We should find a proper way to deprecate it ... 3314 AMTAR='$${TAR-tar}' 3315 3316 3317 # We'll loop over all known methods to create a tar archive until one works. 3318 _am_tools='gnutar pax cpio none' 3319 3320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3321 3322 3323 3324 3325 3326 # Variables for tags utilities; see am/tags.am 3327 if test -z "$CTAGS"; then 3328 CTAGS=ctags 3329 fi 3330 3331 if test -z "$ETAGS"; then 3332 ETAGS=etags 3333 fi 3334 3335 if test -z "$CSCOPE"; then 3336 CSCOPE=cscope 3337 fi 3338 3339 3340 3341 3342 3343 3344 3345 3346 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 DEPDIR="${am__leading_dot}deps" 3368 3369 ac_config_commands="$ac_config_commands depfiles" 3370 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3372 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3373 cat > confinc.mk << 'END' 3374 am__doit: 3375 @echo this is the am__doit target >confinc.out 3376 .PHONY: am__doit 3377 END 3378 am__include="#" 3379 am__quote= 3380 # BSD make does it like this. 3381 echo '.include "confinc.mk" # ignored' > confmf.BSD 3382 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3383 echo 'include confinc.mk # ignored' > confmf.GNU 3384 _am_result=no 3385 for s in GNU BSD; do 3386 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3387 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } 3391 case $?:`cat confinc.out 2>/dev/null` in #( 3392 '0:this is the am__doit target') : 3393 case $s in #( 3394 BSD) : 3395 am__include='.include' am__quote='"' ;; #( 3396 *) : 3397 am__include='include' am__quote='' ;; 3398 esac ;; #( 3399 *) : 3400 ;; 3401 esac 3402 if test "$am__include" != "#"; then 3403 _am_result="yes ($s style)" 3404 break 3405 fi 3406 done 3407 rm -f confinc.* confmf.* 3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3409 printf "%s\n" "${_am_result}" >&6; } 3410 3411 # Check whether --enable-dependency-tracking was given. 3412 if test ${enable_dependency_tracking+y} 3413 then : 3414 enableval=$enable_dependency_tracking; 3415 fi 3416 3417 if test "x$enable_dependency_tracking" != xno; then 3418 am_depcomp="$ac_aux_dir/depcomp" 3419 AMDEPBACKSLASH='\' 3420 am__nodep='_no' 3421 fi 3422 if test "x$enable_dependency_tracking" != xno; then 3423 AMDEP_TRUE= 3424 AMDEP_FALSE='#' 3425 else 3426 AMDEP_TRUE='#' 3427 AMDEP_FALSE= 3428 fi 3429 3430 3431 ac_ext=c 3432 ac_cpp='$CPP $CPPFLAGS' 3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3436 if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3438 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440 printf %s "checking for $ac_word... " >&6; } 3441 if test ${ac_cv_prog_CC+y} 3442 then : 3443 printf %s "(cached) " >&6 3444 else case e in #( 3445 e) if test -n "$CC"; then 3446 ac_cv_prog_CC="$CC" # Let the user override the test. 3447 else 3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449 for as_dir in $PATH 3450 do 3451 IFS=$as_save_IFS 3452 case $as_dir in #((( 3453 '') as_dir=./ ;; 3454 */) ;; 3455 *) as_dir=$as_dir/ ;; 3456 esac 3457 for ac_exec_ext in '' $ac_executable_extensions; do 3458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3459 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3461 break 2 3462 fi 3463 done 3464 done 3465 IFS=$as_save_IFS 3466 3467 fi ;; 3468 esac 3469 fi 3470 CC=$ac_cv_prog_CC 3471 if test -n "$CC"; then 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3473 printf "%s\n" "$CC" >&6; } 3474 else 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476 printf "%s\n" "no" >&6; } 3477 fi 3478 3479 3480 fi 3481 if test -z "$ac_cv_prog_CC"; then 3482 ac_ct_CC=$CC 3483 # Extract the first word of "gcc", so it can be a program name with args. 3484 set dummy gcc; ac_word=$2 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486 printf %s "checking for $ac_word... " >&6; } 3487 if test ${ac_cv_prog_ac_ct_CC+y} 3488 then : 3489 printf %s "(cached) " >&6 3490 else case e in #( 3491 e) if test -n "$ac_ct_CC"; then 3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3493 else 3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495 for as_dir in $PATH 3496 do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_ac_ct_CC="gcc" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509 done 3510 done 3511 IFS=$as_save_IFS 3512 3513 fi ;; 3514 esac 3515 fi 3516 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3517 if test -n "$ac_ct_CC"; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3519 printf "%s\n" "$ac_ct_CC" >&6; } 3520 else 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522 printf "%s\n" "no" >&6; } 3523 fi 3524 3525 if test "x$ac_ct_CC" = x; then 3526 CC="" 3527 else 3528 case $cross_compiling:$ac_tool_warned in 3529 yes:) 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3532 ac_tool_warned=yes ;; 3533 esac 3534 CC=$ac_ct_CC 3535 fi 3536 else 3537 CC="$ac_cv_prog_CC" 3538 fi 3539 3540 if test -z "$CC"; then 3541 if test -n "$ac_tool_prefix"; then 3542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3543 set dummy ${ac_tool_prefix}cc; ac_word=$2 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545 printf %s "checking for $ac_word... " >&6; } 3546 if test ${ac_cv_prog_CC+y} 3547 then : 3548 printf %s "(cached) " >&6 3549 else case e in #( 3550 e) if test -n "$CC"; then 3551 ac_cv_prog_CC="$CC" # Let the user override the test. 3552 else 3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554 for as_dir in $PATH 3555 do 3556 IFS=$as_save_IFS 3557 case $as_dir in #((( 3558 '') as_dir=./ ;; 3559 */) ;; 3560 *) as_dir=$as_dir/ ;; 3561 esac 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3564 ac_cv_prog_CC="${ac_tool_prefix}cc" 3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3566 break 2 3567 fi 3568 done 3569 done 3570 IFS=$as_save_IFS 3571 3572 fi ;; 3573 esac 3574 fi 3575 CC=$ac_cv_prog_CC 3576 if test -n "$CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578 printf "%s\n" "$CC" >&6; } 3579 else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581 printf "%s\n" "no" >&6; } 3582 fi 3583 3584 3585 fi 3586 fi 3587 if test -z "$CC"; then 3588 # Extract the first word of "cc", so it can be a program name with args. 3589 set dummy cc; ac_word=$2 3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591 printf %s "checking for $ac_word... " >&6; } 3592 if test ${ac_cv_prog_CC+y} 3593 then : 3594 printf %s "(cached) " >&6 3595 else case e in #( 3596 e) if test -n "$CC"; then 3597 ac_cv_prog_CC="$CC" # Let the user override the test. 3598 else 3599 ac_prog_rejected=no 3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601 for as_dir in $PATH 3602 do 3603 IFS=$as_save_IFS 3604 case $as_dir in #((( 3605 '') as_dir=./ ;; 3606 */) ;; 3607 *) as_dir=$as_dir/ ;; 3608 esac 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3611 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3612 ac_prog_rejected=yes 3613 continue 3614 fi 3615 ac_cv_prog_CC="cc" 3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619 done 3620 done 3621 IFS=$as_save_IFS 3622 3623 if test $ac_prog_rejected = yes; then 3624 # We found a bogon in the path, so make sure we never use it. 3625 set dummy $ac_cv_prog_CC 3626 shift 3627 if test $# != 0; then 3628 # We chose a different compiler from the bogus one. 3629 # However, it has the same basename, so the bogon will be chosen 3630 # first if we set CC to just the basename; use the full file name. 3631 shift 3632 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3633 fi 3634 fi 3635 fi ;; 3636 esac 3637 fi 3638 CC=$ac_cv_prog_CC 3639 if test -n "$CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641 printf "%s\n" "$CC" >&6; } 3642 else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644 printf "%s\n" "no" >&6; } 3645 fi 3646 3647 3648 fi 3649 if test -z "$CC"; then 3650 if test -n "$ac_tool_prefix"; then 3651 for ac_prog in cl.exe 3652 do 3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3656 printf %s "checking for $ac_word... " >&6; } 3657 if test ${ac_cv_prog_CC+y} 3658 then : 3659 printf %s "(cached) " >&6 3660 else case e in #( 3661 e) if test -n "$CC"; then 3662 ac_cv_prog_CC="$CC" # Let the user override the test. 3663 else 3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665 for as_dir in $PATH 3666 do 3667 IFS=$as_save_IFS 3668 case $as_dir in #((( 3669 '') as_dir=./ ;; 3670 */) ;; 3671 *) as_dir=$as_dir/ ;; 3672 esac 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3677 break 2 3678 fi 3679 done 3680 done 3681 IFS=$as_save_IFS 3682 3683 fi ;; 3684 esac 3685 fi 3686 CC=$ac_cv_prog_CC 3687 if test -n "$CC"; then 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3689 printf "%s\n" "$CC" >&6; } 3690 else 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3692 printf "%s\n" "no" >&6; } 3693 fi 3694 3695 3696 test -n "$CC" && break 3697 done 3698 fi 3699 if test -z "$CC"; then 3700 ac_ct_CC=$CC 3701 for ac_prog in cl.exe 3702 do 3703 # Extract the first word of "$ac_prog", so it can be a program name with args. 3704 set dummy $ac_prog; ac_word=$2 3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3706 printf %s "checking for $ac_word... " >&6; } 3707 if test ${ac_cv_prog_ac_ct_CC+y} 3708 then : 3709 printf %s "(cached) " >&6 3710 else case e in #( 3711 e) if test -n "$ac_ct_CC"; then 3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3713 else 3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3715 for as_dir in $PATH 3716 do 3717 IFS=$as_save_IFS 3718 case $as_dir in #((( 3719 '') as_dir=./ ;; 3720 */) ;; 3721 *) as_dir=$as_dir/ ;; 3722 esac 3723 for ac_exec_ext in '' $ac_executable_extensions; do 3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3725 ac_cv_prog_ac_ct_CC="$ac_prog" 3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3727 break 2 3728 fi 3729 done 3730 done 3731 IFS=$as_save_IFS 3732 3733 fi ;; 3734 esac 3735 fi 3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3737 if test -n "$ac_ct_CC"; then 3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3739 printf "%s\n" "$ac_ct_CC" >&6; } 3740 else 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742 printf "%s\n" "no" >&6; } 3743 fi 3744 3745 3746 test -n "$ac_ct_CC" && break 3747 done 3748 3749 if test "x$ac_ct_CC" = x; then 3750 CC="" 3751 else 3752 case $cross_compiling:$ac_tool_warned in 3753 yes:) 3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3756 ac_tool_warned=yes ;; 3757 esac 3758 CC=$ac_ct_CC 3759 fi 3760 fi 3761 3762 fi 3763 if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3766 set dummy ${ac_tool_prefix}clang; ac_word=$2 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768 printf %s "checking for $ac_word... " >&6; } 3769 if test ${ac_cv_prog_CC+y} 3770 then : 3771 printf %s "(cached) " >&6 3772 else case e in #( 3773 e) if test -n "$CC"; then 3774 ac_cv_prog_CC="$CC" # Let the user override the test. 3775 else 3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777 for as_dir in $PATH 3778 do 3779 IFS=$as_save_IFS 3780 case $as_dir in #((( 3781 '') as_dir=./ ;; 3782 */) ;; 3783 *) as_dir=$as_dir/ ;; 3784 esac 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="${ac_tool_prefix}clang" 3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791 done 3792 done 3793 IFS=$as_save_IFS 3794 3795 fi ;; 3796 esac 3797 fi 3798 CC=$ac_cv_prog_CC 3799 if test -n "$CC"; then 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3801 printf "%s\n" "$CC" >&6; } 3802 else 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804 printf "%s\n" "no" >&6; } 3805 fi 3806 3807 3808 fi 3809 if test -z "$ac_cv_prog_CC"; then 3810 ac_ct_CC=$CC 3811 # Extract the first word of "clang", so it can be a program name with args. 3812 set dummy clang; ac_word=$2 3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814 printf %s "checking for $ac_word... " >&6; } 3815 if test ${ac_cv_prog_ac_ct_CC+y} 3816 then : 3817 printf %s "(cached) " >&6 3818 else case e in #( 3819 e) if test -n "$ac_ct_CC"; then 3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3821 else 3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823 for as_dir in $PATH 3824 do 3825 IFS=$as_save_IFS 3826 case $as_dir in #((( 3827 '') as_dir=./ ;; 3828 */) ;; 3829 *) as_dir=$as_dir/ ;; 3830 esac 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3833 ac_cv_prog_ac_ct_CC="clang" 3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3835 break 2 3836 fi 3837 done 3838 done 3839 IFS=$as_save_IFS 3840 3841 fi ;; 3842 esac 3843 fi 3844 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3845 if test -n "$ac_ct_CC"; then 3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3847 printf "%s\n" "$ac_ct_CC" >&6; } 3848 else 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3850 printf "%s\n" "no" >&6; } 3851 fi 3852 3853 if test "x$ac_ct_CC" = x; then 3854 CC="" 3855 else 3856 case $cross_compiling:$ac_tool_warned in 3857 yes:) 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3860 ac_tool_warned=yes ;; 3861 esac 3862 CC=$ac_ct_CC 3863 fi 3864 else 3865 CC="$ac_cv_prog_CC" 3866 fi 3867 3868 fi 3869 3870 3871 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3872 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3873 as_fn_error $? "no acceptable C compiler found in \$PATH 3874 See 'config.log' for more details" "$LINENO" 5; } 3875 3876 # Provide some information about the compiler. 3877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3878 set X $ac_compile 3879 ac_compiler=$2 3880 for ac_option in --version -v -V -qversion -version; do 3881 { { ac_try="$ac_compiler $ac_option >&5" 3882 case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885 esac 3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887 printf "%s\n" "$ac_try_echo"; } >&5 3888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3889 ac_status=$? 3890 if test -s conftest.err; then 3891 sed '10a\ 3892 ... rest of stderr output deleted ... 3893 10q' conftest.err >conftest.er1 3894 cat conftest.er1 >&5 3895 fi 3896 rm -f conftest.er1 conftest.err 3897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3898 test $ac_status = 0; } 3899 done 3900 3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902 /* end confdefs.h. */ 3903 3904 int 3905 main (void) 3906 { 3907 3908 ; 3909 return 0; 3910 } 3911 _ACEOF 3912 ac_clean_files_save=$ac_clean_files 3913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3914 # Try to create an executable without -o first, disregard a.out. 3915 # It will help us diagnose broken compilers, and finding out an intuition 3916 # of exeext. 3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3918 printf %s "checking whether the C compiler works... " >&6; } 3919 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3920 3921 # The possible output files: 3922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3923 3924 ac_rmfiles= 3925 for ac_file in $ac_files 3926 do 3927 case $ac_file in 3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3929 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3930 esac 3931 done 3932 rm -f $ac_rmfiles 3933 3934 if { { ac_try="$ac_link_default" 3935 case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938 esac 3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940 printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_link_default") 2>&5 3942 ac_status=$? 3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3944 test $ac_status = 0; } 3945 then : 3946 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3947 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3948 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3949 # so that the user can short-circuit this test for compilers unknown to 3950 # Autoconf. 3951 for ac_file in $ac_files '' 3952 do 3953 test -f "$ac_file" || continue 3954 case $ac_file in 3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3956 ;; 3957 [ab].out ) 3958 # We found the default executable, but exeext='' is most 3959 # certainly right. 3960 break;; 3961 *.* ) 3962 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3963 then :; else 3964 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3965 fi 3966 # We set ac_cv_exeext here because the later test for it is not 3967 # safe: cross compilers may not add the suffix if given an '-o' 3968 # argument, so we may need to know it at that point already. 3969 # Even if this section looks crufty: it has the advantage of 3970 # actually working. 3971 break;; 3972 * ) 3973 break;; 3974 esac 3975 done 3976 test "$ac_cv_exeext" = no && ac_cv_exeext= 3977 3978 else case e in #( 3979 e) ac_file='' ;; 3980 esac 3981 fi 3982 if test -z "$ac_file" 3983 then : 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3985 printf "%s\n" "no" >&6; } 3986 printf "%s\n" "$as_me: failed program was:" >&5 3987 sed 's/^/| /' conftest.$ac_ext >&5 3988 3989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3990 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3991 as_fn_error 77 "C compiler cannot create executables 3992 See 'config.log' for more details" "$LINENO" 5; } 3993 else case e in #( 3994 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3995 printf "%s\n" "yes" >&6; } ;; 3996 esac 3997 fi 3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3999 printf %s "checking for C compiler default output file name... " >&6; } 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4001 printf "%s\n" "$ac_file" >&6; } 4002 ac_exeext=$ac_cv_exeext 4003 4004 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4005 ac_clean_files=$ac_clean_files_save 4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4007 printf %s "checking for suffix of executables... " >&6; } 4008 if { { ac_try="$ac_link" 4009 case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012 esac 4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014 printf "%s\n" "$ac_try_echo"; } >&5 4015 (eval "$ac_link") 2>&5 4016 ac_status=$? 4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; } 4019 then : 4020 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4021 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4022 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4023 # 'rm'. 4024 for ac_file in conftest.exe conftest conftest.*; do 4025 test -f "$ac_file" || continue 4026 case $ac_file in 4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4029 break;; 4030 * ) break;; 4031 esac 4032 done 4033 else case e in #( 4034 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4035 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4036 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4037 See 'config.log' for more details" "$LINENO" 5; } ;; 4038 esac 4039 fi 4040 rm -f conftest conftest$ac_cv_exeext 4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4042 printf "%s\n" "$ac_cv_exeext" >&6; } 4043 4044 rm -f conftest.$ac_ext 4045 EXEEXT=$ac_cv_exeext 4046 ac_exeext=$EXEEXT 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048 /* end confdefs.h. */ 4049 #include <stdio.h> 4050 int 4051 main (void) 4052 { 4053 FILE *f = fopen ("conftest.out", "w"); 4054 if (!f) 4055 return 1; 4056 return ferror (f) || fclose (f) != 0; 4057 4058 ; 4059 return 0; 4060 } 4061 _ACEOF 4062 ac_clean_files="$ac_clean_files conftest.out" 4063 # Check that the compiler produces executables we can run. If not, either 4064 # the compiler is broken, or we cross compile. 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4066 printf %s "checking whether we are cross compiling... " >&6; } 4067 if test "$cross_compiling" != yes; then 4068 { { ac_try="$ac_link" 4069 case "(($ac_try" in 4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4071 *) ac_try_echo=$ac_try;; 4072 esac 4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4074 printf "%s\n" "$ac_try_echo"; } >&5 4075 (eval "$ac_link") 2>&5 4076 ac_status=$? 4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4078 test $ac_status = 0; } 4079 if { ac_try='./conftest$ac_cv_exeext' 4080 { { case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083 esac 4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085 printf "%s\n" "$ac_try_echo"; } >&5 4086 (eval "$ac_try") 2>&5 4087 ac_status=$? 4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4089 test $ac_status = 0; }; }; then 4090 cross_compiling=no 4091 else 4092 if test "$cross_compiling" = maybe; then 4093 cross_compiling=yes 4094 else 4095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4097 as_fn_error 77 "cannot run C compiled programs. 4098 If you meant to cross compile, use '--host'. 4099 See 'config.log' for more details" "$LINENO" 5; } 4100 fi 4101 fi 4102 fi 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4104 printf "%s\n" "$cross_compiling" >&6; } 4105 4106 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4107 conftest.o conftest.obj conftest.out 4108 ac_clean_files=$ac_clean_files_save 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4110 printf %s "checking for suffix of object files... " >&6; } 4111 if test ${ac_cv_objext+y} 4112 then : 4113 printf %s "(cached) " >&6 4114 else case e in #( 4115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116 /* end confdefs.h. */ 4117 4118 int 4119 main (void) 4120 { 4121 4122 ; 4123 return 0; 4124 } 4125 _ACEOF 4126 rm -f conftest.o conftest.obj 4127 if { { ac_try="$ac_compile" 4128 case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131 esac 4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133 printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_compile") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; } 4138 then : 4139 for ac_file in conftest.o conftest.obj conftest.*; do 4140 test -f "$ac_file" || continue; 4141 case $ac_file in 4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4144 break;; 4145 esac 4146 done 4147 else case e in #( 4148 e) printf "%s\n" "$as_me: failed program was:" >&5 4149 sed 's/^/| /' conftest.$ac_ext >&5 4150 4151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4152 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4153 as_fn_error $? "cannot compute suffix of object files: cannot compile 4154 See 'config.log' for more details" "$LINENO" 5; } ;; 4155 esac 4156 fi 4157 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4158 esac 4159 fi 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4161 printf "%s\n" "$ac_cv_objext" >&6; } 4162 OBJEXT=$ac_cv_objext 4163 ac_objext=$OBJEXT 4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4165 printf %s "checking whether the compiler supports GNU C... " >&6; } 4166 if test ${ac_cv_c_compiler_gnu+y} 4167 then : 4168 printf %s "(cached) " >&6 4169 else case e in #( 4170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4171 /* end confdefs.h. */ 4172 4173 int 4174 main (void) 4175 { 4176 #ifndef __GNUC__ 4177 choke me 4178 #endif 4179 4180 ; 4181 return 0; 4182 } 4183 _ACEOF 4184 if ac_fn_c_try_compile "$LINENO" 4185 then : 4186 ac_compiler_gnu=yes 4187 else case e in #( 4188 e) ac_compiler_gnu=no ;; 4189 esac 4190 fi 4191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4192 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4193 ;; 4194 esac 4195 fi 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4197 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4199 4200 if test $ac_compiler_gnu = yes; then 4201 GCC=yes 4202 else 4203 GCC= 4204 fi 4205 ac_test_CFLAGS=${CFLAGS+y} 4206 ac_save_CFLAGS=$CFLAGS 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4208 printf %s "checking whether $CC accepts -g... " >&6; } 4209 if test ${ac_cv_prog_cc_g+y} 4210 then : 4211 printf %s "(cached) " >&6 4212 else case e in #( 4213 e) ac_save_c_werror_flag=$ac_c_werror_flag 4214 ac_c_werror_flag=yes 4215 ac_cv_prog_cc_g=no 4216 CFLAGS="-g" 4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218 /* end confdefs.h. */ 4219 4220 int 4221 main (void) 4222 { 4223 4224 ; 4225 return 0; 4226 } 4227 _ACEOF 4228 if ac_fn_c_try_compile "$LINENO" 4229 then : 4230 ac_cv_prog_cc_g=yes 4231 else case e in #( 4232 e) CFLAGS="" 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234 /* end confdefs.h. */ 4235 4236 int 4237 main (void) 4238 { 4239 4240 ; 4241 return 0; 4242 } 4243 _ACEOF 4244 if ac_fn_c_try_compile "$LINENO" 4245 then : 4246 4247 else case e in #( 4248 e) ac_c_werror_flag=$ac_save_c_werror_flag 4249 CFLAGS="-g" 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251 /* end confdefs.h. */ 4252 4253 int 4254 main (void) 4255 { 4256 4257 ; 4258 return 0; 4259 } 4260 _ACEOF 4261 if ac_fn_c_try_compile "$LINENO" 4262 then : 4263 ac_cv_prog_cc_g=yes 4264 fi 4265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4266 esac 4267 fi 4268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4269 esac 4270 fi 4271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4272 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4273 esac 4274 fi 4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4276 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4277 if test $ac_test_CFLAGS; then 4278 CFLAGS=$ac_save_CFLAGS 4279 elif test $ac_cv_prog_cc_g = yes; then 4280 if test "$GCC" = yes; then 4281 CFLAGS="-g -O2" 4282 else 4283 CFLAGS="-g" 4284 fi 4285 else 4286 if test "$GCC" = yes; then 4287 CFLAGS="-O2" 4288 else 4289 CFLAGS= 4290 fi 4291 fi 4292 ac_prog_cc_stdc=no 4293 if test x$ac_prog_cc_stdc = xno 4294 then : 4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4296 printf %s "checking for $CC option to enable C11 features... " >&6; } 4297 if test ${ac_cv_prog_cc_c11+y} 4298 then : 4299 printf %s "(cached) " >&6 4300 else case e in #( 4301 e) ac_cv_prog_cc_c11=no 4302 ac_save_CC=$CC 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304 /* end confdefs.h. */ 4305 $ac_c_conftest_c11_program 4306 _ACEOF 4307 for ac_arg in '' -std=gnu11 4308 do 4309 CC="$ac_save_CC $ac_arg" 4310 if ac_fn_c_try_compile "$LINENO" 4311 then : 4312 ac_cv_prog_cc_c11=$ac_arg 4313 fi 4314 rm -f core conftest.err conftest.$ac_objext conftest.beam 4315 test "x$ac_cv_prog_cc_c11" != "xno" && break 4316 done 4317 rm -f conftest.$ac_ext 4318 CC=$ac_save_CC ;; 4319 esac 4320 fi 4321 4322 if test "x$ac_cv_prog_cc_c11" = xno 4323 then : 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4325 printf "%s\n" "unsupported" >&6; } 4326 else case e in #( 4327 e) if test "x$ac_cv_prog_cc_c11" = x 4328 then : 4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4330 printf "%s\n" "none needed" >&6; } 4331 else case e in #( 4332 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4333 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4334 CC="$CC $ac_cv_prog_cc_c11" ;; 4335 esac 4336 fi 4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4338 ac_prog_cc_stdc=c11 ;; 4339 esac 4340 fi 4341 fi 4342 if test x$ac_prog_cc_stdc = xno 4343 then : 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4345 printf %s "checking for $CC option to enable C99 features... " >&6; } 4346 if test ${ac_cv_prog_cc_c99+y} 4347 then : 4348 printf %s "(cached) " >&6 4349 else case e in #( 4350 e) ac_cv_prog_cc_c99=no 4351 ac_save_CC=$CC 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353 /* end confdefs.h. */ 4354 $ac_c_conftest_c99_program 4355 _ACEOF 4356 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4357 do 4358 CC="$ac_save_CC $ac_arg" 4359 if ac_fn_c_try_compile "$LINENO" 4360 then : 4361 ac_cv_prog_cc_c99=$ac_arg 4362 fi 4363 rm -f core conftest.err conftest.$ac_objext conftest.beam 4364 test "x$ac_cv_prog_cc_c99" != "xno" && break 4365 done 4366 rm -f conftest.$ac_ext 4367 CC=$ac_save_CC ;; 4368 esac 4369 fi 4370 4371 if test "x$ac_cv_prog_cc_c99" = xno 4372 then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4374 printf "%s\n" "unsupported" >&6; } 4375 else case e in #( 4376 e) if test "x$ac_cv_prog_cc_c99" = x 4377 then : 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379 printf "%s\n" "none needed" >&6; } 4380 else case e in #( 4381 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4382 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4383 CC="$CC $ac_cv_prog_cc_c99" ;; 4384 esac 4385 fi 4386 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4387 ac_prog_cc_stdc=c99 ;; 4388 esac 4389 fi 4390 fi 4391 if test x$ac_prog_cc_stdc = xno 4392 then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4394 printf %s "checking for $CC option to enable C89 features... " >&6; } 4395 if test ${ac_cv_prog_cc_c89+y} 4396 then : 4397 printf %s "(cached) " >&6 4398 else case e in #( 4399 e) ac_cv_prog_cc_c89=no 4400 ac_save_CC=$CC 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402 /* end confdefs.h. */ 4403 $ac_c_conftest_c89_program 4404 _ACEOF 4405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4406 do 4407 CC="$ac_save_CC $ac_arg" 4408 if ac_fn_c_try_compile "$LINENO" 4409 then : 4410 ac_cv_prog_cc_c89=$ac_arg 4411 fi 4412 rm -f core conftest.err conftest.$ac_objext conftest.beam 4413 test "x$ac_cv_prog_cc_c89" != "xno" && break 4414 done 4415 rm -f conftest.$ac_ext 4416 CC=$ac_save_CC ;; 4417 esac 4418 fi 4419 4420 if test "x$ac_cv_prog_cc_c89" = xno 4421 then : 4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4423 printf "%s\n" "unsupported" >&6; } 4424 else case e in #( 4425 e) if test "x$ac_cv_prog_cc_c89" = x 4426 then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4428 printf "%s\n" "none needed" >&6; } 4429 else case e in #( 4430 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4431 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4432 CC="$CC $ac_cv_prog_cc_c89" ;; 4433 esac 4434 fi 4435 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4436 ac_prog_cc_stdc=c89 ;; 4437 esac 4438 fi 4439 fi 4440 4441 ac_ext=c 4442 ac_cpp='$CPP $CPPFLAGS' 4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4446 4447 4448 ac_ext=c 4449 ac_cpp='$CPP $CPPFLAGS' 4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4454 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4455 if test ${am_cv_prog_cc_c_o+y} 4456 then : 4457 printf %s "(cached) " >&6 4458 else case e in #( 4459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460 /* end confdefs.h. */ 4461 4462 int 4463 main (void) 4464 { 4465 4466 ; 4467 return 0; 4468 } 4469 _ACEOF 4470 # Make sure it works both with $CC and with simple cc. 4471 # Following AC_PROG_CC_C_O, we do the test twice because some 4472 # compilers refuse to overwrite an existing .o file with -o, 4473 # though they will create one. 4474 am_cv_prog_cc_c_o=yes 4475 for am_i in 1 2; do 4476 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4477 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4478 ac_status=$? 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); } \ 4481 && test -f conftest2.$ac_objext; then 4482 : OK 4483 else 4484 am_cv_prog_cc_c_o=no 4485 break 4486 fi 4487 done 4488 rm -f core conftest* 4489 unset am_i ;; 4490 esac 4491 fi 4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4493 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4494 if test "$am_cv_prog_cc_c_o" != yes; then 4495 # Losing compiler, so override with the script. 4496 # FIXME: It is wrong to rewrite CC. 4497 # But if we don't then we get into trouble of one sort or another. 4498 # A longer-term fix would be to have automake use am__CC in this case, 4499 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4500 CC="$am_aux_dir/compile $CC" 4501 fi 4502 ac_ext=c 4503 ac_cpp='$CPP $CPPFLAGS' 4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507 4508 4509 depcc="$CC" am_compiler_list= 4510 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4512 printf %s "checking dependency style of $depcc... " >&6; } 4513 if test ${am_cv_CC_dependencies_compiler_type+y} 4514 then : 4515 printf %s "(cached) " >&6 4516 else case e in #( 4517 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4518 # We make a subdir and do the tests there. Otherwise we can end up 4519 # making bogus files that we don't know about and never remove. For 4520 # instance it was reported that on HP-UX the gcc test will end up 4521 # making a dummy file named 'D' -- because '-MD' means "put the output 4522 # in D". 4523 rm -rf conftest.dir 4524 mkdir conftest.dir 4525 # Copy depcomp to subdir because otherwise we won't find it if we're 4526 # using a relative directory. 4527 cp "$am_depcomp" conftest.dir 4528 cd conftest.dir 4529 # We will build objects and dependencies in a subdirectory because 4530 # it helps to detect inapplicable dependency modes. For instance 4531 # both Tru64's cc and ICC support -MD to output dependencies as a 4532 # side effect of compilation, but ICC will put the dependencies in 4533 # the current directory while Tru64 will put them in the object 4534 # directory. 4535 mkdir sub 4536 4537 am_cv_CC_dependencies_compiler_type=none 4538 if test "$am_compiler_list" = ""; then 4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4540 fi 4541 am__universal=false 4542 case " $depcc " in #( 4543 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4544 esac 4545 4546 for depmode in $am_compiler_list; do 4547 # Setup a source with many dependencies, because some compilers 4548 # like to wrap large dependency lists on column 80 (with \), and 4549 # we should not choose a depcomp mode which is confused by this. 4550 # 4551 # We need to recreate these files for each test, as the compiler may 4552 # overwrite some of them when testing with obscure command lines. 4553 # This happens at least with the AIX C compiler. 4554 : > sub/conftest.c 4555 for i in 1 2 3 4 5 6; do 4556 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4558 # Solaris 10 /bin/sh. 4559 echo '/* dummy */' > sub/conftst$i.h 4560 done 4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4562 4563 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4564 # mode. It turns out that the SunPro C++ compiler does not properly 4565 # handle '-M -o', and we need to detect this. Also, some Intel 4566 # versions had trouble with output in subdirs. 4567 am__obj=sub/conftest.${OBJEXT-o} 4568 am__minus_obj="-o $am__obj" 4569 case $depmode in 4570 gcc) 4571 # This depmode causes a compiler race in universal mode. 4572 test "$am__universal" = false || continue 4573 ;; 4574 nosideeffect) 4575 # After this tag, mechanisms are not by side-effect, so they'll 4576 # only be used when explicitly requested. 4577 if test "x$enable_dependency_tracking" = xyes; then 4578 continue 4579 else 4580 break 4581 fi 4582 ;; 4583 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4584 # This compiler won't grok '-c -o', but also, the minuso test has 4585 # not run yet. These depmodes are late enough in the game, and 4586 # so weak that their functioning should not be impacted. 4587 am__obj=conftest.${OBJEXT-o} 4588 am__minus_obj= 4589 ;; 4590 none) break ;; 4591 esac 4592 if depmode=$depmode \ 4593 source=sub/conftest.c object=$am__obj \ 4594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4596 >/dev/null 2>conftest.err && 4597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4601 # icc doesn't choke on unknown options, it will just issue warnings 4602 # or remarks (even with -Werror). So we grep stderr for any message 4603 # that says an option was ignored or not supported. 4604 # When given -MP, icc 7.0 and 7.1 complain thus: 4605 # icc: Command line warning: ignoring option '-M'; no argument required 4606 # The diagnosis changed in icc 8.0: 4607 # icc: Command line remark: option '-MP' not supported 4608 if (grep 'ignoring option' conftest.err || 4609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4610 am_cv_CC_dependencies_compiler_type=$depmode 4611 break 4612 fi 4613 fi 4614 done 4615 4616 cd .. 4617 rm -rf conftest.dir 4618 else 4619 am_cv_CC_dependencies_compiler_type=none 4620 fi 4621 ;; 4622 esac 4623 fi 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4625 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4626 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4627 4628 if 4629 test "x$enable_dependency_tracking" != xno \ 4630 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4631 am__fastdepCC_TRUE= 4632 am__fastdepCC_FALSE='#' 4633 else 4634 am__fastdepCC_TRUE='#' 4635 am__fastdepCC_FALSE= 4636 fi 4637 4638 4639 4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4641 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4642 if test ${ac_cv_c_undeclared_builtin_options+y} 4643 then : 4644 printf %s "(cached) " >&6 4645 else case e in #( 4646 e) ac_save_CFLAGS=$CFLAGS 4647 ac_cv_c_undeclared_builtin_options='cannot detect' 4648 for ac_arg in '' -fno-builtin; do 4649 CFLAGS="$ac_save_CFLAGS $ac_arg" 4650 # This test program should *not* compile successfully. 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652 /* end confdefs.h. */ 4653 4654 int 4655 main (void) 4656 { 4657 (void) strchr; 4658 ; 4659 return 0; 4660 } 4661 _ACEOF 4662 if ac_fn_c_try_compile "$LINENO" 4663 then : 4664 4665 else case e in #( 4666 e) # This test program should compile successfully. 4667 # No library function is consistently available on 4668 # freestanding implementations, so test against a dummy 4669 # declaration. Include always-available headers on the 4670 # off chance that they somehow elicit warnings. 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672 /* end confdefs.h. */ 4673 #include <float.h> 4674 #include <limits.h> 4675 #include <stdarg.h> 4676 #include <stddef.h> 4677 extern void ac_decl (int, char *); 4678 4679 int 4680 main (void) 4681 { 4682 (void) ac_decl (0, (char *) 0); 4683 (void) ac_decl; 4684 4685 ; 4686 return 0; 4687 } 4688 _ACEOF 4689 if ac_fn_c_try_compile "$LINENO" 4690 then : 4691 if test x"$ac_arg" = x 4692 then : 4693 ac_cv_c_undeclared_builtin_options='none needed' 4694 else case e in #( 4695 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4696 esac 4697 fi 4698 break 4699 fi 4700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4701 esac 4702 fi 4703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4704 done 4705 CFLAGS=$ac_save_CFLAGS 4706 ;; 4707 esac 4708 fi 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4710 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4711 case $ac_cv_c_undeclared_builtin_options in #( 4712 'cannot detect') : 4713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4714 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4715 as_fn_error $? "cannot make $CC report undeclared builtins 4716 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4717 'none needed') : 4718 ac_c_undeclared_builtin_options='' ;; #( 4719 *) : 4720 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4721 esac 4722 4723 ac_header= ac_cache= 4724 for ac_item in $ac_header_c_list 4725 do 4726 if test $ac_cache; then 4727 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4728 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4729 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4730 fi 4731 ac_header= ac_cache= 4732 elif test $ac_header; then 4733 ac_cache=$ac_item 4734 else 4735 ac_header=$ac_item 4736 fi 4737 done 4738 4739 4740 4741 4742 4743 4744 4745 4746 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4747 then : 4748 4749 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4750 4751 fi 4752 4753 4754 4755 4756 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4757 if test "x$ac_cv_have_decl___clang__" = xyes 4758 then : 4759 CLANGCC="yes" 4760 else case e in #( 4761 e) CLANGCC="no" ;; 4762 esac 4763 fi 4764 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4765 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4766 then : 4767 INTELCC="yes" 4768 else case e in #( 4769 e) INTELCC="no" ;; 4770 esac 4771 fi 4772 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4773 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4774 then : 4775 SUNCC="yes" 4776 else case e in #( 4777 e) SUNCC="no" ;; 4778 esac 4779 fi 4780 4781 4782 4783 4784 4785 4786 4787 4788 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4789 if test -n "$ac_tool_prefix"; then 4790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4793 printf %s "checking for $ac_word... " >&6; } 4794 if test ${ac_cv_path_PKG_CONFIG+y} 4795 then : 4796 printf %s "(cached) " >&6 4797 else case e in #( 4798 e) case $PKG_CONFIG in 4799 [\\/]* | ?:[\\/]*) 4800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4801 ;; 4802 *) 4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4804 for as_dir in $PATH 4805 do 4806 IFS=$as_save_IFS 4807 case $as_dir in #((( 4808 '') as_dir=./ ;; 4809 */) ;; 4810 *) as_dir=$as_dir/ ;; 4811 esac 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4814 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818 done 4819 done 4820 IFS=$as_save_IFS 4821 4822 ;; 4823 esac ;; 4824 esac 4825 fi 4826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4827 if test -n "$PKG_CONFIG"; then 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4829 printf "%s\n" "$PKG_CONFIG" >&6; } 4830 else 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832 printf "%s\n" "no" >&6; } 4833 fi 4834 4835 4836 fi 4837 if test -z "$ac_cv_path_PKG_CONFIG"; then 4838 ac_pt_PKG_CONFIG=$PKG_CONFIG 4839 # Extract the first word of "pkg-config", so it can be a program name with args. 4840 set dummy pkg-config; ac_word=$2 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842 printf %s "checking for $ac_word... " >&6; } 4843 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4844 then : 4845 printf %s "(cached) " >&6 4846 else case e in #( 4847 e) case $ac_pt_PKG_CONFIG in 4848 [\\/]* | ?:[\\/]*) 4849 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4850 ;; 4851 *) 4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853 for as_dir in $PATH 4854 do 4855 IFS=$as_save_IFS 4856 case $as_dir in #((( 4857 '') as_dir=./ ;; 4858 */) ;; 4859 *) as_dir=$as_dir/ ;; 4860 esac 4861 for ac_exec_ext in '' $ac_executable_extensions; do 4862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4863 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4865 break 2 4866 fi 4867 done 4868 done 4869 IFS=$as_save_IFS 4870 4871 ;; 4872 esac ;; 4873 esac 4874 fi 4875 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4876 if test -n "$ac_pt_PKG_CONFIG"; then 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4878 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4879 else 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881 printf "%s\n" "no" >&6; } 4882 fi 4883 4884 if test "x$ac_pt_PKG_CONFIG" = x; then 4885 PKG_CONFIG="" 4886 else 4887 case $cross_compiling:$ac_tool_warned in 4888 yes:) 4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4891 ac_tool_warned=yes ;; 4892 esac 4893 PKG_CONFIG=$ac_pt_PKG_CONFIG 4894 fi 4895 else 4896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4897 fi 4898 4899 fi 4900 if test -n "$PKG_CONFIG"; then 4901 _pkg_min_version=0.9.0 4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4903 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4906 printf "%s\n" "yes" >&6; } 4907 else 4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909 printf "%s\n" "no" >&6; } 4910 PKG_CONFIG="" 4911 fi 4912 fi 4913 4914 4915 # Make sure we can run config.sub. 4916 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4917 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4918 4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4920 printf %s "checking build system type... " >&6; } 4921 if test ${ac_cv_build+y} 4922 then : 4923 printf %s "(cached) " >&6 4924 else case e in #( 4925 e) ac_build_alias=$build_alias 4926 test "x$ac_build_alias" = x && 4927 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4928 test "x$ac_build_alias" = x && 4929 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4930 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4931 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4932 ;; 4933 esac 4934 fi 4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4936 printf "%s\n" "$ac_cv_build" >&6; } 4937 case $ac_cv_build in 4938 *-*-*) ;; 4939 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4940 esac 4941 build=$ac_cv_build 4942 ac_save_IFS=$IFS; IFS='-' 4943 set x $ac_cv_build 4944 shift 4945 build_cpu=$1 4946 build_vendor=$2 4947 shift; shift 4948 # Remember, the first character of IFS is used to create $*, 4949 # except with old shells: 4950 build_os=$* 4951 IFS=$ac_save_IFS 4952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4953 4954 4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4956 printf %s "checking host system type... " >&6; } 4957 if test ${ac_cv_host+y} 4958 then : 4959 printf %s "(cached) " >&6 4960 else case e in #( 4961 e) if test "x$host_alias" = x; then 4962 ac_cv_host=$ac_cv_build 4963 else 4964 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4965 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4966 fi 4967 ;; 4968 esac 4969 fi 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4971 printf "%s\n" "$ac_cv_host" >&6; } 4972 case $ac_cv_host in 4973 *-*-*) ;; 4974 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4975 esac 4976 host=$ac_cv_host 4977 ac_save_IFS=$IFS; IFS='-' 4978 set x $ac_cv_host 4979 shift 4980 host_cpu=$1 4981 host_vendor=$2 4982 shift; shift 4983 # Remember, the first character of IFS is used to create $*, 4984 # except with old shells: 4985 host_os=$* 4986 IFS=$ac_save_IFS 4987 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4988 4989 4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4991 printf %s "checking for a sed that does not truncate output... " >&6; } 4992 if test ${ac_cv_path_SED+y} 4993 then : 4994 printf %s "(cached) " >&6 4995 else case e in #( 4996 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4997 for ac_i in 1 2 3 4 5 6 7; do 4998 ac_script="$ac_script$as_nl$ac_script" 4999 done 5000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5001 { ac_script=; unset ac_script;} 5002 if test -z "$SED"; then 5003 ac_path_SED_found=false 5004 # Loop through the user's path and test for each of PROGNAME-LIST 5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006 for as_dir in $PATH 5007 do 5008 IFS=$as_save_IFS 5009 case $as_dir in #((( 5010 '') as_dir=./ ;; 5011 */) ;; 5012 *) as_dir=$as_dir/ ;; 5013 esac 5014 for ac_prog in sed gsed 5015 do 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5018 as_fn_executable_p "$ac_path_SED" || continue 5019 # Check for GNU ac_path_SED and select it if it is found. 5020 # Check for GNU $ac_path_SED 5021 case `"$ac_path_SED" --version 2>&1` in #( 5022 *GNU*) 5023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5024 #( 5025 *) 5026 ac_count=0 5027 printf %s 0123456789 >"conftest.in" 5028 while : 5029 do 5030 cat "conftest.in" "conftest.in" >"conftest.tmp" 5031 mv "conftest.tmp" "conftest.in" 5032 cp "conftest.in" "conftest.nl" 5033 printf "%s\n" '' >> "conftest.nl" 5034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5036 as_fn_arith $ac_count + 1 && ac_count=$as_val 5037 if test $ac_count -gt ${ac_path_SED_max-0}; then 5038 # Best one so far, save it but keep looking for a better one 5039 ac_cv_path_SED="$ac_path_SED" 5040 ac_path_SED_max=$ac_count 5041 fi 5042 # 10*(2^10) chars as input seems more than enough 5043 test $ac_count -gt 10 && break 5044 done 5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5046 esac 5047 5048 $ac_path_SED_found && break 3 5049 done 5050 done 5051 done 5052 IFS=$as_save_IFS 5053 if test -z "$ac_cv_path_SED"; then 5054 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5055 fi 5056 else 5057 ac_cv_path_SED=$SED 5058 fi 5059 ;; 5060 esac 5061 fi 5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5063 printf "%s\n" "$ac_cv_path_SED" >&6; } 5064 SED="$ac_cv_path_SED" 5065 rm -f conftest.sed 5066 5067 5068 5069 5070 5071 5072 # Check whether --enable-selective-werror was given. 5073 if test ${enable_selective_werror+y} 5074 then : 5075 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5076 else case e in #( 5077 e) SELECTIVE_WERROR=yes ;; 5078 esac 5079 fi 5080 5081 5082 5083 5084 5085 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5086 if test "x$SUNCC" = "xyes"; then 5087 BASE_CFLAGS="-v" 5088 else 5089 BASE_CFLAGS="" 5090 fi 5091 5092 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 xorg_testset_save_CFLAGS="$CFLAGS" 5107 5108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5112 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5113 then : 5114 printf %s "(cached) " >&6 5115 else case e in #( 5116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117 /* end confdefs.h. */ 5118 int i; 5119 _ACEOF 5120 if ac_fn_c_try_compile "$LINENO" 5121 then : 5122 xorg_cv_cc_flag_unknown_warning_option=yes 5123 else case e in #( 5124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5125 esac 5126 fi 5127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5128 esac 5129 fi 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134 fi 5135 5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5139 fi 5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5144 then : 5145 printf %s "(cached) " >&6 5146 else case e in #( 5147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148 /* end confdefs.h. */ 5149 int i; 5150 _ACEOF 5151 if ac_fn_c_try_compile "$LINENO" 5152 then : 5153 xorg_cv_cc_flag_unused_command_line_argument=yes 5154 else case e in #( 5155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5156 esac 5157 fi 5158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5159 esac 5160 fi 5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5164 CFLAGS="$xorg_testset_save_CFLAGS" 5165 fi 5166 5167 found="no" 5168 5169 if test $found = "no" ; then 5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5172 fi 5173 5174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5176 fi 5177 5178 CFLAGS="$CFLAGS -Wall" 5179 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5181 printf %s "checking if $CC supports -Wall... " >&6; } 5182 cacheid=xorg_cv_cc_flag__Wall 5183 if eval test \${$cacheid+y} 5184 then : 5185 printf %s "(cached) " >&6 5186 else case e in #( 5187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188 /* end confdefs.h. */ 5189 int i; 5190 int 5191 main (void) 5192 { 5193 5194 ; 5195 return 0; 5196 } 5197 _ACEOF 5198 if ac_fn_c_try_link "$LINENO" 5199 then : 5200 eval $cacheid=yes 5201 else case e in #( 5202 e) eval $cacheid=no ;; 5203 esac 5204 fi 5205 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5206 conftest$ac_exeext conftest.$ac_ext ;; 5207 esac 5208 fi 5209 5210 5211 CFLAGS="$xorg_testset_save_CFLAGS" 5212 5213 eval supported=\$$cacheid 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5215 printf "%s\n" "$supported" >&6; } 5216 if test "$supported" = "yes" ; then 5217 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5218 found="yes" 5219 fi 5220 fi 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 xorg_testset_save_CFLAGS="$CFLAGS" 5237 5238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5242 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5243 then : 5244 printf %s "(cached) " >&6 5245 else case e in #( 5246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247 /* end confdefs.h. */ 5248 int i; 5249 _ACEOF 5250 if ac_fn_c_try_compile "$LINENO" 5251 then : 5252 xorg_cv_cc_flag_unknown_warning_option=yes 5253 else case e in #( 5254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5255 esac 5256 fi 5257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5258 esac 5259 fi 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5263 CFLAGS="$xorg_testset_save_CFLAGS" 5264 fi 5265 5266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 fi 5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5274 then : 5275 printf %s "(cached) " >&6 5276 else case e in #( 5277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278 /* end confdefs.h. */ 5279 int i; 5280 _ACEOF 5281 if ac_fn_c_try_compile "$LINENO" 5282 then : 5283 xorg_cv_cc_flag_unused_command_line_argument=yes 5284 else case e in #( 5285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5286 esac 5287 fi 5288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5289 esac 5290 fi 5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5292 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295 fi 5296 5297 found="no" 5298 5299 if test $found = "no" ; then 5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 fi 5303 5304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5306 fi 5307 5308 CFLAGS="$CFLAGS -Wpointer-arith" 5309 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5311 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5312 cacheid=xorg_cv_cc_flag__Wpointer_arith 5313 if eval test \${$cacheid+y} 5314 then : 5315 printf %s "(cached) " >&6 5316 else case e in #( 5317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318 /* end confdefs.h. */ 5319 int i; 5320 int 5321 main (void) 5322 { 5323 5324 ; 5325 return 0; 5326 } 5327 _ACEOF 5328 if ac_fn_c_try_link "$LINENO" 5329 then : 5330 eval $cacheid=yes 5331 else case e in #( 5332 e) eval $cacheid=no ;; 5333 esac 5334 fi 5335 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5336 conftest$ac_exeext conftest.$ac_ext ;; 5337 esac 5338 fi 5339 5340 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342 5343 eval supported=\$$cacheid 5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345 printf "%s\n" "$supported" >&6; } 5346 if test "$supported" = "yes" ; then 5347 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5348 found="yes" 5349 fi 5350 fi 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 xorg_testset_save_CFLAGS="$CFLAGS" 5367 5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5372 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5373 then : 5374 printf %s "(cached) " >&6 5375 else case e in #( 5376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377 /* end confdefs.h. */ 5378 int i; 5379 _ACEOF 5380 if ac_fn_c_try_compile "$LINENO" 5381 then : 5382 xorg_cv_cc_flag_unknown_warning_option=yes 5383 else case e in #( 5384 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5385 esac 5386 fi 5387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5388 esac 5389 fi 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394 fi 5395 5396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 fi 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5404 then : 5405 printf %s "(cached) " >&6 5406 else case e in #( 5407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408 /* end confdefs.h. */ 5409 int i; 5410 _ACEOF 5411 if ac_fn_c_try_compile "$LINENO" 5412 then : 5413 xorg_cv_cc_flag_unused_command_line_argument=yes 5414 else case e in #( 5415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5416 esac 5417 fi 5418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5419 esac 5420 fi 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5424 CFLAGS="$xorg_testset_save_CFLAGS" 5425 fi 5426 5427 found="no" 5428 5429 if test $found = "no" ; then 5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5432 fi 5433 5434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5436 fi 5437 5438 CFLAGS="$CFLAGS -Wmissing-declarations" 5439 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5441 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5442 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5443 if eval test \${$cacheid+y} 5444 then : 5445 printf %s "(cached) " >&6 5446 else case e in #( 5447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448 /* end confdefs.h. */ 5449 int i; 5450 int 5451 main (void) 5452 { 5453 5454 ; 5455 return 0; 5456 } 5457 _ACEOF 5458 if ac_fn_c_try_link "$LINENO" 5459 then : 5460 eval $cacheid=yes 5461 else case e in #( 5462 e) eval $cacheid=no ;; 5463 esac 5464 fi 5465 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5466 conftest$ac_exeext conftest.$ac_ext ;; 5467 esac 5468 fi 5469 5470 5471 CFLAGS="$xorg_testset_save_CFLAGS" 5472 5473 eval supported=\$$cacheid 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5475 printf "%s\n" "$supported" >&6; } 5476 if test "$supported" = "yes" ; then 5477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5478 found="yes" 5479 fi 5480 fi 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 xorg_testset_save_CFLAGS="$CFLAGS" 5497 5498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5502 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5503 then : 5504 printf %s "(cached) " >&6 5505 else case e in #( 5506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507 /* end confdefs.h. */ 5508 int i; 5509 _ACEOF 5510 if ac_fn_c_try_compile "$LINENO" 5511 then : 5512 xorg_cv_cc_flag_unknown_warning_option=yes 5513 else case e in #( 5514 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5515 esac 5516 fi 5517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5518 esac 5519 fi 5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5523 CFLAGS="$xorg_testset_save_CFLAGS" 5524 fi 5525 5526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5529 fi 5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5534 then : 5535 printf %s "(cached) " >&6 5536 else case e in #( 5537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538 /* end confdefs.h. */ 5539 int i; 5540 _ACEOF 5541 if ac_fn_c_try_compile "$LINENO" 5542 then : 5543 xorg_cv_cc_flag_unused_command_line_argument=yes 5544 else case e in #( 5545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5546 esac 5547 fi 5548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5549 esac 5550 fi 5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5554 CFLAGS="$xorg_testset_save_CFLAGS" 5555 fi 5556 5557 found="no" 5558 5559 if test $found = "no" ; then 5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5562 fi 5563 5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5566 fi 5567 5568 CFLAGS="$CFLAGS -Wformat=2" 5569 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5571 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5572 cacheid=xorg_cv_cc_flag__Wformat_2 5573 if eval test \${$cacheid+y} 5574 then : 5575 printf %s "(cached) " >&6 5576 else case e in #( 5577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578 /* end confdefs.h. */ 5579 int i; 5580 int 5581 main (void) 5582 { 5583 5584 ; 5585 return 0; 5586 } 5587 _ACEOF 5588 if ac_fn_c_try_link "$LINENO" 5589 then : 5590 eval $cacheid=yes 5591 else case e in #( 5592 e) eval $cacheid=no ;; 5593 esac 5594 fi 5595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596 conftest$ac_exeext conftest.$ac_ext ;; 5597 esac 5598 fi 5599 5600 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602 5603 eval supported=\$$cacheid 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5605 printf "%s\n" "$supported" >&6; } 5606 if test "$supported" = "yes" ; then 5607 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5608 found="yes" 5609 fi 5610 fi 5611 5612 if test $found = "no" ; then 5613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5615 fi 5616 5617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5619 fi 5620 5621 CFLAGS="$CFLAGS -Wformat" 5622 5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5624 printf %s "checking if $CC supports -Wformat... " >&6; } 5625 cacheid=xorg_cv_cc_flag__Wformat 5626 if eval test \${$cacheid+y} 5627 then : 5628 printf %s "(cached) " >&6 5629 else case e in #( 5630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631 /* end confdefs.h. */ 5632 int i; 5633 int 5634 main (void) 5635 { 5636 5637 ; 5638 return 0; 5639 } 5640 _ACEOF 5641 if ac_fn_c_try_link "$LINENO" 5642 then : 5643 eval $cacheid=yes 5644 else case e in #( 5645 e) eval $cacheid=no ;; 5646 esac 5647 fi 5648 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5649 conftest$ac_exeext conftest.$ac_ext ;; 5650 esac 5651 fi 5652 5653 5654 CFLAGS="$xorg_testset_save_CFLAGS" 5655 5656 eval supported=\$$cacheid 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5658 printf "%s\n" "$supported" >&6; } 5659 if test "$supported" = "yes" ; then 5660 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5661 found="yes" 5662 fi 5663 fi 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 xorg_testset_save_CFLAGS="$CFLAGS" 5682 5683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5686 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5687 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5688 then : 5689 printf %s "(cached) " >&6 5690 else case e in #( 5691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692 /* end confdefs.h. */ 5693 int i; 5694 _ACEOF 5695 if ac_fn_c_try_compile "$LINENO" 5696 then : 5697 xorg_cv_cc_flag_unknown_warning_option=yes 5698 else case e in #( 5699 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5700 esac 5701 fi 5702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5703 esac 5704 fi 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709 fi 5710 5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 fi 5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5719 then : 5720 printf %s "(cached) " >&6 5721 else case e in #( 5722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723 /* end confdefs.h. */ 5724 int i; 5725 _ACEOF 5726 if ac_fn_c_try_compile "$LINENO" 5727 then : 5728 xorg_cv_cc_flag_unused_command_line_argument=yes 5729 else case e in #( 5730 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5731 esac 5732 fi 5733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5734 esac 5735 fi 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5739 CFLAGS="$xorg_testset_save_CFLAGS" 5740 fi 5741 5742 found="no" 5743 5744 if test $found = "no" ; then 5745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5747 fi 5748 5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5751 fi 5752 5753 CFLAGS="$CFLAGS -Wstrict-prototypes" 5754 5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5756 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5757 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5758 if eval test \${$cacheid+y} 5759 then : 5760 printf %s "(cached) " >&6 5761 else case e in #( 5762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763 /* end confdefs.h. */ 5764 int i; 5765 int 5766 main (void) 5767 { 5768 5769 ; 5770 return 0; 5771 } 5772 _ACEOF 5773 if ac_fn_c_try_link "$LINENO" 5774 then : 5775 eval $cacheid=yes 5776 else case e in #( 5777 e) eval $cacheid=no ;; 5778 esac 5779 fi 5780 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5781 conftest$ac_exeext conftest.$ac_ext ;; 5782 esac 5783 fi 5784 5785 5786 CFLAGS="$xorg_testset_save_CFLAGS" 5787 5788 eval supported=\$$cacheid 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5790 printf "%s\n" "$supported" >&6; } 5791 if test "$supported" = "yes" ; then 5792 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5793 found="yes" 5794 fi 5795 fi 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 xorg_testset_save_CFLAGS="$CFLAGS" 5812 5813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5817 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5818 then : 5819 printf %s "(cached) " >&6 5820 else case e in #( 5821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5822 /* end confdefs.h. */ 5823 int i; 5824 _ACEOF 5825 if ac_fn_c_try_compile "$LINENO" 5826 then : 5827 xorg_cv_cc_flag_unknown_warning_option=yes 5828 else case e in #( 5829 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5830 esac 5831 fi 5832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5833 esac 5834 fi 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5836 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839 fi 5840 5841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5844 fi 5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5849 then : 5850 printf %s "(cached) " >&6 5851 else case e in #( 5852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853 /* end confdefs.h. */ 5854 int i; 5855 _ACEOF 5856 if ac_fn_c_try_compile "$LINENO" 5857 then : 5858 xorg_cv_cc_flag_unused_command_line_argument=yes 5859 else case e in #( 5860 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5861 esac 5862 fi 5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5864 esac 5865 fi 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5869 CFLAGS="$xorg_testset_save_CFLAGS" 5870 fi 5871 5872 found="no" 5873 5874 if test $found = "no" ; then 5875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 fi 5878 5879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5881 fi 5882 5883 CFLAGS="$CFLAGS -Wmissing-prototypes" 5884 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5886 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5887 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5888 if eval test \${$cacheid+y} 5889 then : 5890 printf %s "(cached) " >&6 5891 else case e in #( 5892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893 /* end confdefs.h. */ 5894 int i; 5895 int 5896 main (void) 5897 { 5898 5899 ; 5900 return 0; 5901 } 5902 _ACEOF 5903 if ac_fn_c_try_link "$LINENO" 5904 then : 5905 eval $cacheid=yes 5906 else case e in #( 5907 e) eval $cacheid=no ;; 5908 esac 5909 fi 5910 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5911 conftest$ac_exeext conftest.$ac_ext ;; 5912 esac 5913 fi 5914 5915 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917 5918 eval supported=\$$cacheid 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920 printf "%s\n" "$supported" >&6; } 5921 if test "$supported" = "yes" ; then 5922 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5923 found="yes" 5924 fi 5925 fi 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 xorg_testset_save_CFLAGS="$CFLAGS" 5942 5943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5948 then : 5949 printf %s "(cached) " >&6 5950 else case e in #( 5951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952 /* end confdefs.h. */ 5953 int i; 5954 _ACEOF 5955 if ac_fn_c_try_compile "$LINENO" 5956 then : 5957 xorg_cv_cc_flag_unknown_warning_option=yes 5958 else case e in #( 5959 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5960 esac 5961 fi 5962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5963 esac 5964 fi 5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969 fi 5970 5971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 fi 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5979 then : 5980 printf %s "(cached) " >&6 5981 else case e in #( 5982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983 /* end confdefs.h. */ 5984 int i; 5985 _ACEOF 5986 if ac_fn_c_try_compile "$LINENO" 5987 then : 5988 xorg_cv_cc_flag_unused_command_line_argument=yes 5989 else case e in #( 5990 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5991 esac 5992 fi 5993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5994 esac 5995 fi 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000 fi 6001 6002 found="no" 6003 6004 if test $found = "no" ; then 6005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6007 fi 6008 6009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6011 fi 6012 6013 CFLAGS="$CFLAGS -Wnested-externs" 6014 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6016 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6017 cacheid=xorg_cv_cc_flag__Wnested_externs 6018 if eval test \${$cacheid+y} 6019 then : 6020 printf %s "(cached) " >&6 6021 else case e in #( 6022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023 /* end confdefs.h. */ 6024 int i; 6025 int 6026 main (void) 6027 { 6028 6029 ; 6030 return 0; 6031 } 6032 _ACEOF 6033 if ac_fn_c_try_link "$LINENO" 6034 then : 6035 eval $cacheid=yes 6036 else case e in #( 6037 e) eval $cacheid=no ;; 6038 esac 6039 fi 6040 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6041 conftest$ac_exeext conftest.$ac_ext ;; 6042 esac 6043 fi 6044 6045 6046 CFLAGS="$xorg_testset_save_CFLAGS" 6047 6048 eval supported=\$$cacheid 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6050 printf "%s\n" "$supported" >&6; } 6051 if test "$supported" = "yes" ; then 6052 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6053 found="yes" 6054 fi 6055 fi 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 xorg_testset_save_CFLAGS="$CFLAGS" 6072 6073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6077 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6078 then : 6079 printf %s "(cached) " >&6 6080 else case e in #( 6081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082 /* end confdefs.h. */ 6083 int i; 6084 _ACEOF 6085 if ac_fn_c_try_compile "$LINENO" 6086 then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088 else case e in #( 6089 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6090 esac 6091 fi 6092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6093 esac 6094 fi 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6096 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099 fi 6100 6101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6104 fi 6105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6107 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6108 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6109 then : 6110 printf %s "(cached) " >&6 6111 else case e in #( 6112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6113 /* end confdefs.h. */ 6114 int i; 6115 _ACEOF 6116 if ac_fn_c_try_compile "$LINENO" 6117 then : 6118 xorg_cv_cc_flag_unused_command_line_argument=yes 6119 else case e in #( 6120 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6121 esac 6122 fi 6123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6124 esac 6125 fi 6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130 fi 6131 6132 found="no" 6133 6134 if test $found = "no" ; then 6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 fi 6138 6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 fi 6142 6143 CFLAGS="$CFLAGS -Wbad-function-cast" 6144 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6146 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6147 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6148 if eval test \${$cacheid+y} 6149 then : 6150 printf %s "(cached) " >&6 6151 else case e in #( 6152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153 /* end confdefs.h. */ 6154 int i; 6155 int 6156 main (void) 6157 { 6158 6159 ; 6160 return 0; 6161 } 6162 _ACEOF 6163 if ac_fn_c_try_link "$LINENO" 6164 then : 6165 eval $cacheid=yes 6166 else case e in #( 6167 e) eval $cacheid=no ;; 6168 esac 6169 fi 6170 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6171 conftest$ac_exeext conftest.$ac_ext ;; 6172 esac 6173 fi 6174 6175 6176 CFLAGS="$xorg_testset_save_CFLAGS" 6177 6178 eval supported=\$$cacheid 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6180 printf "%s\n" "$supported" >&6; } 6181 if test "$supported" = "yes" ; then 6182 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6183 found="yes" 6184 fi 6185 fi 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 xorg_testset_save_CFLAGS="$CFLAGS" 6202 6203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6206 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6207 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6208 then : 6209 printf %s "(cached) " >&6 6210 else case e in #( 6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212 /* end confdefs.h. */ 6213 int i; 6214 _ACEOF 6215 if ac_fn_c_try_compile "$LINENO" 6216 then : 6217 xorg_cv_cc_flag_unknown_warning_option=yes 6218 else case e in #( 6219 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6220 esac 6221 fi 6222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6223 esac 6224 fi 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229 fi 6230 6231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6239 then : 6240 printf %s "(cached) " >&6 6241 else case e in #( 6242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243 /* end confdefs.h. */ 6244 int i; 6245 _ACEOF 6246 if ac_fn_c_try_compile "$LINENO" 6247 then : 6248 xorg_cv_cc_flag_unused_command_line_argument=yes 6249 else case e in #( 6250 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6251 esac 6252 fi 6253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6254 esac 6255 fi 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6257 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260 fi 6261 6262 found="no" 6263 6264 if test $found = "no" ; then 6265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6267 fi 6268 6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6271 fi 6272 6273 CFLAGS="$CFLAGS -Wold-style-definition" 6274 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6276 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6277 cacheid=xorg_cv_cc_flag__Wold_style_definition 6278 if eval test \${$cacheid+y} 6279 then : 6280 printf %s "(cached) " >&6 6281 else case e in #( 6282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283 /* end confdefs.h. */ 6284 int i; 6285 int 6286 main (void) 6287 { 6288 6289 ; 6290 return 0; 6291 } 6292 _ACEOF 6293 if ac_fn_c_try_link "$LINENO" 6294 then : 6295 eval $cacheid=yes 6296 else case e in #( 6297 e) eval $cacheid=no ;; 6298 esac 6299 fi 6300 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6301 conftest$ac_exeext conftest.$ac_ext ;; 6302 esac 6303 fi 6304 6305 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307 6308 eval supported=\$$cacheid 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6310 printf "%s\n" "$supported" >&6; } 6311 if test "$supported" = "yes" ; then 6312 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6313 found="yes" 6314 fi 6315 fi 6316 6317 if test $found = "no" ; then 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 6322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 fi 6325 6326 CFLAGS="$CFLAGS -fd" 6327 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6329 printf %s "checking if $CC supports -fd... " >&6; } 6330 cacheid=xorg_cv_cc_flag__fd 6331 if eval test \${$cacheid+y} 6332 then : 6333 printf %s "(cached) " >&6 6334 else case e in #( 6335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336 /* end confdefs.h. */ 6337 int i; 6338 int 6339 main (void) 6340 { 6341 6342 ; 6343 return 0; 6344 } 6345 _ACEOF 6346 if ac_fn_c_try_link "$LINENO" 6347 then : 6348 eval $cacheid=yes 6349 else case e in #( 6350 e) eval $cacheid=no ;; 6351 esac 6352 fi 6353 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6354 conftest$ac_exeext conftest.$ac_ext ;; 6355 esac 6356 fi 6357 6358 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360 6361 eval supported=\$$cacheid 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6363 printf "%s\n" "$supported" >&6; } 6364 if test "$supported" = "yes" ; then 6365 BASE_CFLAGS="$BASE_CFLAGS -fd" 6366 found="yes" 6367 fi 6368 fi 6369 6370 6371 6372 6373 6374 # This chunk adds additional warnings that could catch undesired effects. 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 xorg_testset_save_CFLAGS="$CFLAGS" 6389 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6394 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6395 then : 6396 printf %s "(cached) " >&6 6397 else case e in #( 6398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399 /* end confdefs.h. */ 6400 int i; 6401 _ACEOF 6402 if ac_fn_c_try_compile "$LINENO" 6403 then : 6404 xorg_cv_cc_flag_unknown_warning_option=yes 6405 else case e in #( 6406 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6407 esac 6408 fi 6409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6410 esac 6411 fi 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6415 CFLAGS="$xorg_testset_save_CFLAGS" 6416 fi 6417 6418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6426 then : 6427 printf %s "(cached) " >&6 6428 else case e in #( 6429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430 /* end confdefs.h. */ 6431 int i; 6432 _ACEOF 6433 if ac_fn_c_try_compile "$LINENO" 6434 then : 6435 xorg_cv_cc_flag_unused_command_line_argument=yes 6436 else case e in #( 6437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6438 esac 6439 fi 6440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6441 esac 6442 fi 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6444 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6446 CFLAGS="$xorg_testset_save_CFLAGS" 6447 fi 6448 6449 found="no" 6450 6451 if test $found = "no" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 fi 6459 6460 CFLAGS="$CFLAGS -Wunused" 6461 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6463 printf %s "checking if $CC supports -Wunused... " >&6; } 6464 cacheid=xorg_cv_cc_flag__Wunused 6465 if eval test \${$cacheid+y} 6466 then : 6467 printf %s "(cached) " >&6 6468 else case e in #( 6469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470 /* end confdefs.h. */ 6471 int i; 6472 int 6473 main (void) 6474 { 6475 6476 ; 6477 return 0; 6478 } 6479 _ACEOF 6480 if ac_fn_c_try_link "$LINENO" 6481 then : 6482 eval $cacheid=yes 6483 else case e in #( 6484 e) eval $cacheid=no ;; 6485 esac 6486 fi 6487 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6488 conftest$ac_exeext conftest.$ac_ext ;; 6489 esac 6490 fi 6491 6492 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6495 eval supported=\$$cacheid 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497 printf "%s\n" "$supported" >&6; } 6498 if test "$supported" = "yes" ; then 6499 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6500 found="yes" 6501 fi 6502 fi 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 xorg_testset_save_CFLAGS="$CFLAGS" 6519 6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6525 then : 6526 printf %s "(cached) " >&6 6527 else case e in #( 6528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529 /* end confdefs.h. */ 6530 int i; 6531 _ACEOF 6532 if ac_fn_c_try_compile "$LINENO" 6533 then : 6534 xorg_cv_cc_flag_unknown_warning_option=yes 6535 else case e in #( 6536 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6537 esac 6538 fi 6539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6540 esac 6541 fi 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546 fi 6547 6548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6556 then : 6557 printf %s "(cached) " >&6 6558 else case e in #( 6559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560 /* end confdefs.h. */ 6561 int i; 6562 _ACEOF 6563 if ac_fn_c_try_compile "$LINENO" 6564 then : 6565 xorg_cv_cc_flag_unused_command_line_argument=yes 6566 else case e in #( 6567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6568 esac 6569 fi 6570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6571 esac 6572 fi 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577 fi 6578 6579 found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wuninitialized" 6591 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6593 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wuninitialized 6595 if eval test \${$cacheid+y} 6596 then : 6597 printf %s "(cached) " >&6 6598 else case e in #( 6599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 /* end confdefs.h. */ 6601 int i; 6602 int 6603 main (void) 6604 { 6605 6606 ; 6607 return 0; 6608 } 6609 _ACEOF 6610 if ac_fn_c_try_link "$LINENO" 6611 then : 6612 eval $cacheid=yes 6613 else case e in #( 6614 e) eval $cacheid=no ;; 6615 esac 6616 fi 6617 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6618 conftest$ac_exeext conftest.$ac_ext ;; 6619 esac 6620 fi 6621 6622 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624 6625 eval supported=\$$cacheid 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6627 printf "%s\n" "$supported" >&6; } 6628 if test "$supported" = "yes" ; then 6629 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6630 found="yes" 6631 fi 6632 fi 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 xorg_testset_save_CFLAGS="$CFLAGS" 6649 6650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6653 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6654 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6655 then : 6656 printf %s "(cached) " >&6 6657 else case e in #( 6658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659 /* end confdefs.h. */ 6660 int i; 6661 _ACEOF 6662 if ac_fn_c_try_compile "$LINENO" 6663 then : 6664 xorg_cv_cc_flag_unknown_warning_option=yes 6665 else case e in #( 6666 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6667 esac 6668 fi 6669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6670 esac 6671 fi 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676 fi 6677 6678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6686 then : 6687 printf %s "(cached) " >&6 6688 else case e in #( 6689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690 /* end confdefs.h. */ 6691 int i; 6692 _ACEOF 6693 if ac_fn_c_try_compile "$LINENO" 6694 then : 6695 xorg_cv_cc_flag_unused_command_line_argument=yes 6696 else case e in #( 6697 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6698 esac 6699 fi 6700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6701 esac 6702 fi 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6704 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6707 fi 6708 6709 found="no" 6710 6711 if test $found = "no" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 6716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6718 fi 6719 6720 CFLAGS="$CFLAGS -Wshadow" 6721 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6723 printf %s "checking if $CC supports -Wshadow... " >&6; } 6724 cacheid=xorg_cv_cc_flag__Wshadow 6725 if eval test \${$cacheid+y} 6726 then : 6727 printf %s "(cached) " >&6 6728 else case e in #( 6729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730 /* end confdefs.h. */ 6731 int i; 6732 int 6733 main (void) 6734 { 6735 6736 ; 6737 return 0; 6738 } 6739 _ACEOF 6740 if ac_fn_c_try_link "$LINENO" 6741 then : 6742 eval $cacheid=yes 6743 else case e in #( 6744 e) eval $cacheid=no ;; 6745 esac 6746 fi 6747 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6748 conftest$ac_exeext conftest.$ac_ext ;; 6749 esac 6750 fi 6751 6752 6753 CFLAGS="$xorg_testset_save_CFLAGS" 6754 6755 eval supported=\$$cacheid 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6757 printf "%s\n" "$supported" >&6; } 6758 if test "$supported" = "yes" ; then 6759 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6760 found="yes" 6761 fi 6762 fi 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 xorg_testset_save_CFLAGS="$CFLAGS" 6779 6780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6783 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6784 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6785 then : 6786 printf %s "(cached) " >&6 6787 else case e in #( 6788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789 /* end confdefs.h. */ 6790 int i; 6791 _ACEOF 6792 if ac_fn_c_try_compile "$LINENO" 6793 then : 6794 xorg_cv_cc_flag_unknown_warning_option=yes 6795 else case e in #( 6796 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6797 esac 6798 fi 6799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6800 esac 6801 fi 6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6803 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6805 CFLAGS="$xorg_testset_save_CFLAGS" 6806 fi 6807 6808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 fi 6812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6814 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6815 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6816 then : 6817 printf %s "(cached) " >&6 6818 else case e in #( 6819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820 /* end confdefs.h. */ 6821 int i; 6822 _ACEOF 6823 if ac_fn_c_try_compile "$LINENO" 6824 then : 6825 xorg_cv_cc_flag_unused_command_line_argument=yes 6826 else case e in #( 6827 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6828 esac 6829 fi 6830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6831 esac 6832 fi 6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6834 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 fi 6838 6839 found="no" 6840 6841 if test $found = "no" ; then 6842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6844 fi 6845 6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6848 fi 6849 6850 CFLAGS="$CFLAGS -Wmissing-noreturn" 6851 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6853 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6854 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6855 if eval test \${$cacheid+y} 6856 then : 6857 printf %s "(cached) " >&6 6858 else case e in #( 6859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860 /* end confdefs.h. */ 6861 int i; 6862 int 6863 main (void) 6864 { 6865 6866 ; 6867 return 0; 6868 } 6869 _ACEOF 6870 if ac_fn_c_try_link "$LINENO" 6871 then : 6872 eval $cacheid=yes 6873 else case e in #( 6874 e) eval $cacheid=no ;; 6875 esac 6876 fi 6877 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6878 conftest$ac_exeext conftest.$ac_ext ;; 6879 esac 6880 fi 6881 6882 6883 CFLAGS="$xorg_testset_save_CFLAGS" 6884 6885 eval supported=\$$cacheid 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6887 printf "%s\n" "$supported" >&6; } 6888 if test "$supported" = "yes" ; then 6889 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6890 found="yes" 6891 fi 6892 fi 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 xorg_testset_save_CFLAGS="$CFLAGS" 6909 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6914 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6915 then : 6916 printf %s "(cached) " >&6 6917 else case e in #( 6918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919 /* end confdefs.h. */ 6920 int i; 6921 _ACEOF 6922 if ac_fn_c_try_compile "$LINENO" 6923 then : 6924 xorg_cv_cc_flag_unknown_warning_option=yes 6925 else case e in #( 6926 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6927 esac 6928 fi 6929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6930 esac 6931 fi 6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936 fi 6937 6938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6946 then : 6947 printf %s "(cached) " >&6 6948 else case e in #( 6949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950 /* end confdefs.h. */ 6951 int i; 6952 _ACEOF 6953 if ac_fn_c_try_compile "$LINENO" 6954 then : 6955 xorg_cv_cc_flag_unused_command_line_argument=yes 6956 else case e in #( 6957 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6958 esac 6959 fi 6960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6961 esac 6962 fi 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6964 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6966 CFLAGS="$xorg_testset_save_CFLAGS" 6967 fi 6968 6969 found="no" 6970 6971 if test $found = "no" ; then 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 fi 6975 6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6978 fi 6979 6980 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6981 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6983 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6984 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6985 if eval test \${$cacheid+y} 6986 then : 6987 printf %s "(cached) " >&6 6988 else case e in #( 6989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990 /* end confdefs.h. */ 6991 int i; 6992 int 6993 main (void) 6994 { 6995 6996 ; 6997 return 0; 6998 } 6999 _ACEOF 7000 if ac_fn_c_try_link "$LINENO" 7001 then : 7002 eval $cacheid=yes 7003 else case e in #( 7004 e) eval $cacheid=no ;; 7005 esac 7006 fi 7007 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7008 conftest$ac_exeext conftest.$ac_ext ;; 7009 esac 7010 fi 7011 7012 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014 7015 eval supported=\$$cacheid 7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7017 printf "%s\n" "$supported" >&6; } 7018 if test "$supported" = "yes" ; then 7019 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7020 found="yes" 7021 fi 7022 fi 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 xorg_testset_save_CFLAGS="$CFLAGS" 7039 7040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7043 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7044 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7045 then : 7046 printf %s "(cached) " >&6 7047 else case e in #( 7048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049 /* end confdefs.h. */ 7050 int i; 7051 _ACEOF 7052 if ac_fn_c_try_compile "$LINENO" 7053 then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055 else case e in #( 7056 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7057 esac 7058 fi 7059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7060 esac 7061 fi 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7063 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7065 CFLAGS="$xorg_testset_save_CFLAGS" 7066 fi 7067 7068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 fi 7072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7074 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7075 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7076 then : 7077 printf %s "(cached) " >&6 7078 else case e in #( 7079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080 /* end confdefs.h. */ 7081 int i; 7082 _ACEOF 7083 if ac_fn_c_try_compile "$LINENO" 7084 then : 7085 xorg_cv_cc_flag_unused_command_line_argument=yes 7086 else case e in #( 7087 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7088 esac 7089 fi 7090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7091 esac 7092 fi 7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097 fi 7098 7099 found="no" 7100 7101 if test $found = "no" ; then 7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 fi 7109 7110 CFLAGS="$CFLAGS -Wredundant-decls" 7111 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7113 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7114 cacheid=xorg_cv_cc_flag__Wredundant_decls 7115 if eval test \${$cacheid+y} 7116 then : 7117 printf %s "(cached) " >&6 7118 else case e in #( 7119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120 /* end confdefs.h. */ 7121 int i; 7122 int 7123 main (void) 7124 { 7125 7126 ; 7127 return 0; 7128 } 7129 _ACEOF 7130 if ac_fn_c_try_link "$LINENO" 7131 then : 7132 eval $cacheid=yes 7133 else case e in #( 7134 e) eval $cacheid=no ;; 7135 esac 7136 fi 7137 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7138 conftest$ac_exeext conftest.$ac_ext ;; 7139 esac 7140 fi 7141 7142 7143 CFLAGS="$xorg_testset_save_CFLAGS" 7144 7145 eval supported=\$$cacheid 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147 printf "%s\n" "$supported" >&6; } 7148 if test "$supported" = "yes" ; then 7149 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7150 found="yes" 7151 fi 7152 fi 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 xorg_testset_save_CFLAGS="$CFLAGS" 7169 7170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7175 then : 7176 printf %s "(cached) " >&6 7177 else case e in #( 7178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179 /* end confdefs.h. */ 7180 int i; 7181 _ACEOF 7182 if ac_fn_c_try_compile "$LINENO" 7183 then : 7184 xorg_cv_cc_flag_unknown_warning_option=yes 7185 else case e in #( 7186 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7187 esac 7188 fi 7189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7190 esac 7191 fi 7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7195 CFLAGS="$xorg_testset_save_CFLAGS" 7196 fi 7197 7198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7201 fi 7202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7206 then : 7207 printf %s "(cached) " >&6 7208 else case e in #( 7209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210 /* end confdefs.h. */ 7211 int i; 7212 _ACEOF 7213 if ac_fn_c_try_compile "$LINENO" 7214 then : 7215 xorg_cv_cc_flag_unused_command_line_argument=yes 7216 else case e in #( 7217 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7218 esac 7219 fi 7220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7221 esac 7222 fi 7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227 fi 7228 7229 found="no" 7230 7231 if test $found = "no" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 fi 7239 7240 CFLAGS="$CFLAGS -Wlogical-op" 7241 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7243 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7244 cacheid=xorg_cv_cc_flag__Wlogical_op 7245 if eval test \${$cacheid+y} 7246 then : 7247 printf %s "(cached) " >&6 7248 else case e in #( 7249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250 /* end confdefs.h. */ 7251 int i; 7252 int 7253 main (void) 7254 { 7255 7256 ; 7257 return 0; 7258 } 7259 _ACEOF 7260 if ac_fn_c_try_link "$LINENO" 7261 then : 7262 eval $cacheid=yes 7263 else case e in #( 7264 e) eval $cacheid=no ;; 7265 esac 7266 fi 7267 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7268 conftest$ac_exeext conftest.$ac_ext ;; 7269 esac 7270 fi 7271 7272 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274 7275 eval supported=\$$cacheid 7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277 printf "%s\n" "$supported" >&6; } 7278 if test "$supported" = "yes" ; then 7279 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7280 found="yes" 7281 fi 7282 fi 7283 7284 7285 7286 # These are currently disabled because they are noisy. They will be enabled 7287 # in the future once the codebase is sufficiently modernized to silence 7288 # them. For now, I don't want them to drown out the other warnings. 7289 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7290 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7291 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7292 7293 # Turn some warnings into errors, so we don't accidentally get successful builds 7294 # when there are problems that should be fixed. 7295 7296 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 xorg_testset_save_CFLAGS="$CFLAGS" 7311 7312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7316 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7317 then : 7318 printf %s "(cached) " >&6 7319 else case e in #( 7320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321 /* end confdefs.h. */ 7322 int i; 7323 _ACEOF 7324 if ac_fn_c_try_compile "$LINENO" 7325 then : 7326 xorg_cv_cc_flag_unknown_warning_option=yes 7327 else case e in #( 7328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7329 esac 7330 fi 7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7332 esac 7333 fi 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338 fi 7339 7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7348 then : 7349 printf %s "(cached) " >&6 7350 else case e in #( 7351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352 /* end confdefs.h. */ 7353 int i; 7354 _ACEOF 7355 if ac_fn_c_try_compile "$LINENO" 7356 then : 7357 xorg_cv_cc_flag_unused_command_line_argument=yes 7358 else case e in #( 7359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7360 esac 7361 fi 7362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7363 esac 7364 fi 7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7368 CFLAGS="$xorg_testset_save_CFLAGS" 7369 fi 7370 7371 found="no" 7372 7373 if test $found = "no" ; then 7374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7376 fi 7377 7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7380 fi 7381 7382 CFLAGS="$CFLAGS -Werror=implicit" 7383 7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7385 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7386 cacheid=xorg_cv_cc_flag__Werror_implicit 7387 if eval test \${$cacheid+y} 7388 then : 7389 printf %s "(cached) " >&6 7390 else case e in #( 7391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392 /* end confdefs.h. */ 7393 int i; 7394 int 7395 main (void) 7396 { 7397 7398 ; 7399 return 0; 7400 } 7401 _ACEOF 7402 if ac_fn_c_try_link "$LINENO" 7403 then : 7404 eval $cacheid=yes 7405 else case e in #( 7406 e) eval $cacheid=no ;; 7407 esac 7408 fi 7409 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7410 conftest$ac_exeext conftest.$ac_ext ;; 7411 esac 7412 fi 7413 7414 7415 CFLAGS="$xorg_testset_save_CFLAGS" 7416 7417 eval supported=\$$cacheid 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7419 printf "%s\n" "$supported" >&6; } 7420 if test "$supported" = "yes" ; then 7421 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7422 found="yes" 7423 fi 7424 fi 7425 7426 if test $found = "no" ; then 7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 fi 7430 7431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433 fi 7434 7435 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7436 7437 { 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 7438 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7439 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7440 if eval test \${$cacheid+y} 7441 then : 7442 printf %s "(cached) " >&6 7443 else case e in #( 7444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445 /* end confdefs.h. */ 7446 int i; 7447 int 7448 main (void) 7449 { 7450 7451 ; 7452 return 0; 7453 } 7454 _ACEOF 7455 if ac_fn_c_try_link "$LINENO" 7456 then : 7457 eval $cacheid=yes 7458 else case e in #( 7459 e) eval $cacheid=no ;; 7460 esac 7461 fi 7462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7463 conftest$ac_exeext conftest.$ac_ext ;; 7464 esac 7465 fi 7466 7467 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469 7470 eval supported=\$$cacheid 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472 printf "%s\n" "$supported" >&6; } 7473 if test "$supported" = "yes" ; then 7474 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7475 found="yes" 7476 fi 7477 fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500 then : 7501 printf %s "(cached) " >&6 7502 else case e in #( 7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504 /* end confdefs.h. */ 7505 int i; 7506 _ACEOF 7507 if ac_fn_c_try_compile "$LINENO" 7508 then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510 else case e in #( 7511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7512 esac 7513 fi 7514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7515 esac 7516 fi 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521 fi 7522 7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7531 then : 7532 printf %s "(cached) " >&6 7533 else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 int i; 7537 _ACEOF 7538 if ac_fn_c_try_compile "$LINENO" 7539 then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541 else case e in #( 7542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7543 esac 7544 fi 7545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7546 esac 7547 fi 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552 fi 7553 7554 found="no" 7555 7556 if test $found = "no" ; then 7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 fi 7560 7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 fi 7564 7565 CFLAGS="$CFLAGS -Werror=nonnull" 7566 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7568 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7569 cacheid=xorg_cv_cc_flag__Werror_nonnull 7570 if eval test \${$cacheid+y} 7571 then : 7572 printf %s "(cached) " >&6 7573 else case e in #( 7574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575 /* end confdefs.h. */ 7576 int i; 7577 int 7578 main (void) 7579 { 7580 7581 ; 7582 return 0; 7583 } 7584 _ACEOF 7585 if ac_fn_c_try_link "$LINENO" 7586 then : 7587 eval $cacheid=yes 7588 else case e in #( 7589 e) eval $cacheid=no ;; 7590 esac 7591 fi 7592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7593 conftest$ac_exeext conftest.$ac_ext ;; 7594 esac 7595 fi 7596 7597 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599 7600 eval supported=\$$cacheid 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602 printf "%s\n" "$supported" >&6; } 7603 if test "$supported" = "yes" ; then 7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7605 found="yes" 7606 fi 7607 fi 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 xorg_testset_save_CFLAGS="$CFLAGS" 7624 7625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7629 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7630 then : 7631 printf %s "(cached) " >&6 7632 else case e in #( 7633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634 /* end confdefs.h. */ 7635 int i; 7636 _ACEOF 7637 if ac_fn_c_try_compile "$LINENO" 7638 then : 7639 xorg_cv_cc_flag_unknown_warning_option=yes 7640 else case e in #( 7641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7642 esac 7643 fi 7644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7645 esac 7646 fi 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7650 CFLAGS="$xorg_testset_save_CFLAGS" 7651 fi 7652 7653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 fi 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7661 then : 7662 printf %s "(cached) " >&6 7663 else case e in #( 7664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 /* end confdefs.h. */ 7666 int i; 7667 _ACEOF 7668 if ac_fn_c_try_compile "$LINENO" 7669 then : 7670 xorg_cv_cc_flag_unused_command_line_argument=yes 7671 else case e in #( 7672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7673 esac 7674 fi 7675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7676 esac 7677 fi 7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682 fi 7683 7684 found="no" 7685 7686 if test $found = "no" ; then 7687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 fi 7690 7691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7693 fi 7694 7695 CFLAGS="$CFLAGS -Werror=init-self" 7696 7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7698 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7699 cacheid=xorg_cv_cc_flag__Werror_init_self 7700 if eval test \${$cacheid+y} 7701 then : 7702 printf %s "(cached) " >&6 7703 else case e in #( 7704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705 /* end confdefs.h. */ 7706 int i; 7707 int 7708 main (void) 7709 { 7710 7711 ; 7712 return 0; 7713 } 7714 _ACEOF 7715 if ac_fn_c_try_link "$LINENO" 7716 then : 7717 eval $cacheid=yes 7718 else case e in #( 7719 e) eval $cacheid=no ;; 7720 esac 7721 fi 7722 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7723 conftest$ac_exeext conftest.$ac_ext ;; 7724 esac 7725 fi 7726 7727 7728 CFLAGS="$xorg_testset_save_CFLAGS" 7729 7730 eval supported=\$$cacheid 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7732 printf "%s\n" "$supported" >&6; } 7733 if test "$supported" = "yes" ; then 7734 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7735 found="yes" 7736 fi 7737 fi 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 xorg_testset_save_CFLAGS="$CFLAGS" 7754 7755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7759 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7760 then : 7761 printf %s "(cached) " >&6 7762 else case e in #( 7763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7764 /* end confdefs.h. */ 7765 int i; 7766 _ACEOF 7767 if ac_fn_c_try_compile "$LINENO" 7768 then : 7769 xorg_cv_cc_flag_unknown_warning_option=yes 7770 else case e in #( 7771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7772 esac 7773 fi 7774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7775 esac 7776 fi 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7780 CFLAGS="$xorg_testset_save_CFLAGS" 7781 fi 7782 7783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 fi 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7791 then : 7792 printf %s "(cached) " >&6 7793 else case e in #( 7794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795 /* end confdefs.h. */ 7796 int i; 7797 _ACEOF 7798 if ac_fn_c_try_compile "$LINENO" 7799 then : 7800 xorg_cv_cc_flag_unused_command_line_argument=yes 7801 else case e in #( 7802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7803 esac 7804 fi 7805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7806 esac 7807 fi 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812 fi 7813 7814 found="no" 7815 7816 if test $found = "no" ; then 7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 fi 7820 7821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7823 fi 7824 7825 CFLAGS="$CFLAGS -Werror=main" 7826 7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7828 printf %s "checking if $CC supports -Werror=main... " >&6; } 7829 cacheid=xorg_cv_cc_flag__Werror_main 7830 if eval test \${$cacheid+y} 7831 then : 7832 printf %s "(cached) " >&6 7833 else case e in #( 7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835 /* end confdefs.h. */ 7836 int i; 7837 int 7838 main (void) 7839 { 7840 7841 ; 7842 return 0; 7843 } 7844 _ACEOF 7845 if ac_fn_c_try_link "$LINENO" 7846 then : 7847 eval $cacheid=yes 7848 else case e in #( 7849 e) eval $cacheid=no ;; 7850 esac 7851 fi 7852 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7853 conftest$ac_exeext conftest.$ac_ext ;; 7854 esac 7855 fi 7856 7857 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 7860 eval supported=\$$cacheid 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7862 printf "%s\n" "$supported" >&6; } 7863 if test "$supported" = "yes" ; then 7864 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7865 found="yes" 7866 fi 7867 fi 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 xorg_testset_save_CFLAGS="$CFLAGS" 7884 7885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7889 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7890 then : 7891 printf %s "(cached) " >&6 7892 else case e in #( 7893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7894 /* end confdefs.h. */ 7895 int i; 7896 _ACEOF 7897 if ac_fn_c_try_compile "$LINENO" 7898 then : 7899 xorg_cv_cc_flag_unknown_warning_option=yes 7900 else case e in #( 7901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7902 esac 7903 fi 7904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7905 esac 7906 fi 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 fi 7912 7913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7916 fi 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7921 then : 7922 printf %s "(cached) " >&6 7923 else case e in #( 7924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925 /* end confdefs.h. */ 7926 int i; 7927 _ACEOF 7928 if ac_fn_c_try_compile "$LINENO" 7929 then : 7930 xorg_cv_cc_flag_unused_command_line_argument=yes 7931 else case e in #( 7932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7933 esac 7934 fi 7935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7936 esac 7937 fi 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942 fi 7943 7944 found="no" 7945 7946 if test $found = "no" ; then 7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 fi 7950 7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7953 fi 7954 7955 CFLAGS="$CFLAGS -Werror=missing-braces" 7956 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7958 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7959 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7960 if eval test \${$cacheid+y} 7961 then : 7962 printf %s "(cached) " >&6 7963 else case e in #( 7964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965 /* end confdefs.h. */ 7966 int i; 7967 int 7968 main (void) 7969 { 7970 7971 ; 7972 return 0; 7973 } 7974 _ACEOF 7975 if ac_fn_c_try_link "$LINENO" 7976 then : 7977 eval $cacheid=yes 7978 else case e in #( 7979 e) eval $cacheid=no ;; 7980 esac 7981 fi 7982 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7983 conftest$ac_exeext conftest.$ac_ext ;; 7984 esac 7985 fi 7986 7987 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989 7990 eval supported=\$$cacheid 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7992 printf "%s\n" "$supported" >&6; } 7993 if test "$supported" = "yes" ; then 7994 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7995 found="yes" 7996 fi 7997 fi 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 xorg_testset_save_CFLAGS="$CFLAGS" 8014 8015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8019 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8020 then : 8021 printf %s "(cached) " >&6 8022 else case e in #( 8023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8024 /* end confdefs.h. */ 8025 int i; 8026 _ACEOF 8027 if ac_fn_c_try_compile "$LINENO" 8028 then : 8029 xorg_cv_cc_flag_unknown_warning_option=yes 8030 else case e in #( 8031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8032 esac 8033 fi 8034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8035 esac 8036 fi 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8040 CFLAGS="$xorg_testset_save_CFLAGS" 8041 fi 8042 8043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 fi 8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8051 then : 8052 printf %s "(cached) " >&6 8053 else case e in #( 8054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055 /* end confdefs.h. */ 8056 int i; 8057 _ACEOF 8058 if ac_fn_c_try_compile "$LINENO" 8059 then : 8060 xorg_cv_cc_flag_unused_command_line_argument=yes 8061 else case e in #( 8062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8063 esac 8064 fi 8065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8066 esac 8067 fi 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8071 CFLAGS="$xorg_testset_save_CFLAGS" 8072 fi 8073 8074 found="no" 8075 8076 if test $found = "no" ; then 8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8079 fi 8080 8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8083 fi 8084 8085 CFLAGS="$CFLAGS -Werror=sequence-point" 8086 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8088 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8089 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8090 if eval test \${$cacheid+y} 8091 then : 8092 printf %s "(cached) " >&6 8093 else case e in #( 8094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095 /* end confdefs.h. */ 8096 int i; 8097 int 8098 main (void) 8099 { 8100 8101 ; 8102 return 0; 8103 } 8104 _ACEOF 8105 if ac_fn_c_try_link "$LINENO" 8106 then : 8107 eval $cacheid=yes 8108 else case e in #( 8109 e) eval $cacheid=no ;; 8110 esac 8111 fi 8112 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8113 conftest$ac_exeext conftest.$ac_ext ;; 8114 esac 8115 fi 8116 8117 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119 8120 eval supported=\$$cacheid 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8122 printf "%s\n" "$supported" >&6; } 8123 if test "$supported" = "yes" ; then 8124 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8125 found="yes" 8126 fi 8127 fi 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 xorg_testset_save_CFLAGS="$CFLAGS" 8144 8145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8149 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8150 then : 8151 printf %s "(cached) " >&6 8152 else case e in #( 8153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154 /* end confdefs.h. */ 8155 int i; 8156 _ACEOF 8157 if ac_fn_c_try_compile "$LINENO" 8158 then : 8159 xorg_cv_cc_flag_unknown_warning_option=yes 8160 else case e in #( 8161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8162 esac 8163 fi 8164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8165 esac 8166 fi 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171 fi 8172 8173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 fi 8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8181 then : 8182 printf %s "(cached) " >&6 8183 else case e in #( 8184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185 /* end confdefs.h. */ 8186 int i; 8187 _ACEOF 8188 if ac_fn_c_try_compile "$LINENO" 8189 then : 8190 xorg_cv_cc_flag_unused_command_line_argument=yes 8191 else case e in #( 8192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8193 esac 8194 fi 8195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8196 esac 8197 fi 8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202 fi 8203 8204 found="no" 8205 8206 if test $found = "no" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 fi 8214 8215 CFLAGS="$CFLAGS -Werror=return-type" 8216 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8218 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8219 cacheid=xorg_cv_cc_flag__Werror_return_type 8220 if eval test \${$cacheid+y} 8221 then : 8222 printf %s "(cached) " >&6 8223 else case e in #( 8224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225 /* end confdefs.h. */ 8226 int i; 8227 int 8228 main (void) 8229 { 8230 8231 ; 8232 return 0; 8233 } 8234 _ACEOF 8235 if ac_fn_c_try_link "$LINENO" 8236 then : 8237 eval $cacheid=yes 8238 else case e in #( 8239 e) eval $cacheid=no ;; 8240 esac 8241 fi 8242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8243 conftest$ac_exeext conftest.$ac_ext ;; 8244 esac 8245 fi 8246 8247 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249 8250 eval supported=\$$cacheid 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8252 printf "%s\n" "$supported" >&6; } 8253 if test "$supported" = "yes" ; then 8254 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8255 found="yes" 8256 fi 8257 fi 8258 8259 if test $found = "no" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 fi 8267 8268 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8269 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8271 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8272 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8273 if eval test \${$cacheid+y} 8274 then : 8275 printf %s "(cached) " >&6 8276 else case e in #( 8277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278 /* end confdefs.h. */ 8279 int i; 8280 int 8281 main (void) 8282 { 8283 8284 ; 8285 return 0; 8286 } 8287 _ACEOF 8288 if ac_fn_c_try_link "$LINENO" 8289 then : 8290 eval $cacheid=yes 8291 else case e in #( 8292 e) eval $cacheid=no ;; 8293 esac 8294 fi 8295 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8296 conftest$ac_exeext conftest.$ac_ext ;; 8297 esac 8298 fi 8299 8300 8301 CFLAGS="$xorg_testset_save_CFLAGS" 8302 8303 eval supported=\$$cacheid 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8305 printf "%s\n" "$supported" >&6; } 8306 if test "$supported" = "yes" ; then 8307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8308 found="yes" 8309 fi 8310 fi 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 xorg_testset_save_CFLAGS="$CFLAGS" 8327 8328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8332 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8333 then : 8334 printf %s "(cached) " >&6 8335 else case e in #( 8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337 /* end confdefs.h. */ 8338 int i; 8339 _ACEOF 8340 if ac_fn_c_try_compile "$LINENO" 8341 then : 8342 xorg_cv_cc_flag_unknown_warning_option=yes 8343 else case e in #( 8344 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8345 esac 8346 fi 8347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8348 esac 8349 fi 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354 fi 8355 8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359 fi 8360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8364 then : 8365 printf %s "(cached) " >&6 8366 else case e in #( 8367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368 /* end confdefs.h. */ 8369 int i; 8370 _ACEOF 8371 if ac_fn_c_try_compile "$LINENO" 8372 then : 8373 xorg_cv_cc_flag_unused_command_line_argument=yes 8374 else case e in #( 8375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8376 esac 8377 fi 8378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8379 esac 8380 fi 8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 fi 8386 8387 found="no" 8388 8389 if test $found = "no" ; then 8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8392 fi 8393 8394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8396 fi 8397 8398 CFLAGS="$CFLAGS -Werror=trigraphs" 8399 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8401 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8402 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8403 if eval test \${$cacheid+y} 8404 then : 8405 printf %s "(cached) " >&6 8406 else case e in #( 8407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408 /* end confdefs.h. */ 8409 int i; 8410 int 8411 main (void) 8412 { 8413 8414 ; 8415 return 0; 8416 } 8417 _ACEOF 8418 if ac_fn_c_try_link "$LINENO" 8419 then : 8420 eval $cacheid=yes 8421 else case e in #( 8422 e) eval $cacheid=no ;; 8423 esac 8424 fi 8425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8426 conftest$ac_exeext conftest.$ac_ext ;; 8427 esac 8428 fi 8429 8430 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 8433 eval supported=\$$cacheid 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435 printf "%s\n" "$supported" >&6; } 8436 if test "$supported" = "yes" ; then 8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8438 found="yes" 8439 fi 8440 fi 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 xorg_testset_save_CFLAGS="$CFLAGS" 8457 8458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8463 then : 8464 printf %s "(cached) " >&6 8465 else case e in #( 8466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467 /* end confdefs.h. */ 8468 int i; 8469 _ACEOF 8470 if ac_fn_c_try_compile "$LINENO" 8471 then : 8472 xorg_cv_cc_flag_unknown_warning_option=yes 8473 else case e in #( 8474 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8475 esac 8476 fi 8477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8478 esac 8479 fi 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8483 CFLAGS="$xorg_testset_save_CFLAGS" 8484 fi 8485 8486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8489 fi 8490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8493 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8494 then : 8495 printf %s "(cached) " >&6 8496 else case e in #( 8497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498 /* end confdefs.h. */ 8499 int i; 8500 _ACEOF 8501 if ac_fn_c_try_compile "$LINENO" 8502 then : 8503 xorg_cv_cc_flag_unused_command_line_argument=yes 8504 else case e in #( 8505 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8506 esac 8507 fi 8508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8509 esac 8510 fi 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515 fi 8516 8517 found="no" 8518 8519 if test $found = "no" ; then 8520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 fi 8523 8524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 fi 8527 8528 CFLAGS="$CFLAGS -Werror=array-bounds" 8529 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8531 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8532 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8533 if eval test \${$cacheid+y} 8534 then : 8535 printf %s "(cached) " >&6 8536 else case e in #( 8537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538 /* end confdefs.h. */ 8539 int i; 8540 int 8541 main (void) 8542 { 8543 8544 ; 8545 return 0; 8546 } 8547 _ACEOF 8548 if ac_fn_c_try_link "$LINENO" 8549 then : 8550 eval $cacheid=yes 8551 else case e in #( 8552 e) eval $cacheid=no ;; 8553 esac 8554 fi 8555 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8556 conftest$ac_exeext conftest.$ac_ext ;; 8557 esac 8558 fi 8559 8560 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562 8563 eval supported=\$$cacheid 8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8565 printf "%s\n" "$supported" >&6; } 8566 if test "$supported" = "yes" ; then 8567 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8568 found="yes" 8569 fi 8570 fi 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 xorg_testset_save_CFLAGS="$CFLAGS" 8587 8588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8592 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8593 then : 8594 printf %s "(cached) " >&6 8595 else case e in #( 8596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597 /* end confdefs.h. */ 8598 int i; 8599 _ACEOF 8600 if ac_fn_c_try_compile "$LINENO" 8601 then : 8602 xorg_cv_cc_flag_unknown_warning_option=yes 8603 else case e in #( 8604 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8605 esac 8606 fi 8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8608 esac 8609 fi 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8613 CFLAGS="$xorg_testset_save_CFLAGS" 8614 fi 8615 8616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8619 fi 8620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8624 then : 8625 printf %s "(cached) " >&6 8626 else case e in #( 8627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8628 /* end confdefs.h. */ 8629 int i; 8630 _ACEOF 8631 if ac_fn_c_try_compile "$LINENO" 8632 then : 8633 xorg_cv_cc_flag_unused_command_line_argument=yes 8634 else case e in #( 8635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8636 esac 8637 fi 8638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8639 esac 8640 fi 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645 fi 8646 8647 found="no" 8648 8649 if test $found = "no" ; then 8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 fi 8653 8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8656 fi 8657 8658 CFLAGS="$CFLAGS -Werror=write-strings" 8659 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8661 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8662 cacheid=xorg_cv_cc_flag__Werror_write_strings 8663 if eval test \${$cacheid+y} 8664 then : 8665 printf %s "(cached) " >&6 8666 else case e in #( 8667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668 /* end confdefs.h. */ 8669 int i; 8670 int 8671 main (void) 8672 { 8673 8674 ; 8675 return 0; 8676 } 8677 _ACEOF 8678 if ac_fn_c_try_link "$LINENO" 8679 then : 8680 eval $cacheid=yes 8681 else case e in #( 8682 e) eval $cacheid=no ;; 8683 esac 8684 fi 8685 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8686 conftest$ac_exeext conftest.$ac_ext ;; 8687 esac 8688 fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695 printf "%s\n" "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8723 then : 8724 printf %s "(cached) " >&6 8725 else case e in #( 8726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727 /* end confdefs.h. */ 8728 int i; 8729 _ACEOF 8730 if ac_fn_c_try_compile "$LINENO" 8731 then : 8732 xorg_cv_cc_flag_unknown_warning_option=yes 8733 else case e in #( 8734 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8735 esac 8736 fi 8737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8738 esac 8739 fi 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8743 CFLAGS="$xorg_testset_save_CFLAGS" 8744 fi 8745 8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8749 fi 8750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8754 then : 8755 printf %s "(cached) " >&6 8756 else case e in #( 8757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758 /* end confdefs.h. */ 8759 int i; 8760 _ACEOF 8761 if ac_fn_c_try_compile "$LINENO" 8762 then : 8763 xorg_cv_cc_flag_unused_command_line_argument=yes 8764 else case e in #( 8765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8766 esac 8767 fi 8768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8769 esac 8770 fi 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775 fi 8776 8777 found="no" 8778 8779 if test $found = "no" ; then 8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8786 fi 8787 8788 CFLAGS="$CFLAGS -Werror=address" 8789 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8791 printf %s "checking if $CC supports -Werror=address... " >&6; } 8792 cacheid=xorg_cv_cc_flag__Werror_address 8793 if eval test \${$cacheid+y} 8794 then : 8795 printf %s "(cached) " >&6 8796 else case e in #( 8797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798 /* end confdefs.h. */ 8799 int i; 8800 int 8801 main (void) 8802 { 8803 8804 ; 8805 return 0; 8806 } 8807 _ACEOF 8808 if ac_fn_c_try_link "$LINENO" 8809 then : 8810 eval $cacheid=yes 8811 else case e in #( 8812 e) eval $cacheid=no ;; 8813 esac 8814 fi 8815 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8816 conftest$ac_exeext conftest.$ac_ext ;; 8817 esac 8818 fi 8819 8820 8821 CFLAGS="$xorg_testset_save_CFLAGS" 8822 8823 eval supported=\$$cacheid 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8825 printf "%s\n" "$supported" >&6; } 8826 if test "$supported" = "yes" ; then 8827 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8828 found="yes" 8829 fi 8830 fi 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 xorg_testset_save_CFLAGS="$CFLAGS" 8847 8848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8852 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8853 then : 8854 printf %s "(cached) " >&6 8855 else case e in #( 8856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857 /* end confdefs.h. */ 8858 int i; 8859 _ACEOF 8860 if ac_fn_c_try_compile "$LINENO" 8861 then : 8862 xorg_cv_cc_flag_unknown_warning_option=yes 8863 else case e in #( 8864 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8865 esac 8866 fi 8867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8868 esac 8869 fi 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8871 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874 fi 8875 8876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8879 fi 8880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8884 then : 8885 printf %s "(cached) " >&6 8886 else case e in #( 8887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888 /* end confdefs.h. */ 8889 int i; 8890 _ACEOF 8891 if ac_fn_c_try_compile "$LINENO" 8892 then : 8893 xorg_cv_cc_flag_unused_command_line_argument=yes 8894 else case e in #( 8895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8896 esac 8897 fi 8898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8899 esac 8900 fi 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8904 CFLAGS="$xorg_testset_save_CFLAGS" 8905 fi 8906 8907 found="no" 8908 8909 if test $found = "no" ; then 8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8912 fi 8913 8914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8916 fi 8917 8918 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8919 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8921 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8922 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8923 if eval test \${$cacheid+y} 8924 then : 8925 printf %s "(cached) " >&6 8926 else case e in #( 8927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928 /* end confdefs.h. */ 8929 int i; 8930 int 8931 main (void) 8932 { 8933 8934 ; 8935 return 0; 8936 } 8937 _ACEOF 8938 if ac_fn_c_try_link "$LINENO" 8939 then : 8940 eval $cacheid=yes 8941 else case e in #( 8942 e) eval $cacheid=no ;; 8943 esac 8944 fi 8945 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8946 conftest$ac_exeext conftest.$ac_ext ;; 8947 esac 8948 fi 8949 8950 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952 8953 eval supported=\$$cacheid 8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8955 printf "%s\n" "$supported" >&6; } 8956 if test "$supported" = "yes" ; then 8957 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8958 found="yes" 8959 fi 8960 fi 8961 8962 if test $found = "no" ; then 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 fi 8966 8967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 fi 8970 8971 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8972 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8974 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8975 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8976 if eval test \${$cacheid+y} 8977 then : 8978 printf %s "(cached) " >&6 8979 else case e in #( 8980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981 /* end confdefs.h. */ 8982 int i; 8983 int 8984 main (void) 8985 { 8986 8987 ; 8988 return 0; 8989 } 8990 _ACEOF 8991 if ac_fn_c_try_link "$LINENO" 8992 then : 8993 eval $cacheid=yes 8994 else case e in #( 8995 e) eval $cacheid=no ;; 8996 esac 8997 fi 8998 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8999 conftest$ac_exeext conftest.$ac_ext ;; 9000 esac 9001 fi 9002 9003 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 9006 eval supported=\$$cacheid 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008 printf "%s\n" "$supported" >&6; } 9009 if test "$supported" = "yes" ; then 9010 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9011 found="yes" 9012 fi 9013 fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 xorg_testset_save_CFLAGS="$CFLAGS" 9030 9031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9036 then : 9037 printf %s "(cached) " >&6 9038 else case e in #( 9039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040 /* end confdefs.h. */ 9041 int i; 9042 _ACEOF 9043 if ac_fn_c_try_compile "$LINENO" 9044 then : 9045 xorg_cv_cc_flag_unknown_warning_option=yes 9046 else case e in #( 9047 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9048 esac 9049 fi 9050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9051 esac 9052 fi 9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057 fi 9058 9059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9062 fi 9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9067 then : 9068 printf %s "(cached) " >&6 9069 else case e in #( 9070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071 /* end confdefs.h. */ 9072 int i; 9073 _ACEOF 9074 if ac_fn_c_try_compile "$LINENO" 9075 then : 9076 xorg_cv_cc_flag_unused_command_line_argument=yes 9077 else case e in #( 9078 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9079 esac 9080 fi 9081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9082 esac 9083 fi 9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9087 CFLAGS="$xorg_testset_save_CFLAGS" 9088 fi 9089 9090 found="no" 9091 9092 if test $found = "no" ; then 9093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 fi 9096 9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9099 fi 9100 9101 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9102 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9104 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9105 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9106 if eval test \${$cacheid+y} 9107 then : 9108 printf %s "(cached) " >&6 9109 else case e in #( 9110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111 /* end confdefs.h. */ 9112 int i; 9113 int 9114 main (void) 9115 { 9116 9117 ; 9118 return 0; 9119 } 9120 _ACEOF 9121 if ac_fn_c_try_link "$LINENO" 9122 then : 9123 eval $cacheid=yes 9124 else case e in #( 9125 e) eval $cacheid=no ;; 9126 esac 9127 fi 9128 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9129 conftest$ac_exeext conftest.$ac_ext ;; 9130 esac 9131 fi 9132 9133 9134 CFLAGS="$xorg_testset_save_CFLAGS" 9135 9136 eval supported=\$$cacheid 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9138 printf "%s\n" "$supported" >&6; } 9139 if test "$supported" = "yes" ; then 9140 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9141 found="yes" 9142 fi 9143 fi 9144 9145 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9146 else 9147 { 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 9148 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;} 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 xorg_testset_save_CFLAGS="$CFLAGS" 9163 9164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9167 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9168 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9169 then : 9170 printf %s "(cached) " >&6 9171 else case e in #( 9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173 /* end confdefs.h. */ 9174 int i; 9175 _ACEOF 9176 if ac_fn_c_try_compile "$LINENO" 9177 then : 9178 xorg_cv_cc_flag_unknown_warning_option=yes 9179 else case e in #( 9180 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9181 esac 9182 fi 9183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9184 esac 9185 fi 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190 fi 9191 9192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9200 then : 9201 printf %s "(cached) " >&6 9202 else case e in #( 9203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204 /* end confdefs.h. */ 9205 int i; 9206 _ACEOF 9207 if ac_fn_c_try_compile "$LINENO" 9208 then : 9209 xorg_cv_cc_flag_unused_command_line_argument=yes 9210 else case e in #( 9211 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9212 esac 9213 fi 9214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9215 esac 9216 fi 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221 fi 9222 9223 found="no" 9224 9225 if test $found = "no" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 fi 9233 9234 CFLAGS="$CFLAGS -Wimplicit" 9235 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9237 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9238 cacheid=xorg_cv_cc_flag__Wimplicit 9239 if eval test \${$cacheid+y} 9240 then : 9241 printf %s "(cached) " >&6 9242 else case e in #( 9243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244 /* end confdefs.h. */ 9245 int i; 9246 int 9247 main (void) 9248 { 9249 9250 ; 9251 return 0; 9252 } 9253 _ACEOF 9254 if ac_fn_c_try_link "$LINENO" 9255 then : 9256 eval $cacheid=yes 9257 else case e in #( 9258 e) eval $cacheid=no ;; 9259 esac 9260 fi 9261 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9262 conftest$ac_exeext conftest.$ac_ext ;; 9263 esac 9264 fi 9265 9266 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268 9269 eval supported=\$$cacheid 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271 printf "%s\n" "$supported" >&6; } 9272 if test "$supported" = "yes" ; then 9273 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9274 found="yes" 9275 fi 9276 fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9299 then : 9300 printf %s "(cached) " >&6 9301 else case e in #( 9302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303 /* end confdefs.h. */ 9304 int i; 9305 _ACEOF 9306 if ac_fn_c_try_compile "$LINENO" 9307 then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309 else case e in #( 9310 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9311 esac 9312 fi 9313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9314 esac 9315 fi 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320 fi 9321 9322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 fi 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9330 then : 9331 printf %s "(cached) " >&6 9332 else case e in #( 9333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334 /* end confdefs.h. */ 9335 int i; 9336 _ACEOF 9337 if ac_fn_c_try_compile "$LINENO" 9338 then : 9339 xorg_cv_cc_flag_unused_command_line_argument=yes 9340 else case e in #( 9341 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9342 esac 9343 fi 9344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9345 esac 9346 fi 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351 fi 9352 9353 found="no" 9354 9355 if test $found = "no" ; then 9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 fi 9359 9360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9362 fi 9363 9364 CFLAGS="$CFLAGS -Wnonnull" 9365 9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9367 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9368 cacheid=xorg_cv_cc_flag__Wnonnull 9369 if eval test \${$cacheid+y} 9370 then : 9371 printf %s "(cached) " >&6 9372 else case e in #( 9373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374 /* end confdefs.h. */ 9375 int i; 9376 int 9377 main (void) 9378 { 9379 9380 ; 9381 return 0; 9382 } 9383 _ACEOF 9384 if ac_fn_c_try_link "$LINENO" 9385 then : 9386 eval $cacheid=yes 9387 else case e in #( 9388 e) eval $cacheid=no ;; 9389 esac 9390 fi 9391 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9392 conftest$ac_exeext conftest.$ac_ext ;; 9393 esac 9394 fi 9395 9396 9397 CFLAGS="$xorg_testset_save_CFLAGS" 9398 9399 eval supported=\$$cacheid 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9401 printf "%s\n" "$supported" >&6; } 9402 if test "$supported" = "yes" ; then 9403 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9404 found="yes" 9405 fi 9406 fi 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 xorg_testset_save_CFLAGS="$CFLAGS" 9423 9424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9428 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9429 then : 9430 printf %s "(cached) " >&6 9431 else case e in #( 9432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433 /* end confdefs.h. */ 9434 int i; 9435 _ACEOF 9436 if ac_fn_c_try_compile "$LINENO" 9437 then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439 else case e in #( 9440 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9441 esac 9442 fi 9443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9444 esac 9445 fi 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460 then : 9461 printf %s "(cached) " >&6 9462 else case e in #( 9463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464 /* end confdefs.h. */ 9465 int i; 9466 _ACEOF 9467 if ac_fn_c_try_compile "$LINENO" 9468 then : 9469 xorg_cv_cc_flag_unused_command_line_argument=yes 9470 else case e in #( 9471 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9472 esac 9473 fi 9474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9475 esac 9476 fi 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9478 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481 fi 9482 9483 found="no" 9484 9485 if test $found = "no" ; then 9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 fi 9489 9490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492 fi 9493 9494 CFLAGS="$CFLAGS -Winit-self" 9495 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9497 printf %s "checking if $CC supports -Winit-self... " >&6; } 9498 cacheid=xorg_cv_cc_flag__Winit_self 9499 if eval test \${$cacheid+y} 9500 then : 9501 printf %s "(cached) " >&6 9502 else case e in #( 9503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504 /* end confdefs.h. */ 9505 int i; 9506 int 9507 main (void) 9508 { 9509 9510 ; 9511 return 0; 9512 } 9513 _ACEOF 9514 if ac_fn_c_try_link "$LINENO" 9515 then : 9516 eval $cacheid=yes 9517 else case e in #( 9518 e) eval $cacheid=no ;; 9519 esac 9520 fi 9521 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9522 conftest$ac_exeext conftest.$ac_ext ;; 9523 esac 9524 fi 9525 9526 9527 CFLAGS="$xorg_testset_save_CFLAGS" 9528 9529 eval supported=\$$cacheid 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9531 printf "%s\n" "$supported" >&6; } 9532 if test "$supported" = "yes" ; then 9533 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9534 found="yes" 9535 fi 9536 fi 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 xorg_testset_save_CFLAGS="$CFLAGS" 9553 9554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9558 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9559 then : 9560 printf %s "(cached) " >&6 9561 else case e in #( 9562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563 /* end confdefs.h. */ 9564 int i; 9565 _ACEOF 9566 if ac_fn_c_try_compile "$LINENO" 9567 then : 9568 xorg_cv_cc_flag_unknown_warning_option=yes 9569 else case e in #( 9570 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9571 esac 9572 fi 9573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9574 esac 9575 fi 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580 fi 9581 9582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9590 then : 9591 printf %s "(cached) " >&6 9592 else case e in #( 9593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594 /* end confdefs.h. */ 9595 int i; 9596 _ACEOF 9597 if ac_fn_c_try_compile "$LINENO" 9598 then : 9599 xorg_cv_cc_flag_unused_command_line_argument=yes 9600 else case e in #( 9601 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9602 esac 9603 fi 9604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9605 esac 9606 fi 9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611 fi 9612 9613 found="no" 9614 9615 if test $found = "no" ; then 9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 fi 9623 9624 CFLAGS="$CFLAGS -Wmain" 9625 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9627 printf %s "checking if $CC supports -Wmain... " >&6; } 9628 cacheid=xorg_cv_cc_flag__Wmain 9629 if eval test \${$cacheid+y} 9630 then : 9631 printf %s "(cached) " >&6 9632 else case e in #( 9633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634 /* end confdefs.h. */ 9635 int i; 9636 int 9637 main (void) 9638 { 9639 9640 ; 9641 return 0; 9642 } 9643 _ACEOF 9644 if ac_fn_c_try_link "$LINENO" 9645 then : 9646 eval $cacheid=yes 9647 else case e in #( 9648 e) eval $cacheid=no ;; 9649 esac 9650 fi 9651 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9652 conftest$ac_exeext conftest.$ac_ext ;; 9653 esac 9654 fi 9655 9656 9657 CFLAGS="$xorg_testset_save_CFLAGS" 9658 9659 eval supported=\$$cacheid 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9661 printf "%s\n" "$supported" >&6; } 9662 if test "$supported" = "yes" ; then 9663 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9664 found="yes" 9665 fi 9666 fi 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 xorg_testset_save_CFLAGS="$CFLAGS" 9683 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9688 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9689 then : 9690 printf %s "(cached) " >&6 9691 else case e in #( 9692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693 /* end confdefs.h. */ 9694 int i; 9695 _ACEOF 9696 if ac_fn_c_try_compile "$LINENO" 9697 then : 9698 xorg_cv_cc_flag_unknown_warning_option=yes 9699 else case e in #( 9700 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9701 esac 9702 fi 9703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9704 esac 9705 fi 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710 fi 9711 9712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9720 then : 9721 printf %s "(cached) " >&6 9722 else case e in #( 9723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724 /* end confdefs.h. */ 9725 int i; 9726 _ACEOF 9727 if ac_fn_c_try_compile "$LINENO" 9728 then : 9729 xorg_cv_cc_flag_unused_command_line_argument=yes 9730 else case e in #( 9731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9732 esac 9733 fi 9734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9735 esac 9736 fi 9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 fi 9742 9743 found="no" 9744 9745 if test $found = "no" ; then 9746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9748 fi 9749 9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9752 fi 9753 9754 CFLAGS="$CFLAGS -Wmissing-braces" 9755 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9757 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9758 cacheid=xorg_cv_cc_flag__Wmissing_braces 9759 if eval test \${$cacheid+y} 9760 then : 9761 printf %s "(cached) " >&6 9762 else case e in #( 9763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764 /* end confdefs.h. */ 9765 int i; 9766 int 9767 main (void) 9768 { 9769 9770 ; 9771 return 0; 9772 } 9773 _ACEOF 9774 if ac_fn_c_try_link "$LINENO" 9775 then : 9776 eval $cacheid=yes 9777 else case e in #( 9778 e) eval $cacheid=no ;; 9779 esac 9780 fi 9781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9782 conftest$ac_exeext conftest.$ac_ext ;; 9783 esac 9784 fi 9785 9786 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788 9789 eval supported=\$$cacheid 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9791 printf "%s\n" "$supported" >&6; } 9792 if test "$supported" = "yes" ; then 9793 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9794 found="yes" 9795 fi 9796 fi 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 xorg_testset_save_CFLAGS="$CFLAGS" 9813 9814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9818 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9819 then : 9820 printf %s "(cached) " >&6 9821 else case e in #( 9822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823 /* end confdefs.h. */ 9824 int i; 9825 _ACEOF 9826 if ac_fn_c_try_compile "$LINENO" 9827 then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829 else case e in #( 9830 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9831 esac 9832 fi 9833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9834 esac 9835 fi 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840 fi 9841 9842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9850 then : 9851 printf %s "(cached) " >&6 9852 else case e in #( 9853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854 /* end confdefs.h. */ 9855 int i; 9856 _ACEOF 9857 if ac_fn_c_try_compile "$LINENO" 9858 then : 9859 xorg_cv_cc_flag_unused_command_line_argument=yes 9860 else case e in #( 9861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9862 esac 9863 fi 9864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9865 esac 9866 fi 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871 fi 9872 9873 found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Wsequence-point" 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9887 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Wsequence_point 9889 if eval test \${$cacheid+y} 9890 then : 9891 printf %s "(cached) " >&6 9892 else case e in #( 9893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894 /* end confdefs.h. */ 9895 int i; 9896 int 9897 main (void) 9898 { 9899 9900 ; 9901 return 0; 9902 } 9903 _ACEOF 9904 if ac_fn_c_try_link "$LINENO" 9905 then : 9906 eval $cacheid=yes 9907 else case e in #( 9908 e) eval $cacheid=no ;; 9909 esac 9910 fi 9911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9912 conftest$ac_exeext conftest.$ac_ext ;; 9913 esac 9914 fi 9915 9916 9917 CFLAGS="$xorg_testset_save_CFLAGS" 9918 9919 eval supported=\$$cacheid 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9921 printf "%s\n" "$supported" >&6; } 9922 if test "$supported" = "yes" ; then 9923 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9924 found="yes" 9925 fi 9926 fi 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 xorg_testset_save_CFLAGS="$CFLAGS" 9943 9944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9948 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9949 then : 9950 printf %s "(cached) " >&6 9951 else case e in #( 9952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953 /* end confdefs.h. */ 9954 int i; 9955 _ACEOF 9956 if ac_fn_c_try_compile "$LINENO" 9957 then : 9958 xorg_cv_cc_flag_unknown_warning_option=yes 9959 else case e in #( 9960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9961 esac 9962 fi 9963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9964 esac 9965 fi 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970 fi 9971 9972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9980 then : 9981 printf %s "(cached) " >&6 9982 else case e in #( 9983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984 /* end confdefs.h. */ 9985 int i; 9986 _ACEOF 9987 if ac_fn_c_try_compile "$LINENO" 9988 then : 9989 xorg_cv_cc_flag_unused_command_line_argument=yes 9990 else case e in #( 9991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9992 esac 9993 fi 9994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9995 esac 9996 fi 9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001 fi 10002 10003 found="no" 10004 10005 if test $found = "no" ; then 10006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 fi 10009 10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10012 fi 10013 10014 CFLAGS="$CFLAGS -Wreturn-type" 10015 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10017 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10018 cacheid=xorg_cv_cc_flag__Wreturn_type 10019 if eval test \${$cacheid+y} 10020 then : 10021 printf %s "(cached) " >&6 10022 else case e in #( 10023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024 /* end confdefs.h. */ 10025 int i; 10026 int 10027 main (void) 10028 { 10029 10030 ; 10031 return 0; 10032 } 10033 _ACEOF 10034 if ac_fn_c_try_link "$LINENO" 10035 then : 10036 eval $cacheid=yes 10037 else case e in #( 10038 e) eval $cacheid=no ;; 10039 esac 10040 fi 10041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10042 conftest$ac_exeext conftest.$ac_ext ;; 10043 esac 10044 fi 10045 10046 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048 10049 eval supported=\$$cacheid 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10051 printf "%s\n" "$supported" >&6; } 10052 if test "$supported" = "yes" ; then 10053 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10054 found="yes" 10055 fi 10056 fi 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 xorg_testset_save_CFLAGS="$CFLAGS" 10073 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10078 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10079 then : 10080 printf %s "(cached) " >&6 10081 else case e in #( 10082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083 /* end confdefs.h. */ 10084 int i; 10085 _ACEOF 10086 if ac_fn_c_try_compile "$LINENO" 10087 then : 10088 xorg_cv_cc_flag_unknown_warning_option=yes 10089 else case e in #( 10090 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10091 esac 10092 fi 10093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10094 esac 10095 fi 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10099 CFLAGS="$xorg_testset_save_CFLAGS" 10100 fi 10101 10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10110 then : 10111 printf %s "(cached) " >&6 10112 else case e in #( 10113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114 /* end confdefs.h. */ 10115 int i; 10116 _ACEOF 10117 if ac_fn_c_try_compile "$LINENO" 10118 then : 10119 xorg_cv_cc_flag_unused_command_line_argument=yes 10120 else case e in #( 10121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10122 esac 10123 fi 10124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10125 esac 10126 fi 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10130 CFLAGS="$xorg_testset_save_CFLAGS" 10131 fi 10132 10133 found="no" 10134 10135 if test $found = "no" ; then 10136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 fi 10139 10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10142 fi 10143 10144 CFLAGS="$CFLAGS -Wtrigraphs" 10145 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10147 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10148 cacheid=xorg_cv_cc_flag__Wtrigraphs 10149 if eval test \${$cacheid+y} 10150 then : 10151 printf %s "(cached) " >&6 10152 else case e in #( 10153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154 /* end confdefs.h. */ 10155 int i; 10156 int 10157 main (void) 10158 { 10159 10160 ; 10161 return 0; 10162 } 10163 _ACEOF 10164 if ac_fn_c_try_link "$LINENO" 10165 then : 10166 eval $cacheid=yes 10167 else case e in #( 10168 e) eval $cacheid=no ;; 10169 esac 10170 fi 10171 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10172 conftest$ac_exeext conftest.$ac_ext ;; 10173 esac 10174 fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181 printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10184 found="yes" 10185 fi 10186 fi 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 xorg_testset_save_CFLAGS="$CFLAGS" 10203 10204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10208 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10209 then : 10210 printf %s "(cached) " >&6 10211 else case e in #( 10212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213 /* end confdefs.h. */ 10214 int i; 10215 _ACEOF 10216 if ac_fn_c_try_compile "$LINENO" 10217 then : 10218 xorg_cv_cc_flag_unknown_warning_option=yes 10219 else case e in #( 10220 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10221 esac 10222 fi 10223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10224 esac 10225 fi 10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10229 CFLAGS="$xorg_testset_save_CFLAGS" 10230 fi 10231 10232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10240 then : 10241 printf %s "(cached) " >&6 10242 else case e in #( 10243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244 /* end confdefs.h. */ 10245 int i; 10246 _ACEOF 10247 if ac_fn_c_try_compile "$LINENO" 10248 then : 10249 xorg_cv_cc_flag_unused_command_line_argument=yes 10250 else case e in #( 10251 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10252 esac 10253 fi 10254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10255 esac 10256 fi 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10260 CFLAGS="$xorg_testset_save_CFLAGS" 10261 fi 10262 10263 found="no" 10264 10265 if test $found = "no" ; then 10266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 fi 10269 10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10272 fi 10273 10274 CFLAGS="$CFLAGS -Warray-bounds" 10275 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10277 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10278 cacheid=xorg_cv_cc_flag__Warray_bounds 10279 if eval test \${$cacheid+y} 10280 then : 10281 printf %s "(cached) " >&6 10282 else case e in #( 10283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284 /* end confdefs.h. */ 10285 int i; 10286 int 10287 main (void) 10288 { 10289 10290 ; 10291 return 0; 10292 } 10293 _ACEOF 10294 if ac_fn_c_try_link "$LINENO" 10295 then : 10296 eval $cacheid=yes 10297 else case e in #( 10298 e) eval $cacheid=no ;; 10299 esac 10300 fi 10301 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10302 conftest$ac_exeext conftest.$ac_ext ;; 10303 esac 10304 fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311 printf "%s\n" "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 xorg_testset_save_CFLAGS="$CFLAGS" 10333 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10338 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10339 then : 10340 printf %s "(cached) " >&6 10341 else case e in #( 10342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343 /* end confdefs.h. */ 10344 int i; 10345 _ACEOF 10346 if ac_fn_c_try_compile "$LINENO" 10347 then : 10348 xorg_cv_cc_flag_unknown_warning_option=yes 10349 else case e in #( 10350 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10351 esac 10352 fi 10353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10354 esac 10355 fi 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360 fi 10361 10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10365 fi 10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10370 then : 10371 printf %s "(cached) " >&6 10372 else case e in #( 10373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374 /* end confdefs.h. */ 10375 int i; 10376 _ACEOF 10377 if ac_fn_c_try_compile "$LINENO" 10378 then : 10379 xorg_cv_cc_flag_unused_command_line_argument=yes 10380 else case e in #( 10381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10382 esac 10383 fi 10384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10385 esac 10386 fi 10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391 fi 10392 10393 found="no" 10394 10395 if test $found = "no" ; then 10396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 fi 10399 10400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10402 fi 10403 10404 CFLAGS="$CFLAGS -Wwrite-strings" 10405 10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10407 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10408 cacheid=xorg_cv_cc_flag__Wwrite_strings 10409 if eval test \${$cacheid+y} 10410 then : 10411 printf %s "(cached) " >&6 10412 else case e in #( 10413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414 /* end confdefs.h. */ 10415 int i; 10416 int 10417 main (void) 10418 { 10419 10420 ; 10421 return 0; 10422 } 10423 _ACEOF 10424 if ac_fn_c_try_link "$LINENO" 10425 then : 10426 eval $cacheid=yes 10427 else case e in #( 10428 e) eval $cacheid=no ;; 10429 esac 10430 fi 10431 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10432 conftest$ac_exeext conftest.$ac_ext ;; 10433 esac 10434 fi 10435 10436 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438 10439 eval supported=\$$cacheid 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10441 printf "%s\n" "$supported" >&6; } 10442 if test "$supported" = "yes" ; then 10443 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10444 found="yes" 10445 fi 10446 fi 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 xorg_testset_save_CFLAGS="$CFLAGS" 10463 10464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10468 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10469 then : 10470 printf %s "(cached) " >&6 10471 else case e in #( 10472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10473 /* end confdefs.h. */ 10474 int i; 10475 _ACEOF 10476 if ac_fn_c_try_compile "$LINENO" 10477 then : 10478 xorg_cv_cc_flag_unknown_warning_option=yes 10479 else case e in #( 10480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10481 esac 10482 fi 10483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10484 esac 10485 fi 10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 fi 10491 10492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10495 fi 10496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10500 then : 10501 printf %s "(cached) " >&6 10502 else case e in #( 10503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504 /* end confdefs.h. */ 10505 int i; 10506 _ACEOF 10507 if ac_fn_c_try_compile "$LINENO" 10508 then : 10509 xorg_cv_cc_flag_unused_command_line_argument=yes 10510 else case e in #( 10511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10512 esac 10513 fi 10514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10515 esac 10516 fi 10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521 fi 10522 10523 found="no" 10524 10525 if test $found = "no" ; then 10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10528 fi 10529 10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10532 fi 10533 10534 CFLAGS="$CFLAGS -Waddress" 10535 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10537 printf %s "checking if $CC supports -Waddress... " >&6; } 10538 cacheid=xorg_cv_cc_flag__Waddress 10539 if eval test \${$cacheid+y} 10540 then : 10541 printf %s "(cached) " >&6 10542 else case e in #( 10543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544 /* end confdefs.h. */ 10545 int i; 10546 int 10547 main (void) 10548 { 10549 10550 ; 10551 return 0; 10552 } 10553 _ACEOF 10554 if ac_fn_c_try_link "$LINENO" 10555 then : 10556 eval $cacheid=yes 10557 else case e in #( 10558 e) eval $cacheid=no ;; 10559 esac 10560 fi 10561 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10562 conftest$ac_exeext conftest.$ac_ext ;; 10563 esac 10564 fi 10565 10566 10567 CFLAGS="$xorg_testset_save_CFLAGS" 10568 10569 eval supported=\$$cacheid 10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10571 printf "%s\n" "$supported" >&6; } 10572 if test "$supported" = "yes" ; then 10573 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10574 found="yes" 10575 fi 10576 fi 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 xorg_testset_save_CFLAGS="$CFLAGS" 10593 10594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10598 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10599 then : 10600 printf %s "(cached) " >&6 10601 else case e in #( 10602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10603 /* end confdefs.h. */ 10604 int i; 10605 _ACEOF 10606 if ac_fn_c_try_compile "$LINENO" 10607 then : 10608 xorg_cv_cc_flag_unknown_warning_option=yes 10609 else case e in #( 10610 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10611 esac 10612 fi 10613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10614 esac 10615 fi 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620 fi 10621 10622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625 fi 10626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10630 then : 10631 printf %s "(cached) " >&6 10632 else case e in #( 10633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634 /* end confdefs.h. */ 10635 int i; 10636 _ACEOF 10637 if ac_fn_c_try_compile "$LINENO" 10638 then : 10639 xorg_cv_cc_flag_unused_command_line_argument=yes 10640 else case e in #( 10641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10642 esac 10643 fi 10644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10645 esac 10646 fi 10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10648 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 fi 10652 10653 found="no" 10654 10655 if test $found = "no" ; then 10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10658 fi 10659 10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10662 fi 10663 10664 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10665 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10667 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10668 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10669 if eval test \${$cacheid+y} 10670 then : 10671 printf %s "(cached) " >&6 10672 else case e in #( 10673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674 /* end confdefs.h. */ 10675 int i; 10676 int 10677 main (void) 10678 { 10679 10680 ; 10681 return 0; 10682 } 10683 _ACEOF 10684 if ac_fn_c_try_link "$LINENO" 10685 then : 10686 eval $cacheid=yes 10687 else case e in #( 10688 e) eval $cacheid=no ;; 10689 esac 10690 fi 10691 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10692 conftest$ac_exeext conftest.$ac_ext ;; 10693 esac 10694 fi 10695 10696 10697 CFLAGS="$xorg_testset_save_CFLAGS" 10698 10699 eval supported=\$$cacheid 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10701 printf "%s\n" "$supported" >&6; } 10702 if test "$supported" = "yes" ; then 10703 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10704 found="yes" 10705 fi 10706 fi 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 xorg_testset_save_CFLAGS="$CFLAGS" 10723 10724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10727 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10728 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10729 then : 10730 printf %s "(cached) " >&6 10731 else case e in #( 10732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10733 /* end confdefs.h. */ 10734 int i; 10735 _ACEOF 10736 if ac_fn_c_try_compile "$LINENO" 10737 then : 10738 xorg_cv_cc_flag_unknown_warning_option=yes 10739 else case e in #( 10740 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10741 esac 10742 fi 10743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10744 esac 10745 fi 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10747 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10749 CFLAGS="$xorg_testset_save_CFLAGS" 10750 fi 10751 10752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10755 fi 10756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10758 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10759 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10760 then : 10761 printf %s "(cached) " >&6 10762 else case e in #( 10763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10764 /* end confdefs.h. */ 10765 int i; 10766 _ACEOF 10767 if ac_fn_c_try_compile "$LINENO" 10768 then : 10769 xorg_cv_cc_flag_unused_command_line_argument=yes 10770 else case e in #( 10771 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10772 esac 10773 fi 10774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10775 esac 10776 fi 10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10780 CFLAGS="$xorg_testset_save_CFLAGS" 10781 fi 10782 10783 found="no" 10784 10785 if test $found = "no" ; then 10786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10788 fi 10789 10790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10792 fi 10793 10794 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10795 10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10797 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10798 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10799 if eval test \${$cacheid+y} 10800 then : 10801 printf %s "(cached) " >&6 10802 else case e in #( 10803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804 /* end confdefs.h. */ 10805 int i; 10806 int 10807 main (void) 10808 { 10809 10810 ; 10811 return 0; 10812 } 10813 _ACEOF 10814 if ac_fn_c_try_link "$LINENO" 10815 then : 10816 eval $cacheid=yes 10817 else case e in #( 10818 e) eval $cacheid=no ;; 10819 esac 10820 fi 10821 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10822 conftest$ac_exeext conftest.$ac_ext ;; 10823 esac 10824 fi 10825 10826 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828 10829 eval supported=\$$cacheid 10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10831 printf "%s\n" "$supported" >&6; } 10832 if test "$supported" = "yes" ; then 10833 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10834 found="yes" 10835 fi 10836 fi 10837 10838 10839 fi 10840 10841 10842 10843 10844 10845 10846 10847 CWARNFLAGS="$BASE_CFLAGS" 10848 if test "x$GCC" = xyes ; then 10849 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10850 fi 10851 10852 10853 10854 10855 10856 10857 10858 10859 # Check whether --enable-strict-compilation was given. 10860 if test ${enable_strict_compilation+y} 10861 then : 10862 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10863 else case e in #( 10864 e) STRICT_COMPILE=no ;; 10865 esac 10866 fi 10867 10868 10869 10870 10871 10872 10873 STRICT_CFLAGS="" 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 xorg_testset_save_CFLAGS="$CFLAGS" 10888 10889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10892 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10893 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10894 then : 10895 printf %s "(cached) " >&6 10896 else case e in #( 10897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898 /* end confdefs.h. */ 10899 int i; 10900 _ACEOF 10901 if ac_fn_c_try_compile "$LINENO" 10902 then : 10903 xorg_cv_cc_flag_unknown_warning_option=yes 10904 else case e in #( 10905 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10906 esac 10907 fi 10908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10909 esac 10910 fi 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10912 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10914 CFLAGS="$xorg_testset_save_CFLAGS" 10915 fi 10916 10917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10920 fi 10921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10923 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10924 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10925 then : 10926 printf %s "(cached) " >&6 10927 else case e in #( 10928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929 /* end confdefs.h. */ 10930 int i; 10931 _ACEOF 10932 if ac_fn_c_try_compile "$LINENO" 10933 then : 10934 xorg_cv_cc_flag_unused_command_line_argument=yes 10935 else case e in #( 10936 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10937 esac 10938 fi 10939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10940 esac 10941 fi 10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10943 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10945 CFLAGS="$xorg_testset_save_CFLAGS" 10946 fi 10947 10948 found="no" 10949 10950 if test $found = "no" ; then 10951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10953 fi 10954 10955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10957 fi 10958 10959 CFLAGS="$CFLAGS -pedantic" 10960 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10962 printf %s "checking if $CC supports -pedantic... " >&6; } 10963 cacheid=xorg_cv_cc_flag__pedantic 10964 if eval test \${$cacheid+y} 10965 then : 10966 printf %s "(cached) " >&6 10967 else case e in #( 10968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10969 /* end confdefs.h. */ 10970 int i; 10971 int 10972 main (void) 10973 { 10974 10975 ; 10976 return 0; 10977 } 10978 _ACEOF 10979 if ac_fn_c_try_link "$LINENO" 10980 then : 10981 eval $cacheid=yes 10982 else case e in #( 10983 e) eval $cacheid=no ;; 10984 esac 10985 fi 10986 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10987 conftest$ac_exeext conftest.$ac_ext ;; 10988 esac 10989 fi 10990 10991 10992 CFLAGS="$xorg_testset_save_CFLAGS" 10993 10994 eval supported=\$$cacheid 10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10996 printf "%s\n" "$supported" >&6; } 10997 if test "$supported" = "yes" ; then 10998 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10999 found="yes" 11000 fi 11001 fi 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 xorg_testset_save_CFLAGS="$CFLAGS" 11018 11019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11023 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11024 then : 11025 printf %s "(cached) " >&6 11026 else case e in #( 11027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028 /* end confdefs.h. */ 11029 int i; 11030 _ACEOF 11031 if ac_fn_c_try_compile "$LINENO" 11032 then : 11033 xorg_cv_cc_flag_unknown_warning_option=yes 11034 else case e in #( 11035 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11036 esac 11037 fi 11038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11039 esac 11040 fi 11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11042 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11044 CFLAGS="$xorg_testset_save_CFLAGS" 11045 fi 11046 11047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11050 fi 11051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11053 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11054 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11055 then : 11056 printf %s "(cached) " >&6 11057 else case e in #( 11058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059 /* end confdefs.h. */ 11060 int i; 11061 _ACEOF 11062 if ac_fn_c_try_compile "$LINENO" 11063 then : 11064 xorg_cv_cc_flag_unused_command_line_argument=yes 11065 else case e in #( 11066 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11067 esac 11068 fi 11069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11070 esac 11071 fi 11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11075 CFLAGS="$xorg_testset_save_CFLAGS" 11076 fi 11077 11078 found="no" 11079 11080 if test $found = "no" ; then 11081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11083 fi 11084 11085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11087 fi 11088 11089 CFLAGS="$CFLAGS -Werror" 11090 11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11092 printf %s "checking if $CC supports -Werror... " >&6; } 11093 cacheid=xorg_cv_cc_flag__Werror 11094 if eval test \${$cacheid+y} 11095 then : 11096 printf %s "(cached) " >&6 11097 else case e in #( 11098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099 /* end confdefs.h. */ 11100 int i; 11101 int 11102 main (void) 11103 { 11104 11105 ; 11106 return 0; 11107 } 11108 _ACEOF 11109 if ac_fn_c_try_link "$LINENO" 11110 then : 11111 eval $cacheid=yes 11112 else case e in #( 11113 e) eval $cacheid=no ;; 11114 esac 11115 fi 11116 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11117 conftest$ac_exeext conftest.$ac_ext ;; 11118 esac 11119 fi 11120 11121 11122 CFLAGS="$xorg_testset_save_CFLAGS" 11123 11124 eval supported=\$$cacheid 11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11126 printf "%s\n" "$supported" >&6; } 11127 if test "$supported" = "yes" ; then 11128 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11129 found="yes" 11130 fi 11131 fi 11132 11133 if test $found = "no" ; then 11134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11136 fi 11137 11138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11140 fi 11141 11142 CFLAGS="$CFLAGS -errwarn" 11143 11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11145 printf %s "checking if $CC supports -errwarn... " >&6; } 11146 cacheid=xorg_cv_cc_flag__errwarn 11147 if eval test \${$cacheid+y} 11148 then : 11149 printf %s "(cached) " >&6 11150 else case e in #( 11151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11152 /* end confdefs.h. */ 11153 int i; 11154 int 11155 main (void) 11156 { 11157 11158 ; 11159 return 0; 11160 } 11161 _ACEOF 11162 if ac_fn_c_try_link "$LINENO" 11163 then : 11164 eval $cacheid=yes 11165 else case e in #( 11166 e) eval $cacheid=no ;; 11167 esac 11168 fi 11169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11170 conftest$ac_exeext conftest.$ac_ext ;; 11171 esac 11172 fi 11173 11174 11175 CFLAGS="$xorg_testset_save_CFLAGS" 11176 11177 eval supported=\$$cacheid 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11179 printf "%s\n" "$supported" >&6; } 11180 if test "$supported" = "yes" ; then 11181 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11182 found="yes" 11183 fi 11184 fi 11185 11186 11187 11188 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11189 # activate it with -Werror, so we add it here explicitly. 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 xorg_testset_save_CFLAGS="$CFLAGS" 11204 11205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11209 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11210 then : 11211 printf %s "(cached) " >&6 11212 else case e in #( 11213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214 /* end confdefs.h. */ 11215 int i; 11216 _ACEOF 11217 if ac_fn_c_try_compile "$LINENO" 11218 then : 11219 xorg_cv_cc_flag_unknown_warning_option=yes 11220 else case e in #( 11221 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11222 esac 11223 fi 11224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11225 esac 11226 fi 11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11228 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11230 CFLAGS="$xorg_testset_save_CFLAGS" 11231 fi 11232 11233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11236 fi 11237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11239 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11240 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11241 then : 11242 printf %s "(cached) " >&6 11243 else case e in #( 11244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245 /* end confdefs.h. */ 11246 int i; 11247 _ACEOF 11248 if ac_fn_c_try_compile "$LINENO" 11249 then : 11250 xorg_cv_cc_flag_unused_command_line_argument=yes 11251 else case e in #( 11252 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11253 esac 11254 fi 11255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11256 esac 11257 fi 11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11261 CFLAGS="$xorg_testset_save_CFLAGS" 11262 fi 11263 11264 found="no" 11265 11266 if test $found = "no" ; then 11267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11269 fi 11270 11271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11273 fi 11274 11275 CFLAGS="$CFLAGS -Werror=attributes" 11276 11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11278 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11279 cacheid=xorg_cv_cc_flag__Werror_attributes 11280 if eval test \${$cacheid+y} 11281 then : 11282 printf %s "(cached) " >&6 11283 else case e in #( 11284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11285 /* end confdefs.h. */ 11286 int i; 11287 int 11288 main (void) 11289 { 11290 11291 ; 11292 return 0; 11293 } 11294 _ACEOF 11295 if ac_fn_c_try_link "$LINENO" 11296 then : 11297 eval $cacheid=yes 11298 else case e in #( 11299 e) eval $cacheid=no ;; 11300 esac 11301 fi 11302 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11303 conftest$ac_exeext conftest.$ac_ext ;; 11304 esac 11305 fi 11306 11307 11308 CFLAGS="$xorg_testset_save_CFLAGS" 11309 11310 eval supported=\$$cacheid 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11312 printf "%s\n" "$supported" >&6; } 11313 if test "$supported" = "yes" ; then 11314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11315 found="yes" 11316 fi 11317 fi 11318 11319 11320 11321 if test "x$STRICT_COMPILE" = "xyes"; then 11322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11324 fi 11325 11326 11327 11328 11329 11330 11331 11332 11333 cat >>confdefs.h <<_ACEOF 11334 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11335 _ACEOF 11336 11337 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11338 if test "x$PVM" = "x"; then 11339 PVM="0" 11340 fi 11341 11342 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11343 11344 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11345 if test "x$PVP" = "x"; then 11346 PVP="0" 11347 fi 11348 11349 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11350 11351 11352 11353 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11354 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11355 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11356 touch \$(top_srcdir)/ChangeLog; \ 11357 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11358 11359 11360 11361 11362 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11363 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11364 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11365 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11366 touch \$(top_srcdir)/INSTALL; \ 11367 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11368 11369 11370 11371 11372 11373 11374 case $host_os in 11375 solaris*) 11376 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11377 # check for a man page file found in later versions that use 11378 # traditional section numbers instead 11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11380 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11381 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11382 then : 11383 printf %s "(cached) " >&6 11384 else case e in #( 11385 e) test "$cross_compiling" = yes && 11386 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11387 if test -r "/usr/share/man/man7/attributes.7"; then 11388 ac_cv_file__usr_share_man_man7_attributes_7=yes 11389 else 11390 ac_cv_file__usr_share_man_man7_attributes_7=no 11391 fi ;; 11392 esac 11393 fi 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11395 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11396 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11397 then : 11398 SYSV_MAN_SECTIONS=false 11399 else case e in #( 11400 e) SYSV_MAN_SECTIONS=true ;; 11401 esac 11402 fi 11403 11404 ;; 11405 *) SYSV_MAN_SECTIONS=false ;; 11406 esac 11407 11408 if test x$APP_MAN_SUFFIX = x ; then 11409 APP_MAN_SUFFIX=1 11410 fi 11411 if test x$APP_MAN_DIR = x ; then 11412 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11413 fi 11414 11415 if test x$LIB_MAN_SUFFIX = x ; then 11416 LIB_MAN_SUFFIX=3 11417 fi 11418 if test x$LIB_MAN_DIR = x ; then 11419 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11420 fi 11421 11422 if test x$FILE_MAN_SUFFIX = x ; then 11423 case $SYSV_MAN_SECTIONS in 11424 true) FILE_MAN_SUFFIX=4 ;; 11425 *) FILE_MAN_SUFFIX=5 ;; 11426 esac 11427 fi 11428 if test x$FILE_MAN_DIR = x ; then 11429 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11430 fi 11431 11432 if test x$MISC_MAN_SUFFIX = x ; then 11433 case $SYSV_MAN_SECTIONS in 11434 true) MISC_MAN_SUFFIX=5 ;; 11435 *) MISC_MAN_SUFFIX=7 ;; 11436 esac 11437 fi 11438 if test x$MISC_MAN_DIR = x ; then 11439 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11440 fi 11441 11442 if test x$DRIVER_MAN_SUFFIX = x ; then 11443 case $SYSV_MAN_SECTIONS in 11444 true) DRIVER_MAN_SUFFIX=7 ;; 11445 *) DRIVER_MAN_SUFFIX=4 ;; 11446 esac 11447 fi 11448 if test x$DRIVER_MAN_DIR = x ; then 11449 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11450 fi 11451 11452 if test x$ADMIN_MAN_SUFFIX = x ; then 11453 case $SYSV_MAN_SECTIONS in 11454 true) ADMIN_MAN_SUFFIX=1m ;; 11455 *) ADMIN_MAN_SUFFIX=8 ;; 11456 esac 11457 fi 11458 if test x$ADMIN_MAN_DIR = x ; then 11459 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11460 fi 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 XORG_MAN_PAGE="X Version 11" 11477 11478 MAN_SUBSTS="\ 11479 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11480 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11481 -e 's|__xservername__|Xorg|g' \ 11482 -e 's|__xconfigfile__|xorg.conf|g' \ 11483 -e 's|__projectroot__|\$(prefix)|g' \ 11484 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11485 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11486 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11487 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11488 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11489 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11490 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11491 11492 11493 11494 11495 AM_DEFAULT_VERBOSITY=0 11496 11497 11498 11499 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 11500 if test "x$ac_cv_func_nanosleep" = xyes 11501 then : 11502 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 11503 11504 fi 11505 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 11506 if test "x$ac_cv_func_poll" = xyes 11507 then : 11508 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 11509 11510 fi 11511 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 11512 if test "x$ac_cv_func_select" = xyes 11513 then : 11514 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 11515 11516 fi 11517 11518 11519 # Math libraries & functions 11520 # - some compilers use builtin inlines for floor 11521 # - lrint() is a C99 addition not found on some older systems 11522 # - must do the libm check first so that the lrint check will have it in $LIBS 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11524 printf %s "checking for library containing floor... " >&6; } 11525 if test ${ac_cv_search_floor+y} 11526 then : 11527 printf %s "(cached) " >&6 11528 else case e in #( 11529 e) ac_func_search_save_LIBS=$LIBS 11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531 /* end confdefs.h. */ 11532 11533 /* Override any GCC internal prototype to avoid an error. 11534 Use char because int might match the return type of a GCC 11535 builtin and then its argument prototype would still apply. 11536 The 'extern "C"' is for builds by C++ compilers; 11537 although this is not generally supported in C code supporting it here 11538 has little cost and some practical benefit (sr 110532). */ 11539 #ifdef __cplusplus 11540 extern "C" 11541 #endif 11542 char floor (void); 11543 int 11544 main (void) 11545 { 11546 return floor (); 11547 ; 11548 return 0; 11549 } 11550 _ACEOF 11551 for ac_lib in '' m 11552 do 11553 if test -z "$ac_lib"; then 11554 ac_res="none required" 11555 else 11556 ac_res=-l$ac_lib 11557 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11558 fi 11559 if ac_fn_c_try_link "$LINENO" 11560 then : 11561 ac_cv_search_floor=$ac_res 11562 fi 11563 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11564 conftest$ac_exeext 11565 if test ${ac_cv_search_floor+y} 11566 then : 11567 break 11568 fi 11569 done 11570 if test ${ac_cv_search_floor+y} 11571 then : 11572 11573 else case e in #( 11574 e) ac_cv_search_floor=no ;; 11575 esac 11576 fi 11577 rm conftest.$ac_ext 11578 LIBS=$ac_func_search_save_LIBS ;; 11579 esac 11580 fi 11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11582 printf "%s\n" "$ac_cv_search_floor" >&6; } 11583 ac_res=$ac_cv_search_floor 11584 if test "$ac_res" != no 11585 then : 11586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11587 11588 fi 11589 11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11591 printf %s "checking for library containing lrint... " >&6; } 11592 if test ${ac_cv_search_lrint+y} 11593 then : 11594 printf %s "(cached) " >&6 11595 else case e in #( 11596 e) ac_func_search_save_LIBS=$LIBS 11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11598 /* end confdefs.h. */ 11599 11600 /* Override any GCC internal prototype to avoid an error. 11601 Use char because int might match the return type of a GCC 11602 builtin and then its argument prototype would still apply. 11603 The 'extern "C"' is for builds by C++ compilers; 11604 although this is not generally supported in C code supporting it here 11605 has little cost and some practical benefit (sr 110532). */ 11606 #ifdef __cplusplus 11607 extern "C" 11608 #endif 11609 char lrint (void); 11610 int 11611 main (void) 11612 { 11613 return lrint (); 11614 ; 11615 return 0; 11616 } 11617 _ACEOF 11618 for ac_lib in '' m 11619 do 11620 if test -z "$ac_lib"; then 11621 ac_res="none required" 11622 else 11623 ac_res=-l$ac_lib 11624 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11625 fi 11626 if ac_fn_c_try_link "$LINENO" 11627 then : 11628 ac_cv_search_lrint=$ac_res 11629 fi 11630 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11631 conftest$ac_exeext 11632 if test ${ac_cv_search_lrint+y} 11633 then : 11634 break 11635 fi 11636 done 11637 if test ${ac_cv_search_lrint+y} 11638 then : 11639 11640 else case e in #( 11641 e) ac_cv_search_lrint=no ;; 11642 esac 11643 fi 11644 rm conftest.$ac_ext 11645 LIBS=$ac_func_search_save_LIBS ;; 11646 esac 11647 fi 11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11649 printf "%s\n" "$ac_cv_search_lrint" >&6; } 11650 ac_res=$ac_cv_search_lrint 11651 if test "$ac_res" != no 11652 then : 11653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11654 11655 fi 11656 11657 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11658 if test "x$ac_cv_func_lrint" = xyes 11659 then : 11660 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 11661 11662 fi 11663 11664 11665 # Checks for pkg-config packages 11666 11667 pkg_failed=no 11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5 11669 printf %s "checking for XMAG... " >&6; } 11670 11671 if test -n "$XMAG_CFLAGS"; then 11672 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS" 11673 elif test -n "$PKG_CONFIG"; then 11674 if test -n "$PKG_CONFIG" && \ 11675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 11676 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 11677 ac_status=$? 11678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11679 test $ac_status = 0; }; then 11680 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11681 test "x$?" != "x0" && pkg_failed=yes 11682 else 11683 pkg_failed=yes 11684 fi 11685 else 11686 pkg_failed=untried 11687 fi 11688 if test -n "$XMAG_LIBS"; then 11689 pkg_cv_XMAG_LIBS="$XMAG_LIBS" 11690 elif test -n "$PKG_CONFIG"; then 11691 if test -n "$PKG_CONFIG" && \ 11692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 11693 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 11694 ac_status=$? 11695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11696 test $ac_status = 0; }; then 11697 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11698 test "x$?" != "x0" && pkg_failed=yes 11699 else 11700 pkg_failed=yes 11701 fi 11702 else 11703 pkg_failed=untried 11704 fi 11705 11706 11707 11708 if test $pkg_failed = yes; then 11709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11710 printf "%s\n" "no" >&6; } 11711 11712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11713 _pkg_short_errors_supported=yes 11714 else 11715 _pkg_short_errors_supported=no 11716 fi 11717 if test $_pkg_short_errors_supported = yes; then 11718 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 11719 else 11720 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 11721 fi 11722 # Put the nasty error message in config.log where it belongs 11723 echo "$XMAG_PKG_ERRORS" >&5 11724 11725 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.22) were not met: 11726 11727 $XMAG_PKG_ERRORS 11728 11729 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11730 installed software in a non-standard prefix. 11731 11732 Alternatively, you may set the environment variables XMAG_CFLAGS 11733 and XMAG_LIBS to avoid the need to call pkg-config. 11734 See the pkg-config man page for more details." "$LINENO" 5 11735 elif test $pkg_failed = untried; then 11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11737 printf "%s\n" "no" >&6; } 11738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11739 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11740 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11741 is in your PATH or set the PKG_CONFIG environment variable to the full 11742 path to pkg-config. 11743 11744 Alternatively, you may set the environment variables XMAG_CFLAGS 11745 and XMAG_LIBS to avoid the need to call pkg-config. 11746 See the pkg-config man page for more details. 11747 11748 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11749 See 'config.log' for more details" "$LINENO" 5; } 11750 else 11751 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS 11752 XMAG_LIBS=$pkg_cv_XMAG_LIBS 11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11754 printf "%s\n" "yes" >&6; } 11755 11756 fi 11757 11758 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11759 11760 # Check whether --with-appdefaultdir was given. 11761 if test ${with_appdefaultdir+y} 11762 then : 11763 withval=$with_appdefaultdir; appdefaultdir="$withval" 11764 else case e in #( 11765 e) appdefaultdir="${xt_appdefaultdir}" ;; 11766 esac 11767 fi 11768 11769 11770 11771 11772 ac_config_files="$ac_config_files Makefile man/Makefile" 11773 11774 cat >confcache <<\_ACEOF 11775 # This file is a shell script that caches the results of configure 11776 # tests run on this system so they can be shared between configure 11777 # scripts and configure runs, see configure's option --config-cache. 11778 # It is not useful on other systems. If it contains results you don't 11779 # want to keep, you may remove or edit it. 11780 # 11781 # config.status only pays attention to the cache file if you give it 11782 # the --recheck option to rerun configure. 11783 # 11784 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11785 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11786 # following values. 11787 11788 _ACEOF 11789 11790 # The following way of writing the cache mishandles newlines in values, 11791 # but we know of no workaround that is simple, portable, and efficient. 11792 # So, we kill variables containing newlines. 11793 # Ultrix sh set writes to stderr and can't be redirected directly, 11794 # and sets the high bit in the cache file unless we assign to the vars. 11795 ( 11796 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11797 eval ac_val=\$$ac_var 11798 case $ac_val in #( 11799 *${as_nl}*) 11800 case $ac_var in #( 11801 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11802 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11803 esac 11804 case $ac_var in #( 11805 _ | IFS | as_nl) ;; #( 11806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11807 *) { eval $ac_var=; unset $ac_var;} ;; 11808 esac ;; 11809 esac 11810 done 11811 11812 (set) 2>&1 | 11813 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11814 *${as_nl}ac_space=\ *) 11815 # 'set' does not quote correctly, so add quotes: double-quote 11816 # substitution turns \\\\ into \\, and sed turns \\ into \. 11817 sed -n \ 11818 "s/'/'\\\\''/g; 11819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11820 ;; #( 11821 *) 11822 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11824 ;; 11825 esac | 11826 sort 11827 ) | 11828 sed ' 11829 /^ac_cv_env_/b end 11830 t clear 11831 :clear 11832 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11833 t end 11834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11835 :end' >>confcache 11836 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11837 if test -w "$cache_file"; then 11838 if test "x$cache_file" != "x/dev/null"; then 11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11840 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11841 if test ! -f "$cache_file" || test -h "$cache_file"; then 11842 cat confcache >"$cache_file" 11843 else 11844 case $cache_file in #( 11845 */* | ?:*) 11846 mv -f confcache "$cache_file"$$ && 11847 mv -f "$cache_file"$$ "$cache_file" ;; #( 11848 *) 11849 mv -f confcache "$cache_file" ;; 11850 esac 11851 fi 11852 fi 11853 else 11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11855 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11856 fi 11857 fi 11858 rm -f confcache 11859 11860 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11861 # Let make expand exec_prefix. 11862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11863 11864 DEFS=-DHAVE_CONFIG_H 11865 11866 ac_libobjs= 11867 ac_ltlibobjs= 11868 U= 11869 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11870 # 1. Remove the extension, and $U if already installed. 11871 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11872 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11873 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11874 # will be set to the directory where LIBOBJS objects are built. 11875 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11876 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11877 done 11878 LIBOBJS=$ac_libobjs 11879 11880 LTLIBOBJS=$ac_ltlibobjs 11881 11882 11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11884 printf %s "checking that generated files are newer than configure... " >&6; } 11885 if test -n "$am_sleep_pid"; then 11886 # Hide warnings about reused PIDs. 11887 wait $am_sleep_pid 2>/dev/null 11888 fi 11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11890 printf "%s\n" "done" >&6; } 11891 case $enable_silent_rules in # ((( 11892 yes) AM_DEFAULT_VERBOSITY=0;; 11893 no) AM_DEFAULT_VERBOSITY=1;; 11894 esac 11895 if test $am_cv_make_support_nested_variables = yes; then 11896 AM_V='$(V)' 11897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11898 else 11899 AM_V=$AM_DEFAULT_VERBOSITY 11900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11901 fi 11902 11903 if test -n "$EXEEXT"; then 11904 am__EXEEXT_TRUE= 11905 am__EXEEXT_FALSE='#' 11906 else 11907 am__EXEEXT_TRUE='#' 11908 am__EXEEXT_FALSE= 11909 fi 11910 11911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11912 as_fn_error $? "conditional \"AMDEP\" was never defined. 11913 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11914 fi 11915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11916 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11917 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11918 fi 11919 11920 : "${CONFIG_STATUS=./config.status}" 11921 ac_write_fail=0 11922 ac_clean_files_save=$ac_clean_files 11923 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11925 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11926 as_write_fail=0 11927 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11928 #! $SHELL 11929 # Generated by $as_me. 11930 # Run this file to recreate the current configuration. 11931 # Compiler output produced by configure, useful for debugging 11932 # configure, is in config.log if it exists. 11933 11934 debug=false 11935 ac_cs_recheck=false 11936 ac_cs_silent=false 11937 11938 SHELL=\${CONFIG_SHELL-$SHELL} 11939 export SHELL 11940 _ASEOF 11941 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11942 ## -------------------- ## 11943 ## M4sh Initialization. ## 11944 ## -------------------- ## 11945 11946 # Be more Bourne compatible 11947 DUALCASE=1; export DUALCASE # for MKS sh 11948 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11949 then : 11950 emulate sh 11951 NULLCMD=: 11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11953 # is contrary to our usage. Disable this feature. 11954 alias -g '${1+"$@"}'='"$@"' 11955 setopt NO_GLOB_SUBST 11956 else case e in #( 11957 e) case `(set -o) 2>/dev/null` in #( 11958 *posix*) : 11959 set -o posix ;; #( 11960 *) : 11961 ;; 11962 esac ;; 11963 esac 11964 fi 11965 11966 11967 11968 # Reset variables that may have inherited troublesome values from 11969 # the environment. 11970 11971 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11972 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11973 # side effect of setting IFS to empty, thus disabling word splitting.) 11974 # Quoting is to prevent editors from complaining about space-tab. 11975 as_nl=' 11976 ' 11977 export as_nl 11978 IFS=" "" $as_nl" 11979 11980 PS1='$ ' 11981 PS2='> ' 11982 PS4='+ ' 11983 11984 # Ensure predictable behavior from utilities with locale-dependent output. 11985 LC_ALL=C 11986 export LC_ALL 11987 LANGUAGE=C 11988 export LANGUAGE 11989 11990 # We cannot yet rely on "unset" to work, but we need these variables 11991 # to be unset--not just set to an empty or harmless value--now, to 11992 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11993 # also avoids known problems related to "unset" and subshell syntax 11994 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11995 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11996 do eval test \${$as_var+y} \ 11997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11998 done 11999 12000 # Ensure that fds 0, 1, and 2 are open. 12001 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12002 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12003 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12004 12005 # The user is always right. 12006 if ${PATH_SEPARATOR+false} :; then 12007 PATH_SEPARATOR=: 12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12010 PATH_SEPARATOR=';' 12011 } 12012 fi 12013 12014 12015 # Find who we are. Look in the path if we contain no directory separator. 12016 as_myself= 12017 case $0 in #(( 12018 *[\\/]* ) as_myself=$0 ;; 12019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12020 for as_dir in $PATH 12021 do 12022 IFS=$as_save_IFS 12023 case $as_dir in #((( 12024 '') as_dir=./ ;; 12025 */) ;; 12026 *) as_dir=$as_dir/ ;; 12027 esac 12028 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12029 done 12030 IFS=$as_save_IFS 12031 12032 ;; 12033 esac 12034 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12035 # in which case we are not to be found in the path. 12036 if test "x$as_myself" = x; then 12037 as_myself=$0 12038 fi 12039 if test ! -f "$as_myself"; then 12040 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12041 exit 1 12042 fi 12043 12044 12045 12046 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12047 # ---------------------------------------- 12048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12050 # script with STATUS, using 1 if that was 0. 12051 as_fn_error () 12052 { 12053 as_status=$1; test $as_status -eq 0 && as_status=1 12054 if test "$4"; then 12055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12057 fi 12058 printf "%s\n" "$as_me: error: $2" >&2 12059 as_fn_exit $as_status 12060 } # as_fn_error 12061 12062 12063 # as_fn_set_status STATUS 12064 # ----------------------- 12065 # Set $? to STATUS, without forking. 12066 as_fn_set_status () 12067 { 12068 return $1 12069 } # as_fn_set_status 12070 12071 # as_fn_exit STATUS 12072 # ----------------- 12073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12074 as_fn_exit () 12075 { 12076 set +e 12077 as_fn_set_status $1 12078 exit $1 12079 } # as_fn_exit 12080 12081 # as_fn_unset VAR 12082 # --------------- 12083 # Portably unset VAR. 12084 as_fn_unset () 12085 { 12086 { eval $1=; unset $1;} 12087 } 12088 as_unset=as_fn_unset 12089 12090 # as_fn_append VAR VALUE 12091 # ---------------------- 12092 # Append the text in VALUE to the end of the definition contained in VAR. Take 12093 # advantage of any shell optimizations that allow amortized linear growth over 12094 # repeated appends, instead of the typical quadratic growth present in naive 12095 # implementations. 12096 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12097 then : 12098 eval 'as_fn_append () 12099 { 12100 eval $1+=\$2 12101 }' 12102 else case e in #( 12103 e) as_fn_append () 12104 { 12105 eval $1=\$$1\$2 12106 } ;; 12107 esac 12108 fi # as_fn_append 12109 12110 # as_fn_arith ARG... 12111 # ------------------ 12112 # Perform arithmetic evaluation on the ARGs, and store the result in the 12113 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12114 # must be portable across $(()) and expr. 12115 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12116 then : 12117 eval 'as_fn_arith () 12118 { 12119 as_val=$(( $* )) 12120 }' 12121 else case e in #( 12122 e) as_fn_arith () 12123 { 12124 as_val=`expr "$@" || test $? -eq 1` 12125 } ;; 12126 esac 12127 fi # as_fn_arith 12128 12129 12130 if expr a : '\(a\)' >/dev/null 2>&1 && 12131 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12132 as_expr=expr 12133 else 12134 as_expr=false 12135 fi 12136 12137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12138 as_basename=basename 12139 else 12140 as_basename=false 12141 fi 12142 12143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12144 as_dirname=dirname 12145 else 12146 as_dirname=false 12147 fi 12148 12149 as_me=`$as_basename -- "$0" || 12150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12151 X"$0" : 'X\(//\)$' \| \ 12152 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12153 printf "%s\n" X/"$0" | 12154 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\/\(\/\/\)$/{ 12159 s//\1/ 12160 q 12161 } 12162 /^X\/\(\/\).*/{ 12163 s//\1/ 12164 q 12165 } 12166 s/.*/./; q'` 12167 12168 # Avoid depending upon Character Ranges. 12169 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12172 as_cr_digits='0123456789' 12173 as_cr_alnum=$as_cr_Letters$as_cr_digits 12174 12175 12176 # Determine whether it's possible to make 'echo' print without a newline. 12177 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12178 # for compatibility with existing Makefiles. 12179 ECHO_C= ECHO_N= ECHO_T= 12180 case `echo -n x` in #((((( 12181 -n*) 12182 case `echo 'xy\c'` in 12183 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12184 xy) ECHO_C='\c';; 12185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12186 ECHO_T=' ';; 12187 esac;; 12188 *) 12189 ECHO_N='-n';; 12190 esac 12191 12192 # For backward compatibility with old third-party macros, we provide 12193 # the shell variables $as_echo and $as_echo_n. New code should use 12194 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12195 as_echo='printf %s\n' 12196 as_echo_n='printf %s' 12197 12198 rm -f conf$$ conf$$.exe conf$$.file 12199 if test -d conf$$.dir; then 12200 rm -f conf$$.dir/conf$$.file 12201 else 12202 rm -f conf$$.dir 12203 mkdir conf$$.dir 2>/dev/null 12204 fi 12205 if (echo >conf$$.file) 2>/dev/null; then 12206 if ln -s conf$$.file conf$$ 2>/dev/null; then 12207 as_ln_s='ln -s' 12208 # ... but there are two gotchas: 12209 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12210 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12211 # In both cases, we have to default to 'cp -pR'. 12212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12213 as_ln_s='cp -pR' 12214 elif ln conf$$.file conf$$ 2>/dev/null; then 12215 as_ln_s=ln 12216 else 12217 as_ln_s='cp -pR' 12218 fi 12219 else 12220 as_ln_s='cp -pR' 12221 fi 12222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12223 rmdir conf$$.dir 2>/dev/null 12224 12225 12226 # as_fn_mkdir_p 12227 # ------------- 12228 # Create "$as_dir" as a directory, including parents if necessary. 12229 as_fn_mkdir_p () 12230 { 12231 12232 case $as_dir in #( 12233 -*) as_dir=./$as_dir;; 12234 esac 12235 test -d "$as_dir" || eval $as_mkdir_p || { 12236 as_dirs= 12237 while :; do 12238 case $as_dir in #( 12239 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12240 *) as_qdir=$as_dir;; 12241 esac 12242 as_dirs="'$as_qdir' $as_dirs" 12243 as_dir=`$as_dirname -- "$as_dir" || 12244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12245 X"$as_dir" : 'X\(//\)[^/]' \| \ 12246 X"$as_dir" : 'X\(//\)$' \| \ 12247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12248 printf "%s\n" X"$as_dir" | 12249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12250 s//\1/ 12251 q 12252 } 12253 /^X\(\/\/\)[^/].*/{ 12254 s//\1/ 12255 q 12256 } 12257 /^X\(\/\/\)$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\(\/\).*/{ 12262 s//\1/ 12263 q 12264 } 12265 s/.*/./; q'` 12266 test -d "$as_dir" && break 12267 done 12268 test -z "$as_dirs" || eval "mkdir $as_dirs" 12269 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12270 12271 12272 } # as_fn_mkdir_p 12273 if mkdir -p . 2>/dev/null; then 12274 as_mkdir_p='mkdir -p "$as_dir"' 12275 else 12276 test -d ./-p && rmdir ./-p 12277 as_mkdir_p=false 12278 fi 12279 12280 12281 # as_fn_executable_p FILE 12282 # ----------------------- 12283 # Test if FILE is an executable regular file. 12284 as_fn_executable_p () 12285 { 12286 test -f "$1" && test -x "$1" 12287 } # as_fn_executable_p 12288 as_test_x='test -x' 12289 as_executable_p=as_fn_executable_p 12290 12291 # Sed expression to map a string onto a valid CPP name. 12292 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12293 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12294 12295 # Sed expression to map a string onto a valid variable name. 12296 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12297 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12298 12299 12300 exec 6>&1 12301 ## ----------------------------------- ## 12302 ## Main body of $CONFIG_STATUS script. ## 12303 ## ----------------------------------- ## 12304 _ASEOF 12305 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12306 12307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12308 # Save the log message, to keep $0 and so on meaningful, and to 12309 # report actual input values of CONFIG_FILES etc. instead of their 12310 # values after options handling. 12311 ac_log=" 12312 This file was extended by xmag $as_me 1.0.8, which was 12313 generated by GNU Autoconf 2.72. Invocation command line was 12314 12315 CONFIG_FILES = $CONFIG_FILES 12316 CONFIG_HEADERS = $CONFIG_HEADERS 12317 CONFIG_LINKS = $CONFIG_LINKS 12318 CONFIG_COMMANDS = $CONFIG_COMMANDS 12319 $ $0 $@ 12320 12321 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12322 " 12323 12324 _ACEOF 12325 12326 case $ac_config_files in *" 12327 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12328 esac 12329 12330 case $ac_config_headers in *" 12331 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12332 esac 12333 12334 12335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12336 # Files that config.status was made for. 12337 config_files="$ac_config_files" 12338 config_headers="$ac_config_headers" 12339 config_commands="$ac_config_commands" 12340 12341 _ACEOF 12342 12343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12344 ac_cs_usage="\ 12345 '$as_me' instantiates files and other configuration actions 12346 from templates according to the current configuration. Unless the files 12347 and actions are specified as TAGs, all are instantiated by default. 12348 12349 Usage: $0 [OPTION]... [TAG]... 12350 12351 -h, --help print this help, then exit 12352 -V, --version print version number and configuration settings, then exit 12353 --config print configuration, then exit 12354 -q, --quiet, --silent 12355 do not print progress messages 12356 -d, --debug don't remove temporary files 12357 --recheck update $as_me by reconfiguring in the same conditions 12358 --file=FILE[:TEMPLATE] 12359 instantiate the configuration file FILE 12360 --header=FILE[:TEMPLATE] 12361 instantiate the configuration header FILE 12362 12363 Configuration files: 12364 $config_files 12365 12366 Configuration headers: 12367 $config_headers 12368 12369 Configuration commands: 12370 $config_commands 12371 12372 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>." 12373 12374 _ACEOF 12375 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12376 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12378 ac_cs_config='$ac_cs_config_escaped' 12379 ac_cs_version="\\ 12380 xmag config.status 1.0.8 12381 configured by $0, generated by GNU Autoconf 2.72, 12382 with options \\"\$ac_cs_config\\" 12383 12384 Copyright (C) 2023 Free Software Foundation, Inc. 12385 This config.status script is free software; the Free Software Foundation 12386 gives unlimited permission to copy, distribute and modify it." 12387 12388 ac_pwd='$ac_pwd' 12389 srcdir='$srcdir' 12390 INSTALL='$INSTALL' 12391 MKDIR_P='$MKDIR_P' 12392 AWK='$AWK' 12393 test -n "\$AWK" || AWK=awk 12394 _ACEOF 12395 12396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12397 # The default lists apply if the user does not specify any file. 12398 ac_need_defaults=: 12399 while test $# != 0 12400 do 12401 case $1 in 12402 --*=?*) 12403 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12405 ac_shift=: 12406 ;; 12407 --*=) 12408 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12409 ac_optarg= 12410 ac_shift=: 12411 ;; 12412 *) 12413 ac_option=$1 12414 ac_optarg=$2 12415 ac_shift=shift 12416 ;; 12417 esac 12418 12419 case $ac_option in 12420 # Handling of the options. 12421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12422 ac_cs_recheck=: ;; 12423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12424 printf "%s\n" "$ac_cs_version"; exit ;; 12425 --config | --confi | --conf | --con | --co | --c ) 12426 printf "%s\n" "$ac_cs_config"; exit ;; 12427 --debug | --debu | --deb | --de | --d | -d ) 12428 debug=: ;; 12429 --file | --fil | --fi | --f ) 12430 $ac_shift 12431 case $ac_optarg in 12432 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12433 '') as_fn_error $? "missing file argument" ;; 12434 esac 12435 as_fn_append CONFIG_FILES " '$ac_optarg'" 12436 ac_need_defaults=false;; 12437 --header | --heade | --head | --hea ) 12438 $ac_shift 12439 case $ac_optarg in 12440 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12441 esac 12442 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12443 ac_need_defaults=false;; 12444 --he | --h) 12445 # Conflict between --help and --header 12446 as_fn_error $? "ambiguous option: '$1' 12447 Try '$0 --help' for more information.";; 12448 --help | --hel | -h ) 12449 printf "%s\n" "$ac_cs_usage"; exit ;; 12450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12451 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12452 ac_cs_silent=: ;; 12453 12454 # This is an error. 12455 -*) as_fn_error $? "unrecognized option: '$1' 12456 Try '$0 --help' for more information." ;; 12457 12458 *) as_fn_append ac_config_targets " $1" 12459 ac_need_defaults=false ;; 12460 12461 esac 12462 shift 12463 done 12464 12465 ac_configure_extra_args= 12466 12467 if $ac_cs_silent; then 12468 exec 6>/dev/null 12469 ac_configure_extra_args="$ac_configure_extra_args --silent" 12470 fi 12471 12472 _ACEOF 12473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12474 if \$ac_cs_recheck; then 12475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12476 shift 12477 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12478 CONFIG_SHELL='$SHELL' 12479 export CONFIG_SHELL 12480 exec "\$@" 12481 fi 12482 12483 _ACEOF 12484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12485 exec 5>>config.log 12486 { 12487 echo 12488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12489 ## Running $as_me. ## 12490 _ASBOX 12491 printf "%s\n" "$ac_log" 12492 } >&5 12493 12494 _ACEOF 12495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12496 # 12497 # INIT-COMMANDS 12498 # 12499 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12500 12501 _ACEOF 12502 12503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12504 12505 # Handling of arguments. 12506 for ac_config_target in $ac_config_targets 12507 do 12508 case $ac_config_target in 12509 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12512 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12513 12514 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12515 esac 12516 done 12517 12518 12519 # If the user did not use the arguments to specify the items to instantiate, 12520 # then the envvar interface is used. Set only those that are not. 12521 # We use the long form for the default assignment because of an extremely 12522 # bizarre bug on SunOS 4.1.3. 12523 if $ac_need_defaults; then 12524 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12525 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12526 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12527 fi 12528 12529 # Have a temporary directory for convenience. Make it in the build tree 12530 # simply because there is no reason against having it here, and in addition, 12531 # creating and moving files from /tmp can sometimes cause problems. 12532 # Hook for its removal unless debugging. 12533 # Note that there is a small window in which the directory will not be cleaned: 12534 # after its creation but before its name has been assigned to '$tmp'. 12535 $debug || 12536 { 12537 tmp= ac_tmp= 12538 trap 'exit_status=$? 12539 : "${ac_tmp:=$tmp}" 12540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12541 ' 0 12542 trap 'as_fn_exit 1' 1 2 13 15 12543 } 12544 # Create a (secure) tmp directory for tmp files. 12545 12546 { 12547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12548 test -d "$tmp" 12549 } || 12550 { 12551 tmp=./conf$$-$RANDOM 12552 (umask 077 && mkdir "$tmp") 12553 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12554 ac_tmp=$tmp 12555 12556 # Set up the scripts for CONFIG_FILES section. 12557 # No need to generate them if there are no CONFIG_FILES. 12558 # This happens for instance with './config.status config.h'. 12559 if test -n "$CONFIG_FILES"; then 12560 12561 12562 ac_cr=`echo X | tr X '\015'` 12563 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12564 # But we know of no other shell where ac_cr would be empty at this 12565 # point, so we can use a bashism as a fallback. 12566 if test "x$ac_cr" = x; then 12567 eval ac_cr=\$\'\\r\' 12568 fi 12569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12571 ac_cs_awk_cr='\\r' 12572 else 12573 ac_cs_awk_cr=$ac_cr 12574 fi 12575 12576 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12577 _ACEOF 12578 12579 12580 { 12581 echo "cat >conf$$subs.awk <<_ACEOF" && 12582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12583 echo "_ACEOF" 12584 } >conf$$subs.sh || 12585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12586 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12587 ac_delim='%!_!# ' 12588 for ac_last_try in false false false false false :; do 12589 . ./conf$$subs.sh || 12590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12591 12592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12593 if test $ac_delim_n = $ac_delim_num; then 12594 break 12595 elif $ac_last_try; then 12596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12597 else 12598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12599 fi 12600 done 12601 rm -f conf$$subs.sh 12602 12603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12604 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12605 _ACEOF 12606 sed -n ' 12607 h 12608 s/^/S["/; s/!.*/"]=/ 12609 p 12610 g 12611 s/^[^!]*!// 12612 :repl 12613 t repl 12614 s/'"$ac_delim"'$// 12615 t delim 12616 :nl 12617 h 12618 s/\(.\{148\}\)..*/\1/ 12619 t more1 12620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12621 p 12622 n 12623 b repl 12624 :more1 12625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12626 p 12627 g 12628 s/.\{148\}// 12629 t nl 12630 :delim 12631 h 12632 s/\(.\{148\}\)..*/\1/ 12633 t more2 12634 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12635 p 12636 b 12637 :more2 12638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12639 p 12640 g 12641 s/.\{148\}// 12642 t delim 12643 ' <conf$$subs.awk | sed ' 12644 /^[^""]/{ 12645 N 12646 s/\n// 12647 } 12648 ' >>$CONFIG_STATUS || ac_write_fail=1 12649 rm -f conf$$subs.awk 12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12651 _ACAWK 12652 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12653 for (key in S) S_is_set[key] = 1 12654 FS = "" 12655 12656 } 12657 { 12658 line = $ 0 12659 nfields = split(line, field, "@") 12660 substed = 0 12661 len = length(field[1]) 12662 for (i = 2; i < nfields; i++) { 12663 key = field[i] 12664 keylen = length(key) 12665 if (S_is_set[key]) { 12666 value = S[key] 12667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12668 len += length(value) + length(field[++i]) 12669 substed = 1 12670 } else 12671 len += 1 + keylen 12672 } 12673 12674 print line 12675 } 12676 12677 _ACAWK 12678 _ACEOF 12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12682 else 12683 cat 12684 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12686 _ACEOF 12687 12688 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12689 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12690 # trailing colons and then remove the whole line if VPATH becomes empty 12691 # (actually we leave an empty line to preserve line numbers). 12692 if test "x$srcdir" = x.; then 12693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12694 h 12695 s/// 12696 s/^/:/ 12697 s/[ ]*$/:/ 12698 s/:\$(srcdir):/:/g 12699 s/:\${srcdir}:/:/g 12700 s/:@srcdir@:/:/g 12701 s/^:*// 12702 s/:*$// 12703 x 12704 s/\(=[ ]*\).*/\1/ 12705 G 12706 s/\n// 12707 s/^[^=]*=[ ]*$// 12708 }' 12709 fi 12710 12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12712 fi # test -n "$CONFIG_FILES" 12713 12714 # Set up the scripts for CONFIG_HEADERS section. 12715 # No need to generate them if there are no CONFIG_HEADERS. 12716 # This happens for instance with './config.status Makefile'. 12717 if test -n "$CONFIG_HEADERS"; then 12718 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12719 BEGIN { 12720 _ACEOF 12721 12722 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12723 # here-document in config.status, that substitutes the proper values into 12724 # config.h.in to produce config.h. 12725 12726 # Create a delimiter string that does not exist in confdefs.h, to ease 12727 # handling of long lines. 12728 ac_delim='%!_!# ' 12729 for ac_last_try in false false :; do 12730 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12731 if test -z "$ac_tt"; then 12732 break 12733 elif $ac_last_try; then 12734 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12735 else 12736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12737 fi 12738 done 12739 12740 # For the awk script, D is an array of macro values keyed by name, 12741 # likewise P contains macro parameters if any. Preserve backslash 12742 # newline sequences. 12743 12744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12745 sed -n ' 12746 s/.\{148\}/&'"$ac_delim"'/g 12747 t rset 12748 :rset 12749 s/^[ ]*#[ ]*define[ ][ ]*/ / 12750 t def 12751 d 12752 :def 12753 s/\\$// 12754 t bsnl 12755 s/["\\]/\\&/g 12756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12757 D["\1"]=" \3"/p 12758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12759 d 12760 :bsnl 12761 s/["\\]/\\&/g 12762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12763 D["\1"]=" \3\\\\\\n"\\/p 12764 t cont 12765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12766 t cont 12767 d 12768 :cont 12769 n 12770 s/.\{148\}/&'"$ac_delim"'/g 12771 t clear 12772 :clear 12773 s/\\$// 12774 t bsnlc 12775 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12776 d 12777 :bsnlc 12778 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12779 b cont 12780 ' <confdefs.h | sed ' 12781 s/'"$ac_delim"'/"\\\ 12782 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12783 12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12785 for (key in D) D_is_set[key] = 1 12786 FS = "" 12787 } 12788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12789 line = \$ 0 12790 split(line, arg, " ") 12791 if (arg[1] == "#") { 12792 defundef = arg[2] 12793 mac1 = arg[3] 12794 } else { 12795 defundef = substr(arg[1], 2) 12796 mac1 = arg[2] 12797 } 12798 split(mac1, mac2, "(") #) 12799 macro = mac2[1] 12800 prefix = substr(line, 1, index(line, defundef) - 1) 12801 if (D_is_set[macro]) { 12802 # Preserve the white space surrounding the "#". 12803 print prefix "define", macro P[macro] D[macro] 12804 next 12805 } else { 12806 # Replace #undef with comments. This is necessary, for example, 12807 # in the case of _POSIX_SOURCE, which is predefined and required 12808 # on some systems where configure will not decide to define it. 12809 if (defundef == "undef") { 12810 print "/*", prefix defundef, macro, "*/" 12811 next 12812 } 12813 } 12814 } 12815 { print } 12816 _ACAWK 12817 _ACEOF 12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12819 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12820 fi # test -n "$CONFIG_HEADERS" 12821 12822 12823 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12824 shift 12825 for ac_tag 12826 do 12827 case $ac_tag in 12828 :[FHLC]) ac_mode=$ac_tag; continue;; 12829 esac 12830 case $ac_mode$ac_tag in 12831 :[FHL]*:*);; 12832 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12833 :[FH]-) ac_tag=-:-;; 12834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12835 esac 12836 ac_save_IFS=$IFS 12837 IFS=: 12838 set x $ac_tag 12839 IFS=$ac_save_IFS 12840 shift 12841 ac_file=$1 12842 shift 12843 12844 case $ac_mode in 12845 :L) ac_source=$1;; 12846 :[FH]) 12847 ac_file_inputs= 12848 for ac_f 12849 do 12850 case $ac_f in 12851 -) ac_f="$ac_tmp/stdin";; 12852 *) # Look for the file first in the build tree, then in the source tree 12853 # (if the path is not absolute). The absolute path cannot be DOS-style, 12854 # because $ac_f cannot contain ':'. 12855 test -f "$ac_f" || 12856 case $ac_f in 12857 [\\/$]*) false;; 12858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12859 esac || 12860 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12861 esac 12862 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12863 as_fn_append ac_file_inputs " '$ac_f'" 12864 done 12865 12866 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12867 # use $as_me), people would be surprised to read: 12868 # /* config.h. Generated by config.status. */ 12869 configure_input='Generated from '` 12870 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12871 `' by configure.' 12872 if test x"$ac_file" != x-; then 12873 configure_input="$ac_file. $configure_input" 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12875 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12876 fi 12877 # Neutralize special characters interpreted by sed in replacement strings. 12878 case $configure_input in #( 12879 *\&* | *\|* | *\\* ) 12880 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12881 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12882 *) ac_sed_conf_input=$configure_input;; 12883 esac 12884 12885 case $ac_tag in 12886 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12888 esac 12889 ;; 12890 esac 12891 12892 ac_dir=`$as_dirname -- "$ac_file" || 12893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12894 X"$ac_file" : 'X\(//\)[^/]' \| \ 12895 X"$ac_file" : 'X\(//\)$' \| \ 12896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12897 printf "%s\n" X"$ac_file" | 12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12899 s//\1/ 12900 q 12901 } 12902 /^X\(\/\/\)[^/].*/{ 12903 s//\1/ 12904 q 12905 } 12906 /^X\(\/\/\)$/{ 12907 s//\1/ 12908 q 12909 } 12910 /^X\(\/\).*/{ 12911 s//\1/ 12912 q 12913 } 12914 s/.*/./; q'` 12915 as_dir="$ac_dir"; as_fn_mkdir_p 12916 ac_builddir=. 12917 12918 case "$ac_dir" in 12919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12920 *) 12921 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12922 # A ".." for each directory in $ac_dir_suffix. 12923 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12924 case $ac_top_builddir_sub in 12925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12927 esac ;; 12928 esac 12929 ac_abs_top_builddir=$ac_pwd 12930 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12931 # for backward compatibility: 12932 ac_top_builddir=$ac_top_build_prefix 12933 12934 case $srcdir in 12935 .) # We are building in place. 12936 ac_srcdir=. 12937 ac_top_srcdir=$ac_top_builddir_sub 12938 ac_abs_top_srcdir=$ac_pwd ;; 12939 [\\/]* | ?:[\\/]* ) # Absolute name. 12940 ac_srcdir=$srcdir$ac_dir_suffix; 12941 ac_top_srcdir=$srcdir 12942 ac_abs_top_srcdir=$srcdir ;; 12943 *) # Relative name. 12944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12945 ac_top_srcdir=$ac_top_build_prefix$srcdir 12946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12947 esac 12948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12949 12950 12951 case $ac_mode in 12952 :F) 12953 # 12954 # CONFIG_FILE 12955 # 12956 12957 case $INSTALL in 12958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12960 esac 12961 ac_MKDIR_P=$MKDIR_P 12962 case $MKDIR_P in 12963 [\\/$]* | ?:[\\/]* ) ;; 12964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12965 esac 12966 _ACEOF 12967 12968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12969 # If the template does not know about datarootdir, expand it. 12970 # FIXME: This hack should be removed a few years after 2.60. 12971 ac_datarootdir_hack=; ac_datarootdir_seen= 12972 ac_sed_dataroot=' 12973 /datarootdir/ { 12974 p 12975 q 12976 } 12977 /@datadir@/p 12978 /@docdir@/p 12979 /@infodir@/p 12980 /@localedir@/p 12981 /@mandir@/p' 12982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12983 *datarootdir*) ac_datarootdir_seen=yes;; 12984 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12986 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12987 _ACEOF 12988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12989 ac_datarootdir_hack=' 12990 s&@datadir@&$datadir&g 12991 s&@docdir@&$docdir&g 12992 s&@infodir@&$infodir&g 12993 s&@localedir@&$localedir&g 12994 s&@mandir@&$mandir&g 12995 s&\\\${datarootdir}&$datarootdir&g' ;; 12996 esac 12997 _ACEOF 12998 12999 # Neutralize VPATH when '$srcdir' = '.'. 13000 # Shell code in configure.ac might set extrasub. 13001 # FIXME: do we really want to maintain this feature? 13002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13003 ac_sed_extra="$ac_vpsub 13004 $extrasub 13005 _ACEOF 13006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13007 :t 13008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13009 s|@configure_input@|$ac_sed_conf_input|;t t 13010 s&@top_builddir@&$ac_top_builddir_sub&;t t 13011 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13012 s&@srcdir@&$ac_srcdir&;t t 13013 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13014 s&@top_srcdir@&$ac_top_srcdir&;t t 13015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13016 s&@builddir@&$ac_builddir&;t t 13017 s&@abs_builddir@&$ac_abs_builddir&;t t 13018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13019 s&@INSTALL@&$ac_INSTALL&;t t 13020 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13021 $ac_datarootdir_hack 13022 " 13023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13024 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13025 13026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13027 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13029 "$ac_tmp/out"`; test -z "$ac_out"; } && 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13031 which seems to be undefined. Please make sure it is defined" >&5 13032 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13033 which seems to be undefined. Please make sure it is defined" >&2;} 13034 13035 rm -f "$ac_tmp/stdin" 13036 case $ac_file in 13037 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13038 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13039 esac \ 13040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13041 ;; 13042 :H) 13043 # 13044 # CONFIG_HEADER 13045 # 13046 if test x"$ac_file" != x-; then 13047 { 13048 printf "%s\n" "/* $configure_input */" >&1 \ 13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13050 } >"$ac_tmp/config.h" \ 13051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13052 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13054 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13055 else 13056 rm -f "$ac_file" 13057 mv "$ac_tmp/config.h" "$ac_file" \ 13058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13059 fi 13060 else 13061 printf "%s\n" "/* $configure_input */" >&1 \ 13062 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13063 || as_fn_error $? "could not create -" "$LINENO" 5 13064 fi 13065 # Compute "$ac_file"'s index in $config_headers. 13066 _am_arg="$ac_file" 13067 _am_stamp_count=1 13068 for _am_header in $config_headers :; do 13069 case $_am_header in 13070 $_am_arg | $_am_arg:* ) 13071 break ;; 13072 * ) 13073 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13074 esac 13075 done 13076 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13077 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13078 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13079 X"$_am_arg" : 'X\(//\)$' \| \ 13080 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13081 printf "%s\n" X"$_am_arg" | 13082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13083 s//\1/ 13084 q 13085 } 13086 /^X\(\/\/\)[^/].*/{ 13087 s//\1/ 13088 q 13089 } 13090 /^X\(\/\/\)$/{ 13091 s//\1/ 13092 q 13093 } 13094 /^X\(\/\).*/{ 13095 s//\1/ 13096 q 13097 } 13098 s/.*/./; q'`/stamp-h$_am_stamp_count 13099 ;; 13100 13101 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13102 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13103 ;; 13104 esac 13105 13106 13107 case $ac_file$ac_mode in 13108 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13109 # Older Autoconf quotes --file arguments for eval, but not when files 13110 # are listed without --file. Let's play safe and only enable the eval 13111 # if we detect the quoting. 13112 # TODO: see whether this extra hack can be removed once we start 13113 # requiring Autoconf 2.70 or later. 13114 case $CONFIG_FILES in #( 13115 *\'*) : 13116 eval set x "$CONFIG_FILES" ;; #( 13117 *) : 13118 set x $CONFIG_FILES ;; #( 13119 *) : 13120 ;; 13121 esac 13122 shift 13123 # Used to flag and report bootstrapping failures. 13124 am_rc=0 13125 for am_mf 13126 do 13127 # Strip MF so we end up with the name of the file. 13128 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13129 # Check whether this is an Automake generated Makefile which includes 13130 # dependency-tracking related rules and includes. 13131 # Grep'ing the whole file directly is not great: AIX grep has a line 13132 # limit of 2048, but all sed's we know have understand at least 4000. 13133 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13134 || continue 13135 am_dirpart=`$as_dirname -- "$am_mf" || 13136 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13137 X"$am_mf" : 'X\(//\)[^/]' \| \ 13138 X"$am_mf" : 'X\(//\)$' \| \ 13139 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13140 printf "%s\n" X"$am_mf" | 13141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13142 s//\1/ 13143 q 13144 } 13145 /^X\(\/\/\)[^/].*/{ 13146 s//\1/ 13147 q 13148 } 13149 /^X\(\/\/\)$/{ 13150 s//\1/ 13151 q 13152 } 13153 /^X\(\/\).*/{ 13154 s//\1/ 13155 q 13156 } 13157 s/.*/./; q'` 13158 am_filepart=`$as_basename -- "$am_mf" || 13159 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13160 X"$am_mf" : 'X\(//\)$' \| \ 13161 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13162 printf "%s\n" X/"$am_mf" | 13163 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13164 s//\1/ 13165 q 13166 } 13167 /^X\/\(\/\/\)$/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\/\(\/\).*/{ 13172 s//\1/ 13173 q 13174 } 13175 s/.*/./; q'` 13176 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13177 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13178 | $MAKE -f - am--depfiles" >&5 13179 (cd "$am_dirpart" \ 13180 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13181 | $MAKE -f - am--depfiles) >&5 2>&5 13182 ac_status=$? 13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184 (exit $ac_status); } || am_rc=$? 13185 done 13186 if test $am_rc -ne 0; then 13187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13188 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13189 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13190 for automatic dependency tracking. If GNU make was not used, consider 13191 re-running the configure script with MAKE=\"gmake\" (or whatever is 13192 necessary). You can also try re-running configure with the 13193 '--disable-dependency-tracking' option to at least be able to build 13194 the package (albeit without support for automatic dependency tracking). 13195 See 'config.log' for more details" "$LINENO" 5; } 13196 fi 13197 { am_dirpart=; unset am_dirpart;} 13198 { am_filepart=; unset am_filepart;} 13199 { am_mf=; unset am_mf;} 13200 { am_rc=; unset am_rc;} 13201 rm -f conftest-deps.mk 13202 } 13203 ;; 13204 13205 esac 13206 done # for ac_tag 13207 13208 13209 as_fn_exit 0 13210 _ACEOF 13211 ac_clean_files=$ac_clean_files_save 13212 13213 test $ac_write_fail = 0 || 13214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13215 13216 13217 # configure is writing to config.log, and then calls config.status. 13218 # config.status does its own redirection, appending to config.log. 13219 # Unfortunately, on DOS this fails, as config.log is still kept open 13220 # by configure, so config.status won't be able to write to it; its 13221 # output is simply discarded. So we exec the FD to /dev/null, 13222 # effectively closing config.log, so it can be properly (re)opened and 13223 # appended to by config.status. When coming back to configure, we 13224 # need to make the FD available again. 13225 if test "$no_create" != yes; then 13226 ac_cs_success=: 13227 ac_config_status_args= 13228 test "$silent" = yes && 13229 ac_config_status_args="$ac_config_status_args --quiet" 13230 exec 5>/dev/null 13231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13232 exec 5>>config.log 13233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13234 # would make configure fail if this is the last instruction. 13235 $ac_cs_success || as_fn_exit 1 13236 fi 13237 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13239 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13240 fi 13241 13242 13243