1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xfindproxy 1.0.4. 4 # 5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271 $0: about your system, including any error possibly output 272 $0: before this message. Then install a modern shell, or 273 $0: manually run the script under such a shell if you do 274 $0: have one." 275 fi 276 exit 1 277 fi 278 fi 279 fi 280 SHELL=${CONFIG_SHELL-/bin/sh} 281 export SHELL 282 # Unset more variables known to interfere with behavior of common tools. 283 CLICOLOR_FORCE= GREP_OPTIONS= 284 unset CLICOLOR_FORCE GREP_OPTIONS 285 286 ## --------------------- ## 287 ## M4sh Shell Functions. ## 288 ## --------------------- ## 289 # as_fn_unset VAR 290 # --------------- 291 # Portably unset VAR. 292 as_fn_unset () 293 { 294 { eval $1=; unset $1;} 295 } 296 as_unset=as_fn_unset 297 298 # as_fn_set_status STATUS 299 # ----------------------- 300 # Set $? to STATUS, without forking. 301 as_fn_set_status () 302 { 303 return $1 304 } # as_fn_set_status 305 306 # as_fn_exit STATUS 307 # ----------------- 308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309 as_fn_exit () 310 { 311 set +e 312 as_fn_set_status $1 313 exit $1 314 } # as_fn_exit 315 316 # as_fn_mkdir_p 317 # ------------- 318 # Create "$as_dir" as a directory, including parents if necessary. 319 as_fn_mkdir_p () 320 { 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 $as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362 } # as_fn_mkdir_p 363 364 # as_fn_executable_p FILE 365 # ----------------------- 366 # Test if FILE is an executable regular file. 367 as_fn_executable_p () 368 { 369 test -f "$1" && test -x "$1" 370 } # as_fn_executable_p 371 # as_fn_append VAR VALUE 372 # ---------------------- 373 # Append the text in VALUE to the end of the definition contained in VAR. Take 374 # advantage of any shell optimizations that allow amortized linear growth over 375 # repeated appends, instead of the typical quadratic growth present in naive 376 # implementations. 377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382 else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387 fi # as_fn_append 388 389 # as_fn_arith ARG... 390 # ------------------ 391 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 # must be portable across $(()) and expr. 394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399 else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404 fi # as_fn_arith 405 406 407 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 # ---------------------------------------- 409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411 # script with STATUS, using 1 if that was 0. 412 as_fn_error () 413 { 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421 } # as_fn_error 422 423 if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426 else 427 as_expr=false 428 fi 429 430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432 else 433 as_basename=false 434 fi 435 436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438 else 439 as_dirname=false 440 fi 441 442 as_me=`$as_basename -- "$0" || 443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 $as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461 # Avoid depending upon Character Ranges. 462 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465 as_cr_digits='0123456789' 466 as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502 } 503 504 ECHO_C= ECHO_N= ECHO_T= 505 case `echo -n x` in #((((( 506 -n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513 *) 514 ECHO_N='-n';; 515 esac 516 517 rm -f conf$$ conf$$.exe conf$$.file 518 if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520 else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523 fi 524 if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538 else 539 as_ln_s='cp -pR' 540 fi 541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542 rmdir conf$$.dir 2>/dev/null 543 544 if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546 else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549 fi 550 551 as_test_x='test -x' 552 as_executable_p=as_fn_executable_p 553 554 # Sed expression to map a string onto a valid CPP name. 555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557 # Sed expression to map a string onto a valid variable name. 558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561 test -n "$DJDIR" || exec 7<&0 </dev/null 562 exec 6>&1 563 564 # Name of the host. 565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566 # so uname gets run too. 567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569 # 570 # Initializations. 571 # 572 ac_default_prefix=/usr/local 573 ac_clean_files= 574 ac_config_libobj_dir=. 575 LIBOBJS= 576 cross_compiling=no 577 subdirs= 578 MFLAGS= 579 MAKEFLAGS= 580 581 # Identity of this package. 582 PACKAGE_NAME='xfindproxy' 583 PACKAGE_TARNAME='xfindproxy' 584 PACKAGE_VERSION='1.0.4' 585 PACKAGE_STRING='xfindproxy 1.0.4' 586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587 PACKAGE_URL='' 588 589 ac_unique_file="Makefile.am" 590 # Factoring default headers for most tests. 591 ac_includes_default="\ 592 #include <stdio.h> 593 #ifdef HAVE_SYS_TYPES_H 594 # include <sys/types.h> 595 #endif 596 #ifdef HAVE_SYS_STAT_H 597 # include <sys/stat.h> 598 #endif 599 #ifdef STDC_HEADERS 600 # include <stdlib.h> 601 # include <stddef.h> 602 #else 603 # ifdef HAVE_STDLIB_H 604 # include <stdlib.h> 605 # endif 606 #endif 607 #ifdef HAVE_STRING_H 608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 # include <memory.h> 610 # endif 611 # include <string.h> 612 #endif 613 #ifdef HAVE_STRINGS_H 614 # include <strings.h> 615 #endif 616 #ifdef HAVE_INTTYPES_H 617 # include <inttypes.h> 618 #endif 619 #ifdef HAVE_STDINT_H 620 # include <stdint.h> 621 #endif 622 #ifdef HAVE_UNISTD_H 623 # include <unistd.h> 624 #endif" 625 626 ac_subst_vars='am__EXEEXT_FALSE 627 am__EXEEXT_TRUE 628 LTLIBOBJS 629 LIBOBJS 630 XFINDPROXY_LIBS 631 XFINDPROXY_CFLAGS 632 MAN_SUBSTS 633 XORG_MAN_PAGE 634 ADMIN_MAN_DIR 635 DRIVER_MAN_DIR 636 MISC_MAN_DIR 637 FILE_MAN_DIR 638 LIB_MAN_DIR 639 APP_MAN_DIR 640 ADMIN_MAN_SUFFIX 641 DRIVER_MAN_SUFFIX 642 MISC_MAN_SUFFIX 643 FILE_MAN_SUFFIX 644 LIB_MAN_SUFFIX 645 APP_MAN_SUFFIX 646 SED 647 host_os 648 host_vendor 649 host_cpu 650 host 651 build_os 652 build_vendor 653 build_cpu 654 build 655 INSTALL_CMD 656 PKG_CONFIG 657 CHANGELOG_CMD 658 STRICT_CFLAGS 659 CWARNFLAGS 660 BASE_CFLAGS 661 EGREP 662 GREP 663 CPP 664 am__fastdepCC_FALSE 665 am__fastdepCC_TRUE 666 CCDEPMODE 667 am__nodep 668 AMDEPBACKSLASH 669 AMDEP_FALSE 670 AMDEP_TRUE 671 am__quote 672 am__include 673 DEPDIR 674 OBJEXT 675 EXEEXT 676 ac_ct_CC 677 CPPFLAGS 678 LDFLAGS 679 CFLAGS 680 CC 681 AM_BACKSLASH 682 AM_DEFAULT_VERBOSITY 683 AM_DEFAULT_V 684 AM_V 685 am__untar 686 am__tar 687 AMTAR 688 am__leading_dot 689 SET_MAKE 690 AWK 691 mkdir_p 692 MKDIR_P 693 INSTALL_STRIP_PROGRAM 694 STRIP 695 install_sh 696 MAKEINFO 697 AUTOHEADER 698 AUTOMAKE 699 AUTOCONF 700 ACLOCAL 701 VERSION 702 PACKAGE 703 CYGPATH_W 704 am__isrc 705 INSTALL_DATA 706 INSTALL_SCRIPT 707 INSTALL_PROGRAM 708 target_alias 709 host_alias 710 build_alias 711 LIBS 712 ECHO_T 713 ECHO_N 714 ECHO_C 715 DEFS 716 mandir 717 localedir 718 libdir 719 psdir 720 pdfdir 721 dvidir 722 htmldir 723 infodir 724 docdir 725 oldincludedir 726 includedir 727 localstatedir 728 sharedstatedir 729 sysconfdir 730 datadir 731 datarootdir 732 libexecdir 733 sbindir 734 bindir 735 program_transform_name 736 prefix 737 exec_prefix 738 PACKAGE_URL 739 PACKAGE_BUGREPORT 740 PACKAGE_STRING 741 PACKAGE_VERSION 742 PACKAGE_TARNAME 743 PACKAGE_NAME 744 PATH_SEPARATOR 745 SHELL' 746 ac_subst_files='' 747 ac_user_opts=' 748 enable_option_checking 749 enable_silent_rules 750 enable_dependency_tracking 751 enable_selective_werror 752 enable_strict_compilation 753 ' 754 ac_precious_vars='build_alias 755 host_alias 756 target_alias 757 CC 758 CFLAGS 759 LDFLAGS 760 LIBS 761 CPPFLAGS 762 CPP 763 PKG_CONFIG 764 XFINDPROXY_CFLAGS 765 XFINDPROXY_LIBS' 766 767 768 # Initialize some variables set by options. 769 ac_init_help= 770 ac_init_version=false 771 ac_unrecognized_opts= 772 ac_unrecognized_sep= 773 # The variables have the same names as the options, with 774 # dashes changed to underlines. 775 cache_file=/dev/null 776 exec_prefix=NONE 777 no_create= 778 no_recursion= 779 prefix=NONE 780 program_prefix=NONE 781 program_suffix=NONE 782 program_transform_name=s,x,x, 783 silent= 784 site= 785 srcdir= 786 verbose= 787 x_includes=NONE 788 x_libraries=NONE 789 790 # Installation directory options. 791 # These are left unexpanded so users can "make install exec_prefix=/foo" 792 # and all the variables that are supposed to be based on exec_prefix 793 # by default will actually change. 794 # Use braces instead of parens because sh, perl, etc. also accept them. 795 # (The list follows the same order as the GNU Coding Standards.) 796 bindir='${exec_prefix}/bin' 797 sbindir='${exec_prefix}/sbin' 798 libexecdir='${exec_prefix}/libexec' 799 datarootdir='${prefix}/share' 800 datadir='${datarootdir}' 801 sysconfdir='${prefix}/etc' 802 sharedstatedir='${prefix}/com' 803 localstatedir='${prefix}/var' 804 includedir='${prefix}/include' 805 oldincludedir='/usr/include' 806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 807 infodir='${datarootdir}/info' 808 htmldir='${docdir}' 809 dvidir='${docdir}' 810 pdfdir='${docdir}' 811 psdir='${docdir}' 812 libdir='${exec_prefix}/lib' 813 localedir='${datarootdir}/locale' 814 mandir='${datarootdir}/man' 815 816 ac_prev= 817 ac_dashdash= 818 for ac_option 819 do 820 # If the previous option needs an argument, assign it. 821 if test -n "$ac_prev"; then 822 eval $ac_prev=\$ac_option 823 ac_prev= 824 continue 825 fi 826 827 case $ac_option in 828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 829 *=) ac_optarg= ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880 "enable_$ac_useropt" 881 "*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=no ;; 886 887 -docdir | --docdir | --docdi | --doc | --do) 888 ac_prev=docdir ;; 889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890 docdir=$ac_optarg ;; 891 892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893 ac_prev=dvidir ;; 894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895 dvidir=$ac_optarg ;; 896 897 -enable-* | --enable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906 "enable_$ac_useropt" 907 "*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=\$ac_optarg ;; 912 913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915 | --exec | --exe | --ex) 916 ac_prev=exec_prefix ;; 917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919 | --exec=* | --exe=* | --ex=*) 920 exec_prefix=$ac_optarg ;; 921 922 -gas | --gas | --ga | --g) 923 # Obsolete; use --with-gas. 924 with_gas=yes ;; 925 926 -help | --help | --hel | --he | -h) 927 ac_init_help=long ;; 928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929 ac_init_help=recursive ;; 930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931 ac_init_help=short ;; 932 933 -host | --host | --hos | --ho) 934 ac_prev=host_alias ;; 935 -host=* | --host=* | --hos=* | --ho=*) 936 host_alias=$ac_optarg ;; 937 938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939 ac_prev=htmldir ;; 940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941 | --ht=*) 942 htmldir=$ac_optarg ;; 943 944 -includedir | --includedir | --includedi | --included | --include \ 945 | --includ | --inclu | --incl | --inc) 946 ac_prev=includedir ;; 947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948 | --includ=* | --inclu=* | --incl=* | --inc=*) 949 includedir=$ac_optarg ;; 950 951 -infodir | --infodir | --infodi | --infod | --info | --inf) 952 ac_prev=infodir ;; 953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954 infodir=$ac_optarg ;; 955 956 -libdir | --libdir | --libdi | --libd) 957 ac_prev=libdir ;; 958 -libdir=* | --libdir=* | --libdi=* | --libd=*) 959 libdir=$ac_optarg ;; 960 961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962 | --libexe | --libex | --libe) 963 ac_prev=libexecdir ;; 964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965 | --libexe=* | --libex=* | --libe=*) 966 libexecdir=$ac_optarg ;; 967 968 -localedir | --localedir | --localedi | --localed | --locale) 969 ac_prev=localedir ;; 970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971 localedir=$ac_optarg ;; 972 973 -localstatedir | --localstatedir | --localstatedi | --localstated \ 974 | --localstate | --localstat | --localsta | --localst | --locals) 975 ac_prev=localstatedir ;; 976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978 localstatedir=$ac_optarg ;; 979 980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981 ac_prev=mandir ;; 982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983 mandir=$ac_optarg ;; 984 985 -nfp | --nfp | --nf) 986 # Obsolete; use --without-fp. 987 with_fp=no ;; 988 989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990 | --no-cr | --no-c | -n) 991 no_create=yes ;; 992 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 no_recursion=yes ;; 996 997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999 | --oldin | --oldi | --old | --ol | --o) 1000 ac_prev=oldincludedir ;; 1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004 oldincludedir=$ac_optarg ;; 1005 1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007 ac_prev=prefix ;; 1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009 prefix=$ac_optarg ;; 1010 1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012 | --program-pre | --program-pr | --program-p) 1013 ac_prev=program_prefix ;; 1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016 program_prefix=$ac_optarg ;; 1017 1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019 | --program-suf | --program-su | --program-s) 1020 ac_prev=program_suffix ;; 1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023 program_suffix=$ac_optarg ;; 1024 1025 -program-transform-name | --program-transform-name \ 1026 | --program-transform-nam | --program-transform-na \ 1027 | --program-transform-n | --program-transform- \ 1028 | --program-transform | --program-transfor \ 1029 | --program-transfo | --program-transf \ 1030 | --program-trans | --program-tran \ 1031 | --progr-tra | --program-tr | --program-t) 1032 ac_prev=program_transform_name ;; 1033 -program-transform-name=* | --program-transform-name=* \ 1034 | --program-transform-nam=* | --program-transform-na=* \ 1035 | --program-transform-n=* | --program-transform-=* \ 1036 | --program-transform=* | --program-transfor=* \ 1037 | --program-transfo=* | --program-transf=* \ 1038 | --program-trans=* | --program-tran=* \ 1039 | --progr-tra=* | --program-tr=* | --program-t=*) 1040 program_transform_name=$ac_optarg ;; 1041 1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043 ac_prev=pdfdir ;; 1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045 pdfdir=$ac_optarg ;; 1046 1047 -psdir | --psdir | --psdi | --psd | --ps) 1048 ac_prev=psdir ;; 1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050 psdir=$ac_optarg ;; 1051 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 silent=yes ;; 1055 1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057 ac_prev=sbindir ;; 1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059 | --sbi=* | --sb=*) 1060 sbindir=$ac_optarg ;; 1061 1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064 | --sharedst | --shareds | --shared | --share | --shar \ 1065 | --sha | --sh) 1066 ac_prev=sharedstatedir ;; 1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070 | --sha=* | --sh=*) 1071 sharedstatedir=$ac_optarg ;; 1072 1073 -site | --site | --sit) 1074 ac_prev=site ;; 1075 -site=* | --site=* | --sit=*) 1076 site=$ac_optarg ;; 1077 1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079 ac_prev=srcdir ;; 1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081 srcdir=$ac_optarg ;; 1082 1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084 | --syscon | --sysco | --sysc | --sys | --sy) 1085 ac_prev=sysconfdir ;; 1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088 sysconfdir=$ac_optarg ;; 1089 1090 -target | --target | --targe | --targ | --tar | --ta | --t) 1091 ac_prev=target_alias ;; 1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093 target_alias=$ac_optarg ;; 1094 1095 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096 verbose=yes ;; 1097 1098 -version | --version | --versio | --versi | --vers | -V) 1099 ac_init_version=: ;; 1100 1101 -with-* | --with-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110 "with_$ac_useropt" 1111 "*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126 "with_$ac_useropt" 1127 "*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=no ;; 1132 1133 --x) 1134 # Obsolete; use --with-x. 1135 with_x=yes ;; 1136 1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138 | --x-incl | --x-inc | --x-in | --x-i) 1139 ac_prev=x_includes ;; 1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142 x_includes=$ac_optarg ;; 1143 1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146 ac_prev=x_libraries ;; 1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149 x_libraries=$ac_optarg ;; 1150 1151 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152 Try \`$0 --help' for more information" 1153 ;; 1154 1155 *=*) 1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157 # Reject names that are not valid shell variable names. 1158 case $ac_envvar in #( 1159 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161 esac 1162 eval $ac_envvar=\$ac_optarg 1163 export $ac_envvar ;; 1164 1165 *) 1166 # FIXME: should be removed in autoconf 3.0. 1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171 ;; 1172 1173 esac 1174 done 1175 1176 if test -n "$ac_prev"; then 1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178 as_fn_error $? "missing argument to $ac_option" 1179 fi 1180 1181 if test -n "$ac_unrecognized_opts"; then 1182 case $enable_option_checking in 1183 no) ;; 1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186 esac 1187 fi 1188 1189 # Check all directory arguments for consistency. 1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191 datadir sysconfdir sharedstatedir localstatedir includedir \ 1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193 libdir localedir mandir 1194 do 1195 eval ac_val=\$$ac_var 1196 # Remove trailing slashes. 1197 case $ac_val in 1198 */ ) 1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200 eval $ac_var=\$ac_val;; 1201 esac 1202 # Be sure to have absolute directory names. 1203 case $ac_val in 1204 [\\/$]* | ?:[\\/]* ) continue;; 1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206 esac 1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208 done 1209 1210 # There might be people who depend on the old broken behavior: `$host' 1211 # used to hold the argument of --host etc. 1212 # FIXME: To remove some day. 1213 build=$build_alias 1214 host=$host_alias 1215 target=$target_alias 1216 1217 # FIXME: To remove some day. 1218 if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 elif test "x$build_alias" != "x$host_alias"; then 1222 cross_compiling=yes 1223 fi 1224 fi 1225 1226 ac_tool_prefix= 1227 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1228 1229 test "$silent" = yes && exec 6>/dev/null 1230 1231 1232 ac_pwd=`pwd` && test -n "$ac_pwd" && 1233 ac_ls_di=`ls -di .` && 1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235 as_fn_error $? "working directory cannot be determined" 1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237 as_fn_error $? "pwd does not report name of working directory" 1238 1239 1240 # Find the source files, if location was not specified. 1241 if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249 $as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271 else 1272 ac_srcdir_defaulted=no 1273 fi 1274 if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277 fi 1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279 ac_abs_confdir=`( 1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281 pwd)` 1282 # When building in place, set srcdir=. 1283 if test "$ac_abs_confdir" = "$ac_pwd"; then 1284 srcdir=. 1285 fi 1286 # Remove unnecessary trailing slashes from srcdir. 1287 # Double slashes in file names in object file debugging info 1288 # mess up M-x gdb in Emacs. 1289 case $srcdir in 1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291 esac 1292 for ac_var in $ac_precious_vars; do 1293 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_env_${ac_var}_value=\$${ac_var} 1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297 done 1298 1299 # 1300 # Report the --help message. 1301 # 1302 if test "$ac_init_help" = "long"; then 1303 # Omit some internal or obsolete options to make the list less imposing. 1304 # This message is too long to be a string in the A/UX 3.1 sh. 1305 cat <<_ACEOF 1306 \`configure' configures xfindproxy 1.0.4 to adapt to many kinds of systems. 1307 1308 Usage: $0 [OPTION]... [VAR=VALUE]... 1309 1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1311 VAR=VALUE. See below for descriptions of some of the useful variables. 1312 1313 Defaults for the options are specified in brackets. 1314 1315 Configuration: 1316 -h, --help display this help and exit 1317 --help=short display options specific to this package 1318 --help=recursive display the short help of all the included packages 1319 -V, --version display version information and exit 1320 -q, --quiet, --silent do not print \`checking ...' messages 1321 --cache-file=FILE cache test results in FILE [disabled] 1322 -C, --config-cache alias for \`--cache-file=config.cache' 1323 -n, --no-create do not create output files 1324 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325 1326 Installation directories: 1327 --prefix=PREFIX install architecture-independent files in PREFIX 1328 [$ac_default_prefix] 1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330 [PREFIX] 1331 1332 By default, \`make install' will install all the files in 1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335 for instance \`--prefix=\$HOME'. 1336 1337 For better control, use the options below. 1338 1339 Fine tuning of the installation directories: 1340 --bindir=DIR user executables [EPREFIX/bin] 1341 --sbindir=DIR system admin executables [EPREFIX/sbin] 1342 --libexecdir=DIR program executables [EPREFIX/libexec] 1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346 --libdir=DIR object code libraries [EPREFIX/lib] 1347 --includedir=DIR C header files [PREFIX/include] 1348 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351 --infodir=DIR info documentation [DATAROOTDIR/info] 1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353 --mandir=DIR man documentation [DATAROOTDIR/man] 1354 --docdir=DIR documentation root [DATAROOTDIR/doc/xfindproxy] 1355 --htmldir=DIR html documentation [DOCDIR] 1356 --dvidir=DIR dvi documentation [DOCDIR] 1357 --pdfdir=DIR pdf documentation [DOCDIR] 1358 --psdir=DIR ps documentation [DOCDIR] 1359 _ACEOF 1360 1361 cat <<\_ACEOF 1362 1363 Program names: 1364 --program-prefix=PREFIX prepend PREFIX to installed program names 1365 --program-suffix=SUFFIX append SUFFIX to installed program names 1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367 1368 System types: 1369 --build=BUILD configure for building on BUILD [guessed] 1370 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371 _ACEOF 1372 fi 1373 1374 if test -n "$ac_init_help"; then 1375 case $ac_init_help in 1376 short | recursive ) echo "Configuration of xfindproxy 1.0.4:";; 1377 esac 1378 cat <<\_ACEOF 1379 1380 Optional Features: 1381 --disable-option-checking ignore unrecognized --enable/--with options 1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1384 --enable-silent-rules less verbose build output (undo: "make V=1") 1385 --disable-silent-rules verbose build output (undo: "make V=0") 1386 --enable-dependency-tracking 1387 do not reject slow dependency extractors 1388 --disable-dependency-tracking 1389 speeds up one-time build 1390 --disable-selective-werror 1391 Turn off selective compiler errors. (default: 1392 enabled) 1393 --enable-strict-compilation 1394 Enable all warnings from compiler and make them 1395 errors (default: disabled) 1396 1397 Some influential environment variables: 1398 CC C compiler command 1399 CFLAGS C compiler flags 1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401 nonstandard directory <lib dir> 1402 LIBS libraries to pass to the linker, e.g. -l<library> 1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404 you have headers in a nonstandard directory <include dir> 1405 CPP C preprocessor 1406 PKG_CONFIG path to pkg-config utility 1407 XFINDPROXY_CFLAGS 1408 C compiler flags for XFINDPROXY, overriding pkg-config 1409 XFINDPROXY_LIBS 1410 linker flags for XFINDPROXY, overriding pkg-config 1411 1412 Use these variables to override the choices made by `configure' or to help 1413 it to find libraries and programs with nonstandard names/locations. 1414 1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1416 _ACEOF 1417 ac_status=$? 1418 fi 1419 1420 if test "$ac_init_help" = "recursive"; then 1421 # If there are subdirs, report their specific --help. 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1423 test -d "$ac_dir" || 1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1425 continue 1426 ac_builddir=. 1427 1428 case "$ac_dir" in 1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1430 *) 1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1432 # A ".." for each directory in $ac_dir_suffix. 1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1434 case $ac_top_builddir_sub in 1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1437 esac ;; 1438 esac 1439 ac_abs_top_builddir=$ac_pwd 1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1441 # for backward compatibility: 1442 ac_top_builddir=$ac_top_build_prefix 1443 1444 case $srcdir in 1445 .) # We are building in place. 1446 ac_srcdir=. 1447 ac_top_srcdir=$ac_top_builddir_sub 1448 ac_abs_top_srcdir=$ac_pwd ;; 1449 [\\/]* | ?:[\\/]* ) # Absolute name. 1450 ac_srcdir=$srcdir$ac_dir_suffix; 1451 ac_top_srcdir=$srcdir 1452 ac_abs_top_srcdir=$srcdir ;; 1453 *) # Relative name. 1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1455 ac_top_srcdir=$ac_top_build_prefix$srcdir 1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1457 esac 1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1459 1460 cd "$ac_dir" || { ac_status=$?; continue; } 1461 # Check for guested configure. 1462 if test -f "$ac_srcdir/configure.gnu"; then 1463 echo && 1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1465 elif test -f "$ac_srcdir/configure"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure" --help=recursive 1468 else 1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1470 fi || ac_status=$? 1471 cd "$ac_pwd" || { ac_status=$?; break; } 1472 done 1473 fi 1474 1475 test -n "$ac_init_help" && exit $ac_status 1476 if $ac_init_version; then 1477 cat <<\_ACEOF 1478 xfindproxy configure 1.0.4 1479 generated by GNU Autoconf 2.69 1480 1481 Copyright (C) 2012 Free Software Foundation, Inc. 1482 This configure script is free software; the Free Software Foundation 1483 gives unlimited permission to copy, distribute and modify it. 1484 _ACEOF 1485 exit 1486 fi 1487 1488 ## ------------------------ ## 1489 ## Autoconf initialization. ## 1490 ## ------------------------ ## 1491 1492 # ac_fn_c_try_compile LINENO 1493 # -------------------------- 1494 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1495 ac_fn_c_try_compile () 1496 { 1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1498 rm -f conftest.$ac_objext 1499 if { { ac_try="$ac_compile" 1500 case "(($ac_try" in 1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1502 *) ac_try_echo=$ac_try;; 1503 esac 1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1505 $as_echo "$ac_try_echo"; } >&5 1506 (eval "$ac_compile") 2>conftest.err 1507 ac_status=$? 1508 if test -s conftest.err; then 1509 grep -v '^ *+' conftest.err >conftest.er1 1510 cat conftest.er1 >&5 1511 mv -f conftest.er1 conftest.err 1512 fi 1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1514 test $ac_status = 0; } && { 1515 test -z "$ac_c_werror_flag" || 1516 test ! -s conftest.err 1517 } && test -s conftest.$ac_objext; then : 1518 ac_retval=0 1519 else 1520 $as_echo "$as_me: failed program was:" >&5 1521 sed 's/^/| /' conftest.$ac_ext >&5 1522 1523 ac_retval=1 1524 fi 1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1526 as_fn_set_status $ac_retval 1527 1528 } # ac_fn_c_try_compile 1529 1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1531 # --------------------------------------------- 1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1533 # accordingly. 1534 ac_fn_c_check_decl () 1535 { 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 as_decl_name=`echo $2|sed 's/ *(.*//'` 1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1541 if eval \${$3+:} false; then : 1542 $as_echo_n "(cached) " >&6 1543 else 1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1545 /* end confdefs.h. */ 1546 $4 1547 int 1548 main () 1549 { 1550 #ifndef $as_decl_name 1551 #ifdef __cplusplus 1552 (void) $as_decl_use; 1553 #else 1554 (void) $as_decl_name; 1555 #endif 1556 #endif 1557 1558 ; 1559 return 0; 1560 } 1561 _ACEOF 1562 if ac_fn_c_try_compile "$LINENO"; then : 1563 eval "$3=yes" 1564 else 1565 eval "$3=no" 1566 fi 1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1568 fi 1569 eval ac_res=\$$3 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1571 $as_echo "$ac_res" >&6; } 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 1574 } # ac_fn_c_check_decl 1575 1576 # ac_fn_c_try_cpp LINENO 1577 # ---------------------- 1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1579 ac_fn_c_try_cpp () 1580 { 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 if { { ac_try="$ac_cpp conftest.$ac_ext" 1583 case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586 esac 1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588 $as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } > conftest.i && { 1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1599 test ! -s conftest.err 1600 }; then : 1601 ac_retval=0 1602 else 1603 $as_echo "$as_me: failed program was:" >&5 1604 sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607 fi 1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1609 as_fn_set_status $ac_retval 1610 1611 } # ac_fn_c_try_cpp 1612 1613 # ac_fn_c_try_run LINENO 1614 # ---------------------- 1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1616 # that executables *can* be run. 1617 ac_fn_c_try_run () 1618 { 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 if { { ac_try="$ac_link" 1621 case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624 esac 1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626 $as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_link") 2>&5 1628 ac_status=$? 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1631 { { case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634 esac 1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636 $as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_try") 2>&5 1638 ac_status=$? 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; }; }; then : 1641 ac_retval=0 1642 else 1643 $as_echo "$as_me: program exited with status $ac_status" >&5 1644 $as_echo "$as_me: failed program was:" >&5 1645 sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=$ac_status 1648 fi 1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653 } # ac_fn_c_try_run 1654 1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1656 # ------------------------------------------------------- 1657 # Tests whether HEADER exists and can be compiled using the include files in 1658 # INCLUDES, setting the cache variable VAR accordingly. 1659 ac_fn_c_check_header_compile () 1660 { 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663 $as_echo_n "checking for $2... " >&6; } 1664 if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666 else 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668 /* end confdefs.h. */ 1669 $4 1670 #include <$2> 1671 _ACEOF 1672 if ac_fn_c_try_compile "$LINENO"; then : 1673 eval "$3=yes" 1674 else 1675 eval "$3=no" 1676 fi 1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1678 fi 1679 eval ac_res=\$$3 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681 $as_echo "$ac_res" >&6; } 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 1684 } # ac_fn_c_check_header_compile 1685 1686 # ac_fn_c_try_link LINENO 1687 # ----------------------- 1688 # Try to link conftest.$ac_ext, and return whether this succeeded. 1689 ac_fn_c_try_link () 1690 { 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 rm -f conftest.$ac_objext conftest$ac_exeext 1693 if { { ac_try="$ac_link" 1694 case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697 esac 1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699 $as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { 1709 test -z "$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 } && test -s conftest$ac_exeext && { 1712 test "$cross_compiling" = yes || 1713 test -x conftest$ac_exeext 1714 }; then : 1715 ac_retval=0 1716 else 1717 $as_echo "$as_me: failed program was:" >&5 1718 sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721 fi 1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1724 # interfere with the next link command; also delete a directory that is 1725 # left behind by Apple's compiler. We do this before executing the actions. 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730 } # ac_fn_c_try_link 1731 cat >config.log <<_ACEOF 1732 This file contains any messages produced by compilers while 1733 running configure, to aid debugging if configure makes a mistake. 1734 1735 It was created by xfindproxy $as_me 1.0.4, which was 1736 generated by GNU Autoconf 2.69. Invocation command line was 1737 1738 $ $0 $@ 1739 1740 _ACEOF 1741 exec 5>>config.log 1742 { 1743 cat <<_ASUNAME 1744 ## --------- ## 1745 ## Platform. ## 1746 ## --------- ## 1747 1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1749 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1750 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1751 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1752 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1753 1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1756 1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1764 1765 _ASUNAME 1766 1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768 for as_dir in $PATH 1769 do 1770 IFS=$as_save_IFS 1771 test -z "$as_dir" && as_dir=. 1772 $as_echo "PATH: $as_dir" 1773 done 1774 IFS=$as_save_IFS 1775 1776 } >&5 1777 1778 cat >&5 <<_ACEOF 1779 1780 1781 ## ----------- ## 1782 ## Core tests. ## 1783 ## ----------- ## 1784 1785 _ACEOF 1786 1787 1788 # Keep a trace of the command line. 1789 # Strip out --no-create and --no-recursion so they do not pile up. 1790 # Strip out --silent because we don't want to record it for future runs. 1791 # Also quote any args containing shell meta-characters. 1792 # Make two passes to allow for proper duplicate-argument suppression. 1793 ac_configure_args= 1794 ac_configure_args0= 1795 ac_configure_args1= 1796 ac_must_keep_next=false 1797 for ac_pass in 1 2 1798 do 1799 for ac_arg 1800 do 1801 case $ac_arg in 1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1804 | -silent | --silent | --silen | --sile | --sil) 1805 continue ;; 1806 *\'*) 1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1808 esac 1809 case $ac_pass in 1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1811 2) 1812 as_fn_append ac_configure_args1 " '$ac_arg'" 1813 if test $ac_must_keep_next = true; then 1814 ac_must_keep_next=false # Got value, back to normal. 1815 else 1816 case $ac_arg in 1817 *=* | --config-cache | -C | -disable-* | --disable-* \ 1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1820 | -with-* | --with-* | -without-* | --without-* | --x) 1821 case "$ac_configure_args0 " in 1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1823 esac 1824 ;; 1825 -* ) ac_must_keep_next=true ;; 1826 esac 1827 fi 1828 as_fn_append ac_configure_args " '$ac_arg'" 1829 ;; 1830 esac 1831 done 1832 done 1833 { ac_configure_args0=; unset ac_configure_args0;} 1834 { ac_configure_args1=; unset ac_configure_args1;} 1835 1836 # When interrupted or exit'd, cleanup temporary files, and complete 1837 # config.log. We remove comments because anyway the quotes in there 1838 # would cause problems or look ugly. 1839 # WARNING: Use '\'' to represent an apostrophe within the trap. 1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1841 trap 'exit_status=$? 1842 # Save into config.log some information that might help in debugging. 1843 { 1844 echo 1845 1846 $as_echo "## ---------------- ## 1847 ## Cache variables. ## 1848 ## ---------------- ##" 1849 echo 1850 # The following way of writing the cache mishandles newlines in values, 1851 ( 1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1853 eval ac_val=\$$ac_var 1854 case $ac_val in #( 1855 *${as_nl}*) 1856 case $ac_var in #( 1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1859 esac 1860 case $ac_var in #( 1861 _ | IFS | as_nl) ;; #( 1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1863 *) { eval $ac_var=; unset $ac_var;} ;; 1864 esac ;; 1865 esac 1866 done 1867 (set) 2>&1 | 1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1869 *${as_nl}ac_space=\ *) 1870 sed -n \ 1871 "s/'\''/'\''\\\\'\'''\''/g; 1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1873 ;; #( 1874 *) 1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1876 ;; 1877 esac | 1878 sort 1879 ) 1880 echo 1881 1882 $as_echo "## ----------------- ## 1883 ## Output variables. ## 1884 ## ----------------- ##" 1885 echo 1886 for ac_var in $ac_subst_vars 1887 do 1888 eval ac_val=\$$ac_var 1889 case $ac_val in 1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1891 esac 1892 $as_echo "$ac_var='\''$ac_val'\''" 1893 done | sort 1894 echo 1895 1896 if test -n "$ac_subst_files"; then 1897 $as_echo "## ------------------- ## 1898 ## File substitutions. ## 1899 ## ------------------- ##" 1900 echo 1901 for ac_var in $ac_subst_files 1902 do 1903 eval ac_val=\$$ac_var 1904 case $ac_val in 1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1906 esac 1907 $as_echo "$ac_var='\''$ac_val'\''" 1908 done | sort 1909 echo 1910 fi 1911 1912 if test -s confdefs.h; then 1913 $as_echo "## ----------- ## 1914 ## confdefs.h. ## 1915 ## ----------- ##" 1916 echo 1917 cat confdefs.h 1918 echo 1919 fi 1920 test "$ac_signal" != 0 && 1921 $as_echo "$as_me: caught signal $ac_signal" 1922 $as_echo "$as_me: exit $exit_status" 1923 } >&5 1924 rm -f core *.core core.conftest.* && 1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1926 exit $exit_status 1927 ' 0 1928 for ac_signal in 1 2 13 15; do 1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1930 done 1931 ac_signal=0 1932 1933 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1934 rm -f -r conftest* confdefs.h 1935 1936 $as_echo "/* confdefs.h */" > confdefs.h 1937 1938 # Predefined preprocessor variables. 1939 1940 cat >>confdefs.h <<_ACEOF 1941 #define PACKAGE_NAME "$PACKAGE_NAME" 1942 _ACEOF 1943 1944 cat >>confdefs.h <<_ACEOF 1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1946 _ACEOF 1947 1948 cat >>confdefs.h <<_ACEOF 1949 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1950 _ACEOF 1951 1952 cat >>confdefs.h <<_ACEOF 1953 #define PACKAGE_STRING "$PACKAGE_STRING" 1954 _ACEOF 1955 1956 cat >>confdefs.h <<_ACEOF 1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1958 _ACEOF 1959 1960 cat >>confdefs.h <<_ACEOF 1961 #define PACKAGE_URL "$PACKAGE_URL" 1962 _ACEOF 1963 1964 1965 # Let the site file select an alternate cache file if it wants to. 1966 # Prefer an explicitly selected file to automatically selected ones. 1967 ac_site_file1=NONE 1968 ac_site_file2=NONE 1969 if test -n "$CONFIG_SITE"; then 1970 # We do not want a PATH search for config.site. 1971 case $CONFIG_SITE in #(( 1972 -*) ac_site_file1=./$CONFIG_SITE;; 1973 */*) ac_site_file1=$CONFIG_SITE;; 1974 *) ac_site_file1=./$CONFIG_SITE;; 1975 esac 1976 elif test "x$prefix" != xNONE; then 1977 ac_site_file1=$prefix/share/config.site 1978 ac_site_file2=$prefix/etc/config.site 1979 else 1980 ac_site_file1=$ac_default_prefix/share/config.site 1981 ac_site_file2=$ac_default_prefix/etc/config.site 1982 fi 1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1984 do 1985 test "x$ac_site_file" = xNONE && continue 1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1989 sed 's/^/| /' "$ac_site_file" >&5 1990 . "$ac_site_file" \ 1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1993 as_fn_error $? "failed to load site script $ac_site_file 1994 See \`config.log' for more details" "$LINENO" 5; } 1995 fi 1996 done 1997 1998 if test -r "$cache_file"; then 1999 # Some versions of bash will fail to source /dev/null (special files 2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2003 $as_echo "$as_me: loading cache $cache_file" >&6;} 2004 case $cache_file in 2005 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2006 *) . "./$cache_file";; 2007 esac 2008 fi 2009 else 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2011 $as_echo "$as_me: creating cache $cache_file" >&6;} 2012 >$cache_file 2013 fi 2014 2015 # Check that the precious variables saved in the cache have kept the same 2016 # value. 2017 ac_cache_corrupted=false 2018 for ac_var in $ac_precious_vars; do 2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2020 eval ac_new_set=\$ac_env_${ac_var}_set 2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2022 eval ac_new_val=\$ac_env_${ac_var}_value 2023 case $ac_old_set,$ac_new_set in 2024 set,) 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2027 ac_cache_corrupted=: ;; 2028 ,set) 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2031 ac_cache_corrupted=: ;; 2032 ,);; 2033 *) 2034 if test "x$ac_old_val" != "x$ac_new_val"; then 2035 # differences in whitespace do not lead to failure. 2036 ac_old_val_w=`echo x $ac_old_val` 2037 ac_new_val_w=`echo x $ac_new_val` 2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2041 ac_cache_corrupted=: 2042 else 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2045 eval $ac_var=\$ac_old_val 2046 fi 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2051 fi;; 2052 esac 2053 # Pass precious variables to config.status. 2054 if test "$ac_new_set" = set; then 2055 case $ac_new_val in 2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2057 *) ac_arg=$ac_var=$ac_new_val ;; 2058 esac 2059 case " $ac_configure_args " in 2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2062 esac 2063 fi 2064 done 2065 if $ac_cache_corrupted; then 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2071 fi 2072 ## -------------------- ## 2073 ## Main body of script. ## 2074 ## -------------------- ## 2075 2076 ac_ext=c 2077 ac_cpp='$CPP $CPPFLAGS' 2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2081 2082 2083 2084 ac_config_headers="$ac_config_headers config.h" 2085 2086 2087 # Initialize Automake 2088 am__api_version='1.15' 2089 2090 ac_aux_dir= 2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2092 if test -f "$ac_dir/install-sh"; then 2093 ac_aux_dir=$ac_dir 2094 ac_install_sh="$ac_aux_dir/install-sh -c" 2095 break 2096 elif test -f "$ac_dir/install.sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install.sh -c" 2099 break 2100 elif test -f "$ac_dir/shtool"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/shtool install -c" 2103 break 2104 fi 2105 done 2106 if test -z "$ac_aux_dir"; then 2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2108 fi 2109 2110 # These three variables are undocumented and unsupported, 2111 # and are intended to be withdrawn in a future Autoconf release. 2112 # They can cause serious problems if a builder's source tree is in a directory 2113 # whose full name contains unusual characters. 2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2117 2118 2119 # Find a good install program. We prefer a C program (faster), 2120 # so one script is as good as another. But avoid the broken or 2121 # incompatible versions: 2122 # SysV /etc/install, /usr/sbin/install 2123 # SunOS /usr/etc/install 2124 # IRIX /sbin/install 2125 # AIX /bin/install 2126 # AmigaOS /C/install, which installs bootblocks on floppy discs 2127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2130 # OS/2's system install, which has a completely different semantic 2131 # ./install, which can be erroneously created by make from ./install.sh. 2132 # Reject install programs that cannot install multiple files. 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2134 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2135 if test -z "$INSTALL"; then 2136 if ${ac_cv_path_install+:} false; then : 2137 $as_echo_n "(cached) " >&6 2138 else 2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2140 for as_dir in $PATH 2141 do 2142 IFS=$as_save_IFS 2143 test -z "$as_dir" && as_dir=. 2144 # Account for people who put trailing slashes in PATH elements. 2145 case $as_dir/ in #(( 2146 ./ | .// | /[cC]/* | \ 2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2149 /usr/ucb/* ) ;; 2150 *) 2151 # OSF1 and SCO ODT 3.0 have their own names for install. 2152 # Don't use installbsd from OSF since it installs stuff as root 2153 # by default. 2154 for ac_prog in ginstall scoinst install; do 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2157 if test $ac_prog = install && 2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2159 # AIX install. It has an incompatible calling convention. 2160 : 2161 elif test $ac_prog = install && 2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2163 # program-specific install script used by HP pwplus--don't use. 2164 : 2165 else 2166 rm -rf conftest.one conftest.two conftest.dir 2167 echo one > conftest.one 2168 echo two > conftest.two 2169 mkdir conftest.dir 2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2171 test -s conftest.one && test -s conftest.two && 2172 test -s conftest.dir/conftest.one && 2173 test -s conftest.dir/conftest.two 2174 then 2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2176 break 3 2177 fi 2178 fi 2179 fi 2180 done 2181 done 2182 ;; 2183 esac 2184 2185 done 2186 IFS=$as_save_IFS 2187 2188 rm -rf conftest.one conftest.two conftest.dir 2189 2190 fi 2191 if test "${ac_cv_path_install+set}" = set; then 2192 INSTALL=$ac_cv_path_install 2193 else 2194 # As a last resort, use the slow shell script. Don't cache a 2195 # value for INSTALL within a source directory, because that will 2196 # break other packages using the cache if that directory is 2197 # removed, or if the value is a relative name. 2198 INSTALL=$ac_install_sh 2199 fi 2200 fi 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2202 $as_echo "$INSTALL" >&6; } 2203 2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2205 # It thinks the first close brace ends the variable substitution. 2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2207 2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2209 2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2211 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2213 $as_echo_n "checking whether build environment is sane... " >&6; } 2214 # Reject unsafe characters in $srcdir or the absolute working directory 2215 # name. Accept space and tab only in the latter. 2216 am_lf=' 2217 ' 2218 case `pwd` in 2219 *[\\\"\#\$\&\'\`$am_lf]*) 2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2221 esac 2222 case $srcdir in 2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2225 esac 2226 2227 # Do 'set' in a subshell so we don't clobber the current shell's 2228 # arguments. Must try -L first in case configure is actually a 2229 # symlink; some systems play weird games with the mod time of symlinks 2230 # (eg FreeBSD returns the mod time of the symlink's containing 2231 # directory). 2232 if ( 2233 am_has_slept=no 2234 for am_try in 1 2; do 2235 echo "timestamp, slept: $am_has_slept" > conftest.file 2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2237 if test "$*" = "X"; then 2238 # -L didn't work. 2239 set X `ls -t "$srcdir/configure" conftest.file` 2240 fi 2241 if test "$*" != "X $srcdir/configure conftest.file" \ 2242 && test "$*" != "X conftest.file $srcdir/configure"; then 2243 2244 # If neither matched, then we have a broken ls. This can happen 2245 # if, for instance, CONFIG_SHELL is bash and it inherits a 2246 # broken ls alias from the environment. This has actually 2247 # happened. Such a system could not be considered "sane". 2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2249 alias in your environment" "$LINENO" 5 2250 fi 2251 if test "$2" = conftest.file || test $am_try -eq 2; then 2252 break 2253 fi 2254 # Just in case. 2255 sleep 1 2256 am_has_slept=yes 2257 done 2258 test "$2" = conftest.file 2259 ) 2260 then 2261 # Ok. 2262 : 2263 else 2264 as_fn_error $? "newly created file is older than distributed files! 2265 Check your system clock" "$LINENO" 5 2266 fi 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2268 $as_echo "yes" >&6; } 2269 # If we didn't sleep, we still need to ensure time stamps of config.status and 2270 # generated files are strictly newer. 2271 am_sleep_pid= 2272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2273 ( sleep 1 ) & 2274 am_sleep_pid=$! 2275 fi 2276 2277 rm -f conftest.file 2278 2279 test "$program_prefix" != NONE && 2280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2281 # Use a double $ so make ignores it. 2282 test "$program_suffix" != NONE && 2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2284 # Double any \ or $. 2285 # By default was `s,x,x', remove it if useless. 2286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2287 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2288 2289 # Expand $ac_aux_dir to an absolute path. 2290 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2291 2292 if test x"${MISSING+set}" != xset; then 2293 case $am_aux_dir in 2294 *\ * | *\ *) 2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2296 *) 2297 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2298 esac 2299 fi 2300 # Use eval to expand $SHELL 2301 if eval "$MISSING --is-lightweight"; then 2302 am_missing_run="$MISSING " 2303 else 2304 am_missing_run= 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2306 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2307 fi 2308 2309 if test x"${install_sh+set}" != xset; then 2310 case $am_aux_dir in 2311 *\ * | *\ *) 2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2313 *) 2314 install_sh="\${SHELL} $am_aux_dir/install-sh" 2315 esac 2316 fi 2317 2318 # Installed binaries are usually stripped using 'strip' when the user 2319 # run "make install-strip". However 'strip' might not be the right 2320 # tool to use in cross-compilation environments, therefore Automake 2321 # will honor the 'STRIP' environment variable to overrule this program. 2322 if test "$cross_compiling" != no; then 2323 if test -n "$ac_tool_prefix"; then 2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2325 set dummy ${ac_tool_prefix}strip; ac_word=$2 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2327 $as_echo_n "checking for $ac_word... " >&6; } 2328 if ${ac_cv_prog_STRIP+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330 else 2331 if test -n "$STRIP"; then 2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2333 else 2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335 for as_dir in $PATH 2336 do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345 done 2346 done 2347 IFS=$as_save_IFS 2348 2349 fi 2350 fi 2351 STRIP=$ac_cv_prog_STRIP 2352 if test -n "$STRIP"; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2354 $as_echo "$STRIP" >&6; } 2355 else 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2357 $as_echo "no" >&6; } 2358 fi 2359 2360 2361 fi 2362 if test -z "$ac_cv_prog_STRIP"; then 2363 ac_ct_STRIP=$STRIP 2364 # Extract the first word of "strip", so it can be a program name with args. 2365 set dummy strip; ac_word=$2 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2367 $as_echo_n "checking for $ac_word... " >&6; } 2368 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2369 $as_echo_n "(cached) " >&6 2370 else 2371 if test -n "$ac_ct_STRIP"; then 2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2373 else 2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375 for as_dir in $PATH 2376 do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2381 ac_cv_prog_ac_ct_STRIP="strip" 2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385 done 2386 done 2387 IFS=$as_save_IFS 2388 2389 fi 2390 fi 2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2392 if test -n "$ac_ct_STRIP"; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2394 $as_echo "$ac_ct_STRIP" >&6; } 2395 else 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2397 $as_echo "no" >&6; } 2398 fi 2399 2400 if test "x$ac_ct_STRIP" = x; then 2401 STRIP=":" 2402 else 2403 case $cross_compiling:$ac_tool_warned in 2404 yes:) 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2407 ac_tool_warned=yes ;; 2408 esac 2409 STRIP=$ac_ct_STRIP 2410 fi 2411 else 2412 STRIP="$ac_cv_prog_STRIP" 2413 fi 2414 2415 fi 2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2417 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2420 if test -z "$MKDIR_P"; then 2421 if ${ac_cv_path_mkdir+:} false; then : 2422 $as_echo_n "(cached) " >&6 2423 else 2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2426 do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 for ac_prog in mkdir gmkdir; do 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2433 'mkdir (GNU coreutils) '* | \ 2434 'mkdir (coreutils) '* | \ 2435 'mkdir (fileutils) '4.1*) 2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2437 break 3;; 2438 esac 2439 done 2440 done 2441 done 2442 IFS=$as_save_IFS 2443 2444 fi 2445 2446 test -d ./--version && rmdir ./--version 2447 if test "${ac_cv_path_mkdir+set}" = set; then 2448 MKDIR_P="$ac_cv_path_mkdir -p" 2449 else 2450 # As a last resort, use the slow shell script. Don't cache a 2451 # value for MKDIR_P within a source directory, because that will 2452 # break other packages using the cache if that directory is 2453 # removed, or if the value is a relative name. 2454 MKDIR_P="$ac_install_sh -d" 2455 fi 2456 fi 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2458 $as_echo "$MKDIR_P" >&6; } 2459 2460 for ac_prog in gawk mawk nawk awk 2461 do 2462 # Extract the first word of "$ac_prog", so it can be a program name with args. 2463 set dummy $ac_prog; ac_word=$2 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465 $as_echo_n "checking for $ac_word... " >&6; } 2466 if ${ac_cv_prog_AWK+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468 else 2469 if test -n "$AWK"; then 2470 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2471 else 2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473 for as_dir in $PATH 2474 do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_AWK="$ac_prog" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483 done 2484 done 2485 IFS=$as_save_IFS 2486 2487 fi 2488 fi 2489 AWK=$ac_cv_prog_AWK 2490 if test -n "$AWK"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2492 $as_echo "$AWK" >&6; } 2493 else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495 $as_echo "no" >&6; } 2496 fi 2497 2498 2499 test -n "$AWK" && break 2500 done 2501 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2504 set x ${MAKE-make} 2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508 else 2509 cat >conftest.make <<\_ACEOF 2510 SHELL = /bin/sh 2511 all: 2512 @echo '@@@%%%=$(MAKE)=@@@%%%' 2513 _ACEOF 2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2516 *@@@%%%=?*=@@@%%%*) 2517 eval ac_cv_prog_make_${ac_make}_set=yes;; 2518 *) 2519 eval ac_cv_prog_make_${ac_make}_set=no;; 2520 esac 2521 rm -f conftest.make 2522 fi 2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2525 $as_echo "yes" >&6; } 2526 SET_MAKE= 2527 else 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2529 $as_echo "no" >&6; } 2530 SET_MAKE="MAKE=${MAKE-make}" 2531 fi 2532 2533 rm -rf .tst 2>/dev/null 2534 mkdir .tst 2>/dev/null 2535 if test -d .tst; then 2536 am__leading_dot=. 2537 else 2538 am__leading_dot=_ 2539 fi 2540 rmdir .tst 2>/dev/null 2541 2542 # Check whether --enable-silent-rules was given. 2543 if test "${enable_silent_rules+set}" = set; then : 2544 enableval=$enable_silent_rules; 2545 fi 2546 2547 case $enable_silent_rules in # ((( 2548 yes) AM_DEFAULT_VERBOSITY=0;; 2549 no) AM_DEFAULT_VERBOSITY=1;; 2550 *) AM_DEFAULT_VERBOSITY=1;; 2551 esac 2552 am_make=${MAKE-make} 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2555 if ${am_cv_make_support_nested_variables+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557 else 2558 if $as_echo 'TRUE=$(BAR$(V)) 2559 BAR0=false 2560 BAR1=true 2561 V=1 2562 am__doit: 2563 @$(TRUE) 2564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2565 am_cv_make_support_nested_variables=yes 2566 else 2567 am_cv_make_support_nested_variables=no 2568 fi 2569 fi 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2571 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2572 if test $am_cv_make_support_nested_variables = yes; then 2573 AM_V='$(V)' 2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2575 else 2576 AM_V=$AM_DEFAULT_VERBOSITY 2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2578 fi 2579 AM_BACKSLASH='\' 2580 2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2583 # is not polluted with repeated "-I." 2584 am__isrc=' -I$(srcdir)' 2585 # test to see if srcdir already configured 2586 if test -f $srcdir/config.status; then 2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2588 fi 2589 fi 2590 2591 # test whether we have cygpath 2592 if test -z "$CYGPATH_W"; then 2593 if (cygpath --version) >/dev/null 2>/dev/null; then 2594 CYGPATH_W='cygpath -w' 2595 else 2596 CYGPATH_W=echo 2597 fi 2598 fi 2599 2600 2601 # Define the identity of the package. 2602 PACKAGE='xfindproxy' 2603 VERSION='1.0.4' 2604 2605 2606 cat >>confdefs.h <<_ACEOF 2607 #define PACKAGE "$PACKAGE" 2608 _ACEOF 2609 2610 2611 cat >>confdefs.h <<_ACEOF 2612 #define VERSION "$VERSION" 2613 _ACEOF 2614 2615 # Some tools Automake needs. 2616 2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2618 2619 2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2621 2622 2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2624 2625 2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2627 2628 2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2630 2631 # For better backward compatibility. To be removed once Automake 1.9.x 2632 # dies out for good. For more background, see: 2633 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2634 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2635 mkdir_p='$(MKDIR_P)' 2636 2637 # We need awk for the "check" target (and possibly the TAP driver). The 2638 # system "awk" is bad on some platforms. 2639 # Always define AMTAR for backward compatibility. Yes, it's still used 2640 # in the wild :-( We should find a proper way to deprecate it ... 2641 AMTAR='$${TAR-tar}' 2642 2643 2644 # We'll loop over all known methods to create a tar archive until one works. 2645 _am_tools='gnutar pax cpio none' 2646 2647 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2648 2649 2650 2651 2652 2653 2654 # POSIX will say in a future version that running "rm -f" with no argument 2655 # is OK; and we want to be able to make that assumption in our Makefile 2656 # recipes. So use an aggressive probe to check that the usage we want is 2657 # actually supported "in the wild" to an acceptable degree. 2658 # See automake bug#10828. 2659 # To make any issue more visible, cause the running configure to be aborted 2660 # by default if the 'rm' program in use doesn't match our expectations; the 2661 # user can still override this though. 2662 if rm -f && rm -fr && rm -rf; then : OK; else 2663 cat >&2 <<'END' 2664 Oops! 2665 2666 Your 'rm' program seems unable to run without file operands specified 2667 on the command line, even when the '-f' option is present. This is contrary 2668 to the behaviour of most rm programs out there, and not conforming with 2669 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2670 2671 Please tell bug-automake@gnu.org about your system, including the value 2672 of your $PATH and any error possibly output before this message. This 2673 can help us improve future automake versions. 2674 2675 END 2676 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2677 echo 'Configuration will proceed anyway, since you have set the' >&2 2678 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2679 echo >&2 2680 else 2681 cat >&2 <<'END' 2682 Aborting the configuration process, to ensure you take notice of the issue. 2683 2684 You can download and install GNU coreutils to get an 'rm' implementation 2685 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2686 2687 If you want to complete the configuration process using your problematic 2688 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2689 to "yes", and re-run configure. 2690 2691 END 2692 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2693 fi 2694 fi 2695 2696 2697 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 DEPDIR="${am__leading_dot}deps" 2710 2711 ac_config_commands="$ac_config_commands depfiles" 2712 2713 2714 am_make=${MAKE-make} 2715 cat > confinc << 'END' 2716 am__doit: 2717 @echo this is the am__doit target 2718 .PHONY: am__doit 2719 END 2720 # If we don't find an include directive, just comment out the code. 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2722 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2723 am__include="#" 2724 am__quote= 2725 _am_result=none 2726 # First try GNU make style include. 2727 echo "include confinc" > confmf 2728 # Ignore all kinds of additional output from 'make'. 2729 case `$am_make -s -f confmf 2> /dev/null` in #( 2730 *the\ am__doit\ target*) 2731 am__include=include 2732 am__quote= 2733 _am_result=GNU 2734 ;; 2735 esac 2736 # Now try BSD make style include. 2737 if test "$am__include" = "#"; then 2738 echo '.include "confinc"' > confmf 2739 case `$am_make -s -f confmf 2> /dev/null` in #( 2740 *the\ am__doit\ target*) 2741 am__include=.include 2742 am__quote="\"" 2743 _am_result=BSD 2744 ;; 2745 esac 2746 fi 2747 2748 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2750 $as_echo "$_am_result" >&6; } 2751 rm -f confinc confmf 2752 2753 # Check whether --enable-dependency-tracking was given. 2754 if test "${enable_dependency_tracking+set}" = set; then : 2755 enableval=$enable_dependency_tracking; 2756 fi 2757 2758 if test "x$enable_dependency_tracking" != xno; then 2759 am_depcomp="$ac_aux_dir/depcomp" 2760 AMDEPBACKSLASH='\' 2761 am__nodep='_no' 2762 fi 2763 if test "x$enable_dependency_tracking" != xno; then 2764 AMDEP_TRUE= 2765 AMDEP_FALSE='#' 2766 else 2767 AMDEP_TRUE='#' 2768 AMDEP_FALSE= 2769 fi 2770 2771 2772 ac_ext=c 2773 ac_cpp='$CPP $CPPFLAGS' 2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777 if test -n "$ac_tool_prefix"; then 2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2779 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2781 $as_echo_n "checking for $ac_word... " >&6; } 2782 if ${ac_cv_prog_CC+:} false; then : 2783 $as_echo_n "(cached) " >&6 2784 else 2785 if test -n "$CC"; then 2786 ac_cv_prog_CC="$CC" # Let the user override the test. 2787 else 2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2789 for as_dir in $PATH 2790 do 2791 IFS=$as_save_IFS 2792 test -z "$as_dir" && as_dir=. 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2795 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2797 break 2 2798 fi 2799 done 2800 done 2801 IFS=$as_save_IFS 2802 2803 fi 2804 fi 2805 CC=$ac_cv_prog_CC 2806 if test -n "$CC"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2808 $as_echo "$CC" >&6; } 2809 else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811 $as_echo "no" >&6; } 2812 fi 2813 2814 2815 fi 2816 if test -z "$ac_cv_prog_CC"; then 2817 ac_ct_CC=$CC 2818 # Extract the first word of "gcc", so it can be a program name with args. 2819 set dummy gcc; ac_word=$2 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821 $as_echo_n "checking for $ac_word... " >&6; } 2822 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824 else 2825 if test -n "$ac_ct_CC"; then 2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2827 else 2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829 for as_dir in $PATH 2830 do 2831 IFS=$as_save_IFS 2832 test -z "$as_dir" && as_dir=. 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2835 ac_cv_prog_ac_ct_CC="gcc" 2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2837 break 2 2838 fi 2839 done 2840 done 2841 IFS=$as_save_IFS 2842 2843 fi 2844 fi 2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2846 if test -n "$ac_ct_CC"; then 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2848 $as_echo "$ac_ct_CC" >&6; } 2849 else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851 $as_echo "no" >&6; } 2852 fi 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858 yes:) 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861 ac_tool_warned=yes ;; 2862 esac 2863 CC=$ac_ct_CC 2864 fi 2865 else 2866 CC="$ac_cv_prog_CC" 2867 fi 2868 2869 if test -z "$CC"; then 2870 if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2872 set dummy ${ac_tool_prefix}cc; ac_word=$2 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874 $as_echo_n "checking for $ac_word... " >&6; } 2875 if ${ac_cv_prog_CC+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877 else 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880 else 2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882 for as_dir in $PATH 2883 do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_CC="${ac_tool_prefix}cc" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892 done 2893 done 2894 IFS=$as_save_IFS 2895 2896 fi 2897 fi 2898 CC=$ac_cv_prog_CC 2899 if test -n "$CC"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2901 $as_echo "$CC" >&6; } 2902 else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904 $as_echo "no" >&6; } 2905 fi 2906 2907 2908 fi 2909 fi 2910 if test -z "$CC"; then 2911 # Extract the first word of "cc", so it can be a program name with args. 2912 set dummy cc; ac_word=$2 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914 $as_echo_n "checking for $ac_word... " >&6; } 2915 if ${ac_cv_prog_CC+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917 else 2918 if test -n "$CC"; then 2919 ac_cv_prog_CC="$CC" # Let the user override the test. 2920 else 2921 ac_prog_rejected=no 2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923 for as_dir in $PATH 2924 do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2930 ac_prog_rejected=yes 2931 continue 2932 fi 2933 ac_cv_prog_CC="cc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937 done 2938 done 2939 IFS=$as_save_IFS 2940 2941 if test $ac_prog_rejected = yes; then 2942 # We found a bogon in the path, so make sure we never use it. 2943 set dummy $ac_cv_prog_CC 2944 shift 2945 if test $# != 0; then 2946 # We chose a different compiler from the bogus one. 2947 # However, it has the same basename, so the bogon will be chosen 2948 # first if we set CC to just the basename; use the full file name. 2949 shift 2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2951 fi 2952 fi 2953 fi 2954 fi 2955 CC=$ac_cv_prog_CC 2956 if test -n "$CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2958 $as_echo "$CC" >&6; } 2959 else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961 $as_echo "no" >&6; } 2962 fi 2963 2964 2965 fi 2966 if test -z "$CC"; then 2967 if test -n "$ac_tool_prefix"; then 2968 for ac_prog in cl.exe 2969 do 2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973 $as_echo_n "checking for $ac_word... " >&6; } 2974 if ${ac_cv_prog_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976 else 2977 if test -n "$CC"; then 2978 ac_cv_prog_CC="$CC" # Let the user override the test. 2979 else 2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981 for as_dir in $PATH 2982 do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991 done 2992 done 2993 IFS=$as_save_IFS 2994 2995 fi 2996 fi 2997 CC=$ac_cv_prog_CC 2998 if test -n "$CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3000 $as_echo "$CC" >&6; } 3001 else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003 $as_echo "no" >&6; } 3004 fi 3005 3006 3007 test -n "$CC" && break 3008 done 3009 fi 3010 if test -z "$CC"; then 3011 ac_ct_CC=$CC 3012 for ac_prog in cl.exe 3013 do 3014 # Extract the first word of "$ac_prog", so it can be a program name with args. 3015 set dummy $ac_prog; ac_word=$2 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017 $as_echo_n "checking for $ac_word... " >&6; } 3018 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3019 $as_echo_n "(cached) " >&6 3020 else 3021 if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023 else 3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025 for as_dir in $PATH 3026 do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_ac_ct_CC="$ac_prog" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035 done 3036 done 3037 IFS=$as_save_IFS 3038 3039 fi 3040 fi 3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3042 if test -n "$ac_ct_CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3044 $as_echo "$ac_ct_CC" >&6; } 3045 else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047 $as_echo "no" >&6; } 3048 fi 3049 3050 3051 test -n "$ac_ct_CC" && break 3052 done 3053 3054 if test "x$ac_ct_CC" = x; then 3055 CC="" 3056 else 3057 case $cross_compiling:$ac_tool_warned in 3058 yes:) 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3061 ac_tool_warned=yes ;; 3062 esac 3063 CC=$ac_ct_CC 3064 fi 3065 fi 3066 3067 fi 3068 3069 3070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3072 as_fn_error $? "no acceptable C compiler found in \$PATH 3073 See \`config.log' for more details" "$LINENO" 5; } 3074 3075 # Provide some information about the compiler. 3076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3077 set X $ac_compile 3078 ac_compiler=$2 3079 for ac_option in --version -v -V -qversion; do 3080 { { ac_try="$ac_compiler $ac_option >&5" 3081 case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084 esac 3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086 $as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3088 ac_status=$? 3089 if test -s conftest.err; then 3090 sed '10a\ 3091 ... rest of stderr output deleted ... 3092 10q' conftest.err >conftest.er1 3093 cat conftest.er1 >&5 3094 fi 3095 rm -f conftest.er1 conftest.err 3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3097 test $ac_status = 0; } 3098 done 3099 3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101 /* end confdefs.h. */ 3102 3103 int 3104 main () 3105 { 3106 3107 ; 3108 return 0; 3109 } 3110 _ACEOF 3111 ac_clean_files_save=$ac_clean_files 3112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3113 # Try to create an executable without -o first, disregard a.out. 3114 # It will help us diagnose broken compilers, and finding out an intuition 3115 # of exeext. 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3117 $as_echo_n "checking whether the C compiler works... " >&6; } 3118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3119 3120 # The possible output files: 3121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3122 3123 ac_rmfiles= 3124 for ac_file in $ac_files 3125 do 3126 case $ac_file in 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3129 esac 3130 done 3131 rm -f $ac_rmfiles 3132 3133 if { { ac_try="$ac_link_default" 3134 case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137 esac 3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3139 $as_echo "$ac_try_echo"; } >&5 3140 (eval "$ac_link_default") 2>&5 3141 ac_status=$? 3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3143 test $ac_status = 0; }; then : 3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3146 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3147 # so that the user can short-circuit this test for compilers unknown to 3148 # Autoconf. 3149 for ac_file in $ac_files '' 3150 do 3151 test -f "$ac_file" || continue 3152 case $ac_file in 3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3154 ;; 3155 [ab].out ) 3156 # We found the default executable, but exeext='' is most 3157 # certainly right. 3158 break;; 3159 *.* ) 3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3161 then :; else 3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3163 fi 3164 # We set ac_cv_exeext here because the later test for it is not 3165 # safe: cross compilers may not add the suffix if given an `-o' 3166 # argument, so we may need to know it at that point already. 3167 # Even if this section looks crufty: it has the advantage of 3168 # actually working. 3169 break;; 3170 * ) 3171 break;; 3172 esac 3173 done 3174 test "$ac_cv_exeext" = no && ac_cv_exeext= 3175 3176 else 3177 ac_file='' 3178 fi 3179 if test -z "$ac_file"; then : 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181 $as_echo "no" >&6; } 3182 $as_echo "$as_me: failed program was:" >&5 3183 sed 's/^/| /' conftest.$ac_ext >&5 3184 3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3187 as_fn_error 77 "C compiler cannot create executables 3188 See \`config.log' for more details" "$LINENO" 5; } 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3191 $as_echo "yes" >&6; } 3192 fi 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3194 $as_echo_n "checking for C compiler default output file name... " >&6; } 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3196 $as_echo "$ac_file" >&6; } 3197 ac_exeext=$ac_cv_exeext 3198 3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3200 ac_clean_files=$ac_clean_files_save 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3202 $as_echo_n "checking for suffix of executables... " >&6; } 3203 if { { ac_try="$ac_link" 3204 case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207 esac 3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209 $as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_link") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; then : 3214 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3216 # work properly (i.e., refer to `conftest.exe'), while it won't with 3217 # `rm'. 3218 for ac_file in conftest.exe conftest conftest.*; do 3219 test -f "$ac_file" || continue 3220 case $ac_file in 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3223 break;; 3224 * ) break;; 3225 esac 3226 done 3227 else 3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3231 See \`config.log' for more details" "$LINENO" 5; } 3232 fi 3233 rm -f conftest conftest$ac_cv_exeext 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3235 $as_echo "$ac_cv_exeext" >&6; } 3236 3237 rm -f conftest.$ac_ext 3238 EXEEXT=$ac_cv_exeext 3239 ac_exeext=$EXEEXT 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241 /* end confdefs.h. */ 3242 #include <stdio.h> 3243 int 3244 main () 3245 { 3246 FILE *f = fopen ("conftest.out", "w"); 3247 return ferror (f) || fclose (f) != 0; 3248 3249 ; 3250 return 0; 3251 } 3252 _ACEOF 3253 ac_clean_files="$ac_clean_files conftest.out" 3254 # Check that the compiler produces executables we can run. If not, either 3255 # the compiler is broken, or we cross compile. 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3257 $as_echo_n "checking whether we are cross compiling... " >&6; } 3258 if test "$cross_compiling" != yes; then 3259 { { ac_try="$ac_link" 3260 case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263 esac 3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3265 $as_echo "$ac_try_echo"; } >&5 3266 (eval "$ac_link") 2>&5 3267 ac_status=$? 3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; } 3270 if { ac_try='./conftest$ac_cv_exeext' 3271 { { case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274 esac 3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3276 $as_echo "$ac_try_echo"; } >&5 3277 (eval "$ac_try") 2>&5 3278 ac_status=$? 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; }; }; then 3281 cross_compiling=no 3282 else 3283 if test "$cross_compiling" = maybe; then 3284 cross_compiling=yes 3285 else 3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3288 as_fn_error $? "cannot run C compiled programs. 3289 If you meant to cross compile, use \`--host'. 3290 See \`config.log' for more details" "$LINENO" 5; } 3291 fi 3292 fi 3293 fi 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3295 $as_echo "$cross_compiling" >&6; } 3296 3297 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3298 ac_clean_files=$ac_clean_files_save 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3300 $as_echo_n "checking for suffix of object files... " >&6; } 3301 if ${ac_cv_objext+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303 else 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305 /* end confdefs.h. */ 3306 3307 int 3308 main () 3309 { 3310 3311 ; 3312 return 0; 3313 } 3314 _ACEOF 3315 rm -f conftest.o conftest.obj 3316 if { { ac_try="$ac_compile" 3317 case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320 esac 3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322 $as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_compile") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 for ac_file in conftest.o conftest.obj conftest.*; do 3328 test -f "$ac_file" || continue; 3329 case $ac_file in 3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3332 break;; 3333 esac 3334 done 3335 else 3336 $as_echo "$as_me: failed program was:" >&5 3337 sed 's/^/| /' conftest.$ac_ext >&5 3338 3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341 as_fn_error $? "cannot compute suffix of object files: cannot compile 3342 See \`config.log' for more details" "$LINENO" 5; } 3343 fi 3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3345 fi 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3347 $as_echo "$ac_cv_objext" >&6; } 3348 OBJEXT=$ac_cv_objext 3349 ac_objext=$OBJEXT 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3352 if ${ac_cv_c_compiler_gnu+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354 else 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356 /* end confdefs.h. */ 3357 3358 int 3359 main () 3360 { 3361 #ifndef __GNUC__ 3362 choke me 3363 #endif 3364 3365 ; 3366 return 0; 3367 } 3368 _ACEOF 3369 if ac_fn_c_try_compile "$LINENO"; then : 3370 ac_compiler_gnu=yes 3371 else 3372 ac_compiler_gnu=no 3373 fi 3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3376 3377 fi 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3380 if test $ac_compiler_gnu = yes; then 3381 GCC=yes 3382 else 3383 GCC= 3384 fi 3385 ac_test_CFLAGS=${CFLAGS+set} 3386 ac_save_CFLAGS=$CFLAGS 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3388 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3389 if ${ac_cv_prog_cc_g+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391 else 3392 ac_save_c_werror_flag=$ac_c_werror_flag 3393 ac_c_werror_flag=yes 3394 ac_cv_prog_cc_g=no 3395 CFLAGS="-g" 3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397 /* end confdefs.h. */ 3398 3399 int 3400 main () 3401 { 3402 3403 ; 3404 return 0; 3405 } 3406 _ACEOF 3407 if ac_fn_c_try_compile "$LINENO"; then : 3408 ac_cv_prog_cc_g=yes 3409 else 3410 CFLAGS="" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412 /* end confdefs.h. */ 3413 3414 int 3415 main () 3416 { 3417 3418 ; 3419 return 0; 3420 } 3421 _ACEOF 3422 if ac_fn_c_try_compile "$LINENO"; then : 3423 3424 else 3425 ac_c_werror_flag=$ac_save_c_werror_flag 3426 CFLAGS="-g" 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428 /* end confdefs.h. */ 3429 3430 int 3431 main () 3432 { 3433 3434 ; 3435 return 0; 3436 } 3437 _ACEOF 3438 if ac_fn_c_try_compile "$LINENO"; then : 3439 ac_cv_prog_cc_g=yes 3440 fi 3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442 fi 3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3444 fi 3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446 ac_c_werror_flag=$ac_save_c_werror_flag 3447 fi 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3449 $as_echo "$ac_cv_prog_cc_g" >&6; } 3450 if test "$ac_test_CFLAGS" = set; then 3451 CFLAGS=$ac_save_CFLAGS 3452 elif test $ac_cv_prog_cc_g = yes; then 3453 if test "$GCC" = yes; then 3454 CFLAGS="-g -O2" 3455 else 3456 CFLAGS="-g" 3457 fi 3458 else 3459 if test "$GCC" = yes; then 3460 CFLAGS="-O2" 3461 else 3462 CFLAGS= 3463 fi 3464 fi 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3467 if ${ac_cv_prog_cc_c89+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469 else 3470 ac_cv_prog_cc_c89=no 3471 ac_save_CC=$CC 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473 /* end confdefs.h. */ 3474 #include <stdarg.h> 3475 #include <stdio.h> 3476 struct stat; 3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3478 struct buf { int x; }; 3479 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3480 static char *e (p, i) 3481 char **p; 3482 int i; 3483 { 3484 return p[i]; 3485 } 3486 static char *f (char * (*g) (char **, int), char **p, ...) 3487 { 3488 char *s; 3489 va_list v; 3490 va_start (v,p); 3491 s = g (p, va_arg (v,int)); 3492 va_end (v); 3493 return s; 3494 } 3495 3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3497 function prototypes and stuff, but not '\xHH' hex character constants. 3498 These don't provoke an error unfortunately, instead are silently treated 3499 as 'x'. The following induces an error, until -std is added to get 3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3501 array size at least. It's necessary to write '\x00'==0 to get something 3502 that's true only with -std. */ 3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3504 3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3506 inside strings and character constants. */ 3507 #define FOO(x) 'x' 3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3509 3510 int test (int i, double x); 3511 struct s1 {int (*f) (int a);}; 3512 struct s2 {int (*f) (double a);}; 3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3514 int argc; 3515 char **argv; 3516 int 3517 main () 3518 { 3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3520 ; 3521 return 0; 3522 } 3523 _ACEOF 3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3526 do 3527 CC="$ac_save_CC $ac_arg" 3528 if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_c89=$ac_arg 3530 fi 3531 rm -f core conftest.err conftest.$ac_objext 3532 test "x$ac_cv_prog_cc_c89" != "xno" && break 3533 done 3534 rm -f conftest.$ac_ext 3535 CC=$ac_save_CC 3536 3537 fi 3538 # AC_CACHE_VAL 3539 case "x$ac_cv_prog_cc_c89" in 3540 x) 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3542 $as_echo "none needed" >&6; } ;; 3543 xno) 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3545 $as_echo "unsupported" >&6; } ;; 3546 *) 3547 CC="$CC $ac_cv_prog_cc_c89" 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3550 esac 3551 if test "x$ac_cv_prog_cc_c89" != xno; then : 3552 3553 fi 3554 3555 ac_ext=c 3556 ac_cpp='$CPP $CPPFLAGS' 3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561 ac_ext=c 3562 ac_cpp='$CPP $CPPFLAGS' 3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3567 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3568 if ${am_cv_prog_cc_c_o+:} false; then : 3569 $as_echo_n "(cached) " >&6 3570 else 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572 /* end confdefs.h. */ 3573 3574 int 3575 main () 3576 { 3577 3578 ; 3579 return 0; 3580 } 3581 _ACEOF 3582 # Make sure it works both with $CC and with simple cc. 3583 # Following AC_PROG_CC_C_O, we do the test twice because some 3584 # compilers refuse to overwrite an existing .o file with -o, 3585 # though they will create one. 3586 am_cv_prog_cc_c_o=yes 3587 for am_i in 1 2; do 3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3590 ac_status=$? 3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); } \ 3593 && test -f conftest2.$ac_objext; then 3594 : OK 3595 else 3596 am_cv_prog_cc_c_o=no 3597 break 3598 fi 3599 done 3600 rm -f core conftest* 3601 unset am_i 3602 fi 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3604 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3605 if test "$am_cv_prog_cc_c_o" != yes; then 3606 # Losing compiler, so override with the script. 3607 # FIXME: It is wrong to rewrite CC. 3608 # But if we don't then we get into trouble of one sort or another. 3609 # A longer-term fix would be to have automake use am__CC in this case, 3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3611 CC="$am_aux_dir/compile $CC" 3612 fi 3613 ac_ext=c 3614 ac_cpp='$CPP $CPPFLAGS' 3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3618 3619 3620 depcc="$CC" am_compiler_list= 3621 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3623 $as_echo_n "checking dependency style of $depcc... " >&6; } 3624 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626 else 3627 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3628 # We make a subdir and do the tests there. Otherwise we can end up 3629 # making bogus files that we don't know about and never remove. For 3630 # instance it was reported that on HP-UX the gcc test will end up 3631 # making a dummy file named 'D' -- because '-MD' means "put the output 3632 # in D". 3633 rm -rf conftest.dir 3634 mkdir conftest.dir 3635 # Copy depcomp to subdir because otherwise we won't find it if we're 3636 # using a relative directory. 3637 cp "$am_depcomp" conftest.dir 3638 cd conftest.dir 3639 # We will build objects and dependencies in a subdirectory because 3640 # it helps to detect inapplicable dependency modes. For instance 3641 # both Tru64's cc and ICC support -MD to output dependencies as a 3642 # side effect of compilation, but ICC will put the dependencies in 3643 # the current directory while Tru64 will put them in the object 3644 # directory. 3645 mkdir sub 3646 3647 am_cv_CC_dependencies_compiler_type=none 3648 if test "$am_compiler_list" = ""; then 3649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3650 fi 3651 am__universal=false 3652 case " $depcc " in #( 3653 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3654 esac 3655 3656 for depmode in $am_compiler_list; do 3657 # Setup a source with many dependencies, because some compilers 3658 # like to wrap large dependency lists on column 80 (with \), and 3659 # we should not choose a depcomp mode which is confused by this. 3660 # 3661 # We need to recreate these files for each test, as the compiler may 3662 # overwrite some of them when testing with obscure command lines. 3663 # This happens at least with the AIX C compiler. 3664 : > sub/conftest.c 3665 for i in 1 2 3 4 5 6; do 3666 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3667 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3668 # Solaris 10 /bin/sh. 3669 echo '/* dummy */' > sub/conftst$i.h 3670 done 3671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3672 3673 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3674 # mode. It turns out that the SunPro C++ compiler does not properly 3675 # handle '-M -o', and we need to detect this. Also, some Intel 3676 # versions had trouble with output in subdirs. 3677 am__obj=sub/conftest.${OBJEXT-o} 3678 am__minus_obj="-o $am__obj" 3679 case $depmode in 3680 gcc) 3681 # This depmode causes a compiler race in universal mode. 3682 test "$am__universal" = false || continue 3683 ;; 3684 nosideeffect) 3685 # After this tag, mechanisms are not by side-effect, so they'll 3686 # only be used when explicitly requested. 3687 if test "x$enable_dependency_tracking" = xyes; then 3688 continue 3689 else 3690 break 3691 fi 3692 ;; 3693 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3694 # This compiler won't grok '-c -o', but also, the minuso test has 3695 # not run yet. These depmodes are late enough in the game, and 3696 # so weak that their functioning should not be impacted. 3697 am__obj=conftest.${OBJEXT-o} 3698 am__minus_obj= 3699 ;; 3700 none) break ;; 3701 esac 3702 if depmode=$depmode \ 3703 source=sub/conftest.c object=$am__obj \ 3704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3705 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3706 >/dev/null 2>conftest.err && 3707 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3709 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3711 # icc doesn't choke on unknown options, it will just issue warnings 3712 # or remarks (even with -Werror). So we grep stderr for any message 3713 # that says an option was ignored or not supported. 3714 # When given -MP, icc 7.0 and 7.1 complain thusly: 3715 # icc: Command line warning: ignoring option '-M'; no argument required 3716 # The diagnosis changed in icc 8.0: 3717 # icc: Command line remark: option '-MP' not supported 3718 if (grep 'ignoring option' conftest.err || 3719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3720 am_cv_CC_dependencies_compiler_type=$depmode 3721 break 3722 fi 3723 fi 3724 done 3725 3726 cd .. 3727 rm -rf conftest.dir 3728 else 3729 am_cv_CC_dependencies_compiler_type=none 3730 fi 3731 3732 fi 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3734 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3735 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3736 3737 if 3738 test "x$enable_dependency_tracking" != xno \ 3739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3740 am__fastdepCC_TRUE= 3741 am__fastdepCC_FALSE='#' 3742 else 3743 am__fastdepCC_TRUE='#' 3744 am__fastdepCC_FALSE= 3745 fi 3746 3747 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3749 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3750 if ${ac_cv_prog_cc_c99+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752 else 3753 ac_cv_prog_cc_c99=no 3754 ac_save_CC=$CC 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756 /* end confdefs.h. */ 3757 #include <stdarg.h> 3758 #include <stdbool.h> 3759 #include <stdlib.h> 3760 #include <wchar.h> 3761 #include <stdio.h> 3762 3763 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3764 #define debug(...) fprintf (stderr, __VA_ARGS__) 3765 #define showlist(...) puts (#__VA_ARGS__) 3766 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3767 static void 3768 test_varargs_macros (void) 3769 { 3770 int x = 1234; 3771 int y = 5678; 3772 debug ("Flag"); 3773 debug ("X = %d\n", x); 3774 showlist (The first, second, and third items.); 3775 report (x>y, "x is %d but y is %d", x, y); 3776 } 3777 3778 // Check long long types. 3779 #define BIG64 18446744073709551615ull 3780 #define BIG32 4294967295ul 3781 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3782 #if !BIG_OK 3783 your preprocessor is broken; 3784 #endif 3785 #if BIG_OK 3786 #else 3787 your preprocessor is broken; 3788 #endif 3789 static long long int bignum = -9223372036854775807LL; 3790 static unsigned long long int ubignum = BIG64; 3791 3792 struct incomplete_array 3793 { 3794 int datasize; 3795 double data[]; 3796 }; 3797 3798 struct named_init { 3799 int number; 3800 const wchar_t *name; 3801 double average; 3802 }; 3803 3804 typedef const char *ccp; 3805 3806 static inline int 3807 test_restrict (ccp restrict text) 3808 { 3809 // See if C++-style comments work. 3810 // Iterate through items via the restricted pointer. 3811 // Also check for declarations in for loops. 3812 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3813 continue; 3814 return 0; 3815 } 3816 3817 // Check varargs and va_copy. 3818 static void 3819 test_varargs (const char *format, ...) 3820 { 3821 va_list args; 3822 va_start (args, format); 3823 va_list args_copy; 3824 va_copy (args_copy, args); 3825 3826 const char *str; 3827 int number; 3828 float fnumber; 3829 3830 while (*format) 3831 { 3832 switch (*format++) 3833 { 3834 case 's': // string 3835 str = va_arg (args_copy, const char *); 3836 break; 3837 case 'd': // int 3838 number = va_arg (args_copy, int); 3839 break; 3840 case 'f': // float 3841 fnumber = va_arg (args_copy, double); 3842 break; 3843 default: 3844 break; 3845 } 3846 } 3847 va_end (args_copy); 3848 va_end (args); 3849 } 3850 3851 int 3852 main () 3853 { 3854 3855 // Check bool. 3856 _Bool success = false; 3857 3858 // Check restrict. 3859 if (test_restrict ("String literal") == 0) 3860 success = true; 3861 char *restrict newvar = "Another string"; 3862 3863 // Check varargs. 3864 test_varargs ("s, d' f .", "string", 65, 34.234); 3865 test_varargs_macros (); 3866 3867 // Check flexible array members. 3868 struct incomplete_array *ia = 3869 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3870 ia->datasize = 10; 3871 for (int i = 0; i < ia->datasize; ++i) 3872 ia->data[i] = i * 1.234; 3873 3874 // Check named initializers. 3875 struct named_init ni = { 3876 .number = 34, 3877 .name = L"Test wide string", 3878 .average = 543.34343, 3879 }; 3880 3881 ni.number = 58; 3882 3883 int dynamic_array[ni.number]; 3884 dynamic_array[ni.number - 1] = 543; 3885 3886 // work around unused variable warnings 3887 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3888 || dynamic_array[ni.number - 1] != 543); 3889 3890 ; 3891 return 0; 3892 } 3893 _ACEOF 3894 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3895 do 3896 CC="$ac_save_CC $ac_arg" 3897 if ac_fn_c_try_compile "$LINENO"; then : 3898 ac_cv_prog_cc_c99=$ac_arg 3899 fi 3900 rm -f core conftest.err conftest.$ac_objext 3901 test "x$ac_cv_prog_cc_c99" != "xno" && break 3902 done 3903 rm -f conftest.$ac_ext 3904 CC=$ac_save_CC 3905 3906 fi 3907 # AC_CACHE_VAL 3908 case "x$ac_cv_prog_cc_c99" in 3909 x) 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3911 $as_echo "none needed" >&6; } ;; 3912 xno) 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3914 $as_echo "unsupported" >&6; } ;; 3915 *) 3916 CC="$CC $ac_cv_prog_cc_c99" 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3918 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3919 esac 3920 if test "x$ac_cv_prog_cc_c99" != xno; then : 3921 3922 fi 3923 3924 3925 3926 ac_ext=c 3927 ac_cpp='$CPP $CPPFLAGS' 3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3932 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3933 # On Suns, sometimes $CPP names a directory. 3934 if test -n "$CPP" && test -d "$CPP"; then 3935 CPP= 3936 fi 3937 if test -z "$CPP"; then 3938 if ${ac_cv_prog_CPP+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940 else 3941 # Double quotes because CPP needs to be expanded 3942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3943 do 3944 ac_preproc_ok=false 3945 for ac_c_preproc_warn_flag in '' yes 3946 do 3947 # Use a header file that comes with gcc, so configuring glibc 3948 # with a fresh cross-compiler works. 3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3950 # <limits.h> exists even on freestanding compilers. 3951 # On the NeXT, cc -E runs the code through the compiler's parser, 3952 # not just through cpp. "Syntax error" is here to catch this case. 3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954 /* end confdefs.h. */ 3955 #ifdef __STDC__ 3956 # include <limits.h> 3957 #else 3958 # include <assert.h> 3959 #endif 3960 Syntax error 3961 _ACEOF 3962 if ac_fn_c_try_cpp "$LINENO"; then : 3963 3964 else 3965 # Broken: fails on valid input. 3966 continue 3967 fi 3968 rm -f conftest.err conftest.i conftest.$ac_ext 3969 3970 # OK, works on sane cases. Now check whether nonexistent headers 3971 # can be detected and how. 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973 /* end confdefs.h. */ 3974 #include <ac_nonexistent.h> 3975 _ACEOF 3976 if ac_fn_c_try_cpp "$LINENO"; then : 3977 # Broken: success on invalid input. 3978 continue 3979 else 3980 # Passes both tests. 3981 ac_preproc_ok=: 3982 break 3983 fi 3984 rm -f conftest.err conftest.i conftest.$ac_ext 3985 3986 done 3987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3988 rm -f conftest.i conftest.err conftest.$ac_ext 3989 if $ac_preproc_ok; then : 3990 break 3991 fi 3992 3993 done 3994 ac_cv_prog_CPP=$CPP 3995 3996 fi 3997 CPP=$ac_cv_prog_CPP 3998 else 3999 ac_cv_prog_CPP=$CPP 4000 fi 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4002 $as_echo "$CPP" >&6; } 4003 ac_preproc_ok=false 4004 for ac_c_preproc_warn_flag in '' yes 4005 do 4006 # Use a header file that comes with gcc, so configuring glibc 4007 # with a fresh cross-compiler works. 4008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4009 # <limits.h> exists even on freestanding compilers. 4010 # On the NeXT, cc -E runs the code through the compiler's parser, 4011 # not just through cpp. "Syntax error" is here to catch this case. 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013 /* end confdefs.h. */ 4014 #ifdef __STDC__ 4015 # include <limits.h> 4016 #else 4017 # include <assert.h> 4018 #endif 4019 Syntax error 4020 _ACEOF 4021 if ac_fn_c_try_cpp "$LINENO"; then : 4022 4023 else 4024 # Broken: fails on valid input. 4025 continue 4026 fi 4027 rm -f conftest.err conftest.i conftest.$ac_ext 4028 4029 # OK, works on sane cases. Now check whether nonexistent headers 4030 # can be detected and how. 4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032 /* end confdefs.h. */ 4033 #include <ac_nonexistent.h> 4034 _ACEOF 4035 if ac_fn_c_try_cpp "$LINENO"; then : 4036 # Broken: success on invalid input. 4037 continue 4038 else 4039 # Passes both tests. 4040 ac_preproc_ok=: 4041 break 4042 fi 4043 rm -f conftest.err conftest.i conftest.$ac_ext 4044 4045 done 4046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4047 rm -f conftest.i conftest.err conftest.$ac_ext 4048 if $ac_preproc_ok; then : 4049 4050 else 4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4053 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4054 See \`config.log' for more details" "$LINENO" 5; } 4055 fi 4056 4057 ac_ext=c 4058 ac_cpp='$CPP $CPPFLAGS' 4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4062 4063 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4066 if ${ac_cv_path_GREP+:} false; then : 4067 $as_echo_n "(cached) " >&6 4068 else 4069 if test -z "$GREP"; then 4070 ac_path_GREP_found=false 4071 # Loop through the user's path and test for each of PROGNAME-LIST 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4074 do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_prog in grep ggrep; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4080 as_fn_executable_p "$ac_path_GREP" || continue 4081 # Check for GNU ac_path_GREP and select it if it is found. 4082 # Check for GNU $ac_path_GREP 4083 case `"$ac_path_GREP" --version 2>&1` in 4084 *GNU*) 4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4086 *) 4087 ac_count=0 4088 $as_echo_n 0123456789 >"conftest.in" 4089 while : 4090 do 4091 cat "conftest.in" "conftest.in" >"conftest.tmp" 4092 mv "conftest.tmp" "conftest.in" 4093 cp "conftest.in" "conftest.nl" 4094 $as_echo 'GREP' >> "conftest.nl" 4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4097 as_fn_arith $ac_count + 1 && ac_count=$as_val 4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4099 # Best one so far, save it but keep looking for a better one 4100 ac_cv_path_GREP="$ac_path_GREP" 4101 ac_path_GREP_max=$ac_count 4102 fi 4103 # 10*(2^10) chars as input seems more than enough 4104 test $ac_count -gt 10 && break 4105 done 4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4107 esac 4108 4109 $ac_path_GREP_found && break 3 4110 done 4111 done 4112 done 4113 IFS=$as_save_IFS 4114 if test -z "$ac_cv_path_GREP"; then 4115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4116 fi 4117 else 4118 ac_cv_path_GREP=$GREP 4119 fi 4120 4121 fi 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4123 $as_echo "$ac_cv_path_GREP" >&6; } 4124 GREP="$ac_cv_path_GREP" 4125 4126 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4128 $as_echo_n "checking for egrep... " >&6; } 4129 if ${ac_cv_path_EGREP+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131 else 4132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4133 then ac_cv_path_EGREP="$GREP -E" 4134 else 4135 if test -z "$EGREP"; then 4136 ac_path_EGREP_found=false 4137 # Loop through the user's path and test for each of PROGNAME-LIST 4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4140 do 4141 IFS=$as_save_IFS 4142 test -z "$as_dir" && as_dir=. 4143 for ac_prog in egrep; do 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4146 as_fn_executable_p "$ac_path_EGREP" || continue 4147 # Check for GNU ac_path_EGREP and select it if it is found. 4148 # Check for GNU $ac_path_EGREP 4149 case `"$ac_path_EGREP" --version 2>&1` in 4150 *GNU*) 4151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4152 *) 4153 ac_count=0 4154 $as_echo_n 0123456789 >"conftest.in" 4155 while : 4156 do 4157 cat "conftest.in" "conftest.in" >"conftest.tmp" 4158 mv "conftest.tmp" "conftest.in" 4159 cp "conftest.in" "conftest.nl" 4160 $as_echo 'EGREP' >> "conftest.nl" 4161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4163 as_fn_arith $ac_count + 1 && ac_count=$as_val 4164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4165 # Best one so far, save it but keep looking for a better one 4166 ac_cv_path_EGREP="$ac_path_EGREP" 4167 ac_path_EGREP_max=$ac_count 4168 fi 4169 # 10*(2^10) chars as input seems more than enough 4170 test $ac_count -gt 10 && break 4171 done 4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4173 esac 4174 4175 $ac_path_EGREP_found && break 3 4176 done 4177 done 4178 done 4179 IFS=$as_save_IFS 4180 if test -z "$ac_cv_path_EGREP"; then 4181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4182 fi 4183 else 4184 ac_cv_path_EGREP=$EGREP 4185 fi 4186 4187 fi 4188 fi 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4190 $as_echo "$ac_cv_path_EGREP" >&6; } 4191 EGREP="$ac_cv_path_EGREP" 4192 4193 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4195 $as_echo_n "checking for ANSI C header files... " >&6; } 4196 if ${ac_cv_header_stdc+:} false; then : 4197 $as_echo_n "(cached) " >&6 4198 else 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200 /* end confdefs.h. */ 4201 #include <stdlib.h> 4202 #include <stdarg.h> 4203 #include <string.h> 4204 #include <float.h> 4205 4206 int 4207 main () 4208 { 4209 4210 ; 4211 return 0; 4212 } 4213 _ACEOF 4214 if ac_fn_c_try_compile "$LINENO"; then : 4215 ac_cv_header_stdc=yes 4216 else 4217 ac_cv_header_stdc=no 4218 fi 4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4220 4221 if test $ac_cv_header_stdc = yes; then 4222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224 /* end confdefs.h. */ 4225 #include <string.h> 4226 4227 _ACEOF 4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4229 $EGREP "memchr" >/dev/null 2>&1; then : 4230 4231 else 4232 ac_cv_header_stdc=no 4233 fi 4234 rm -f conftest* 4235 4236 fi 4237 4238 if test $ac_cv_header_stdc = yes; then 4239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241 /* end confdefs.h. */ 4242 #include <stdlib.h> 4243 4244 _ACEOF 4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4246 $EGREP "free" >/dev/null 2>&1; then : 4247 4248 else 4249 ac_cv_header_stdc=no 4250 fi 4251 rm -f conftest* 4252 4253 fi 4254 4255 if test $ac_cv_header_stdc = yes; then 4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4257 if test "$cross_compiling" = yes; then : 4258 : 4259 else 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261 /* end confdefs.h. */ 4262 #include <ctype.h> 4263 #include <stdlib.h> 4264 #if ((' ' & 0x0FF) == 0x020) 4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4267 #else 4268 # define ISLOWER(c) \ 4269 (('a' <= (c) && (c) <= 'i') \ 4270 || ('j' <= (c) && (c) <= 'r') \ 4271 || ('s' <= (c) && (c) <= 'z')) 4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4273 #endif 4274 4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4276 int 4277 main () 4278 { 4279 int i; 4280 for (i = 0; i < 256; i++) 4281 if (XOR (islower (i), ISLOWER (i)) 4282 || toupper (i) != TOUPPER (i)) 4283 return 2; 4284 return 0; 4285 } 4286 _ACEOF 4287 if ac_fn_c_try_run "$LINENO"; then : 4288 4289 else 4290 ac_cv_header_stdc=no 4291 fi 4292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4293 conftest.$ac_objext conftest.beam conftest.$ac_ext 4294 fi 4295 4296 fi 4297 fi 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4299 $as_echo "$ac_cv_header_stdc" >&6; } 4300 if test $ac_cv_header_stdc = yes; then 4301 4302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4303 4304 fi 4305 4306 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4308 inttypes.h stdint.h unistd.h 4309 do : 4310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4312 " 4313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4314 cat >>confdefs.h <<_ACEOF 4315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4316 _ACEOF 4317 4318 fi 4319 4320 done 4321 4322 4323 4324 4325 4326 4327 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4328 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4329 CLANGCC="yes" 4330 else 4331 CLANGCC="no" 4332 fi 4333 4334 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4335 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4336 INTELCC="yes" 4337 else 4338 INTELCC="no" 4339 fi 4340 4341 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4342 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4343 SUNCC="yes" 4344 else 4345 SUNCC="no" 4346 fi 4347 4348 4349 4350 4351 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4352 if test -n "$ac_tool_prefix"; then 4353 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4354 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4356 $as_echo_n "checking for $ac_word... " >&6; } 4357 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359 else 4360 case $PKG_CONFIG in 4361 [\\/]* | ?:[\\/]*) 4362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4363 ;; 4364 *) 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366 for as_dir in $PATH 4367 do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376 done 4377 done 4378 IFS=$as_save_IFS 4379 4380 ;; 4381 esac 4382 fi 4383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4384 if test -n "$PKG_CONFIG"; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4386 $as_echo "$PKG_CONFIG" >&6; } 4387 else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4389 $as_echo "no" >&6; } 4390 fi 4391 4392 4393 fi 4394 if test -z "$ac_cv_path_PKG_CONFIG"; then 4395 ac_pt_PKG_CONFIG=$PKG_CONFIG 4396 # Extract the first word of "pkg-config", so it can be a program name with args. 4397 set dummy pkg-config; ac_word=$2 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399 $as_echo_n "checking for $ac_word... " >&6; } 4400 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402 else 4403 case $ac_pt_PKG_CONFIG in 4404 [\\/]* | ?:[\\/]*) 4405 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4406 ;; 4407 *) 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409 for as_dir in $PATH 4410 do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4415 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4417 break 2 4418 fi 4419 done 4420 done 4421 IFS=$as_save_IFS 4422 4423 ;; 4424 esac 4425 fi 4426 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4427 if test -n "$ac_pt_PKG_CONFIG"; then 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4429 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4430 else 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4432 $as_echo "no" >&6; } 4433 fi 4434 4435 if test "x$ac_pt_PKG_CONFIG" = x; then 4436 PKG_CONFIG="" 4437 else 4438 case $cross_compiling:$ac_tool_warned in 4439 yes:) 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4442 ac_tool_warned=yes ;; 4443 esac 4444 PKG_CONFIG=$ac_pt_PKG_CONFIG 4445 fi 4446 else 4447 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4448 fi 4449 4450 fi 4451 if test -n "$PKG_CONFIG"; then 4452 _pkg_min_version=0.9.0 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4454 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4455 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4457 $as_echo "yes" >&6; } 4458 else 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4460 $as_echo "no" >&6; } 4461 PKG_CONFIG="" 4462 fi 4463 4464 fi 4465 # Make sure we can run config.sub. 4466 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4467 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4468 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4470 $as_echo_n "checking build system type... " >&6; } 4471 if ${ac_cv_build+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473 else 4474 ac_build_alias=$build_alias 4475 test "x$ac_build_alias" = x && 4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4477 test "x$ac_build_alias" = x && 4478 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4479 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4481 4482 fi 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4484 $as_echo "$ac_cv_build" >&6; } 4485 case $ac_cv_build in 4486 *-*-*) ;; 4487 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4488 esac 4489 build=$ac_cv_build 4490 ac_save_IFS=$IFS; IFS='-' 4491 set x $ac_cv_build 4492 shift 4493 build_cpu=$1 4494 build_vendor=$2 4495 shift; shift 4496 # Remember, the first character of IFS is used to create $*, 4497 # except with old shells: 4498 build_os=$* 4499 IFS=$ac_save_IFS 4500 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4501 4502 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4504 $as_echo_n "checking host system type... " >&6; } 4505 if ${ac_cv_host+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507 else 4508 if test "x$host_alias" = x; then 4509 ac_cv_host=$ac_cv_build 4510 else 4511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4513 fi 4514 4515 fi 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4517 $as_echo "$ac_cv_host" >&6; } 4518 case $ac_cv_host in 4519 *-*-*) ;; 4520 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4521 esac 4522 host=$ac_cv_host 4523 ac_save_IFS=$IFS; IFS='-' 4524 set x $ac_cv_host 4525 shift 4526 host_cpu=$1 4527 host_vendor=$2 4528 shift; shift 4529 # Remember, the first character of IFS is used to create $*, 4530 # except with old shells: 4531 host_os=$* 4532 IFS=$ac_save_IFS 4533 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4534 4535 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4537 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4538 if ${ac_cv_path_SED+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540 else 4541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4542 for ac_i in 1 2 3 4 5 6 7; do 4543 ac_script="$ac_script$as_nl$ac_script" 4544 done 4545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4546 { ac_script=; unset ac_script;} 4547 if test -z "$SED"; then 4548 ac_path_SED_found=false 4549 # Loop through the user's path and test for each of PROGNAME-LIST 4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551 for as_dir in $PATH 4552 do 4553 IFS=$as_save_IFS 4554 test -z "$as_dir" && as_dir=. 4555 for ac_prog in sed gsed; do 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4558 as_fn_executable_p "$ac_path_SED" || continue 4559 # Check for GNU ac_path_SED and select it if it is found. 4560 # Check for GNU $ac_path_SED 4561 case `"$ac_path_SED" --version 2>&1` in 4562 *GNU*) 4563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4564 *) 4565 ac_count=0 4566 $as_echo_n 0123456789 >"conftest.in" 4567 while : 4568 do 4569 cat "conftest.in" "conftest.in" >"conftest.tmp" 4570 mv "conftest.tmp" "conftest.in" 4571 cp "conftest.in" "conftest.nl" 4572 $as_echo '' >> "conftest.nl" 4573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4575 as_fn_arith $ac_count + 1 && ac_count=$as_val 4576 if test $ac_count -gt ${ac_path_SED_max-0}; then 4577 # Best one so far, save it but keep looking for a better one 4578 ac_cv_path_SED="$ac_path_SED" 4579 ac_path_SED_max=$ac_count 4580 fi 4581 # 10*(2^10) chars as input seems more than enough 4582 test $ac_count -gt 10 && break 4583 done 4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4585 esac 4586 4587 $ac_path_SED_found && break 3 4588 done 4589 done 4590 done 4591 IFS=$as_save_IFS 4592 if test -z "$ac_cv_path_SED"; then 4593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4594 fi 4595 else 4596 ac_cv_path_SED=$SED 4597 fi 4598 4599 fi 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4601 $as_echo "$ac_cv_path_SED" >&6; } 4602 SED="$ac_cv_path_SED" 4603 rm -f conftest.sed 4604 4605 4606 4607 4608 4609 4610 # Check whether --enable-selective-werror was given. 4611 if test "${enable_selective_werror+set}" = set; then : 4612 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4613 else 4614 SELECTIVE_WERROR=yes 4615 fi 4616 4617 4618 4619 4620 4621 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4622 if test "x$SUNCC" = "xyes"; then 4623 BASE_CFLAGS="-v" 4624 else 4625 BASE_CFLAGS="" 4626 fi 4627 4628 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 xorg_testset_save_CFLAGS="$CFLAGS" 4643 4644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650 else 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652 /* end confdefs.h. */ 4653 int i; 4654 _ACEOF 4655 if ac_fn_c_try_compile "$LINENO"; then : 4656 xorg_cv_cc_flag_unknown_warning_option=yes 4657 else 4658 xorg_cv_cc_flag_unknown_warning_option=no 4659 fi 4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4661 fi 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4665 CFLAGS="$xorg_testset_save_CFLAGS" 4666 fi 4667 4668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4671 fi 4672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4676 $as_echo_n "(cached) " >&6 4677 else 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679 /* end confdefs.h. */ 4680 int i; 4681 _ACEOF 4682 if ac_fn_c_try_compile "$LINENO"; then : 4683 xorg_cv_cc_flag_unused_command_line_argument=yes 4684 else 4685 xorg_cv_cc_flag_unused_command_line_argument=no 4686 fi 4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4688 fi 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4692 CFLAGS="$xorg_testset_save_CFLAGS" 4693 fi 4694 4695 found="no" 4696 4697 if test $found = "no" ; then 4698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4700 fi 4701 4702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4704 fi 4705 4706 CFLAGS="$CFLAGS -Wall" 4707 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4709 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4710 cacheid=xorg_cv_cc_flag__Wall 4711 if eval \${$cacheid+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713 else 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715 /* end confdefs.h. */ 4716 int i; 4717 int 4718 main () 4719 { 4720 4721 ; 4722 return 0; 4723 } 4724 _ACEOF 4725 if ac_fn_c_try_link "$LINENO"; then : 4726 eval $cacheid=yes 4727 else 4728 eval $cacheid=no 4729 fi 4730 rm -f core conftest.err conftest.$ac_objext \ 4731 conftest$ac_exeext conftest.$ac_ext 4732 fi 4733 4734 4735 CFLAGS="$xorg_testset_save_CFLAGS" 4736 4737 eval supported=\$$cacheid 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4739 $as_echo "$supported" >&6; } 4740 if test "$supported" = "yes" ; then 4741 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4742 found="yes" 4743 fi 4744 fi 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 xorg_testset_save_CFLAGS="$CFLAGS" 4761 4762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768 else 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770 /* end confdefs.h. */ 4771 int i; 4772 _ACEOF 4773 if ac_fn_c_try_compile "$LINENO"; then : 4774 xorg_cv_cc_flag_unknown_warning_option=yes 4775 else 4776 xorg_cv_cc_flag_unknown_warning_option=no 4777 fi 4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4779 fi 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4783 CFLAGS="$xorg_testset_save_CFLAGS" 4784 fi 4785 4786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789 fi 4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795 else 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797 /* end confdefs.h. */ 4798 int i; 4799 _ACEOF 4800 if ac_fn_c_try_compile "$LINENO"; then : 4801 xorg_cv_cc_flag_unused_command_line_argument=yes 4802 else 4803 xorg_cv_cc_flag_unused_command_line_argument=no 4804 fi 4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806 fi 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4810 CFLAGS="$xorg_testset_save_CFLAGS" 4811 fi 4812 4813 found="no" 4814 4815 if test $found = "no" ; then 4816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4818 fi 4819 4820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4822 fi 4823 4824 CFLAGS="$CFLAGS -Wpointer-arith" 4825 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4827 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4828 cacheid=xorg_cv_cc_flag__Wpointer_arith 4829 if eval \${$cacheid+:} false; then : 4830 $as_echo_n "(cached) " >&6 4831 else 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833 /* end confdefs.h. */ 4834 int i; 4835 int 4836 main () 4837 { 4838 4839 ; 4840 return 0; 4841 } 4842 _ACEOF 4843 if ac_fn_c_try_link "$LINENO"; then : 4844 eval $cacheid=yes 4845 else 4846 eval $cacheid=no 4847 fi 4848 rm -f core conftest.err conftest.$ac_objext \ 4849 conftest$ac_exeext conftest.$ac_ext 4850 fi 4851 4852 4853 CFLAGS="$xorg_testset_save_CFLAGS" 4854 4855 eval supported=\$$cacheid 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4857 $as_echo "$supported" >&6; } 4858 if test "$supported" = "yes" ; then 4859 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4860 found="yes" 4861 fi 4862 fi 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 xorg_testset_save_CFLAGS="$CFLAGS" 4879 4880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886 else 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888 /* end confdefs.h. */ 4889 int i; 4890 _ACEOF 4891 if ac_fn_c_try_compile "$LINENO"; then : 4892 xorg_cv_cc_flag_unknown_warning_option=yes 4893 else 4894 xorg_cv_cc_flag_unknown_warning_option=no 4895 fi 4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897 fi 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4901 CFLAGS="$xorg_testset_save_CFLAGS" 4902 fi 4903 4904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907 fi 4908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4912 $as_echo_n "(cached) " >&6 4913 else 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915 /* end confdefs.h. */ 4916 int i; 4917 _ACEOF 4918 if ac_fn_c_try_compile "$LINENO"; then : 4919 xorg_cv_cc_flag_unused_command_line_argument=yes 4920 else 4921 xorg_cv_cc_flag_unused_command_line_argument=no 4922 fi 4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924 fi 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4928 CFLAGS="$xorg_testset_save_CFLAGS" 4929 fi 4930 4931 found="no" 4932 4933 if test $found = "no" ; then 4934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4936 fi 4937 4938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4940 fi 4941 4942 CFLAGS="$CFLAGS -Wmissing-declarations" 4943 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4945 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4946 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4947 if eval \${$cacheid+:} false; then : 4948 $as_echo_n "(cached) " >&6 4949 else 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951 /* end confdefs.h. */ 4952 int i; 4953 int 4954 main () 4955 { 4956 4957 ; 4958 return 0; 4959 } 4960 _ACEOF 4961 if ac_fn_c_try_link "$LINENO"; then : 4962 eval $cacheid=yes 4963 else 4964 eval $cacheid=no 4965 fi 4966 rm -f core conftest.err conftest.$ac_objext \ 4967 conftest$ac_exeext conftest.$ac_ext 4968 fi 4969 4970 4971 CFLAGS="$xorg_testset_save_CFLAGS" 4972 4973 eval supported=\$$cacheid 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4975 $as_echo "$supported" >&6; } 4976 if test "$supported" = "yes" ; then 4977 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4978 found="yes" 4979 fi 4980 fi 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 xorg_testset_save_CFLAGS="$CFLAGS" 4997 4998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004 else 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006 /* end confdefs.h. */ 5007 int i; 5008 _ACEOF 5009 if ac_fn_c_try_compile "$LINENO"; then : 5010 xorg_cv_cc_flag_unknown_warning_option=yes 5011 else 5012 xorg_cv_cc_flag_unknown_warning_option=no 5013 fi 5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015 fi 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5019 CFLAGS="$xorg_testset_save_CFLAGS" 5020 fi 5021 5022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031 else 5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033 /* end confdefs.h. */ 5034 int i; 5035 _ACEOF 5036 if ac_fn_c_try_compile "$LINENO"; then : 5037 xorg_cv_cc_flag_unused_command_line_argument=yes 5038 else 5039 xorg_cv_cc_flag_unused_command_line_argument=no 5040 fi 5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5042 fi 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5046 CFLAGS="$xorg_testset_save_CFLAGS" 5047 fi 5048 5049 found="no" 5050 5051 if test $found = "no" ; then 5052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 fi 5055 5056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5058 fi 5059 5060 CFLAGS="$CFLAGS -Wformat=2" 5061 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5063 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5064 cacheid=xorg_cv_cc_flag__Wformat_2 5065 if eval \${$cacheid+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067 else 5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5069 /* end confdefs.h. */ 5070 int i; 5071 int 5072 main () 5073 { 5074 5075 ; 5076 return 0; 5077 } 5078 _ACEOF 5079 if ac_fn_c_try_link "$LINENO"; then : 5080 eval $cacheid=yes 5081 else 5082 eval $cacheid=no 5083 fi 5084 rm -f core conftest.err conftest.$ac_objext \ 5085 conftest$ac_exeext conftest.$ac_ext 5086 fi 5087 5088 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090 5091 eval supported=\$$cacheid 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5093 $as_echo "$supported" >&6; } 5094 if test "$supported" = "yes" ; then 5095 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5096 found="yes" 5097 fi 5098 fi 5099 5100 if test $found = "no" ; then 5101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5103 fi 5104 5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5107 fi 5108 5109 CFLAGS="$CFLAGS -Wformat" 5110 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5112 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5113 cacheid=xorg_cv_cc_flag__Wformat 5114 if eval \${$cacheid+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116 else 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118 /* end confdefs.h. */ 5119 int i; 5120 int 5121 main () 5122 { 5123 5124 ; 5125 return 0; 5126 } 5127 _ACEOF 5128 if ac_fn_c_try_link "$LINENO"; then : 5129 eval $cacheid=yes 5130 else 5131 eval $cacheid=no 5132 fi 5133 rm -f core conftest.err conftest.$ac_objext \ 5134 conftest$ac_exeext conftest.$ac_ext 5135 fi 5136 5137 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139 5140 eval supported=\$$cacheid 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5142 $as_echo "$supported" >&6; } 5143 if test "$supported" = "yes" ; then 5144 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5145 found="yes" 5146 fi 5147 fi 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 xorg_testset_save_CFLAGS="$CFLAGS" 5166 5167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173 else 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175 /* end confdefs.h. */ 5176 int i; 5177 _ACEOF 5178 if ac_fn_c_try_compile "$LINENO"; then : 5179 xorg_cv_cc_flag_unknown_warning_option=yes 5180 else 5181 xorg_cv_cc_flag_unknown_warning_option=no 5182 fi 5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184 fi 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189 fi 5190 5191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200 else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202 /* end confdefs.h. */ 5203 int i; 5204 _ACEOF 5205 if ac_fn_c_try_compile "$LINENO"; then : 5206 xorg_cv_cc_flag_unused_command_line_argument=yes 5207 else 5208 xorg_cv_cc_flag_unused_command_line_argument=no 5209 fi 5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211 fi 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5215 CFLAGS="$xorg_testset_save_CFLAGS" 5216 fi 5217 5218 found="no" 5219 5220 if test $found = "no" ; then 5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 fi 5224 5225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5227 fi 5228 5229 CFLAGS="$CFLAGS -Wstrict-prototypes" 5230 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5232 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5233 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5234 if eval \${$cacheid+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236 else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238 /* end confdefs.h. */ 5239 int i; 5240 int 5241 main () 5242 { 5243 5244 ; 5245 return 0; 5246 } 5247 _ACEOF 5248 if ac_fn_c_try_link "$LINENO"; then : 5249 eval $cacheid=yes 5250 else 5251 eval $cacheid=no 5252 fi 5253 rm -f core conftest.err conftest.$ac_objext \ 5254 conftest$ac_exeext conftest.$ac_ext 5255 fi 5256 5257 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259 5260 eval supported=\$$cacheid 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5262 $as_echo "$supported" >&6; } 5263 if test "$supported" = "yes" ; then 5264 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5265 found="yes" 5266 fi 5267 fi 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 xorg_testset_save_CFLAGS="$CFLAGS" 5284 5285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291 else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293 /* end confdefs.h. */ 5294 int i; 5295 _ACEOF 5296 if ac_fn_c_try_compile "$LINENO"; then : 5297 xorg_cv_cc_flag_unknown_warning_option=yes 5298 else 5299 xorg_cv_cc_flag_unknown_warning_option=no 5300 fi 5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5302 fi 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307 fi 5308 5309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318 else 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320 /* end confdefs.h. */ 5321 int i; 5322 _ACEOF 5323 if ac_fn_c_try_compile "$LINENO"; then : 5324 xorg_cv_cc_flag_unused_command_line_argument=yes 5325 else 5326 xorg_cv_cc_flag_unused_command_line_argument=no 5327 fi 5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5329 fi 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334 fi 5335 5336 found="no" 5337 5338 if test $found = "no" ; then 5339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341 fi 5342 5343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 fi 5346 5347 CFLAGS="$CFLAGS -Wmissing-prototypes" 5348 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5350 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5351 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5352 if eval \${$cacheid+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354 else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356 /* end confdefs.h. */ 5357 int i; 5358 int 5359 main () 5360 { 5361 5362 ; 5363 return 0; 5364 } 5365 _ACEOF 5366 if ac_fn_c_try_link "$LINENO"; then : 5367 eval $cacheid=yes 5368 else 5369 eval $cacheid=no 5370 fi 5371 rm -f core conftest.err conftest.$ac_objext \ 5372 conftest$ac_exeext conftest.$ac_ext 5373 fi 5374 5375 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377 5378 eval supported=\$$cacheid 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380 $as_echo "$supported" >&6; } 5381 if test "$supported" = "yes" ; then 5382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5383 found="yes" 5384 fi 5385 fi 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 xorg_testset_save_CFLAGS="$CFLAGS" 5402 5403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409 else 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411 /* end confdefs.h. */ 5412 int i; 5413 _ACEOF 5414 if ac_fn_c_try_compile "$LINENO"; then : 5415 xorg_cv_cc_flag_unknown_warning_option=yes 5416 else 5417 xorg_cv_cc_flag_unknown_warning_option=no 5418 fi 5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5420 fi 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5424 CFLAGS="$xorg_testset_save_CFLAGS" 5425 fi 5426 5427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 fi 5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436 else 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438 /* end confdefs.h. */ 5439 int i; 5440 _ACEOF 5441 if ac_fn_c_try_compile "$LINENO"; then : 5442 xorg_cv_cc_flag_unused_command_line_argument=yes 5443 else 5444 xorg_cv_cc_flag_unused_command_line_argument=no 5445 fi 5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447 fi 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5451 CFLAGS="$xorg_testset_save_CFLAGS" 5452 fi 5453 5454 found="no" 5455 5456 if test $found = "no" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 fi 5464 5465 CFLAGS="$CFLAGS -Wnested-externs" 5466 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5468 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5469 cacheid=xorg_cv_cc_flag__Wnested_externs 5470 if eval \${$cacheid+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472 else 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474 /* end confdefs.h. */ 5475 int i; 5476 int 5477 main () 5478 { 5479 5480 ; 5481 return 0; 5482 } 5483 _ACEOF 5484 if ac_fn_c_try_link "$LINENO"; then : 5485 eval $cacheid=yes 5486 else 5487 eval $cacheid=no 5488 fi 5489 rm -f core conftest.err conftest.$ac_objext \ 5490 conftest$ac_exeext conftest.$ac_ext 5491 fi 5492 5493 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495 5496 eval supported=\$$cacheid 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5498 $as_echo "$supported" >&6; } 5499 if test "$supported" = "yes" ; then 5500 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5501 found="yes" 5502 fi 5503 fi 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 xorg_testset_save_CFLAGS="$CFLAGS" 5520 5521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527 else 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529 /* end confdefs.h. */ 5530 int i; 5531 _ACEOF 5532 if ac_fn_c_try_compile "$LINENO"; then : 5533 xorg_cv_cc_flag_unknown_warning_option=yes 5534 else 5535 xorg_cv_cc_flag_unknown_warning_option=no 5536 fi 5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538 fi 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5542 CFLAGS="$xorg_testset_save_CFLAGS" 5543 fi 5544 5545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554 else 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556 /* end confdefs.h. */ 5557 int i; 5558 _ACEOF 5559 if ac_fn_c_try_compile "$LINENO"; then : 5560 xorg_cv_cc_flag_unused_command_line_argument=yes 5561 else 5562 xorg_cv_cc_flag_unused_command_line_argument=no 5563 fi 5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5565 fi 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570 fi 5571 5572 found="no" 5573 5574 if test $found = "no" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 fi 5582 5583 CFLAGS="$CFLAGS -Wbad-function-cast" 5584 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5586 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5587 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5588 if eval \${$cacheid+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590 else 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592 /* end confdefs.h. */ 5593 int i; 5594 int 5595 main () 5596 { 5597 5598 ; 5599 return 0; 5600 } 5601 _ACEOF 5602 if ac_fn_c_try_link "$LINENO"; then : 5603 eval $cacheid=yes 5604 else 5605 eval $cacheid=no 5606 fi 5607 rm -f core conftest.err conftest.$ac_objext \ 5608 conftest$ac_exeext conftest.$ac_ext 5609 fi 5610 5611 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613 5614 eval supported=\$$cacheid 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5616 $as_echo "$supported" >&6; } 5617 if test "$supported" = "yes" ; then 5618 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5619 found="yes" 5620 fi 5621 fi 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 xorg_testset_save_CFLAGS="$CFLAGS" 5638 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645 else 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647 /* end confdefs.h. */ 5648 int i; 5649 _ACEOF 5650 if ac_fn_c_try_compile "$LINENO"; then : 5651 xorg_cv_cc_flag_unknown_warning_option=yes 5652 else 5653 xorg_cv_cc_flag_unknown_warning_option=no 5654 fi 5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5656 fi 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5660 CFLAGS="$xorg_testset_save_CFLAGS" 5661 fi 5662 5663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666 fi 5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5671 $as_echo_n "(cached) " >&6 5672 else 5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674 /* end confdefs.h. */ 5675 int i; 5676 _ACEOF 5677 if ac_fn_c_try_compile "$LINENO"; then : 5678 xorg_cv_cc_flag_unused_command_line_argument=yes 5679 else 5680 xorg_cv_cc_flag_unused_command_line_argument=no 5681 fi 5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683 fi 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5687 CFLAGS="$xorg_testset_save_CFLAGS" 5688 fi 5689 5690 found="no" 5691 5692 if test $found = "no" ; then 5693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5695 fi 5696 5697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5699 fi 5700 5701 CFLAGS="$CFLAGS -Wold-style-definition" 5702 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5704 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5705 cacheid=xorg_cv_cc_flag__Wold_style_definition 5706 if eval \${$cacheid+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708 else 5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5710 /* end confdefs.h. */ 5711 int i; 5712 int 5713 main () 5714 { 5715 5716 ; 5717 return 0; 5718 } 5719 _ACEOF 5720 if ac_fn_c_try_link "$LINENO"; then : 5721 eval $cacheid=yes 5722 else 5723 eval $cacheid=no 5724 fi 5725 rm -f core conftest.err conftest.$ac_objext \ 5726 conftest$ac_exeext conftest.$ac_ext 5727 fi 5728 5729 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731 5732 eval supported=\$$cacheid 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5734 $as_echo "$supported" >&6; } 5735 if test "$supported" = "yes" ; then 5736 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5737 found="yes" 5738 fi 5739 fi 5740 5741 if test $found = "no" ; then 5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744 fi 5745 5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5748 fi 5749 5750 CFLAGS="$CFLAGS -fd" 5751 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5753 $as_echo_n "checking if $CC supports -fd... " >&6; } 5754 cacheid=xorg_cv_cc_flag__fd 5755 if eval \${$cacheid+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757 else 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759 /* end confdefs.h. */ 5760 int i; 5761 int 5762 main () 5763 { 5764 5765 ; 5766 return 0; 5767 } 5768 _ACEOF 5769 if ac_fn_c_try_link "$LINENO"; then : 5770 eval $cacheid=yes 5771 else 5772 eval $cacheid=no 5773 fi 5774 rm -f core conftest.err conftest.$ac_objext \ 5775 conftest$ac_exeext conftest.$ac_ext 5776 fi 5777 5778 5779 CFLAGS="$xorg_testset_save_CFLAGS" 5780 5781 eval supported=\$$cacheid 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5783 $as_echo "$supported" >&6; } 5784 if test "$supported" = "yes" ; then 5785 BASE_CFLAGS="$BASE_CFLAGS -fd" 5786 found="yes" 5787 fi 5788 fi 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 xorg_testset_save_CFLAGS="$CFLAGS" 5805 5806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812 else 5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814 /* end confdefs.h. */ 5815 int i; 5816 _ACEOF 5817 if ac_fn_c_try_compile "$LINENO"; then : 5818 xorg_cv_cc_flag_unknown_warning_option=yes 5819 else 5820 xorg_cv_cc_flag_unknown_warning_option=no 5821 fi 5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5827 CFLAGS="$xorg_testset_save_CFLAGS" 5828 fi 5829 5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 fi 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839 else 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841 /* end confdefs.h. */ 5842 int i; 5843 _ACEOF 5844 if ac_fn_c_try_compile "$LINENO"; then : 5845 xorg_cv_cc_flag_unused_command_line_argument=yes 5846 else 5847 xorg_cv_cc_flag_unused_command_line_argument=no 5848 fi 5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850 fi 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5854 CFLAGS="$xorg_testset_save_CFLAGS" 5855 fi 5856 5857 found="no" 5858 5859 if test $found = "no" ; then 5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 fi 5863 5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5866 fi 5867 5868 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5869 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5871 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5872 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5873 if eval \${$cacheid+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875 else 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5877 /* end confdefs.h. */ 5878 int i; 5879 int 5880 main () 5881 { 5882 5883 ; 5884 return 0; 5885 } 5886 _ACEOF 5887 if ac_fn_c_try_link "$LINENO"; then : 5888 eval $cacheid=yes 5889 else 5890 eval $cacheid=no 5891 fi 5892 rm -f core conftest.err conftest.$ac_objext \ 5893 conftest$ac_exeext conftest.$ac_ext 5894 fi 5895 5896 5897 CFLAGS="$xorg_testset_save_CFLAGS" 5898 5899 eval supported=\$$cacheid 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5901 $as_echo "$supported" >&6; } 5902 if test "$supported" = "yes" ; then 5903 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5904 found="yes" 5905 fi 5906 fi 5907 5908 5909 5910 5911 5912 # This chunk adds additional warnings that could catch undesired effects. 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 xorg_testset_save_CFLAGS="$CFLAGS" 5927 5928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5931 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5932 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934 else 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936 /* end confdefs.h. */ 5937 int i; 5938 _ACEOF 5939 if ac_fn_c_try_compile "$LINENO"; then : 5940 xorg_cv_cc_flag_unknown_warning_option=yes 5941 else 5942 xorg_cv_cc_flag_unknown_warning_option=no 5943 fi 5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5945 fi 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5947 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5949 CFLAGS="$xorg_testset_save_CFLAGS" 5950 fi 5951 5952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 fi 5956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5958 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5959 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961 else 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963 /* end confdefs.h. */ 5964 int i; 5965 _ACEOF 5966 if ac_fn_c_try_compile "$LINENO"; then : 5967 xorg_cv_cc_flag_unused_command_line_argument=yes 5968 else 5969 xorg_cv_cc_flag_unused_command_line_argument=no 5970 fi 5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5972 fi 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5974 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5976 CFLAGS="$xorg_testset_save_CFLAGS" 5977 fi 5978 5979 found="no" 5980 5981 if test $found = "no" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 fi 5989 5990 CFLAGS="$CFLAGS -Wunused" 5991 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5993 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 5994 cacheid=xorg_cv_cc_flag__Wunused 5995 if eval \${$cacheid+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997 else 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999 /* end confdefs.h. */ 6000 int i; 6001 int 6002 main () 6003 { 6004 6005 ; 6006 return 0; 6007 } 6008 _ACEOF 6009 if ac_fn_c_try_link "$LINENO"; then : 6010 eval $cacheid=yes 6011 else 6012 eval $cacheid=no 6013 fi 6014 rm -f core conftest.err conftest.$ac_objext \ 6015 conftest$ac_exeext conftest.$ac_ext 6016 fi 6017 6018 6019 CFLAGS="$xorg_testset_save_CFLAGS" 6020 6021 eval supported=\$$cacheid 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6023 $as_echo "$supported" >&6; } 6024 if test "$supported" = "yes" ; then 6025 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6026 found="yes" 6027 fi 6028 fi 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 xorg_testset_save_CFLAGS="$CFLAGS" 6045 6046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052 else 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054 /* end confdefs.h. */ 6055 int i; 6056 _ACEOF 6057 if ac_fn_c_try_compile "$LINENO"; then : 6058 xorg_cv_cc_flag_unknown_warning_option=yes 6059 else 6060 xorg_cv_cc_flag_unknown_warning_option=no 6061 fi 6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6063 fi 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6067 CFLAGS="$xorg_testset_save_CFLAGS" 6068 fi 6069 6070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 fi 6074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079 else 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6081 /* end confdefs.h. */ 6082 int i; 6083 _ACEOF 6084 if ac_fn_c_try_compile "$LINENO"; then : 6085 xorg_cv_cc_flag_unused_command_line_argument=yes 6086 else 6087 xorg_cv_cc_flag_unused_command_line_argument=no 6088 fi 6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6090 fi 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6094 CFLAGS="$xorg_testset_save_CFLAGS" 6095 fi 6096 6097 found="no" 6098 6099 if test $found = "no" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106 fi 6107 6108 CFLAGS="$CFLAGS -Wuninitialized" 6109 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6111 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6112 cacheid=xorg_cv_cc_flag__Wuninitialized 6113 if eval \${$cacheid+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115 else 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117 /* end confdefs.h. */ 6118 int i; 6119 int 6120 main () 6121 { 6122 6123 ; 6124 return 0; 6125 } 6126 _ACEOF 6127 if ac_fn_c_try_link "$LINENO"; then : 6128 eval $cacheid=yes 6129 else 6130 eval $cacheid=no 6131 fi 6132 rm -f core conftest.err conftest.$ac_objext \ 6133 conftest$ac_exeext conftest.$ac_ext 6134 fi 6135 6136 6137 CFLAGS="$xorg_testset_save_CFLAGS" 6138 6139 eval supported=\$$cacheid 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6141 $as_echo "$supported" >&6; } 6142 if test "$supported" = "yes" ; then 6143 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6144 found="yes" 6145 fi 6146 fi 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 xorg_testset_save_CFLAGS="$CFLAGS" 6163 6164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170 else 6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6172 /* end confdefs.h. */ 6173 int i; 6174 _ACEOF 6175 if ac_fn_c_try_compile "$LINENO"; then : 6176 xorg_cv_cc_flag_unknown_warning_option=yes 6177 else 6178 xorg_cv_cc_flag_unknown_warning_option=no 6179 fi 6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6181 fi 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6185 CFLAGS="$xorg_testset_save_CFLAGS" 6186 fi 6187 6188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 fi 6192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197 else 6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6199 /* end confdefs.h. */ 6200 int i; 6201 _ACEOF 6202 if ac_fn_c_try_compile "$LINENO"; then : 6203 xorg_cv_cc_flag_unused_command_line_argument=yes 6204 else 6205 xorg_cv_cc_flag_unused_command_line_argument=no 6206 fi 6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6208 fi 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213 fi 6214 6215 found="no" 6216 6217 if test $found = "no" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6224 fi 6225 6226 CFLAGS="$CFLAGS -Wshadow" 6227 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6229 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6230 cacheid=xorg_cv_cc_flag__Wshadow 6231 if eval \${$cacheid+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233 else 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235 /* end confdefs.h. */ 6236 int i; 6237 int 6238 main () 6239 { 6240 6241 ; 6242 return 0; 6243 } 6244 _ACEOF 6245 if ac_fn_c_try_link "$LINENO"; then : 6246 eval $cacheid=yes 6247 else 6248 eval $cacheid=no 6249 fi 6250 rm -f core conftest.err conftest.$ac_objext \ 6251 conftest$ac_exeext conftest.$ac_ext 6252 fi 6253 6254 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256 6257 eval supported=\$$cacheid 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6259 $as_echo "$supported" >&6; } 6260 if test "$supported" = "yes" ; then 6261 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6262 found="yes" 6263 fi 6264 fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 xorg_testset_save_CFLAGS="$CFLAGS" 6281 6282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6286 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288 else 6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290 /* end confdefs.h. */ 6291 int i; 6292 _ACEOF 6293 if ac_fn_c_try_compile "$LINENO"; then : 6294 xorg_cv_cc_flag_unknown_warning_option=yes 6295 else 6296 xorg_cv_cc_flag_unknown_warning_option=no 6297 fi 6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6299 fi 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6301 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304 fi 6305 6306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6309 fi 6310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6312 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6313 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315 else 6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317 /* end confdefs.h. */ 6318 int i; 6319 _ACEOF 6320 if ac_fn_c_try_compile "$LINENO"; then : 6321 xorg_cv_cc_flag_unused_command_line_argument=yes 6322 else 6323 xorg_cv_cc_flag_unused_command_line_argument=no 6324 fi 6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6326 fi 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6328 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6330 CFLAGS="$xorg_testset_save_CFLAGS" 6331 fi 6332 6333 found="no" 6334 6335 if test $found = "no" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6342 fi 6343 6344 CFLAGS="$CFLAGS -Wmissing-noreturn" 6345 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6347 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6348 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6349 if eval \${$cacheid+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351 else 6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353 /* end confdefs.h. */ 6354 int i; 6355 int 6356 main () 6357 { 6358 6359 ; 6360 return 0; 6361 } 6362 _ACEOF 6363 if ac_fn_c_try_link "$LINENO"; then : 6364 eval $cacheid=yes 6365 else 6366 eval $cacheid=no 6367 fi 6368 rm -f core conftest.err conftest.$ac_objext \ 6369 conftest$ac_exeext conftest.$ac_ext 6370 fi 6371 6372 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374 6375 eval supported=\$$cacheid 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6377 $as_echo "$supported" >&6; } 6378 if test "$supported" = "yes" ; then 6379 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6380 found="yes" 6381 fi 6382 fi 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 xorg_testset_save_CFLAGS="$CFLAGS" 6399 6400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406 else 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408 /* end confdefs.h. */ 6409 int i; 6410 _ACEOF 6411 if ac_fn_c_try_compile "$LINENO"; then : 6412 xorg_cv_cc_flag_unknown_warning_option=yes 6413 else 6414 xorg_cv_cc_flag_unknown_warning_option=no 6415 fi 6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6417 fi 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 fi 6423 6424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433 else 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435 /* end confdefs.h. */ 6436 int i; 6437 _ACEOF 6438 if ac_fn_c_try_compile "$LINENO"; then : 6439 xorg_cv_cc_flag_unused_command_line_argument=yes 6440 else 6441 xorg_cv_cc_flag_unused_command_line_argument=no 6442 fi 6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6444 fi 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6448 CFLAGS="$xorg_testset_save_CFLAGS" 6449 fi 6450 6451 found="no" 6452 6453 if test $found = "no" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6460 fi 6461 6462 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6463 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6465 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6466 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6467 if eval \${$cacheid+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469 else 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471 /* end confdefs.h. */ 6472 int i; 6473 int 6474 main () 6475 { 6476 6477 ; 6478 return 0; 6479 } 6480 _ACEOF 6481 if ac_fn_c_try_link "$LINENO"; then : 6482 eval $cacheid=yes 6483 else 6484 eval $cacheid=no 6485 fi 6486 rm -f core conftest.err conftest.$ac_objext \ 6487 conftest$ac_exeext conftest.$ac_ext 6488 fi 6489 6490 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492 6493 eval supported=\$$cacheid 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6495 $as_echo "$supported" >&6; } 6496 if test "$supported" = "yes" ; then 6497 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6498 found="yes" 6499 fi 6500 fi 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 xorg_testset_save_CFLAGS="$CFLAGS" 6517 6518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524 else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526 /* end confdefs.h. */ 6527 int i; 6528 _ACEOF 6529 if ac_fn_c_try_compile "$LINENO"; then : 6530 xorg_cv_cc_flag_unknown_warning_option=yes 6531 else 6532 xorg_cv_cc_flag_unknown_warning_option=no 6533 fi 6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6535 fi 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 fi 6541 6542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 fi 6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551 else 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553 /* end confdefs.h. */ 6554 int i; 6555 _ACEOF 6556 if ac_fn_c_try_compile "$LINENO"; then : 6557 xorg_cv_cc_flag_unused_command_line_argument=yes 6558 else 6559 xorg_cv_cc_flag_unused_command_line_argument=no 6560 fi 6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6562 fi 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567 fi 6568 6569 found="no" 6570 6571 if test $found = "no" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6578 fi 6579 6580 CFLAGS="$CFLAGS -Wredundant-decls" 6581 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6583 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6584 cacheid=xorg_cv_cc_flag__Wredundant_decls 6585 if eval \${$cacheid+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587 else 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589 /* end confdefs.h. */ 6590 int i; 6591 int 6592 main () 6593 { 6594 6595 ; 6596 return 0; 6597 } 6598 _ACEOF 6599 if ac_fn_c_try_link "$LINENO"; then : 6600 eval $cacheid=yes 6601 else 6602 eval $cacheid=no 6603 fi 6604 rm -f core conftest.err conftest.$ac_objext \ 6605 conftest$ac_exeext conftest.$ac_ext 6606 fi 6607 6608 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610 6611 eval supported=\$$cacheid 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6613 $as_echo "$supported" >&6; } 6614 if test "$supported" = "yes" ; then 6615 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6616 found="yes" 6617 fi 6618 fi 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 xorg_testset_save_CFLAGS="$CFLAGS" 6635 6636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642 else 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644 /* end confdefs.h. */ 6645 int i; 6646 _ACEOF 6647 if ac_fn_c_try_compile "$LINENO"; then : 6648 xorg_cv_cc_flag_unknown_warning_option=yes 6649 else 6650 xorg_cv_cc_flag_unknown_warning_option=no 6651 fi 6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6653 fi 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658 fi 6659 6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669 else 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671 /* end confdefs.h. */ 6672 int i; 6673 _ACEOF 6674 if ac_fn_c_try_compile "$LINENO"; then : 6675 xorg_cv_cc_flag_unused_command_line_argument=yes 6676 else 6677 xorg_cv_cc_flag_unused_command_line_argument=no 6678 fi 6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6680 fi 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685 fi 6686 6687 found="no" 6688 6689 if test $found = "no" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 fi 6697 6698 CFLAGS="$CFLAGS -Wlogical-op" 6699 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6701 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6702 cacheid=xorg_cv_cc_flag__Wlogical_op 6703 if eval \${$cacheid+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705 else 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707 /* end confdefs.h. */ 6708 int i; 6709 int 6710 main () 6711 { 6712 6713 ; 6714 return 0; 6715 } 6716 _ACEOF 6717 if ac_fn_c_try_link "$LINENO"; then : 6718 eval $cacheid=yes 6719 else 6720 eval $cacheid=no 6721 fi 6722 rm -f core conftest.err conftest.$ac_objext \ 6723 conftest$ac_exeext conftest.$ac_ext 6724 fi 6725 6726 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728 6729 eval supported=\$$cacheid 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6731 $as_echo "$supported" >&6; } 6732 if test "$supported" = "yes" ; then 6733 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6734 found="yes" 6735 fi 6736 fi 6737 6738 6739 6740 # These are currently disabled because they are noisy. They will be enabled 6741 # in the future once the codebase is sufficiently modernized to silence 6742 # them. For now, I don't want them to drown out the other warnings. 6743 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6744 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6745 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6746 6747 # Turn some warnings into errors, so we don't accidently get successful builds 6748 # when there are problems that should be fixed. 6749 6750 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 xorg_testset_save_CFLAGS="$CFLAGS" 6765 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772 else 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774 /* end confdefs.h. */ 6775 int i; 6776 _ACEOF 6777 if ac_fn_c_try_compile "$LINENO"; then : 6778 xorg_cv_cc_flag_unknown_warning_option=yes 6779 else 6780 xorg_cv_cc_flag_unknown_warning_option=no 6781 fi 6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6783 fi 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788 fi 6789 6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6793 fi 6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799 else 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801 /* end confdefs.h. */ 6802 int i; 6803 _ACEOF 6804 if ac_fn_c_try_compile "$LINENO"; then : 6805 xorg_cv_cc_flag_unused_command_line_argument=yes 6806 else 6807 xorg_cv_cc_flag_unused_command_line_argument=no 6808 fi 6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810 fi 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815 fi 6816 6817 found="no" 6818 6819 if test $found = "no" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826 fi 6827 6828 CFLAGS="$CFLAGS -Werror=implicit" 6829 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6831 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6832 cacheid=xorg_cv_cc_flag__Werror_implicit 6833 if eval \${$cacheid+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835 else 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837 /* end confdefs.h. */ 6838 int i; 6839 int 6840 main () 6841 { 6842 6843 ; 6844 return 0; 6845 } 6846 _ACEOF 6847 if ac_fn_c_try_link "$LINENO"; then : 6848 eval $cacheid=yes 6849 else 6850 eval $cacheid=no 6851 fi 6852 rm -f core conftest.err conftest.$ac_objext \ 6853 conftest$ac_exeext conftest.$ac_ext 6854 fi 6855 6856 6857 CFLAGS="$xorg_testset_save_CFLAGS" 6858 6859 eval supported=\$$cacheid 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6861 $as_echo "$supported" >&6; } 6862 if test "$supported" = "yes" ; then 6863 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6864 found="yes" 6865 fi 6866 fi 6867 6868 if test $found = "no" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6875 fi 6876 6877 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6878 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6880 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6881 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6882 if eval \${$cacheid+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884 else 6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886 /* end confdefs.h. */ 6887 int i; 6888 int 6889 main () 6890 { 6891 6892 ; 6893 return 0; 6894 } 6895 _ACEOF 6896 if ac_fn_c_try_link "$LINENO"; then : 6897 eval $cacheid=yes 6898 else 6899 eval $cacheid=no 6900 fi 6901 rm -f core conftest.err conftest.$ac_objext \ 6902 conftest$ac_exeext conftest.$ac_ext 6903 fi 6904 6905 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 6908 eval supported=\$$cacheid 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6910 $as_echo "$supported" >&6; } 6911 if test "$supported" = "yes" ; then 6912 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6913 found="yes" 6914 fi 6915 fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 xorg_testset_save_CFLAGS="$CFLAGS" 6932 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939 else 6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6941 /* end confdefs.h. */ 6942 int i; 6943 _ACEOF 6944 if ac_fn_c_try_compile "$LINENO"; then : 6945 xorg_cv_cc_flag_unknown_warning_option=yes 6946 else 6947 xorg_cv_cc_flag_unknown_warning_option=no 6948 fi 6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6950 fi 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6954 CFLAGS="$xorg_testset_save_CFLAGS" 6955 fi 6956 6957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966 else 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968 /* end confdefs.h. */ 6969 int i; 6970 _ACEOF 6971 if ac_fn_c_try_compile "$LINENO"; then : 6972 xorg_cv_cc_flag_unused_command_line_argument=yes 6973 else 6974 xorg_cv_cc_flag_unused_command_line_argument=no 6975 fi 6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6977 fi 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 fi 6983 6984 found="no" 6985 6986 if test $found = "no" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 fi 6994 6995 CFLAGS="$CFLAGS -Werror=nonnull" 6996 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6998 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6999 cacheid=xorg_cv_cc_flag__Werror_nonnull 7000 if eval \${$cacheid+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002 else 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004 /* end confdefs.h. */ 7005 int i; 7006 int 7007 main () 7008 { 7009 7010 ; 7011 return 0; 7012 } 7013 _ACEOF 7014 if ac_fn_c_try_link "$LINENO"; then : 7015 eval $cacheid=yes 7016 else 7017 eval $cacheid=no 7018 fi 7019 rm -f core conftest.err conftest.$ac_objext \ 7020 conftest$ac_exeext conftest.$ac_ext 7021 fi 7022 7023 7024 CFLAGS="$xorg_testset_save_CFLAGS" 7025 7026 eval supported=\$$cacheid 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7028 $as_echo "$supported" >&6; } 7029 if test "$supported" = "yes" ; then 7030 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7031 found="yes" 7032 fi 7033 fi 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 xorg_testset_save_CFLAGS="$CFLAGS" 7050 7051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7056 $as_echo_n "(cached) " >&6 7057 else 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059 /* end confdefs.h. */ 7060 int i; 7061 _ACEOF 7062 if ac_fn_c_try_compile "$LINENO"; then : 7063 xorg_cv_cc_flag_unknown_warning_option=yes 7064 else 7065 xorg_cv_cc_flag_unknown_warning_option=no 7066 fi 7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7068 fi 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073 fi 7074 7075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084 else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086 /* end confdefs.h. */ 7087 int i; 7088 _ACEOF 7089 if ac_fn_c_try_compile "$LINENO"; then : 7090 xorg_cv_cc_flag_unused_command_line_argument=yes 7091 else 7092 xorg_cv_cc_flag_unused_command_line_argument=no 7093 fi 7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7095 fi 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7099 CFLAGS="$xorg_testset_save_CFLAGS" 7100 fi 7101 7102 found="no" 7103 7104 if test $found = "no" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7111 fi 7112 7113 CFLAGS="$CFLAGS -Werror=init-self" 7114 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7116 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7117 cacheid=xorg_cv_cc_flag__Werror_init_self 7118 if eval \${$cacheid+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120 else 7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122 /* end confdefs.h. */ 7123 int i; 7124 int 7125 main () 7126 { 7127 7128 ; 7129 return 0; 7130 } 7131 _ACEOF 7132 if ac_fn_c_try_link "$LINENO"; then : 7133 eval $cacheid=yes 7134 else 7135 eval $cacheid=no 7136 fi 7137 rm -f core conftest.err conftest.$ac_objext \ 7138 conftest$ac_exeext conftest.$ac_ext 7139 fi 7140 7141 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143 7144 eval supported=\$$cacheid 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7146 $as_echo "$supported" >&6; } 7147 if test "$supported" = "yes" ; then 7148 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7149 found="yes" 7150 fi 7151 fi 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 xorg_testset_save_CFLAGS="$CFLAGS" 7168 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175 else 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177 /* end confdefs.h. */ 7178 int i; 7179 _ACEOF 7180 if ac_fn_c_try_compile "$LINENO"; then : 7181 xorg_cv_cc_flag_unknown_warning_option=yes 7182 else 7183 xorg_cv_cc_flag_unknown_warning_option=no 7184 fi 7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7186 fi 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191 fi 7192 7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7201 $as_echo_n "(cached) " >&6 7202 else 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204 /* end confdefs.h. */ 7205 int i; 7206 _ACEOF 7207 if ac_fn_c_try_compile "$LINENO"; then : 7208 xorg_cv_cc_flag_unused_command_line_argument=yes 7209 else 7210 xorg_cv_cc_flag_unused_command_line_argument=no 7211 fi 7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7213 fi 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 fi 7219 7220 found="no" 7221 7222 if test $found = "no" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7229 fi 7230 7231 CFLAGS="$CFLAGS -Werror=main" 7232 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7234 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7235 cacheid=xorg_cv_cc_flag__Werror_main 7236 if eval \${$cacheid+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238 else 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240 /* end confdefs.h. */ 7241 int i; 7242 int 7243 main () 7244 { 7245 7246 ; 7247 return 0; 7248 } 7249 _ACEOF 7250 if ac_fn_c_try_link "$LINENO"; then : 7251 eval $cacheid=yes 7252 else 7253 eval $cacheid=no 7254 fi 7255 rm -f core conftest.err conftest.$ac_objext \ 7256 conftest$ac_exeext conftest.$ac_ext 7257 fi 7258 7259 7260 CFLAGS="$xorg_testset_save_CFLAGS" 7261 7262 eval supported=\$$cacheid 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7264 $as_echo "$supported" >&6; } 7265 if test "$supported" = "yes" ; then 7266 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7267 found="yes" 7268 fi 7269 fi 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 xorg_testset_save_CFLAGS="$CFLAGS" 7286 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293 else 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295 /* end confdefs.h. */ 7296 int i; 7297 _ACEOF 7298 if ac_fn_c_try_compile "$LINENO"; then : 7299 xorg_cv_cc_flag_unknown_warning_option=yes 7300 else 7301 xorg_cv_cc_flag_unknown_warning_option=no 7302 fi 7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7304 fi 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7308 CFLAGS="$xorg_testset_save_CFLAGS" 7309 fi 7310 7311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 fi 7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320 else 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322 /* end confdefs.h. */ 7323 int i; 7324 _ACEOF 7325 if ac_fn_c_try_compile "$LINENO"; then : 7326 xorg_cv_cc_flag_unused_command_line_argument=yes 7327 else 7328 xorg_cv_cc_flag_unused_command_line_argument=no 7329 fi 7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7331 fi 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7335 CFLAGS="$xorg_testset_save_CFLAGS" 7336 fi 7337 7338 found="no" 7339 7340 if test $found = "no" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 fi 7348 7349 CFLAGS="$CFLAGS -Werror=missing-braces" 7350 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7352 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7353 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7354 if eval \${$cacheid+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356 else 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358 /* end confdefs.h. */ 7359 int i; 7360 int 7361 main () 7362 { 7363 7364 ; 7365 return 0; 7366 } 7367 _ACEOF 7368 if ac_fn_c_try_link "$LINENO"; then : 7369 eval $cacheid=yes 7370 else 7371 eval $cacheid=no 7372 fi 7373 rm -f core conftest.err conftest.$ac_objext \ 7374 conftest$ac_exeext conftest.$ac_ext 7375 fi 7376 7377 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379 7380 eval supported=\$$cacheid 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7382 $as_echo "$supported" >&6; } 7383 if test "$supported" = "yes" ; then 7384 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7385 found="yes" 7386 fi 7387 fi 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 xorg_testset_save_CFLAGS="$CFLAGS" 7404 7405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411 else 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413 /* end confdefs.h. */ 7414 int i; 7415 _ACEOF 7416 if ac_fn_c_try_compile "$LINENO"; then : 7417 xorg_cv_cc_flag_unknown_warning_option=yes 7418 else 7419 xorg_cv_cc_flag_unknown_warning_option=no 7420 fi 7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7422 fi 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7426 CFLAGS="$xorg_testset_save_CFLAGS" 7427 fi 7428 7429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 fi 7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438 else 7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440 /* end confdefs.h. */ 7441 int i; 7442 _ACEOF 7443 if ac_fn_c_try_compile "$LINENO"; then : 7444 xorg_cv_cc_flag_unused_command_line_argument=yes 7445 else 7446 xorg_cv_cc_flag_unused_command_line_argument=no 7447 fi 7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7449 fi 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454 fi 7455 7456 found="no" 7457 7458 if test $found = "no" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7465 fi 7466 7467 CFLAGS="$CFLAGS -Werror=sequence-point" 7468 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7470 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7471 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7472 if eval \${$cacheid+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474 else 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476 /* end confdefs.h. */ 7477 int i; 7478 int 7479 main () 7480 { 7481 7482 ; 7483 return 0; 7484 } 7485 _ACEOF 7486 if ac_fn_c_try_link "$LINENO"; then : 7487 eval $cacheid=yes 7488 else 7489 eval $cacheid=no 7490 fi 7491 rm -f core conftest.err conftest.$ac_objext \ 7492 conftest$ac_exeext conftest.$ac_ext 7493 fi 7494 7495 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497 7498 eval supported=\$$cacheid 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7500 $as_echo "$supported" >&6; } 7501 if test "$supported" = "yes" ; then 7502 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7503 found="yes" 7504 fi 7505 fi 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 xorg_testset_save_CFLAGS="$CFLAGS" 7522 7523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529 else 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531 /* end confdefs.h. */ 7532 int i; 7533 _ACEOF 7534 if ac_fn_c_try_compile "$LINENO"; then : 7535 xorg_cv_cc_flag_unknown_warning_option=yes 7536 else 7537 xorg_cv_cc_flag_unknown_warning_option=no 7538 fi 7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7540 fi 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7544 CFLAGS="$xorg_testset_save_CFLAGS" 7545 fi 7546 7547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 fi 7551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556 else 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558 /* end confdefs.h. */ 7559 int i; 7560 _ACEOF 7561 if ac_fn_c_try_compile "$LINENO"; then : 7562 xorg_cv_cc_flag_unused_command_line_argument=yes 7563 else 7564 xorg_cv_cc_flag_unused_command_line_argument=no 7565 fi 7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7567 fi 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7571 CFLAGS="$xorg_testset_save_CFLAGS" 7572 fi 7573 7574 found="no" 7575 7576 if test $found = "no" ; then 7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7579 fi 7580 7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7583 fi 7584 7585 CFLAGS="$CFLAGS -Werror=return-type" 7586 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7588 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7589 cacheid=xorg_cv_cc_flag__Werror_return_type 7590 if eval \${$cacheid+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592 else 7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594 /* end confdefs.h. */ 7595 int i; 7596 int 7597 main () 7598 { 7599 7600 ; 7601 return 0; 7602 } 7603 _ACEOF 7604 if ac_fn_c_try_link "$LINENO"; then : 7605 eval $cacheid=yes 7606 else 7607 eval $cacheid=no 7608 fi 7609 rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611 fi 7612 7613 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615 7616 eval supported=\$$cacheid 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7618 $as_echo "$supported" >&6; } 7619 if test "$supported" = "yes" ; then 7620 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7621 found="yes" 7622 fi 7623 fi 7624 7625 if test $found = "no" ; then 7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7628 fi 7629 7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 fi 7633 7634 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7635 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7637 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7638 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7639 if eval \${$cacheid+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641 else 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643 /* end confdefs.h. */ 7644 int i; 7645 int 7646 main () 7647 { 7648 7649 ; 7650 return 0; 7651 } 7652 _ACEOF 7653 if ac_fn_c_try_link "$LINENO"; then : 7654 eval $cacheid=yes 7655 else 7656 eval $cacheid=no 7657 fi 7658 rm -f core conftest.err conftest.$ac_objext \ 7659 conftest$ac_exeext conftest.$ac_ext 7660 fi 7661 7662 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664 7665 eval supported=\$$cacheid 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7667 $as_echo "$supported" >&6; } 7668 if test "$supported" = "yes" ; then 7669 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7670 found="yes" 7671 fi 7672 fi 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 xorg_testset_save_CFLAGS="$CFLAGS" 7689 7690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696 else 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698 /* end confdefs.h. */ 7699 int i; 7700 _ACEOF 7701 if ac_fn_c_try_compile "$LINENO"; then : 7702 xorg_cv_cc_flag_unknown_warning_option=yes 7703 else 7704 xorg_cv_cc_flag_unknown_warning_option=no 7705 fi 7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7707 fi 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7711 CFLAGS="$xorg_testset_save_CFLAGS" 7712 fi 7713 7714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723 else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725 /* end confdefs.h. */ 7726 int i; 7727 _ACEOF 7728 if ac_fn_c_try_compile "$LINENO"; then : 7729 xorg_cv_cc_flag_unused_command_line_argument=yes 7730 else 7731 xorg_cv_cc_flag_unused_command_line_argument=no 7732 fi 7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7734 fi 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739 fi 7740 7741 found="no" 7742 7743 if test $found = "no" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 fi 7751 7752 CFLAGS="$CFLAGS -Werror=trigraphs" 7753 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7755 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7756 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7757 if eval \${$cacheid+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759 else 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761 /* end confdefs.h. */ 7762 int i; 7763 int 7764 main () 7765 { 7766 7767 ; 7768 return 0; 7769 } 7770 _ACEOF 7771 if ac_fn_c_try_link "$LINENO"; then : 7772 eval $cacheid=yes 7773 else 7774 eval $cacheid=no 7775 fi 7776 rm -f core conftest.err conftest.$ac_objext \ 7777 conftest$ac_exeext conftest.$ac_ext 7778 fi 7779 7780 7781 CFLAGS="$xorg_testset_save_CFLAGS" 7782 7783 eval supported=\$$cacheid 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7785 $as_echo "$supported" >&6; } 7786 if test "$supported" = "yes" ; then 7787 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7788 found="yes" 7789 fi 7790 fi 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 xorg_testset_save_CFLAGS="$CFLAGS" 7807 7808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814 else 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816 /* end confdefs.h. */ 7817 int i; 7818 _ACEOF 7819 if ac_fn_c_try_compile "$LINENO"; then : 7820 xorg_cv_cc_flag_unknown_warning_option=yes 7821 else 7822 xorg_cv_cc_flag_unknown_warning_option=no 7823 fi 7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7825 fi 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7829 CFLAGS="$xorg_testset_save_CFLAGS" 7830 fi 7831 7832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7835 fi 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841 else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843 /* end confdefs.h. */ 7844 int i; 7845 _ACEOF 7846 if ac_fn_c_try_compile "$LINENO"; then : 7847 xorg_cv_cc_flag_unused_command_line_argument=yes 7848 else 7849 xorg_cv_cc_flag_unused_command_line_argument=no 7850 fi 7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7852 fi 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7856 CFLAGS="$xorg_testset_save_CFLAGS" 7857 fi 7858 7859 found="no" 7860 7861 if test $found = "no" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7868 fi 7869 7870 CFLAGS="$CFLAGS -Werror=array-bounds" 7871 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7873 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7874 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7875 if eval \${$cacheid+:} false; then : 7876 $as_echo_n "(cached) " >&6 7877 else 7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7879 /* end confdefs.h. */ 7880 int i; 7881 int 7882 main () 7883 { 7884 7885 ; 7886 return 0; 7887 } 7888 _ACEOF 7889 if ac_fn_c_try_link "$LINENO"; then : 7890 eval $cacheid=yes 7891 else 7892 eval $cacheid=no 7893 fi 7894 rm -f core conftest.err conftest.$ac_objext \ 7895 conftest$ac_exeext conftest.$ac_ext 7896 fi 7897 7898 7899 CFLAGS="$xorg_testset_save_CFLAGS" 7900 7901 eval supported=\$$cacheid 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7903 $as_echo "$supported" >&6; } 7904 if test "$supported" = "yes" ; then 7905 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7906 found="yes" 7907 fi 7908 fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 xorg_testset_save_CFLAGS="$CFLAGS" 7925 7926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932 else 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934 /* end confdefs.h. */ 7935 int i; 7936 _ACEOF 7937 if ac_fn_c_try_compile "$LINENO"; then : 7938 xorg_cv_cc_flag_unknown_warning_option=yes 7939 else 7940 xorg_cv_cc_flag_unknown_warning_option=no 7941 fi 7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7943 fi 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7947 CFLAGS="$xorg_testset_save_CFLAGS" 7948 fi 7949 7950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 fi 7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959 else 7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961 /* end confdefs.h. */ 7962 int i; 7963 _ACEOF 7964 if ac_fn_c_try_compile "$LINENO"; then : 7965 xorg_cv_cc_flag_unused_command_line_argument=yes 7966 else 7967 xorg_cv_cc_flag_unused_command_line_argument=no 7968 fi 7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7970 fi 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7974 CFLAGS="$xorg_testset_save_CFLAGS" 7975 fi 7976 7977 found="no" 7978 7979 if test $found = "no" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7986 fi 7987 7988 CFLAGS="$CFLAGS -Werror=write-strings" 7989 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7991 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7992 cacheid=xorg_cv_cc_flag__Werror_write_strings 7993 if eval \${$cacheid+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995 else 7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997 /* end confdefs.h. */ 7998 int i; 7999 int 8000 main () 8001 { 8002 8003 ; 8004 return 0; 8005 } 8006 _ACEOF 8007 if ac_fn_c_try_link "$LINENO"; then : 8008 eval $cacheid=yes 8009 else 8010 eval $cacheid=no 8011 fi 8012 rm -f core conftest.err conftest.$ac_objext \ 8013 conftest$ac_exeext conftest.$ac_ext 8014 fi 8015 8016 8017 CFLAGS="$xorg_testset_save_CFLAGS" 8018 8019 eval supported=\$$cacheid 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8021 $as_echo "$supported" >&6; } 8022 if test "$supported" = "yes" ; then 8023 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8024 found="yes" 8025 fi 8026 fi 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 xorg_testset_save_CFLAGS="$CFLAGS" 8043 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050 else 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052 /* end confdefs.h. */ 8053 int i; 8054 _ACEOF 8055 if ac_fn_c_try_compile "$LINENO"; then : 8056 xorg_cv_cc_flag_unknown_warning_option=yes 8057 else 8058 xorg_cv_cc_flag_unknown_warning_option=no 8059 fi 8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8061 fi 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066 fi 8067 8068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077 else 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079 /* end confdefs.h. */ 8080 int i; 8081 _ACEOF 8082 if ac_fn_c_try_compile "$LINENO"; then : 8083 xorg_cv_cc_flag_unused_command_line_argument=yes 8084 else 8085 xorg_cv_cc_flag_unused_command_line_argument=no 8086 fi 8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8088 fi 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8092 CFLAGS="$xorg_testset_save_CFLAGS" 8093 fi 8094 8095 found="no" 8096 8097 if test $found = "no" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8104 fi 8105 8106 CFLAGS="$CFLAGS -Werror=address" 8107 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8109 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8110 cacheid=xorg_cv_cc_flag__Werror_address 8111 if eval \${$cacheid+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113 else 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115 /* end confdefs.h. */ 8116 int i; 8117 int 8118 main () 8119 { 8120 8121 ; 8122 return 0; 8123 } 8124 _ACEOF 8125 if ac_fn_c_try_link "$LINENO"; then : 8126 eval $cacheid=yes 8127 else 8128 eval $cacheid=no 8129 fi 8130 rm -f core conftest.err conftest.$ac_objext \ 8131 conftest$ac_exeext conftest.$ac_ext 8132 fi 8133 8134 8135 CFLAGS="$xorg_testset_save_CFLAGS" 8136 8137 eval supported=\$$cacheid 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8139 $as_echo "$supported" >&6; } 8140 if test "$supported" = "yes" ; then 8141 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8142 found="yes" 8143 fi 8144 fi 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 xorg_testset_save_CFLAGS="$CFLAGS" 8161 8162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168 else 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170 /* end confdefs.h. */ 8171 int i; 8172 _ACEOF 8173 if ac_fn_c_try_compile "$LINENO"; then : 8174 xorg_cv_cc_flag_unknown_warning_option=yes 8175 else 8176 xorg_cv_cc_flag_unknown_warning_option=no 8177 fi 8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8179 fi 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8183 CFLAGS="$xorg_testset_save_CFLAGS" 8184 fi 8185 8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195 else 8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8197 /* end confdefs.h. */ 8198 int i; 8199 _ACEOF 8200 if ac_fn_c_try_compile "$LINENO"; then : 8201 xorg_cv_cc_flag_unused_command_line_argument=yes 8202 else 8203 xorg_cv_cc_flag_unused_command_line_argument=no 8204 fi 8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8206 fi 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8210 CFLAGS="$xorg_testset_save_CFLAGS" 8211 fi 8212 8213 found="no" 8214 8215 if test $found = "no" ; then 8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218 fi 8219 8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8222 fi 8223 8224 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8225 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8227 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8228 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8229 if eval \${$cacheid+:} false; then : 8230 $as_echo_n "(cached) " >&6 8231 else 8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233 /* end confdefs.h. */ 8234 int i; 8235 int 8236 main () 8237 { 8238 8239 ; 8240 return 0; 8241 } 8242 _ACEOF 8243 if ac_fn_c_try_link "$LINENO"; then : 8244 eval $cacheid=yes 8245 else 8246 eval $cacheid=no 8247 fi 8248 rm -f core conftest.err conftest.$ac_objext \ 8249 conftest$ac_exeext conftest.$ac_ext 8250 fi 8251 8252 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254 8255 eval supported=\$$cacheid 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8257 $as_echo "$supported" >&6; } 8258 if test "$supported" = "yes" ; then 8259 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8260 found="yes" 8261 fi 8262 fi 8263 8264 if test $found = "no" ; then 8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8267 fi 8268 8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8271 fi 8272 8273 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8274 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8276 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8277 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8278 if eval \${$cacheid+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280 else 8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282 /* end confdefs.h. */ 8283 int i; 8284 int 8285 main () 8286 { 8287 8288 ; 8289 return 0; 8290 } 8291 _ACEOF 8292 if ac_fn_c_try_link "$LINENO"; then : 8293 eval $cacheid=yes 8294 else 8295 eval $cacheid=no 8296 fi 8297 rm -f core conftest.err conftest.$ac_objext \ 8298 conftest$ac_exeext conftest.$ac_ext 8299 fi 8300 8301 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303 8304 eval supported=\$$cacheid 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8306 $as_echo "$supported" >&6; } 8307 if test "$supported" = "yes" ; then 8308 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8309 found="yes" 8310 fi 8311 fi 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 xorg_testset_save_CFLAGS="$CFLAGS" 8328 8329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8332 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8333 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335 else 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337 /* end confdefs.h. */ 8338 int i; 8339 _ACEOF 8340 if ac_fn_c_try_compile "$LINENO"; then : 8341 xorg_cv_cc_flag_unknown_warning_option=yes 8342 else 8343 xorg_cv_cc_flag_unknown_warning_option=no 8344 fi 8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346 fi 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8348 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351 fi 8352 8353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8359 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8360 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362 else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364 /* end confdefs.h. */ 8365 int i; 8366 _ACEOF 8367 if ac_fn_c_try_compile "$LINENO"; then : 8368 xorg_cv_cc_flag_unused_command_line_argument=yes 8369 else 8370 xorg_cv_cc_flag_unused_command_line_argument=no 8371 fi 8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8373 fi 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8375 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8377 CFLAGS="$xorg_testset_save_CFLAGS" 8378 fi 8379 8380 found="no" 8381 8382 if test $found = "no" ; then 8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8385 fi 8386 8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 fi 8390 8391 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8392 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8394 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8395 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8396 if eval \${$cacheid+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398 else 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8400 /* end confdefs.h. */ 8401 int i; 8402 int 8403 main () 8404 { 8405 8406 ; 8407 return 0; 8408 } 8409 _ACEOF 8410 if ac_fn_c_try_link "$LINENO"; then : 8411 eval $cacheid=yes 8412 else 8413 eval $cacheid=no 8414 fi 8415 rm -f core conftest.err conftest.$ac_objext \ 8416 conftest$ac_exeext conftest.$ac_ext 8417 fi 8418 8419 8420 CFLAGS="$xorg_testset_save_CFLAGS" 8421 8422 eval supported=\$$cacheid 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8424 $as_echo "$supported" >&6; } 8425 if test "$supported" = "yes" ; then 8426 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8427 found="yes" 8428 fi 8429 fi 8430 8431 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8432 else 8433 { $as_echo "$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 8434 $as_echo "$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;} 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 xorg_testset_save_CFLAGS="$CFLAGS" 8449 8450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456 else 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458 /* end confdefs.h. */ 8459 int i; 8460 _ACEOF 8461 if ac_fn_c_try_compile "$LINENO"; then : 8462 xorg_cv_cc_flag_unknown_warning_option=yes 8463 else 8464 xorg_cv_cc_flag_unknown_warning_option=no 8465 fi 8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8467 fi 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472 fi 8473 8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 fi 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483 else 8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8485 /* end confdefs.h. */ 8486 int i; 8487 _ACEOF 8488 if ac_fn_c_try_compile "$LINENO"; then : 8489 xorg_cv_cc_flag_unused_command_line_argument=yes 8490 else 8491 xorg_cv_cc_flag_unused_command_line_argument=no 8492 fi 8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8494 fi 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499 fi 8500 8501 found="no" 8502 8503 if test $found = "no" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 fi 8511 8512 CFLAGS="$CFLAGS -Wimplicit" 8513 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8515 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8516 cacheid=xorg_cv_cc_flag__Wimplicit 8517 if eval \${$cacheid+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519 else 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521 /* end confdefs.h. */ 8522 int i; 8523 int 8524 main () 8525 { 8526 8527 ; 8528 return 0; 8529 } 8530 _ACEOF 8531 if ac_fn_c_try_link "$LINENO"; then : 8532 eval $cacheid=yes 8533 else 8534 eval $cacheid=no 8535 fi 8536 rm -f core conftest.err conftest.$ac_objext \ 8537 conftest$ac_exeext conftest.$ac_ext 8538 fi 8539 8540 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542 8543 eval supported=\$$cacheid 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8545 $as_echo "$supported" >&6; } 8546 if test "$supported" = "yes" ; then 8547 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8548 found="yes" 8549 fi 8550 fi 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 xorg_testset_save_CFLAGS="$CFLAGS" 8567 8568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574 else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576 /* end confdefs.h. */ 8577 int i; 8578 _ACEOF 8579 if ac_fn_c_try_compile "$LINENO"; then : 8580 xorg_cv_cc_flag_unknown_warning_option=yes 8581 else 8582 xorg_cv_cc_flag_unknown_warning_option=no 8583 fi 8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8585 fi 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590 fi 8591 8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601 else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603 /* end confdefs.h. */ 8604 int i; 8605 _ACEOF 8606 if ac_fn_c_try_compile "$LINENO"; then : 8607 xorg_cv_cc_flag_unused_command_line_argument=yes 8608 else 8609 xorg_cv_cc_flag_unused_command_line_argument=no 8610 fi 8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8612 fi 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8616 CFLAGS="$xorg_testset_save_CFLAGS" 8617 fi 8618 8619 found="no" 8620 8621 if test $found = "no" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 fi 8629 8630 CFLAGS="$CFLAGS -Wnonnull" 8631 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8633 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8634 cacheid=xorg_cv_cc_flag__Wnonnull 8635 if eval \${$cacheid+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637 else 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639 /* end confdefs.h. */ 8640 int i; 8641 int 8642 main () 8643 { 8644 8645 ; 8646 return 0; 8647 } 8648 _ACEOF 8649 if ac_fn_c_try_link "$LINENO"; then : 8650 eval $cacheid=yes 8651 else 8652 eval $cacheid=no 8653 fi 8654 rm -f core conftest.err conftest.$ac_objext \ 8655 conftest$ac_exeext conftest.$ac_ext 8656 fi 8657 8658 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 8661 eval supported=\$$cacheid 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8663 $as_echo "$supported" >&6; } 8664 if test "$supported" = "yes" ; then 8665 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8666 found="yes" 8667 fi 8668 fi 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 xorg_testset_save_CFLAGS="$CFLAGS" 8685 8686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692 else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694 /* end confdefs.h. */ 8695 int i; 8696 _ACEOF 8697 if ac_fn_c_try_compile "$LINENO"; then : 8698 xorg_cv_cc_flag_unknown_warning_option=yes 8699 else 8700 xorg_cv_cc_flag_unknown_warning_option=no 8701 fi 8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703 fi 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708 fi 8709 8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719 else 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721 /* end confdefs.h. */ 8722 int i; 8723 _ACEOF 8724 if ac_fn_c_try_compile "$LINENO"; then : 8725 xorg_cv_cc_flag_unused_command_line_argument=yes 8726 else 8727 xorg_cv_cc_flag_unused_command_line_argument=no 8728 fi 8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8730 fi 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735 fi 8736 8737 found="no" 8738 8739 if test $found = "no" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 fi 8747 8748 CFLAGS="$CFLAGS -Winit-self" 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8751 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8752 cacheid=xorg_cv_cc_flag__Winit_self 8753 if eval \${$cacheid+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755 else 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757 /* end confdefs.h. */ 8758 int i; 8759 int 8760 main () 8761 { 8762 8763 ; 8764 return 0; 8765 } 8766 _ACEOF 8767 if ac_fn_c_try_link "$LINENO"; then : 8768 eval $cacheid=yes 8769 else 8770 eval $cacheid=no 8771 fi 8772 rm -f core conftest.err conftest.$ac_objext \ 8773 conftest$ac_exeext conftest.$ac_ext 8774 fi 8775 8776 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778 8779 eval supported=\$$cacheid 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8781 $as_echo "$supported" >&6; } 8782 if test "$supported" = "yes" ; then 8783 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8784 found="yes" 8785 fi 8786 fi 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 xorg_testset_save_CFLAGS="$CFLAGS" 8803 8804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810 else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812 /* end confdefs.h. */ 8813 int i; 8814 _ACEOF 8815 if ac_fn_c_try_compile "$LINENO"; then : 8816 xorg_cv_cc_flag_unknown_warning_option=yes 8817 else 8818 xorg_cv_cc_flag_unknown_warning_option=no 8819 fi 8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8821 fi 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8825 CFLAGS="$xorg_testset_save_CFLAGS" 8826 fi 8827 8828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8831 fi 8832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837 else 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8839 /* end confdefs.h. */ 8840 int i; 8841 _ACEOF 8842 if ac_fn_c_try_compile "$LINENO"; then : 8843 xorg_cv_cc_flag_unused_command_line_argument=yes 8844 else 8845 xorg_cv_cc_flag_unused_command_line_argument=no 8846 fi 8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8848 fi 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8852 CFLAGS="$xorg_testset_save_CFLAGS" 8853 fi 8854 8855 found="no" 8856 8857 if test $found = "no" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8864 fi 8865 8866 CFLAGS="$CFLAGS -Wmain" 8867 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8869 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 8870 cacheid=xorg_cv_cc_flag__Wmain 8871 if eval \${$cacheid+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873 else 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875 /* end confdefs.h. */ 8876 int i; 8877 int 8878 main () 8879 { 8880 8881 ; 8882 return 0; 8883 } 8884 _ACEOF 8885 if ac_fn_c_try_link "$LINENO"; then : 8886 eval $cacheid=yes 8887 else 8888 eval $cacheid=no 8889 fi 8890 rm -f core conftest.err conftest.$ac_objext \ 8891 conftest$ac_exeext conftest.$ac_ext 8892 fi 8893 8894 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896 8897 eval supported=\$$cacheid 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8899 $as_echo "$supported" >&6; } 8900 if test "$supported" = "yes" ; then 8901 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8902 found="yes" 8903 fi 8904 fi 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 xorg_testset_save_CFLAGS="$CFLAGS" 8921 8922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928 else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930 /* end confdefs.h. */ 8931 int i; 8932 _ACEOF 8933 if ac_fn_c_try_compile "$LINENO"; then : 8934 xorg_cv_cc_flag_unknown_warning_option=yes 8935 else 8936 xorg_cv_cc_flag_unknown_warning_option=no 8937 fi 8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8939 fi 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944 fi 8945 8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 fi 8950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955 else 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957 /* end confdefs.h. */ 8958 int i; 8959 _ACEOF 8960 if ac_fn_c_try_compile "$LINENO"; then : 8961 xorg_cv_cc_flag_unused_command_line_argument=yes 8962 else 8963 xorg_cv_cc_flag_unused_command_line_argument=no 8964 fi 8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8966 fi 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8970 CFLAGS="$xorg_testset_save_CFLAGS" 8971 fi 8972 8973 found="no" 8974 8975 if test $found = "no" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8982 fi 8983 8984 CFLAGS="$CFLAGS -Wmissing-braces" 8985 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8987 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8988 cacheid=xorg_cv_cc_flag__Wmissing_braces 8989 if eval \${$cacheid+:} false; then : 8990 $as_echo_n "(cached) " >&6 8991 else 8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993 /* end confdefs.h. */ 8994 int i; 8995 int 8996 main () 8997 { 8998 8999 ; 9000 return 0; 9001 } 9002 _ACEOF 9003 if ac_fn_c_try_link "$LINENO"; then : 9004 eval $cacheid=yes 9005 else 9006 eval $cacheid=no 9007 fi 9008 rm -f core conftest.err conftest.$ac_objext \ 9009 conftest$ac_exeext conftest.$ac_ext 9010 fi 9011 9012 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 9015 eval supported=\$$cacheid 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9017 $as_echo "$supported" >&6; } 9018 if test "$supported" = "yes" ; then 9019 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9020 found="yes" 9021 fi 9022 fi 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 xorg_testset_save_CFLAGS="$CFLAGS" 9039 9040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046 else 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048 /* end confdefs.h. */ 9049 int i; 9050 _ACEOF 9051 if ac_fn_c_try_compile "$LINENO"; then : 9052 xorg_cv_cc_flag_unknown_warning_option=yes 9053 else 9054 xorg_cv_cc_flag_unknown_warning_option=no 9055 fi 9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057 fi 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062 fi 9063 9064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9067 fi 9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073 else 9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9075 /* end confdefs.h. */ 9076 int i; 9077 _ACEOF 9078 if ac_fn_c_try_compile "$LINENO"; then : 9079 xorg_cv_cc_flag_unused_command_line_argument=yes 9080 else 9081 xorg_cv_cc_flag_unused_command_line_argument=no 9082 fi 9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9084 fi 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9088 CFLAGS="$xorg_testset_save_CFLAGS" 9089 fi 9090 9091 found="no" 9092 9093 if test $found = "no" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9100 fi 9101 9102 CFLAGS="$CFLAGS -Wsequence-point" 9103 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9105 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9106 cacheid=xorg_cv_cc_flag__Wsequence_point 9107 if eval \${$cacheid+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109 else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111 /* end confdefs.h. */ 9112 int i; 9113 int 9114 main () 9115 { 9116 9117 ; 9118 return 0; 9119 } 9120 _ACEOF 9121 if ac_fn_c_try_link "$LINENO"; then : 9122 eval $cacheid=yes 9123 else 9124 eval $cacheid=no 9125 fi 9126 rm -f core conftest.err conftest.$ac_objext \ 9127 conftest$ac_exeext conftest.$ac_ext 9128 fi 9129 9130 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132 9133 eval supported=\$$cacheid 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9135 $as_echo "$supported" >&6; } 9136 if test "$supported" = "yes" ; then 9137 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9138 found="yes" 9139 fi 9140 fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 xorg_testset_save_CFLAGS="$CFLAGS" 9157 9158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9163 $as_echo_n "(cached) " >&6 9164 else 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166 /* end confdefs.h. */ 9167 int i; 9168 _ACEOF 9169 if ac_fn_c_try_compile "$LINENO"; then : 9170 xorg_cv_cc_flag_unknown_warning_option=yes 9171 else 9172 xorg_cv_cc_flag_unknown_warning_option=no 9173 fi 9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175 fi 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180 fi 9181 9182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 fi 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191 else 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9193 /* end confdefs.h. */ 9194 int i; 9195 _ACEOF 9196 if ac_fn_c_try_compile "$LINENO"; then : 9197 xorg_cv_cc_flag_unused_command_line_argument=yes 9198 else 9199 xorg_cv_cc_flag_unused_command_line_argument=no 9200 fi 9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9202 fi 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207 fi 9208 9209 found="no" 9210 9211 if test $found = "no" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9218 fi 9219 9220 CFLAGS="$CFLAGS -Wreturn-type" 9221 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9223 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9224 cacheid=xorg_cv_cc_flag__Wreturn_type 9225 if eval \${$cacheid+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227 else 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229 /* end confdefs.h. */ 9230 int i; 9231 int 9232 main () 9233 { 9234 9235 ; 9236 return 0; 9237 } 9238 _ACEOF 9239 if ac_fn_c_try_link "$LINENO"; then : 9240 eval $cacheid=yes 9241 else 9242 eval $cacheid=no 9243 fi 9244 rm -f core conftest.err conftest.$ac_objext \ 9245 conftest$ac_exeext conftest.$ac_ext 9246 fi 9247 9248 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 9251 eval supported=\$$cacheid 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9253 $as_echo "$supported" >&6; } 9254 if test "$supported" = "yes" ; then 9255 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9256 found="yes" 9257 fi 9258 fi 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 xorg_testset_save_CFLAGS="$CFLAGS" 9275 9276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282 else 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284 /* end confdefs.h. */ 9285 int i; 9286 _ACEOF 9287 if ac_fn_c_try_compile "$LINENO"; then : 9288 xorg_cv_cc_flag_unknown_warning_option=yes 9289 else 9290 xorg_cv_cc_flag_unknown_warning_option=no 9291 fi 9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9293 fi 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9297 CFLAGS="$xorg_testset_save_CFLAGS" 9298 fi 9299 9300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9303 fi 9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9308 $as_echo_n "(cached) " >&6 9309 else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311 /* end confdefs.h. */ 9312 int i; 9313 _ACEOF 9314 if ac_fn_c_try_compile "$LINENO"; then : 9315 xorg_cv_cc_flag_unused_command_line_argument=yes 9316 else 9317 xorg_cv_cc_flag_unused_command_line_argument=no 9318 fi 9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9320 fi 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9324 CFLAGS="$xorg_testset_save_CFLAGS" 9325 fi 9326 9327 found="no" 9328 9329 if test $found = "no" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9336 fi 9337 9338 CFLAGS="$CFLAGS -Wtrigraphs" 9339 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9341 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9342 cacheid=xorg_cv_cc_flag__Wtrigraphs 9343 if eval \${$cacheid+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345 else 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 int 9350 main () 9351 { 9352 9353 ; 9354 return 0; 9355 } 9356 _ACEOF 9357 if ac_fn_c_try_link "$LINENO"; then : 9358 eval $cacheid=yes 9359 else 9360 eval $cacheid=no 9361 fi 9362 rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364 fi 9365 9366 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368 9369 eval supported=\$$cacheid 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9371 $as_echo "$supported" >&6; } 9372 if test "$supported" = "yes" ; then 9373 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9374 found="yes" 9375 fi 9376 fi 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 xorg_testset_save_CFLAGS="$CFLAGS" 9393 9394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400 else 9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402 /* end confdefs.h. */ 9403 int i; 9404 _ACEOF 9405 if ac_fn_c_try_compile "$LINENO"; then : 9406 xorg_cv_cc_flag_unknown_warning_option=yes 9407 else 9408 xorg_cv_cc_flag_unknown_warning_option=no 9409 fi 9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9411 fi 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9415 CFLAGS="$xorg_testset_save_CFLAGS" 9416 fi 9417 9418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 fi 9422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9426 $as_echo_n "(cached) " >&6 9427 else 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429 /* end confdefs.h. */ 9430 int i; 9431 _ACEOF 9432 if ac_fn_c_try_compile "$LINENO"; then : 9433 xorg_cv_cc_flag_unused_command_line_argument=yes 9434 else 9435 xorg_cv_cc_flag_unused_command_line_argument=no 9436 fi 9437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438 fi 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443 fi 9444 9445 found="no" 9446 9447 if test $found = "no" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 fi 9455 9456 CFLAGS="$CFLAGS -Warray-bounds" 9457 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9459 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9460 cacheid=xorg_cv_cc_flag__Warray_bounds 9461 if eval \${$cacheid+:} false; then : 9462 $as_echo_n "(cached) " >&6 9463 else 9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465 /* end confdefs.h. */ 9466 int i; 9467 int 9468 main () 9469 { 9470 9471 ; 9472 return 0; 9473 } 9474 _ACEOF 9475 if ac_fn_c_try_link "$LINENO"; then : 9476 eval $cacheid=yes 9477 else 9478 eval $cacheid=no 9479 fi 9480 rm -f core conftest.err conftest.$ac_objext \ 9481 conftest$ac_exeext conftest.$ac_ext 9482 fi 9483 9484 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486 9487 eval supported=\$$cacheid 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9489 $as_echo "$supported" >&6; } 9490 if test "$supported" = "yes" ; then 9491 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9492 found="yes" 9493 fi 9494 fi 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 xorg_testset_save_CFLAGS="$CFLAGS" 9511 9512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518 else 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520 /* end confdefs.h. */ 9521 int i; 9522 _ACEOF 9523 if ac_fn_c_try_compile "$LINENO"; then : 9524 xorg_cv_cc_flag_unknown_warning_option=yes 9525 else 9526 xorg_cv_cc_flag_unknown_warning_option=no 9527 fi 9528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9529 fi 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9533 CFLAGS="$xorg_testset_save_CFLAGS" 9534 fi 9535 9536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9539 fi 9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545 else 9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547 /* end confdefs.h. */ 9548 int i; 9549 _ACEOF 9550 if ac_fn_c_try_compile "$LINENO"; then : 9551 xorg_cv_cc_flag_unused_command_line_argument=yes 9552 else 9553 xorg_cv_cc_flag_unused_command_line_argument=no 9554 fi 9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9556 fi 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9560 CFLAGS="$xorg_testset_save_CFLAGS" 9561 fi 9562 9563 found="no" 9564 9565 if test $found = "no" ; then 9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 fi 9569 9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9572 fi 9573 9574 CFLAGS="$CFLAGS -Wwrite-strings" 9575 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9577 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9578 cacheid=xorg_cv_cc_flag__Wwrite_strings 9579 if eval \${$cacheid+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581 else 9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9583 /* end confdefs.h. */ 9584 int i; 9585 int 9586 main () 9587 { 9588 9589 ; 9590 return 0; 9591 } 9592 _ACEOF 9593 if ac_fn_c_try_link "$LINENO"; then : 9594 eval $cacheid=yes 9595 else 9596 eval $cacheid=no 9597 fi 9598 rm -f core conftest.err conftest.$ac_objext \ 9599 conftest$ac_exeext conftest.$ac_ext 9600 fi 9601 9602 9603 CFLAGS="$xorg_testset_save_CFLAGS" 9604 9605 eval supported=\$$cacheid 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9607 $as_echo "$supported" >&6; } 9608 if test "$supported" = "yes" ; then 9609 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9610 found="yes" 9611 fi 9612 fi 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 xorg_testset_save_CFLAGS="$CFLAGS" 9629 9630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636 else 9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638 /* end confdefs.h. */ 9639 int i; 9640 _ACEOF 9641 if ac_fn_c_try_compile "$LINENO"; then : 9642 xorg_cv_cc_flag_unknown_warning_option=yes 9643 else 9644 xorg_cv_cc_flag_unknown_warning_option=no 9645 fi 9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9647 fi 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9651 CFLAGS="$xorg_testset_save_CFLAGS" 9652 fi 9653 9654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 fi 9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9662 $as_echo_n "(cached) " >&6 9663 else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665 /* end confdefs.h. */ 9666 int i; 9667 _ACEOF 9668 if ac_fn_c_try_compile "$LINENO"; then : 9669 xorg_cv_cc_flag_unused_command_line_argument=yes 9670 else 9671 xorg_cv_cc_flag_unused_command_line_argument=no 9672 fi 9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9674 fi 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 fi 9680 9681 found="no" 9682 9683 if test $found = "no" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9690 fi 9691 9692 CFLAGS="$CFLAGS -Waddress" 9693 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9695 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9696 cacheid=xorg_cv_cc_flag__Waddress 9697 if eval \${$cacheid+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699 else 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701 /* end confdefs.h. */ 9702 int i; 9703 int 9704 main () 9705 { 9706 9707 ; 9708 return 0; 9709 } 9710 _ACEOF 9711 if ac_fn_c_try_link "$LINENO"; then : 9712 eval $cacheid=yes 9713 else 9714 eval $cacheid=no 9715 fi 9716 rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718 fi 9719 9720 9721 CFLAGS="$xorg_testset_save_CFLAGS" 9722 9723 eval supported=\$$cacheid 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9725 $as_echo "$supported" >&6; } 9726 if test "$supported" = "yes" ; then 9727 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9728 found="yes" 9729 fi 9730 fi 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 xorg_testset_save_CFLAGS="$CFLAGS" 9747 9748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754 else 9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756 /* end confdefs.h. */ 9757 int i; 9758 _ACEOF 9759 if ac_fn_c_try_compile "$LINENO"; then : 9760 xorg_cv_cc_flag_unknown_warning_option=yes 9761 else 9762 xorg_cv_cc_flag_unknown_warning_option=no 9763 fi 9764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9765 fi 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9769 CFLAGS="$xorg_testset_save_CFLAGS" 9770 fi 9771 9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 fi 9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9780 $as_echo_n "(cached) " >&6 9781 else 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783 /* end confdefs.h. */ 9784 int i; 9785 _ACEOF 9786 if ac_fn_c_try_compile "$LINENO"; then : 9787 xorg_cv_cc_flag_unused_command_line_argument=yes 9788 else 9789 xorg_cv_cc_flag_unused_command_line_argument=no 9790 fi 9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9792 fi 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9796 CFLAGS="$xorg_testset_save_CFLAGS" 9797 fi 9798 9799 found="no" 9800 9801 if test $found = "no" ; then 9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9804 fi 9805 9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9808 fi 9809 9810 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9813 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9814 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9815 if eval \${$cacheid+:} false; then : 9816 $as_echo_n "(cached) " >&6 9817 else 9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9819 /* end confdefs.h. */ 9820 int i; 9821 int 9822 main () 9823 { 9824 9825 ; 9826 return 0; 9827 } 9828 _ACEOF 9829 if ac_fn_c_try_link "$LINENO"; then : 9830 eval $cacheid=yes 9831 else 9832 eval $cacheid=no 9833 fi 9834 rm -f core conftest.err conftest.$ac_objext \ 9835 conftest$ac_exeext conftest.$ac_ext 9836 fi 9837 9838 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840 9841 eval supported=\$$cacheid 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9843 $as_echo "$supported" >&6; } 9844 if test "$supported" = "yes" ; then 9845 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9846 found="yes" 9847 fi 9848 fi 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 xorg_testset_save_CFLAGS="$CFLAGS" 9865 9866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9871 $as_echo_n "(cached) " >&6 9872 else 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874 /* end confdefs.h. */ 9875 int i; 9876 _ACEOF 9877 if ac_fn_c_try_compile "$LINENO"; then : 9878 xorg_cv_cc_flag_unknown_warning_option=yes 9879 else 9880 xorg_cv_cc_flag_unknown_warning_option=no 9881 fi 9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9883 fi 9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9887 CFLAGS="$xorg_testset_save_CFLAGS" 9888 fi 9889 9890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 fi 9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899 else 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9901 /* end confdefs.h. */ 9902 int i; 9903 _ACEOF 9904 if ac_fn_c_try_compile "$LINENO"; then : 9905 xorg_cv_cc_flag_unused_command_line_argument=yes 9906 else 9907 xorg_cv_cc_flag_unused_command_line_argument=no 9908 fi 9909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9910 fi 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915 fi 9916 9917 found="no" 9918 9919 if test $found = "no" ; then 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 fi 9923 9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9926 fi 9927 9928 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9929 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9931 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9932 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9933 if eval \${$cacheid+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935 else 9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9937 /* end confdefs.h. */ 9938 int i; 9939 int 9940 main () 9941 { 9942 9943 ; 9944 return 0; 9945 } 9946 _ACEOF 9947 if ac_fn_c_try_link "$LINENO"; then : 9948 eval $cacheid=yes 9949 else 9950 eval $cacheid=no 9951 fi 9952 rm -f core conftest.err conftest.$ac_objext \ 9953 conftest$ac_exeext conftest.$ac_ext 9954 fi 9955 9956 9957 CFLAGS="$xorg_testset_save_CFLAGS" 9958 9959 eval supported=\$$cacheid 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9961 $as_echo "$supported" >&6; } 9962 if test "$supported" = "yes" ; then 9963 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9964 found="yes" 9965 fi 9966 fi 9967 9968 9969 fi 9970 9971 9972 9973 9974 9975 9976 9977 CWARNFLAGS="$BASE_CFLAGS" 9978 if test "x$GCC" = xyes ; then 9979 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9980 fi 9981 9982 9983 9984 9985 9986 9987 9988 9989 # Check whether --enable-strict-compilation was given. 9990 if test "${enable_strict_compilation+set}" = set; then : 9991 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9992 else 9993 STRICT_COMPILE=no 9994 fi 9995 9996 9997 9998 9999 10000 10001 STRICT_CFLAGS="" 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 xorg_testset_save_CFLAGS="$CFLAGS" 10016 10017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023 else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025 /* end confdefs.h. */ 10026 int i; 10027 _ACEOF 10028 if ac_fn_c_try_compile "$LINENO"; then : 10029 xorg_cv_cc_flag_unknown_warning_option=yes 10030 else 10031 xorg_cv_cc_flag_unknown_warning_option=no 10032 fi 10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10034 fi 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039 fi 10040 10041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 fi 10045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050 else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052 /* end confdefs.h. */ 10053 int i; 10054 _ACEOF 10055 if ac_fn_c_try_compile "$LINENO"; then : 10056 xorg_cv_cc_flag_unused_command_line_argument=yes 10057 else 10058 xorg_cv_cc_flag_unused_command_line_argument=no 10059 fi 10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10061 fi 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066 fi 10067 10068 found="no" 10069 10070 if test $found = "no" ; then 10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 fi 10074 10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10077 fi 10078 10079 CFLAGS="$CFLAGS -pedantic" 10080 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10082 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10083 cacheid=xorg_cv_cc_flag__pedantic 10084 if eval \${$cacheid+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086 else 10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10088 /* end confdefs.h. */ 10089 int i; 10090 int 10091 main () 10092 { 10093 10094 ; 10095 return 0; 10096 } 10097 _ACEOF 10098 if ac_fn_c_try_link "$LINENO"; then : 10099 eval $cacheid=yes 10100 else 10101 eval $cacheid=no 10102 fi 10103 rm -f core conftest.err conftest.$ac_objext \ 10104 conftest$ac_exeext conftest.$ac_ext 10105 fi 10106 10107 10108 CFLAGS="$xorg_testset_save_CFLAGS" 10109 10110 eval supported=\$$cacheid 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10112 $as_echo "$supported" >&6; } 10113 if test "$supported" = "yes" ; then 10114 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10115 found="yes" 10116 fi 10117 fi 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 xorg_testset_save_CFLAGS="$CFLAGS" 10134 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141 else 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143 /* end confdefs.h. */ 10144 int i; 10145 _ACEOF 10146 if ac_fn_c_try_compile "$LINENO"; then : 10147 xorg_cv_cc_flag_unknown_warning_option=yes 10148 else 10149 xorg_cv_cc_flag_unknown_warning_option=no 10150 fi 10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10152 fi 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157 fi 10158 10159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 fi 10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168 else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170 /* end confdefs.h. */ 10171 int i; 10172 _ACEOF 10173 if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175 else 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177 fi 10178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179 fi 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184 fi 10185 10186 found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Werror" 10198 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10200 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Werror 10202 if eval \${$cacheid+:} false; then : 10203 $as_echo_n "(cached) " >&6 10204 else 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206 /* end confdefs.h. */ 10207 int i; 10208 int 10209 main () 10210 { 10211 10212 ; 10213 return 0; 10214 } 10215 _ACEOF 10216 if ac_fn_c_try_link "$LINENO"; then : 10217 eval $cacheid=yes 10218 else 10219 eval $cacheid=no 10220 fi 10221 rm -f core conftest.err conftest.$ac_objext \ 10222 conftest$ac_exeext conftest.$ac_ext 10223 fi 10224 10225 10226 CFLAGS="$xorg_testset_save_CFLAGS" 10227 10228 eval supported=\$$cacheid 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10230 $as_echo "$supported" >&6; } 10231 if test "$supported" = "yes" ; then 10232 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10233 found="yes" 10234 fi 10235 fi 10236 10237 if test $found = "no" ; then 10238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10240 fi 10241 10242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10244 fi 10245 10246 CFLAGS="$CFLAGS -errwarn" 10247 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10249 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10250 cacheid=xorg_cv_cc_flag__errwarn 10251 if eval \${$cacheid+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253 else 10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10255 /* end confdefs.h. */ 10256 int i; 10257 int 10258 main () 10259 { 10260 10261 ; 10262 return 0; 10263 } 10264 _ACEOF 10265 if ac_fn_c_try_link "$LINENO"; then : 10266 eval $cacheid=yes 10267 else 10268 eval $cacheid=no 10269 fi 10270 rm -f core conftest.err conftest.$ac_objext \ 10271 conftest$ac_exeext conftest.$ac_ext 10272 fi 10273 10274 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276 10277 eval supported=\$$cacheid 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10279 $as_echo "$supported" >&6; } 10280 if test "$supported" = "yes" ; then 10281 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10282 found="yes" 10283 fi 10284 fi 10285 10286 10287 10288 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10289 # activate it with -Werror, so we add it here explicitly. 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 xorg_testset_save_CFLAGS="$CFLAGS" 10304 10305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311 else 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313 /* end confdefs.h. */ 10314 int i; 10315 _ACEOF 10316 if ac_fn_c_try_compile "$LINENO"; then : 10317 xorg_cv_cc_flag_unknown_warning_option=yes 10318 else 10319 xorg_cv_cc_flag_unknown_warning_option=no 10320 fi 10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322 fi 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327 fi 10328 10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10332 fi 10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10337 $as_echo_n "(cached) " >&6 10338 else 10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10340 /* end confdefs.h. */ 10341 int i; 10342 _ACEOF 10343 if ac_fn_c_try_compile "$LINENO"; then : 10344 xorg_cv_cc_flag_unused_command_line_argument=yes 10345 else 10346 xorg_cv_cc_flag_unused_command_line_argument=no 10347 fi 10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10349 fi 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354 fi 10355 10356 found="no" 10357 10358 if test $found = "no" ; then 10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10361 fi 10362 10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10365 fi 10366 10367 CFLAGS="$CFLAGS -Werror=attributes" 10368 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10370 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10371 cacheid=xorg_cv_cc_flag__Werror_attributes 10372 if eval \${$cacheid+:} false; then : 10373 $as_echo_n "(cached) " >&6 10374 else 10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376 /* end confdefs.h. */ 10377 int i; 10378 int 10379 main () 10380 { 10381 10382 ; 10383 return 0; 10384 } 10385 _ACEOF 10386 if ac_fn_c_try_link "$LINENO"; then : 10387 eval $cacheid=yes 10388 else 10389 eval $cacheid=no 10390 fi 10391 rm -f core conftest.err conftest.$ac_objext \ 10392 conftest$ac_exeext conftest.$ac_ext 10393 fi 10394 10395 10396 CFLAGS="$xorg_testset_save_CFLAGS" 10397 10398 eval supported=\$$cacheid 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10400 $as_echo "$supported" >&6; } 10401 if test "$supported" = "yes" ; then 10402 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10403 found="yes" 10404 fi 10405 fi 10406 10407 10408 10409 if test "x$STRICT_COMPILE" = "xyes"; then 10410 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10411 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10412 fi 10413 10414 10415 10416 10417 10418 10419 cat >>confdefs.h <<_ACEOF 10420 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10421 _ACEOF 10422 10423 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10424 if test "x$PVM" = "x"; then 10425 PVM="0" 10426 fi 10427 10428 cat >>confdefs.h <<_ACEOF 10429 #define PACKAGE_VERSION_MINOR $PVM 10430 _ACEOF 10431 10432 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10433 if test "x$PVP" = "x"; then 10434 PVP="0" 10435 fi 10436 10437 cat >>confdefs.h <<_ACEOF 10438 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10439 _ACEOF 10440 10441 10442 10443 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10444 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10445 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10446 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10447 10448 10449 10450 10451 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10452 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10453 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10454 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10455 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10456 10457 10458 10459 10460 10461 10462 if test x$APP_MAN_SUFFIX = x ; then 10463 APP_MAN_SUFFIX=1 10464 fi 10465 if test x$APP_MAN_DIR = x ; then 10466 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10467 fi 10468 10469 if test x$LIB_MAN_SUFFIX = x ; then 10470 LIB_MAN_SUFFIX=3 10471 fi 10472 if test x$LIB_MAN_DIR = x ; then 10473 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10474 fi 10475 10476 if test x$FILE_MAN_SUFFIX = x ; then 10477 case $host_os in 10478 solaris*) FILE_MAN_SUFFIX=4 ;; 10479 *) FILE_MAN_SUFFIX=5 ;; 10480 esac 10481 fi 10482 if test x$FILE_MAN_DIR = x ; then 10483 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10484 fi 10485 10486 if test x$MISC_MAN_SUFFIX = x ; then 10487 case $host_os in 10488 solaris*) MISC_MAN_SUFFIX=5 ;; 10489 *) MISC_MAN_SUFFIX=7 ;; 10490 esac 10491 fi 10492 if test x$MISC_MAN_DIR = x ; then 10493 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10494 fi 10495 10496 if test x$DRIVER_MAN_SUFFIX = x ; then 10497 case $host_os in 10498 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10499 *) DRIVER_MAN_SUFFIX=4 ;; 10500 esac 10501 fi 10502 if test x$DRIVER_MAN_DIR = x ; then 10503 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10504 fi 10505 10506 if test x$ADMIN_MAN_SUFFIX = x ; then 10507 case $host_os in 10508 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10509 *) ADMIN_MAN_SUFFIX=8 ;; 10510 esac 10511 fi 10512 if test x$ADMIN_MAN_DIR = x ; then 10513 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10514 fi 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 XORG_MAN_PAGE="X Version 11" 10531 10532 MAN_SUBSTS="\ 10533 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10534 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10535 -e 's|__xservername__|Xorg|g' \ 10536 -e 's|__xconfigfile__|xorg.conf|g' \ 10537 -e 's|__projectroot__|\$(prefix)|g' \ 10538 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10539 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10540 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10541 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10542 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10543 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10544 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10545 10546 10547 10548 # Check whether --enable-silent-rules was given. 10549 if test "${enable_silent_rules+set}" = set; then : 10550 enableval=$enable_silent_rules; 10551 fi 10552 10553 case $enable_silent_rules in # ((( 10554 yes) AM_DEFAULT_VERBOSITY=0;; 10555 no) AM_DEFAULT_VERBOSITY=1;; 10556 *) AM_DEFAULT_VERBOSITY=0;; 10557 esac 10558 am_make=${MAKE-make} 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10560 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10561 if ${am_cv_make_support_nested_variables+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563 else 10564 if $as_echo 'TRUE=$(BAR$(V)) 10565 BAR0=false 10566 BAR1=true 10567 V=1 10568 am__doit: 10569 @$(TRUE) 10570 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10571 am_cv_make_support_nested_variables=yes 10572 else 10573 am_cv_make_support_nested_variables=no 10574 fi 10575 fi 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10577 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10578 if test $am_cv_make_support_nested_variables = yes; then 10579 AM_V='$(V)' 10580 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10581 else 10582 AM_V=$AM_DEFAULT_VERBOSITY 10583 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10584 fi 10585 AM_BACKSLASH='\' 10586 10587 10588 10589 # Checks for pkg-config packages 10590 10591 pkg_failed=no 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFINDPROXY" >&5 10593 $as_echo_n "checking for XFINDPROXY... " >&6; } 10594 10595 if test -n "$XFINDPROXY_CFLAGS"; then 10596 pkg_cv_XFINDPROXY_CFLAGS="$XFINDPROXY_CFLAGS" 10597 elif test -n "$PKG_CONFIG"; then 10598 if test -n "$PKG_CONFIG" && \ 10599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10600 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10601 ac_status=$? 10602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10603 test $ac_status = 0; }; then 10604 pkg_cv_XFINDPROXY_CFLAGS=`$PKG_CONFIG --cflags "xproto ice xt xproxymngproto" 2>/dev/null` 10605 else 10606 pkg_failed=yes 10607 fi 10608 else 10609 pkg_failed=untried 10610 fi 10611 if test -n "$XFINDPROXY_LIBS"; then 10612 pkg_cv_XFINDPROXY_LIBS="$XFINDPROXY_LIBS" 10613 elif test -n "$PKG_CONFIG"; then 10614 if test -n "$PKG_CONFIG" && \ 10615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10616 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10617 ac_status=$? 10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10619 test $ac_status = 0; }; then 10620 pkg_cv_XFINDPROXY_LIBS=`$PKG_CONFIG --libs "xproto ice xt xproxymngproto" 2>/dev/null` 10621 else 10622 pkg_failed=yes 10623 fi 10624 else 10625 pkg_failed=untried 10626 fi 10627 10628 10629 10630 if test $pkg_failed = yes; then 10631 10632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10633 _pkg_short_errors_supported=yes 10634 else 10635 _pkg_short_errors_supported=no 10636 fi 10637 if test $_pkg_short_errors_supported = yes; then 10638 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto ice xt xproxymngproto" 2>&1` 10639 else 10640 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto ice xt xproxymngproto" 2>&1` 10641 fi 10642 # Put the nasty error message in config.log where it belongs 10643 echo "$XFINDPROXY_PKG_ERRORS" >&5 10644 10645 as_fn_error $? "Package requirements (xproto ice xt xproxymngproto) were not met: 10646 10647 $XFINDPROXY_PKG_ERRORS 10648 10649 Consider adjusting the PKG_CONFIG_PATH environment variable if you 10650 installed software in a non-standard prefix. 10651 10652 Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10653 and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10654 See the pkg-config man page for more details. 10655 " "$LINENO" 5 10656 elif test $pkg_failed = untried; then 10657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10659 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10660 is in your PATH or set the PKG_CONFIG environment variable to the full 10661 path to pkg-config. 10662 10663 Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10664 and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10665 See the pkg-config man page for more details. 10666 10667 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10668 See \`config.log' for more details" "$LINENO" 5; } 10669 else 10670 XFINDPROXY_CFLAGS=$pkg_cv_XFINDPROXY_CFLAGS 10671 XFINDPROXY_LIBS=$pkg_cv_XFINDPROXY_LIBS 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10673 $as_echo "yes" >&6; } 10674 : 10675 fi 10676 10677 ac_config_files="$ac_config_files Makefile" 10678 10679 cat >confcache <<\_ACEOF 10680 # This file is a shell script that caches the results of configure 10681 # tests run on this system so they can be shared between configure 10682 # scripts and configure runs, see configure's option --config-cache. 10683 # It is not useful on other systems. If it contains results you don't 10684 # want to keep, you may remove or edit it. 10685 # 10686 # config.status only pays attention to the cache file if you give it 10687 # the --recheck option to rerun configure. 10688 # 10689 # `ac_cv_env_foo' variables (set or unset) will be overridden when 10690 # loading this file, other *unset* `ac_cv_foo' will be assigned the 10691 # following values. 10692 10693 _ACEOF 10694 10695 # The following way of writing the cache mishandles newlines in values, 10696 # but we know of no workaround that is simple, portable, and efficient. 10697 # So, we kill variables containing newlines. 10698 # Ultrix sh set writes to stderr and can't be redirected directly, 10699 # and sets the high bit in the cache file unless we assign to the vars. 10700 ( 10701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10702 eval ac_val=\$$ac_var 10703 case $ac_val in #( 10704 *${as_nl}*) 10705 case $ac_var in #( 10706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10708 esac 10709 case $ac_var in #( 10710 _ | IFS | as_nl) ;; #( 10711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10712 *) { eval $ac_var=; unset $ac_var;} ;; 10713 esac ;; 10714 esac 10715 done 10716 10717 (set) 2>&1 | 10718 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10719 *${as_nl}ac_space=\ *) 10720 # `set' does not quote correctly, so add quotes: double-quote 10721 # substitution turns \\\\ into \\, and sed turns \\ into \. 10722 sed -n \ 10723 "s/'/'\\\\''/g; 10724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10725 ;; #( 10726 *) 10727 # `set' quotes correctly as required by POSIX, so do not add quotes. 10728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10729 ;; 10730 esac | 10731 sort 10732 ) | 10733 sed ' 10734 /^ac_cv_env_/b end 10735 t clear 10736 :clear 10737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10738 t end 10739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10740 :end' >>confcache 10741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10742 if test -w "$cache_file"; then 10743 if test "x$cache_file" != "x/dev/null"; then 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10745 $as_echo "$as_me: updating cache $cache_file" >&6;} 10746 if test ! -f "$cache_file" || test -h "$cache_file"; then 10747 cat confcache >"$cache_file" 10748 else 10749 case $cache_file in #( 10750 */* | ?:*) 10751 mv -f confcache "$cache_file"$$ && 10752 mv -f "$cache_file"$$ "$cache_file" ;; #( 10753 *) 10754 mv -f confcache "$cache_file" ;; 10755 esac 10756 fi 10757 fi 10758 else 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10761 fi 10762 fi 10763 rm -f confcache 10764 10765 test "x$prefix" = xNONE && prefix=$ac_default_prefix 10766 # Let make expand exec_prefix. 10767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10768 10769 DEFS=-DHAVE_CONFIG_H 10770 10771 ac_libobjs= 10772 ac_ltlibobjs= 10773 U= 10774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10775 # 1. Remove the extension, and $U if already installed. 10776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10779 # will be set to the directory where LIBOBJS objects are built. 10780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10782 done 10783 LIBOBJS=$ac_libobjs 10784 10785 LTLIBOBJS=$ac_ltlibobjs 10786 10787 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10789 $as_echo_n "checking that generated files are newer than configure... " >&6; } 10790 if test -n "$am_sleep_pid"; then 10791 # Hide warnings about reused PIDs. 10792 wait $am_sleep_pid 2>/dev/null 10793 fi 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10795 $as_echo "done" >&6; } 10796 if test -n "$EXEEXT"; then 10797 am__EXEEXT_TRUE= 10798 am__EXEEXT_FALSE='#' 10799 else 10800 am__EXEEXT_TRUE='#' 10801 am__EXEEXT_FALSE= 10802 fi 10803 10804 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10805 as_fn_error $? "conditional \"AMDEP\" was never defined. 10806 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10807 fi 10808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10809 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10810 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10811 fi 10812 10813 : "${CONFIG_STATUS=./config.status}" 10814 ac_write_fail=0 10815 ac_clean_files_save=$ac_clean_files 10816 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10819 as_write_fail=0 10820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10821 #! $SHELL 10822 # Generated by $as_me. 10823 # Run this file to recreate the current configuration. 10824 # Compiler output produced by configure, useful for debugging 10825 # configure, is in config.log if it exists. 10826 10827 debug=false 10828 ac_cs_recheck=false 10829 ac_cs_silent=false 10830 10831 SHELL=\${CONFIG_SHELL-$SHELL} 10832 export SHELL 10833 _ASEOF 10834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10835 ## -------------------- ## 10836 ## M4sh Initialization. ## 10837 ## -------------------- ## 10838 10839 # Be more Bourne compatible 10840 DUALCASE=1; export DUALCASE # for MKS sh 10841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10842 emulate sh 10843 NULLCMD=: 10844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10845 # is contrary to our usage. Disable this feature. 10846 alias -g '${1+"$@"}'='"$@"' 10847 setopt NO_GLOB_SUBST 10848 else 10849 case `(set -o) 2>/dev/null` in #( 10850 *posix*) : 10851 set -o posix ;; #( 10852 *) : 10853 ;; 10854 esac 10855 fi 10856 10857 10858 as_nl=' 10859 ' 10860 export as_nl 10861 # Printing a long string crashes Solaris 7 /usr/bin/printf. 10862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10865 # Prefer a ksh shell builtin over an external printf program on Solaris, 10866 # but without wasting forks for bash or zsh. 10867 if test -z "$BASH_VERSION$ZSH_VERSION" \ 10868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10869 as_echo='print -r --' 10870 as_echo_n='print -rn --' 10871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10872 as_echo='printf %s\n' 10873 as_echo_n='printf %s' 10874 else 10875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10877 as_echo_n='/usr/ucb/echo -n' 10878 else 10879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10880 as_echo_n_body='eval 10881 arg=$1; 10882 case $arg in #( 10883 *"$as_nl"*) 10884 expr "X$arg" : "X\\(.*\\)$as_nl"; 10885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10886 esac; 10887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10888 ' 10889 export as_echo_n_body 10890 as_echo_n='sh -c $as_echo_n_body as_echo' 10891 fi 10892 export as_echo_body 10893 as_echo='sh -c $as_echo_body as_echo' 10894 fi 10895 10896 # The user is always right. 10897 if test "${PATH_SEPARATOR+set}" != set; then 10898 PATH_SEPARATOR=: 10899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10901 PATH_SEPARATOR=';' 10902 } 10903 fi 10904 10905 10906 # IFS 10907 # We need space, tab and new line, in precisely that order. Quoting is 10908 # there to prevent editors from complaining about space-tab. 10909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 10910 # splitting by setting IFS to empty value.) 10911 IFS=" "" $as_nl" 10912 10913 # Find who we are. Look in the path if we contain no directory separator. 10914 as_myself= 10915 case $0 in #(( 10916 *[\\/]* ) as_myself=$0 ;; 10917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10918 for as_dir in $PATH 10919 do 10920 IFS=$as_save_IFS 10921 test -z "$as_dir" && as_dir=. 10922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10923 done 10924 IFS=$as_save_IFS 10925 10926 ;; 10927 esac 10928 # We did not find ourselves, most probably we were run as `sh COMMAND' 10929 # in which case we are not to be found in the path. 10930 if test "x$as_myself" = x; then 10931 as_myself=$0 10932 fi 10933 if test ! -f "$as_myself"; then 10934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10935 exit 1 10936 fi 10937 10938 # Unset variables that we do not need and which cause bugs (e.g. in 10939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10940 # suppresses any "Segmentation fault" message there. '((' could 10941 # trigger a bug in pdksh 5.2.14. 10942 for as_var in BASH_ENV ENV MAIL MAILPATH 10943 do eval test x\${$as_var+set} = xset \ 10944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10945 done 10946 PS1='$ ' 10947 PS2='> ' 10948 PS4='+ ' 10949 10950 # NLS nuisances. 10951 LC_ALL=C 10952 export LC_ALL 10953 LANGUAGE=C 10954 export LANGUAGE 10955 10956 # CDPATH. 10957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10958 10959 10960 # as_fn_error STATUS ERROR [LINENO LOG_FD] 10961 # ---------------------------------------- 10962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10964 # script with STATUS, using 1 if that was 0. 10965 as_fn_error () 10966 { 10967 as_status=$1; test $as_status -eq 0 && as_status=1 10968 if test "$4"; then 10969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10971 fi 10972 $as_echo "$as_me: error: $2" >&2 10973 as_fn_exit $as_status 10974 } # as_fn_error 10975 10976 10977 # as_fn_set_status STATUS 10978 # ----------------------- 10979 # Set $? to STATUS, without forking. 10980 as_fn_set_status () 10981 { 10982 return $1 10983 } # as_fn_set_status 10984 10985 # as_fn_exit STATUS 10986 # ----------------- 10987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10988 as_fn_exit () 10989 { 10990 set +e 10991 as_fn_set_status $1 10992 exit $1 10993 } # as_fn_exit 10994 10995 # as_fn_unset VAR 10996 # --------------- 10997 # Portably unset VAR. 10998 as_fn_unset () 10999 { 11000 { eval $1=; unset $1;} 11001 } 11002 as_unset=as_fn_unset 11003 # as_fn_append VAR VALUE 11004 # ---------------------- 11005 # Append the text in VALUE to the end of the definition contained in VAR. Take 11006 # advantage of any shell optimizations that allow amortized linear growth over 11007 # repeated appends, instead of the typical quadratic growth present in naive 11008 # implementations. 11009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11010 eval 'as_fn_append () 11011 { 11012 eval $1+=\$2 11013 }' 11014 else 11015 as_fn_append () 11016 { 11017 eval $1=\$$1\$2 11018 } 11019 fi # as_fn_append 11020 11021 # as_fn_arith ARG... 11022 # ------------------ 11023 # Perform arithmetic evaluation on the ARGs, and store the result in the 11024 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11025 # must be portable across $(()) and expr. 11026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11027 eval 'as_fn_arith () 11028 { 11029 as_val=$(( $* )) 11030 }' 11031 else 11032 as_fn_arith () 11033 { 11034 as_val=`expr "$@" || test $? -eq 1` 11035 } 11036 fi # as_fn_arith 11037 11038 11039 if expr a : '\(a\)' >/dev/null 2>&1 && 11040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11041 as_expr=expr 11042 else 11043 as_expr=false 11044 fi 11045 11046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11047 as_basename=basename 11048 else 11049 as_basename=false 11050 fi 11051 11052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11053 as_dirname=dirname 11054 else 11055 as_dirname=false 11056 fi 11057 11058 as_me=`$as_basename -- "$0" || 11059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11060 X"$0" : 'X\(//\)$' \| \ 11061 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11062 $as_echo X/"$0" | 11063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11064 s//\1/ 11065 q 11066 } 11067 /^X\/\(\/\/\)$/{ 11068 s//\1/ 11069 q 11070 } 11071 /^X\/\(\/\).*/{ 11072 s//\1/ 11073 q 11074 } 11075 s/.*/./; q'` 11076 11077 # Avoid depending upon Character Ranges. 11078 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11081 as_cr_digits='0123456789' 11082 as_cr_alnum=$as_cr_Letters$as_cr_digits 11083 11084 ECHO_C= ECHO_N= ECHO_T= 11085 case `echo -n x` in #((((( 11086 -n*) 11087 case `echo 'xy\c'` in 11088 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11089 xy) ECHO_C='\c';; 11090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11091 ECHO_T=' ';; 11092 esac;; 11093 *) 11094 ECHO_N='-n';; 11095 esac 11096 11097 rm -f conf$$ conf$$.exe conf$$.file 11098 if test -d conf$$.dir; then 11099 rm -f conf$$.dir/conf$$.file 11100 else 11101 rm -f conf$$.dir 11102 mkdir conf$$.dir 2>/dev/null 11103 fi 11104 if (echo >conf$$.file) 2>/dev/null; then 11105 if ln -s conf$$.file conf$$ 2>/dev/null; then 11106 as_ln_s='ln -s' 11107 # ... but there are two gotchas: 11108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11110 # In both cases, we have to default to `cp -pR'. 11111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11112 as_ln_s='cp -pR' 11113 elif ln conf$$.file conf$$ 2>/dev/null; then 11114 as_ln_s=ln 11115 else 11116 as_ln_s='cp -pR' 11117 fi 11118 else 11119 as_ln_s='cp -pR' 11120 fi 11121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11122 rmdir conf$$.dir 2>/dev/null 11123 11124 11125 # as_fn_mkdir_p 11126 # ------------- 11127 # Create "$as_dir" as a directory, including parents if necessary. 11128 as_fn_mkdir_p () 11129 { 11130 11131 case $as_dir in #( 11132 -*) as_dir=./$as_dir;; 11133 esac 11134 test -d "$as_dir" || eval $as_mkdir_p || { 11135 as_dirs= 11136 while :; do 11137 case $as_dir in #( 11138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11139 *) as_qdir=$as_dir;; 11140 esac 11141 as_dirs="'$as_qdir' $as_dirs" 11142 as_dir=`$as_dirname -- "$as_dir" || 11143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11144 X"$as_dir" : 'X\(//\)[^/]' \| \ 11145 X"$as_dir" : 'X\(//\)$' \| \ 11146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11147 $as_echo X"$as_dir" | 11148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11149 s//\1/ 11150 q 11151 } 11152 /^X\(\/\/\)[^/].*/{ 11153 s//\1/ 11154 q 11155 } 11156 /^X\(\/\/\)$/{ 11157 s//\1/ 11158 q 11159 } 11160 /^X\(\/\).*/{ 11161 s//\1/ 11162 q 11163 } 11164 s/.*/./; q'` 11165 test -d "$as_dir" && break 11166 done 11167 test -z "$as_dirs" || eval "mkdir $as_dirs" 11168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11169 11170 11171 } # as_fn_mkdir_p 11172 if mkdir -p . 2>/dev/null; then 11173 as_mkdir_p='mkdir -p "$as_dir"' 11174 else 11175 test -d ./-p && rmdir ./-p 11176 as_mkdir_p=false 11177 fi 11178 11179 11180 # as_fn_executable_p FILE 11181 # ----------------------- 11182 # Test if FILE is an executable regular file. 11183 as_fn_executable_p () 11184 { 11185 test -f "$1" && test -x "$1" 11186 } # as_fn_executable_p 11187 as_test_x='test -x' 11188 as_executable_p=as_fn_executable_p 11189 11190 # Sed expression to map a string onto a valid CPP name. 11191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11192 11193 # Sed expression to map a string onto a valid variable name. 11194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11195 11196 11197 exec 6>&1 11198 ## ----------------------------------- ## 11199 ## Main body of $CONFIG_STATUS script. ## 11200 ## ----------------------------------- ## 11201 _ASEOF 11202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11203 11204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11205 # Save the log message, to keep $0 and so on meaningful, and to 11206 # report actual input values of CONFIG_FILES etc. instead of their 11207 # values after options handling. 11208 ac_log=" 11209 This file was extended by xfindproxy $as_me 1.0.4, which was 11210 generated by GNU Autoconf 2.69. Invocation command line was 11211 11212 CONFIG_FILES = $CONFIG_FILES 11213 CONFIG_HEADERS = $CONFIG_HEADERS 11214 CONFIG_LINKS = $CONFIG_LINKS 11215 CONFIG_COMMANDS = $CONFIG_COMMANDS 11216 $ $0 $@ 11217 11218 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11219 " 11220 11221 _ACEOF 11222 11223 case $ac_config_files in *" 11224 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11225 esac 11226 11227 case $ac_config_headers in *" 11228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11229 esac 11230 11231 11232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11233 # Files that config.status was made for. 11234 config_files="$ac_config_files" 11235 config_headers="$ac_config_headers" 11236 config_commands="$ac_config_commands" 11237 11238 _ACEOF 11239 11240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11241 ac_cs_usage="\ 11242 \`$as_me' instantiates files and other configuration actions 11243 from templates according to the current configuration. Unless the files 11244 and actions are specified as TAGs, all are instantiated by default. 11245 11246 Usage: $0 [OPTION]... [TAG]... 11247 11248 -h, --help print this help, then exit 11249 -V, --version print version number and configuration settings, then exit 11250 --config print configuration, then exit 11251 -q, --quiet, --silent 11252 do not print progress messages 11253 -d, --debug don't remove temporary files 11254 --recheck update $as_me by reconfiguring in the same conditions 11255 --file=FILE[:TEMPLATE] 11256 instantiate the configuration file FILE 11257 --header=FILE[:TEMPLATE] 11258 instantiate the configuration header FILE 11259 11260 Configuration files: 11261 $config_files 11262 11263 Configuration headers: 11264 $config_headers 11265 11266 Configuration commands: 11267 $config_commands 11268 11269 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11270 11271 _ACEOF 11272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11274 ac_cs_version="\\ 11275 xfindproxy config.status 1.0.4 11276 configured by $0, generated by GNU Autoconf 2.69, 11277 with options \\"\$ac_cs_config\\" 11278 11279 Copyright (C) 2012 Free Software Foundation, Inc. 11280 This config.status script is free software; the Free Software Foundation 11281 gives unlimited permission to copy, distribute and modify it." 11282 11283 ac_pwd='$ac_pwd' 11284 srcdir='$srcdir' 11285 INSTALL='$INSTALL' 11286 MKDIR_P='$MKDIR_P' 11287 AWK='$AWK' 11288 test -n "\$AWK" || AWK=awk 11289 _ACEOF 11290 11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11292 # The default lists apply if the user does not specify any file. 11293 ac_need_defaults=: 11294 while test $# != 0 11295 do 11296 case $1 in 11297 --*=?*) 11298 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11300 ac_shift=: 11301 ;; 11302 --*=) 11303 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11304 ac_optarg= 11305 ac_shift=: 11306 ;; 11307 *) 11308 ac_option=$1 11309 ac_optarg=$2 11310 ac_shift=shift 11311 ;; 11312 esac 11313 11314 case $ac_option in 11315 # Handling of the options. 11316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11317 ac_cs_recheck=: ;; 11318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11319 $as_echo "$ac_cs_version"; exit ;; 11320 --config | --confi | --conf | --con | --co | --c ) 11321 $as_echo "$ac_cs_config"; exit ;; 11322 --debug | --debu | --deb | --de | --d | -d ) 11323 debug=: ;; 11324 --file | --fil | --fi | --f ) 11325 $ac_shift 11326 case $ac_optarg in 11327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11328 '') as_fn_error $? "missing file argument" ;; 11329 esac 11330 as_fn_append CONFIG_FILES " '$ac_optarg'" 11331 ac_need_defaults=false;; 11332 --header | --heade | --head | --hea ) 11333 $ac_shift 11334 case $ac_optarg in 11335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11336 esac 11337 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11338 ac_need_defaults=false;; 11339 --he | --h) 11340 # Conflict between --help and --header 11341 as_fn_error $? "ambiguous option: \`$1' 11342 Try \`$0 --help' for more information.";; 11343 --help | --hel | -h ) 11344 $as_echo "$ac_cs_usage"; exit ;; 11345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11346 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11347 ac_cs_silent=: ;; 11348 11349 # This is an error. 11350 -*) as_fn_error $? "unrecognized option: \`$1' 11351 Try \`$0 --help' for more information." ;; 11352 11353 *) as_fn_append ac_config_targets " $1" 11354 ac_need_defaults=false ;; 11355 11356 esac 11357 shift 11358 done 11359 11360 ac_configure_extra_args= 11361 11362 if $ac_cs_silent; then 11363 exec 6>/dev/null 11364 ac_configure_extra_args="$ac_configure_extra_args --silent" 11365 fi 11366 11367 _ACEOF 11368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11369 if \$ac_cs_recheck; then 11370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11371 shift 11372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11373 CONFIG_SHELL='$SHELL' 11374 export CONFIG_SHELL 11375 exec "\$@" 11376 fi 11377 11378 _ACEOF 11379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11380 exec 5>>config.log 11381 { 11382 echo 11383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11384 ## Running $as_me. ## 11385 _ASBOX 11386 $as_echo "$ac_log" 11387 } >&5 11388 11389 _ACEOF 11390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11391 # 11392 # INIT-COMMANDS 11393 # 11394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11395 11396 _ACEOF 11397 11398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11399 11400 # Handling of arguments. 11401 for ac_config_target in $ac_config_targets 11402 do 11403 case $ac_config_target in 11404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11407 11408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11409 esac 11410 done 11411 11412 11413 # If the user did not use the arguments to specify the items to instantiate, 11414 # then the envvar interface is used. Set only those that are not. 11415 # We use the long form for the default assignment because of an extremely 11416 # bizarre bug on SunOS 4.1.3. 11417 if $ac_need_defaults; then 11418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11421 fi 11422 11423 # Have a temporary directory for convenience. Make it in the build tree 11424 # simply because there is no reason against having it here, and in addition, 11425 # creating and moving files from /tmp can sometimes cause problems. 11426 # Hook for its removal unless debugging. 11427 # Note that there is a small window in which the directory will not be cleaned: 11428 # after its creation but before its name has been assigned to `$tmp'. 11429 $debug || 11430 { 11431 tmp= ac_tmp= 11432 trap 'exit_status=$? 11433 : "${ac_tmp:=$tmp}" 11434 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11435 ' 0 11436 trap 'as_fn_exit 1' 1 2 13 15 11437 } 11438 # Create a (secure) tmp directory for tmp files. 11439 11440 { 11441 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11442 test -d "$tmp" 11443 } || 11444 { 11445 tmp=./conf$$-$RANDOM 11446 (umask 077 && mkdir "$tmp") 11447 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11448 ac_tmp=$tmp 11449 11450 # Set up the scripts for CONFIG_FILES section. 11451 # No need to generate them if there are no CONFIG_FILES. 11452 # This happens for instance with `./config.status config.h'. 11453 if test -n "$CONFIG_FILES"; then 11454 11455 11456 ac_cr=`echo X | tr X '\015'` 11457 # On cygwin, bash can eat \r inside `` if the user requested igncr. 11458 # But we know of no other shell where ac_cr would be empty at this 11459 # point, so we can use a bashism as a fallback. 11460 if test "x$ac_cr" = x; then 11461 eval ac_cr=\$\'\\r\' 11462 fi 11463 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11464 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11465 ac_cs_awk_cr='\\r' 11466 else 11467 ac_cs_awk_cr=$ac_cr 11468 fi 11469 11470 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11471 _ACEOF 11472 11473 11474 { 11475 echo "cat >conf$$subs.awk <<_ACEOF" && 11476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11477 echo "_ACEOF" 11478 } >conf$$subs.sh || 11479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11480 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11481 ac_delim='%!_!# ' 11482 for ac_last_try in false false false false false :; do 11483 . ./conf$$subs.sh || 11484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11485 11486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11487 if test $ac_delim_n = $ac_delim_num; then 11488 break 11489 elif $ac_last_try; then 11490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11491 else 11492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11493 fi 11494 done 11495 rm -f conf$$subs.sh 11496 11497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11498 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11499 _ACEOF 11500 sed -n ' 11501 h 11502 s/^/S["/; s/!.*/"]=/ 11503 p 11504 g 11505 s/^[^!]*!// 11506 :repl 11507 t repl 11508 s/'"$ac_delim"'$// 11509 t delim 11510 :nl 11511 h 11512 s/\(.\{148\}\)..*/\1/ 11513 t more1 11514 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11515 p 11516 n 11517 b repl 11518 :more1 11519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11520 p 11521 g 11522 s/.\{148\}// 11523 t nl 11524 :delim 11525 h 11526 s/\(.\{148\}\)..*/\1/ 11527 t more2 11528 s/["\\]/\\&/g; s/^/"/; s/$/"/ 11529 p 11530 b 11531 :more2 11532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11533 p 11534 g 11535 s/.\{148\}// 11536 t delim 11537 ' <conf$$subs.awk | sed ' 11538 /^[^""]/{ 11539 N 11540 s/\n// 11541 } 11542 ' >>$CONFIG_STATUS || ac_write_fail=1 11543 rm -f conf$$subs.awk 11544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11545 _ACAWK 11546 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11547 for (key in S) S_is_set[key] = 1 11548 FS = "" 11549 11550 } 11551 { 11552 line = $ 0 11553 nfields = split(line, field, "@") 11554 substed = 0 11555 len = length(field[1]) 11556 for (i = 2; i < nfields; i++) { 11557 key = field[i] 11558 keylen = length(key) 11559 if (S_is_set[key]) { 11560 value = S[key] 11561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11562 len += length(value) + length(field[++i]) 11563 substed = 1 11564 } else 11565 len += 1 + keylen 11566 } 11567 11568 print line 11569 } 11570 11571 _ACAWK 11572 _ACEOF 11573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11574 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11575 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11576 else 11577 cat 11578 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11579 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11580 _ACEOF 11581 11582 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11583 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11584 # trailing colons and then remove the whole line if VPATH becomes empty 11585 # (actually we leave an empty line to preserve line numbers). 11586 if test "x$srcdir" = x.; then 11587 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11588 h 11589 s/// 11590 s/^/:/ 11591 s/[ ]*$/:/ 11592 s/:\$(srcdir):/:/g 11593 s/:\${srcdir}:/:/g 11594 s/:@srcdir@:/:/g 11595 s/^:*// 11596 s/:*$// 11597 x 11598 s/\(=[ ]*\).*/\1/ 11599 G 11600 s/\n// 11601 s/^[^=]*=[ ]*$// 11602 }' 11603 fi 11604 11605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11606 fi # test -n "$CONFIG_FILES" 11607 11608 # Set up the scripts for CONFIG_HEADERS section. 11609 # No need to generate them if there are no CONFIG_HEADERS. 11610 # This happens for instance with `./config.status Makefile'. 11611 if test -n "$CONFIG_HEADERS"; then 11612 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11613 BEGIN { 11614 _ACEOF 11615 11616 # Transform confdefs.h into an awk script `defines.awk', embedded as 11617 # here-document in config.status, that substitutes the proper values into 11618 # config.h.in to produce config.h. 11619 11620 # Create a delimiter string that does not exist in confdefs.h, to ease 11621 # handling of long lines. 11622 ac_delim='%!_!# ' 11623 for ac_last_try in false false :; do 11624 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11625 if test -z "$ac_tt"; then 11626 break 11627 elif $ac_last_try; then 11628 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11629 else 11630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11631 fi 11632 done 11633 11634 # For the awk script, D is an array of macro values keyed by name, 11635 # likewise P contains macro parameters if any. Preserve backslash 11636 # newline sequences. 11637 11638 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11639 sed -n ' 11640 s/.\{148\}/&'"$ac_delim"'/g 11641 t rset 11642 :rset 11643 s/^[ ]*#[ ]*define[ ][ ]*/ / 11644 t def 11645 d 11646 :def 11647 s/\\$// 11648 t bsnl 11649 s/["\\]/\\&/g 11650 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11651 D["\1"]=" \3"/p 11652 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11653 d 11654 :bsnl 11655 s/["\\]/\\&/g 11656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11657 D["\1"]=" \3\\\\\\n"\\/p 11658 t cont 11659 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11660 t cont 11661 d 11662 :cont 11663 n 11664 s/.\{148\}/&'"$ac_delim"'/g 11665 t clear 11666 :clear 11667 s/\\$// 11668 t bsnlc 11669 s/["\\]/\\&/g; s/^/"/; s/$/"/p 11670 d 11671 :bsnlc 11672 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11673 b cont 11674 ' <confdefs.h | sed ' 11675 s/'"$ac_delim"'/"\\\ 11676 "/g' >>$CONFIG_STATUS || ac_write_fail=1 11677 11678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11679 for (key in D) D_is_set[key] = 1 11680 FS = "" 11681 } 11682 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11683 line = \$ 0 11684 split(line, arg, " ") 11685 if (arg[1] == "#") { 11686 defundef = arg[2] 11687 mac1 = arg[3] 11688 } else { 11689 defundef = substr(arg[1], 2) 11690 mac1 = arg[2] 11691 } 11692 split(mac1, mac2, "(") #) 11693 macro = mac2[1] 11694 prefix = substr(line, 1, index(line, defundef) - 1) 11695 if (D_is_set[macro]) { 11696 # Preserve the white space surrounding the "#". 11697 print prefix "define", macro P[macro] D[macro] 11698 next 11699 } else { 11700 # Replace #undef with comments. This is necessary, for example, 11701 # in the case of _POSIX_SOURCE, which is predefined and required 11702 # on some systems where configure will not decide to define it. 11703 if (defundef == "undef") { 11704 print "/*", prefix defundef, macro, "*/" 11705 next 11706 } 11707 } 11708 } 11709 { print } 11710 _ACAWK 11711 _ACEOF 11712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11713 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11714 fi # test -n "$CONFIG_HEADERS" 11715 11716 11717 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11718 shift 11719 for ac_tag 11720 do 11721 case $ac_tag in 11722 :[FHLC]) ac_mode=$ac_tag; continue;; 11723 esac 11724 case $ac_mode$ac_tag in 11725 :[FHL]*:*);; 11726 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11727 :[FH]-) ac_tag=-:-;; 11728 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11729 esac 11730 ac_save_IFS=$IFS 11731 IFS=: 11732 set x $ac_tag 11733 IFS=$ac_save_IFS 11734 shift 11735 ac_file=$1 11736 shift 11737 11738 case $ac_mode in 11739 :L) ac_source=$1;; 11740 :[FH]) 11741 ac_file_inputs= 11742 for ac_f 11743 do 11744 case $ac_f in 11745 -) ac_f="$ac_tmp/stdin";; 11746 *) # Look for the file first in the build tree, then in the source tree 11747 # (if the path is not absolute). The absolute path cannot be DOS-style, 11748 # because $ac_f cannot contain `:'. 11749 test -f "$ac_f" || 11750 case $ac_f in 11751 [\\/$]*) false;; 11752 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11753 esac || 11754 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11755 esac 11756 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11757 as_fn_append ac_file_inputs " '$ac_f'" 11758 done 11759 11760 # Let's still pretend it is `configure' which instantiates (i.e., don't 11761 # use $as_me), people would be surprised to read: 11762 # /* config.h. Generated by config.status. */ 11763 configure_input='Generated from '` 11764 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11765 `' by configure.' 11766 if test x"$ac_file" != x-; then 11767 configure_input="$ac_file. $configure_input" 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11769 $as_echo "$as_me: creating $ac_file" >&6;} 11770 fi 11771 # Neutralize special characters interpreted by sed in replacement strings. 11772 case $configure_input in #( 11773 *\&* | *\|* | *\\* ) 11774 ac_sed_conf_input=`$as_echo "$configure_input" | 11775 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11776 *) ac_sed_conf_input=$configure_input;; 11777 esac 11778 11779 case $ac_tag in 11780 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11782 esac 11783 ;; 11784 esac 11785 11786 ac_dir=`$as_dirname -- "$ac_file" || 11787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11788 X"$ac_file" : 'X\(//\)[^/]' \| \ 11789 X"$ac_file" : 'X\(//\)$' \| \ 11790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11791 $as_echo X"$ac_file" | 11792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11793 s//\1/ 11794 q 11795 } 11796 /^X\(\/\/\)[^/].*/{ 11797 s//\1/ 11798 q 11799 } 11800 /^X\(\/\/\)$/{ 11801 s//\1/ 11802 q 11803 } 11804 /^X\(\/\).*/{ 11805 s//\1/ 11806 q 11807 } 11808 s/.*/./; q'` 11809 as_dir="$ac_dir"; as_fn_mkdir_p 11810 ac_builddir=. 11811 11812 case "$ac_dir" in 11813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11814 *) 11815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11816 # A ".." for each directory in $ac_dir_suffix. 11817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11818 case $ac_top_builddir_sub in 11819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11821 esac ;; 11822 esac 11823 ac_abs_top_builddir=$ac_pwd 11824 ac_abs_builddir=$ac_pwd$ac_dir_suffix 11825 # for backward compatibility: 11826 ac_top_builddir=$ac_top_build_prefix 11827 11828 case $srcdir in 11829 .) # We are building in place. 11830 ac_srcdir=. 11831 ac_top_srcdir=$ac_top_builddir_sub 11832 ac_abs_top_srcdir=$ac_pwd ;; 11833 [\\/]* | ?:[\\/]* ) # Absolute name. 11834 ac_srcdir=$srcdir$ac_dir_suffix; 11835 ac_top_srcdir=$srcdir 11836 ac_abs_top_srcdir=$srcdir ;; 11837 *) # Relative name. 11838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11839 ac_top_srcdir=$ac_top_build_prefix$srcdir 11840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11841 esac 11842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11843 11844 11845 case $ac_mode in 11846 :F) 11847 # 11848 # CONFIG_FILE 11849 # 11850 11851 case $INSTALL in 11852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11854 esac 11855 ac_MKDIR_P=$MKDIR_P 11856 case $MKDIR_P in 11857 [\\/$]* | ?:[\\/]* ) ;; 11858 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11859 esac 11860 _ACEOF 11861 11862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11863 # If the template does not know about datarootdir, expand it. 11864 # FIXME: This hack should be removed a few years after 2.60. 11865 ac_datarootdir_hack=; ac_datarootdir_seen= 11866 ac_sed_dataroot=' 11867 /datarootdir/ { 11868 p 11869 q 11870 } 11871 /@datadir@/p 11872 /@docdir@/p 11873 /@infodir@/p 11874 /@localedir@/p 11875 /@mandir@/p' 11876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11877 *datarootdir*) ac_datarootdir_seen=yes;; 11878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11881 _ACEOF 11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11883 ac_datarootdir_hack=' 11884 s&@datadir@&$datadir&g 11885 s&@docdir@&$docdir&g 11886 s&@infodir@&$infodir&g 11887 s&@localedir@&$localedir&g 11888 s&@mandir@&$mandir&g 11889 s&\\\${datarootdir}&$datarootdir&g' ;; 11890 esac 11891 _ACEOF 11892 11893 # Neutralize VPATH when `$srcdir' = `.'. 11894 # Shell code in configure.ac might set extrasub. 11895 # FIXME: do we really want to maintain this feature? 11896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11897 ac_sed_extra="$ac_vpsub 11898 $extrasub 11899 _ACEOF 11900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11901 :t 11902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11903 s|@configure_input@|$ac_sed_conf_input|;t t 11904 s&@top_builddir@&$ac_top_builddir_sub&;t t 11905 s&@top_build_prefix@&$ac_top_build_prefix&;t t 11906 s&@srcdir@&$ac_srcdir&;t t 11907 s&@abs_srcdir@&$ac_abs_srcdir&;t t 11908 s&@top_srcdir@&$ac_top_srcdir&;t t 11909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11910 s&@builddir@&$ac_builddir&;t t 11911 s&@abs_builddir@&$ac_abs_builddir&;t t 11912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11913 s&@INSTALL@&$ac_INSTALL&;t t 11914 s&@MKDIR_P@&$ac_MKDIR_P&;t t 11915 $ac_datarootdir_hack 11916 " 11917 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11918 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11919 11920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11921 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11923 "$ac_tmp/out"`; test -z "$ac_out"; } && 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11925 which seems to be undefined. Please make sure it is defined" >&5 11926 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11927 which seems to be undefined. Please make sure it is defined" >&2;} 11928 11929 rm -f "$ac_tmp/stdin" 11930 case $ac_file in 11931 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11932 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11933 esac \ 11934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11935 ;; 11936 :H) 11937 # 11938 # CONFIG_HEADER 11939 # 11940 if test x"$ac_file" != x-; then 11941 { 11942 $as_echo "/* $configure_input */" \ 11943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11944 } >"$ac_tmp/config.h" \ 11945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11946 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11948 $as_echo "$as_me: $ac_file is unchanged" >&6;} 11949 else 11950 rm -f "$ac_file" 11951 mv "$ac_tmp/config.h" "$ac_file" \ 11952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11953 fi 11954 else 11955 $as_echo "/* $configure_input */" \ 11956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11957 || as_fn_error $? "could not create -" "$LINENO" 5 11958 fi 11959 # Compute "$ac_file"'s index in $config_headers. 11960 _am_arg="$ac_file" 11961 _am_stamp_count=1 11962 for _am_header in $config_headers :; do 11963 case $_am_header in 11964 $_am_arg | $_am_arg:* ) 11965 break ;; 11966 * ) 11967 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11968 esac 11969 done 11970 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11971 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11972 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11973 X"$_am_arg" : 'X\(//\)$' \| \ 11974 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11975 $as_echo X"$_am_arg" | 11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11977 s//\1/ 11978 q 11979 } 11980 /^X\(\/\/\)[^/].*/{ 11981 s//\1/ 11982 q 11983 } 11984 /^X\(\/\/\)$/{ 11985 s//\1/ 11986 q 11987 } 11988 /^X\(\/\).*/{ 11989 s//\1/ 11990 q 11991 } 11992 s/.*/./; q'`/stamp-h$_am_stamp_count 11993 ;; 11994 11995 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11996 $as_echo "$as_me: executing $ac_file commands" >&6;} 11997 ;; 11998 esac 11999 12000 12001 case $ac_file$ac_mode in 12002 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12003 # Older Autoconf quotes --file arguments for eval, but not when files 12004 # are listed without --file. Let's play safe and only enable the eval 12005 # if we detect the quoting. 12006 case $CONFIG_FILES in 12007 *\'*) eval set x "$CONFIG_FILES" ;; 12008 *) set x $CONFIG_FILES ;; 12009 esac 12010 shift 12011 for mf 12012 do 12013 # Strip MF so we end up with the name of the file. 12014 mf=`echo "$mf" | sed -e 's/:.*$//'` 12015 # Check whether this is an Automake generated Makefile or not. 12016 # We used to match only the files named 'Makefile.in', but 12017 # some people rename them; so instead we look at the file content. 12018 # Grep'ing the first line is not enough: some people post-process 12019 # each Makefile.in and add a new line on top of each file to say so. 12020 # Grep'ing the whole file is not good either: AIX grep has a line 12021 # limit of 2048, but all sed's we know have understand at least 4000. 12022 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12023 dirpart=`$as_dirname -- "$mf" || 12024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12025 X"$mf" : 'X\(//\)[^/]' \| \ 12026 X"$mf" : 'X\(//\)$' \| \ 12027 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12028 $as_echo X"$mf" | 12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12030 s//\1/ 12031 q 12032 } 12033 /^X\(\/\/\)[^/].*/{ 12034 s//\1/ 12035 q 12036 } 12037 /^X\(\/\/\)$/{ 12038 s//\1/ 12039 q 12040 } 12041 /^X\(\/\).*/{ 12042 s//\1/ 12043 q 12044 } 12045 s/.*/./; q'` 12046 else 12047 continue 12048 fi 12049 # Extract the definition of DEPDIR, am__include, and am__quote 12050 # from the Makefile without running 'make'. 12051 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12052 test -z "$DEPDIR" && continue 12053 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12054 test -z "$am__include" && continue 12055 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12056 # Find all dependency output files, they are included files with 12057 # $(DEPDIR) in their names. We invoke sed twice because it is the 12058 # simplest approach to changing $(DEPDIR) to its actual value in the 12059 # expansion. 12060 for file in `sed -n " 12061 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12062 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12063 # Make sure the directory exists. 12064 test -f "$dirpart/$file" && continue 12065 fdir=`$as_dirname -- "$file" || 12066 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12067 X"$file" : 'X\(//\)[^/]' \| \ 12068 X"$file" : 'X\(//\)$' \| \ 12069 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12070 $as_echo X"$file" | 12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)[^/].*/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\/\)$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\).*/{ 12084 s//\1/ 12085 q 12086 } 12087 s/.*/./; q'` 12088 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12089 # echo "creating $dirpart/$file" 12090 echo '# dummy' > "$dirpart/$file" 12091 done 12092 done 12093 } 12094 ;; 12095 12096 esac 12097 done # for ac_tag 12098 12099 12100 as_fn_exit 0 12101 _ACEOF 12102 ac_clean_files=$ac_clean_files_save 12103 12104 test $ac_write_fail = 0 || 12105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12106 12107 12108 # configure is writing to config.log, and then calls config.status. 12109 # config.status does its own redirection, appending to config.log. 12110 # Unfortunately, on DOS this fails, as config.log is still kept open 12111 # by configure, so config.status won't be able to write to it; its 12112 # output is simply discarded. So we exec the FD to /dev/null, 12113 # effectively closing config.log, so it can be properly (re)opened and 12114 # appended to by config.status. When coming back to configure, we 12115 # need to make the FD available again. 12116 if test "$no_create" != yes; then 12117 ac_cs_success=: 12118 ac_config_status_args= 12119 test "$silent" = yes && 12120 ac_config_status_args="$ac_config_status_args --quiet" 12121 exec 5>/dev/null 12122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12123 exec 5>>config.log 12124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12125 # would make configure fail if this is the last instruction. 12126 $ac_cs_success || as_fn_exit 1 12127 fi 12128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12131 fi 12132 12133